diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.html index 8df02fe3d..3ace44f68 100644 --- a/litellm/proxy/_experimental/out/404.html +++ b/litellm/proxy/_experimental/out/404.html @@ -1 +1 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/y7Wf8hfvd5KooOO87je1n/_buildManifest.js b/litellm/proxy/_experimental/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_buildManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/y7Wf8hfvd5KooOO87je1n/_buildManifest.js rename to litellm/proxy/_experimental/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_buildManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/y7Wf8hfvd5KooOO87je1n/_ssgManifest.js b/litellm/proxy/_experimental/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_ssgManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/y7Wf8hfvd5KooOO87je1n/_ssgManifest.js rename to litellm/proxy/_experimental/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_ssgManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/69-442a9c01c3fd20f9.js b/litellm/proxy/_experimental/out/_next/static/chunks/69-e49705773ae41779.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/chunks/69-442a9c01c3fd20f9.js rename to litellm/proxy/_experimental/out/_next/static/chunks/69-e49705773ae41779.js diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/289-04be6cb9636840d2.js b/litellm/proxy/_experimental/out/_next/static/chunks/968-0cc23fee51b47e4e.js similarity index 67% rename from litellm/proxy/_experimental/out/_next/static/chunks/289-04be6cb9636840d2.js rename to litellm/proxy/_experimental/out/_next/static/chunks/968-0cc23fee51b47e4e.js index 4221b318f..e18edda98 100644 --- a/litellm/proxy/_experimental/out/_next/static/chunks/289-04be6cb9636840d2.js +++ b/litellm/proxy/_experimental/out/_next/static/chunks/968-0cc23fee51b47e4e.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{12215:function(e,t,n){n.d(t,{iN:function(){return h},R_:function(){return d},EV:function(){return g},ez:function(){return p}});var r=n(41785),o=n(76991),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=i(r),f=l((0,o.uA)({h:s(p,d,!0),s:c(p,d,!0),v:u(p,d,!0)}));n.push(f)}n.push(l(r));for(var m=1;m<=4;m+=1){var g=i(r),h=l((0,o.uA)({h:s(g,m),s:c(g,m),v:u(g,m)}));n.push(h)}return"dark"===t.theme?a.map(function(e){var r,a,i,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[s]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f={},m={};Object.keys(p).forEach(function(e){f[e]=d(p[e]),f[e].primary=f[e][5],m[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}),f.red,f.volcano;var g=f.gold;f.orange,f.yellow,f.lime,f.green,f.cyan;var h=f.blue;f.geekblue,f.purple,f.magenta,f.grey,f.grey},8985:function(e,t,n){n.d(t,{E4:function(){return ej},jG:function(){return A},ks:function(){return U},bf:function(){return F},CI:function(){return eD},fp:function(){return X},xy:function(){return eM}});var r,o,a=n(50833),i=n(80406),l=n(63787),s=n(5239),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(24050),d=n(64090),p=n.t(d,2);n(61475),n(92536);var f=n(47365),m=n(65127);function g(e){return e.join("%")}var h=function(){function e(t){(0,f.Z)(this,e),(0,a.Z)(this,"instanceId",void 0),(0,a.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__",E=d.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new h(e)}(),defaultCache:!0}),S=n(6976),w=n(22127),x=function(){function e(){(0,f.Z)(this,e),(0,a.Z)(this,"cache",void 0),(0,a.Z)(this,"keys",void 0),(0,a.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,m.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),T=new x;function A(e){var t=Array.isArray(e)?e:[e];return T.has(t)||T.set(t,new C(t)),T.get(t)}var I=new WeakMap,N={},R=new WeakMap;function _(e){var t=R.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,S.Z)(r)?t+=_(r):t+=r}),R.set(e,t)),t}function P(e,t){return c("".concat(t,"_").concat(_(e)))}var M="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),L="_bAmBoO_",D=void 0,j=(0,w.Z)();function F(e){return"number"==typeof e?"".concat(e,"px"):e}function B(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var l=(0,s.Z)((0,s.Z)({},o),{},(r={},(0,a.Z)(r,b,t),(0,a.Z)(r,v,n),r)),c=Object.keys(l).map(function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];if(null!=n&&null!==(s=n.preserve)&&void 0!==s&&s[r])a[r]=l;else if(("string"==typeof l||"number"==typeof l)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[r])){var s,c,u,d=U(r,null==n?void 0:n.prefix);o[d]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[r]?String(l):"".concat(l,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},z=n(24800),H=(0,s.Z)({},p).useInsertionEffect,G=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){d.useMemo(e,n),(0,z.Z)(function(){return t(!0)},n)},$=void 0!==(0,s.Z)({},p).useInsertionEffect?function(e){var t=[],n=!1;return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function W(e,t,n,r,o){var a=d.useContext(E).cache,s=g([e].concat((0,l.Z)(t))),c=$([s]),u=function(e){a.opUpdate(s,function(t){var r=(0,i.Z)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};d.useMemo(function(){u()},[s]);var p=a.opGet(s)[1];return G(function(){null==o||o(p)},function(e){return u(function(t){var n=(0,i.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(p)),[r+1,a]}),function(){a.opUpdate(s,function(t){var n=(0,i.Z)(t||[],2),o=n[0],l=void 0===o?0:o,u=n[1];return 0==l-1?(c(function(){(e||!a.opGet(s))&&(null==r||r(u,!1))}),null):[l-1,u]})}},[s]),p}var V={},q=new Map,Y=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,s.Z)((0,s.Z)({},o),t);return r&&(a=r(a)),a},K="token";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(E),o=r.cache.instanceId,a=r.container,p=n.salt,f=void 0===p?"":p,m=n.override,g=void 0===m?V:m,h=n.formatToken,S=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=I,r=0;r=(q.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(w&&r){var l=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:a,priority:-999});l[y]=o,l.setAttribute(b,n._themeKey)}})}var Q=n(14749),J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee="comm",et="rule",en="decl",er=Math.abs,eo=String.fromCharCode;function ea(e,t,n){return e.replace(t,n)}function ei(e,t){return 0|e.charCodeAt(t)}function el(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ec(e,t){return t.push(e),e}function eu(e,t){for(var n="",r=0;r0?f[v]+" "+y:ea(y,/&\f/g,f[v])).trim())&&(s[b++]=E);return ev(e,t,n,0===o?et:l,s,c,u,d)}function eO(e,t,n,r,o){return ev(e,t,n,en,el(e,0,r),el(e,r+1,-1),r,o)}var ek="data-ant-cssinjs-cache-path",eC="_FILE_STYLE__",eT=!0,eA="_multi_value_";function eI(e){var t,n,r;return eu((r=function e(t,n,r,o,a,i,l,s,c){for(var u,d,p,f=0,m=0,g=l,h=0,b=0,v=0,y=1,E=1,S=1,w=0,x="",O=a,k=i,C=o,T=x;E;)switch(v=w,w=ey()){case 40:if(108!=v&&58==ei(T,g-1)){-1!=(d=T+=ea(ew(w),"&","&\f"),p=er(f?s[f-1]:0),d.indexOf("&\f",p))&&(S=-1);break}case 34:case 39:case 91:T+=ew(w);break;case 9:case 10:case 13:case 32:T+=function(e){for(;eh=eE();)if(eh<33)ey();else break;return eS(e)>2||eS(eh)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&ey()&&!(eh<48)&&!(eh>102)&&(!(eh>57)||!(eh<65))&&(!(eh>70)||!(eh<97)););return n=eg+(t<6&&32==eE()&&32==ey()),el(eb,e,n)}(eg-1,7);continue;case 47:switch(eE()){case 42:case 47:ec(ev(u=function(e,t){for(;ey();)if(e+eh===57)break;else if(e+eh===84&&47===eE())break;return"/*"+el(eb,t,eg-1)+"*"+eo(47===e?e:ey())}(ey(),eg),n,r,ee,eo(eh),el(u,2,-2),0,c),c);break;default:T+="/"}break;case 123*y:s[f++]=es(T)*S;case 125*y:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+m:-1==S&&(T=ea(T,/\f/g,"")),b>0&&es(T)-g&&ec(b>32?eO(T+";",o,r,g-1,c):eO(ea(T," ","")+";",o,r,g-2,c),c);break;case 59:T+=";";default:if(ec(C=ex(T,n,r,f,m,a,s,x,O=[],k=[],g,i),i),123===w){if(0===m)e(T,n,C,C,O,i,g,s,k);else switch(99===h&&110===ei(T,3)?100:h){case 100:case 108:case 109:case 115:e(t,C,C,o&&ec(ex(t,C,C,0,0,a,s,x,a,O=[],g,k),k),a,k,g,s,o?O:k);break;default:e(T,C,C,C,[""],k,0,s,k)}}}f=m=b=0,y=S=1,x=T="",g=l;break;case 58:g=1+es(T),b=v;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(eh=eg>0?ei(eb,--eg):0,ef--,10===eh&&(ef=1,ep--),eh))continue}switch(T+=eo(w),w*y){case 38:S=m>0?1:(T+="\f",-1);break;case 44:s[f++]=(es(T)-1)*S,S=1;break;case 64:45===eE()&&(T+=ew(ey())),h=eE(),m=g=es(x=T+=function(e){for(;!eS(eE());)ey();return el(eb,e,eg)}(eg)),w++;break;case 45:45===v&&2==es(T)&&(y=0)}}return i}("",null,null,null,[""],(n=t=e,ep=ef=1,em=es(eb=n),eg=0,t=[]),0,[0],t),eb="",r),ed).replace(/\{%%%\:[^;];}/g,";")}var eN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,c=r.parentSelectors,d=n.hashId,p=n.layer,f=(n.path,n.hashPriority),m=n.transformers,g=void 0===m?[]:m;n.linters;var h="",b={};function v(t){var r=t.getName(d);if(!b[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];b[r]="@keyframes ".concat(t.getName(d)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var u=g.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,S.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,S.Z)(r)&&r&&("_skip_check_"in r||eA in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;J[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(d)),h+="".concat(n,":").concat(r,";")}var m,g=null!==(m=null==r?void 0:r.value)&&void 0!==m?m:r;"object"===(0,S.Z)(r)&&null!=r&&r[eA]&&Array.isArray(g)?g.forEach(function(e){p(t,e)}):p(t,g)}else{var y=!1,E=t.trim(),w=!1;(o||a)&&d?E.startsWith("@")?y=!0:E=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,l.Z)(n.slice(1))).join(" ")}).join(",")}(t,d,f):o&&!d&&("&"===E||""===E)&&(E="",w=!0);var x=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,l.Z)(c),[E])}),O=(0,i.Z)(x,2),k=O[0],C=O[1];b=(0,s.Z)((0,s.Z)({},b),C),h+="".concat(E).concat(k)}})}}),o){if(p&&(void 0===D&&(D=function(e,t,n){if((0,w.Z)()){(0,u.hq)(e,M);var r,o,a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(L);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,u.jL)(M),i}return!1}("@layer ".concat(M," { .").concat(M,' { content: "').concat(L,'"!important; } }'),function(e){e.className=M})),D)){var y=p.split(","),E=y[y.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(p,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,b]};function eR(e,t){return c("".concat(e.join("%")).concat(t))}function e_(){return null}var eP="style";function eM(e,t){var n=e.token,o=e.path,s=e.hashId,c=e.layer,p=e.nonce,f=e.clientOnly,m=e.order,g=void 0===m?0:m,h=d.useContext(E),S=h.autoClear,x=(h.mock,h.defaultCache),O=h.hashPriority,k=h.container,C=h.ssrInline,T=h.transformers,A=h.linters,I=h.cache,N=n._tokenKey,R=[N].concat((0,l.Z)(o)),_=W(eP,R,function(){var e=R.join("|");if(!function(){if(!r&&(r={},(0,w.Z)())){var e,t=document.createElement("div");t.className=ek,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.Z)(t,2),o=n[0],a=n[1];r[o]=a});var o=document.querySelector("style[".concat(ek,"]"));o&&(eT=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,w.Z)()){if(eT)n=eC;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),a=(0,i.Z)(n,2),l=a[0],u=a[1];if(l)return[l,N,u,{},f,g]}var d=eN(t(),{hashId:s,hashPriority:O,layer:c,path:o.join("-"),transformers:T,linters:A}),p=(0,i.Z)(d,2),m=p[0],h=p[1],b=eI(m),y=eR(R,b);return[b,N,y,h,f,g]},function(e,t){var n=(0,i.Z)(e,3)[2];(t||S)&&j&&(0,u.jL)(n,{mark:v})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==eC){var a={mark:v,prepend:"queue",attachTo:k,priority:g},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var s=(0,u.hq)(n,r,a);s[y]=I.instanceId,s.setAttribute(b,N),Object.keys(o).forEach(function(e){(0,u.hq)(eI(o[e]),"_effect-".concat(e),a)})}}),P=(0,i.Z)(_,3),M=P[0],L=P[1],D=P[2];return function(e){var t,n;return t=C&&!j&&x?d.createElement("style",(0,Q.Z)({},(n={},(0,a.Z)(n,b,L),(0,a.Z)(n,v,D),n),{dangerouslySetInnerHTML:{__html:M}})):d.createElement(e_,null),d.createElement(d.Fragment,null,t,e)}}var eL="cssVar",eD=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,p=void 0===c?"":c,f=(0,d.useContext)(E),m=f.cache.instanceId,g=f.container,h=s._tokenKey,S=[].concat((0,l.Z)(e.path),[n,p,h]);return W(eL,S,function(){var e=Z(t(),n,{prefix:r,unitless:o,ignore:a,scope:p}),l=(0,i.Z)(e,2),s=l[0],c=l[1],u=eR(S,c);return[s,c,u,n]},function(e){var t=(0,i.Z)(e,3)[2];j&&(0,u.jL)(t,{mark:v})},function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,u.hq)(r,o,{mark:v,prepend:"queue",attachTo:g,priority:-999});a[y]=m,a.setAttribute(b,n)}})};o={},(0,a.Z)(o,eP,function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var p=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=B(o,a,l,f,d),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=eI(s[e]);p+=B(n,a,"_effect-".concat(e),f,d)}}),[u,l,p]}),(0,a.Z)(o,K,function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=B(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,c,u]}),(0,a.Z)(o,eL,function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!o)return null;var c=B(o,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,c]});var ej=function(){function e(t,n){(0,f.Z)(this,e),(0,a.Z)(this,"name",void 0),(0,a.Z)(this,"style",void 0),(0,a.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eF(e){return e.notSplit=!0,e}eF(["borderTop","borderBottom"]),eF(["borderTop"]),eF(["borderBottom"]),eF(["borderLeft","borderRight"]),eF(["borderLeft"]),eF(["borderRight"])},60688:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(14749),o=n(80406),a=n(50833),i=n(6787),l=n(64090),s=n(16480),c=n.n(s),u=n(12215),d=n(67689),p=n(5239),f=n(6976),m=n(24050),g=n(74687),h=n(53850);function b(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(d.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,g.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},O=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,d=(0,i.Z)(e,w),f=l.useRef(),m=x;if(c&&(m={primaryColor:c,secondaryColor:u||y(c)}),S(f),t=b(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!b(r))return null;var g=r;return g&&"function"==typeof g.icon&&(g=(0,p.Z)((0,p.Z)({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,p.Z)((0,p.Z)({key:n},v(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,p.Z)({key:n},v(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,p.Z)((0,p.Z)({className:o,onClick:a,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};function k(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return O.setTwoToneColors({primaryColor:r,secondaryColor:a})}O.displayName="IconReact",O.getTwoToneColors=function(){return(0,p.Z)({},x)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||y(t),x.calculated=!!n};var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var T=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,p=e.spin,f=e.rotate,m=e.tabIndex,g=e.onClick,h=e.twoToneColor,b=(0,i.Z)(e,C),v=l.useContext(d.Z),y=v.prefixCls,S=void 0===y?"anticon":y,w=v.rootClassName,x=c()(w,S,(n={},(0,a.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(S,"-spin"),!!p||"loading"===u.name),n),s),k=m;void 0===k&&g&&(k=-1);var T=E(h),A=(0,o.Z)(T,2),I=A[0],N=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},b,{ref:t,tabIndex:k,onClick:g,className:x}),l.createElement(O,{icon:u,primaryColor:I,secondaryColor:N,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});T.displayName="AntdIcon",T.getTwoToneColor=function(){var e=O.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},T.setTwoToneColor=k;var A=T},67689:function(e,t,n){var r=(0,n(64090).createContext)({});t.Z=r},99537:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},90507:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},77136:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},81303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20383:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31413:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20653:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41311:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},40388:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},66155:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},50459:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},96871:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},97766:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41785:function(e,t,n){n.d(t,{T6:function(){return p},VD:function(){return f},WE:function(){return c},Yt:function(){return m},lC:function(){return a},py:function(){return s},rW:function(){return o},s:function(){return d},ve:function(){return l},vq:function(){return u}});var r=n(27974);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,s=(o+a)/2;if(o===a)l=0,i=0;else{var c=o-a;switch(l=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=i(c,s,e+1/3),a=i(c,s,e),l=i(c,s,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},6564:function(e,t,n){n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76991:function(e,t,n){n.d(t,{uA:function(){return i}});var r=n(41785),o=n(6564),a=n(27974);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,s=null,c=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),c=!0,p="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,a.JX)(e.s),s=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,s),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},6336:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(41785),o=n(6564),a=n(76991),i=n(27974),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},88804:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(80406),a=n(64090),i=n(89542),l=n(22127);n(53850);var s=n(74084),c=a.createContext(null),u=n(63787),d=n(24800),p=[],f=n(24050);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),r=a-i}return r}():n}var g="rc-util-locker-".concat(Date.now()),h=0,b=!1,v=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=a.forwardRef(function(e,t){var n,r,y,E,S=e.open,w=e.autoLock,x=e.getContainer,O=(e.debug,e.autoDestroy),k=void 0===O||O,C=e.children,T=a.useState(S),A=(0,o.Z)(T,2),I=A[0],N=A[1],R=I||S;a.useEffect(function(){(k||S)&&N(S)},[S,k]);var _=a.useState(function(){return v(x)}),P=(0,o.Z)(_,2),M=P[0],L=P[1];a.useEffect(function(){var e=v(x);L(null!=e?e:null)});var D=function(e,t){var n=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(n,1)[0],i=a.useRef(!1),s=a.useContext(c),f=a.useState(p),m=(0,o.Z)(f,2),g=m[0],h=m[1],b=s||(i.current?void 0:function(e){h(function(t){return[e].concat((0,u.Z)(t))})});function v(){r.parentElement||document.body.appendChild(r),i.current=!0}function y(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return(0,d.Z)(function(){return e?s?s(v):v():y(),y},[e]),(0,d.Z)(function(){g.length&&(g.forEach(function(e){return e()}),h(p))},[g]),[r,b]}(R&&!M,0),j=(0,o.Z)(D,2),F=j[0],B=j[1],U=null!=M?M:F;n=!!(w&&S&&(0,l.Z)()&&(U===F||U===document.body)),r=a.useState(function(){return h+=1,"".concat(g,"_").concat(h)}),y=(0,o.Z)(r,1)[0],(0,d.Z)(function(){if(n){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,f.jL)(y);return function(){(0,f.jL)(y)}},[n,y]);var Z=null;C&&(0,s.Yr)(C)&&t&&(Z=C.ref);var z=(0,s.x1)(Z,t);if(!R||!(0,l.Z)()||void 0===M)return null;var H=!1===U||("boolean"==typeof E&&(b=E),b),G=C;return t&&(G=a.cloneElement(C,{ref:z})),a.createElement(c.Provider,{value:B},H?G:(0,i.createPortal)(G,U))})},44101:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(5239),o=n(80406),a=n(6787),i=n(88804),l=n(16480),s=n.n(l),c=n(46505),u=n(97472),d=n(74687),p=n(54811),f=n(91010),m=n(24800),g=n(76158),h=n(64090),b=n(14749),v=n(49367),y=n(74084);function E(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=o.y,d=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],m=n.points[1],g=f[0],b=f[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=void 0===u?0:u,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=void 0===c?0:c}return h.createElement("div",{ref:d,className:s()("".concat(t,"-arrow"),i),style:p},l)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?h.createElement(v.ZP,(0,b.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var w=h.memo(function(e){return e.children},function(e,t){return t.cache}),x=h.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,O=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,A=e.motion,I=e.maskMotion,N=e.forceRender,R=e.getPopupContainer,_=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,F=e.ready,B=e.offsetX,U=e.offsetY,Z=e.offsetR,z=e.offsetB,H=e.onAlign,G=e.onPrepare,$=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof n?n():n,Y=p||f,K=(null==R?void 0:R.length)>0,X=h.useState(!R||!K),Q=(0,o.Z)(X,2),J=Q[0],ee=Q[1];if((0,m.Z)(function(){!J&&K&&u&&ee(!0)},[J,K,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!p){var er,eo=T.points,ea=T.dynamicInset||(null===(er=T._experimental)||void 0===er?void 0:er.dynamicInset),ei=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];ei?(en.right=Z,en.left=et):(en.left=B,en.right=et),el?(en.bottom=z,en.top=et):(en.top=U,en.bottom=et)}var es={};return $&&($.includes("height")&&V?es.height=V:$.includes("minHeight")&&V&&(es.minHeight=V),$.includes("width")&&W?es.width=W:$.includes("minWidth")&&W&&(es.minWidth=W)),p||(es.pointerEvents="none"),h.createElement(P,{open:N||Y,getContainer:R&&function(){return R(u)},autoDestroy:_},h.createElement(S,{prefixCls:i,open:p,zIndex:M,mask:O,motion:I}),h.createElement(c.Z,{onResize:H,disabled:!p},function(e){return h.createElement(v.ZP,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=s()(i,c,a);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),es),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:D,onPointerEnter:j,onClick:x},k&&h.createElement(E,{prefixCls:i,arrow:k,arrowPos:C,align:T}),h.createElement(w,{cache:!p&&!g},q))})}))}),O=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),a=h.useCallback(function(e){(0,y.mH)(t,r?r(e):e)},[r]),i=(0,y.x1)(a,n.ref);return o?h.cloneElement(n,{ref:i}):n}),k=h.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(73193);function A(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return R(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=_(a),g=_(i),h=_(l),b=_(s),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),E=m*y,S=h*v,w=0,x=0;if("clip"===r){var O=_(o);w=O*v,x=O*y}var k=c.x+S-w,C=c.y+E-x,T=k+c.width+2*w-S-b*v-(p-f-h-b)*v,A=C+c.height+2*x-E-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A)}}),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function L(e,t){var n=(0,o.Z)(t||[],2),r=n[0],a=n[1];return[M(e.width,r),M(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var B=n(63787);n(53850);var U=n(19223),Z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z;return h.forwardRef(function(t,n){var i,l,b,v,y,E,S,w,_,M,z,H,G,$,W,V,q,Y=t.prefixCls,K=void 0===Y?"rc-trigger-popup":Y,X=t.children,Q=t.action,J=t.showAction,ee=t.hideAction,et=t.popupVisible,en=t.defaultPopupVisible,er=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,ei=t.mouseLeaveDelay,el=void 0===ei?.1:ei,es=t.focusDelay,ec=t.blurDelay,eu=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,ef=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,eh=t.popup,eb=t.popupClassName,ev=t.popupStyle,ey=t.popupPlacement,eE=t.builtinPlacements,eS=void 0===eE?{}:eE,ew=t.popupAlign,ex=t.zIndex,eO=t.stretch,ek=t.getPopupClassNameFromAlign,eC=t.fresh,eT=t.alignPoint,eA=t.onPopupClick,eI=t.onPopupAlign,eN=t.arrow,eR=t.popupMotion,e_=t.maskMotion,eP=t.popupTransitionName,eM=t.popupAnimation,eL=t.maskTransitionName,eD=t.maskAnimation,ej=t.className,eF=t.getTriggerDOMNode,eB=(0,a.Z)(t,Z),eU=h.useState(!1),eZ=(0,o.Z)(eU,2),ez=eZ[0],eH=eZ[1];(0,m.Z)(function(){eH((0,g.Z)())},[]);var eG=h.useRef({}),e$=h.useContext(k),eW=h.useMemo(function(){return{registerSubPopup:function(e,t){eG.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eV=(0,f.Z)(),eq=h.useState(null),eY=(0,o.Z)(eq,2),eK=eY[0],eX=eY[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&eX(e),null==e$||e$.registerSubPopup(eV,e)}),eJ=h.useState(null),e0=(0,o.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=h.useRef(null),e3=(0,p.Z)(function(e){(0,u.S)(e)&&e1!==e&&(e2(e),e4.current=e)}),e6=h.Children.only(X),e5=(null==e6?void 0:e6.props)||{},e8={},e9=(0,p.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,d.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eK?void 0:eK.contains(e))||(null===(n=(0,d.A)(eK))||void 0===n?void 0:n.host)===e||e===eK||Object.values(eG.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=A(K,eR,eM,eP),te=A(K,e_,eD,eL),tt=h.useState(en||!1),tn=(0,o.Z)(tt,2),tr=tn[0],to=tn[1],ta=null!=et?et:tr,ti=(0,p.Z)(function(e){void 0===et&&to(e)});(0,m.Z)(function(){to(et||!1)},[et]);var tl=h.useRef(ta);tl.current=ta;var ts=h.useRef([]);ts.current=[];var tc=(0,p.Z)(function(e){var t;ti(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ta)!==e&&(ts.current.push(e),null==er||er(e))}),tu=h.useRef(),td=function(){clearTimeout(tu.current)},tp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;td(),0===t?tc(e):tu.current=setTimeout(function(){tc(e)},1e3*t)};h.useEffect(function(){return td},[]);var tf=h.useState(!1),tm=(0,o.Z)(tf,2),tg=tm[0],th=tm[1];(0,m.Z)(function(e){(!e||ta)&&th(!0)},[ta]);var tb=h.useState(null),tv=(0,o.Z)(tb,2),ty=tv[0],tE=tv[1],tS=h.useState([0,0]),tw=(0,o.Z)(tS,2),tx=tw[0],tO=tw[1],tk=function(e){tO([e.clientX,e.clientY])},tC=(i=eT?tx:e1,l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eS[ey]||{}}),v=(b=(0,o.Z)(l,2))[0],y=b[1],E=h.useRef(0),S=h.useMemo(function(){return eK?N(eK):[]},[eK]),w=h.useRef({}),ta||(w.current={}),_=(0,p.Z)(function(){if(eK&&i&&ta){var e,t,n,a,l,s,c,d=eK.ownerDocument,p=I(eK).getComputedStyle(eK),f=p.width,m=p.height,g=p.position,h=eK.style.left,b=eK.style.top,v=eK.style.right,E=eK.style.bottom,x=eK.style.overflow,O=(0,r.Z)((0,r.Z)({},eS[ey]),ew),k=d.createElement("div");if(null===(e=eK.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(eK.offsetLeft,"px"),k.style.top="".concat(eK.offsetTop,"px"),k.style.position=g,k.style.height="".concat(eK.offsetHeight,"px"),k.style.width="".concat(eK.offsetWidth,"px"),eK.style.left="0",eK.style.top="0",eK.style.right="auto",eK.style.bottom="auto",eK.style.overflow="hidden",Array.isArray(i))n={x:i[0],y:i[1],width:0,height:0};else{var C=i.getBoundingClientRect();n={x:C.x,y:C.y,width:C.width,height:C.height}}var A=eK.getBoundingClientRect(),N=d.documentElement,_=N.clientWidth,M=N.clientHeight,B=N.scrollWidth,U=N.scrollHeight,Z=N.scrollTop,z=N.scrollLeft,H=A.height,G=A.width,$=n.height,W=n.width,V=O.htmlRegion,q="visible",Y="visibleFirst";"scroll"!==V&&V!==Y&&(V=q);var K=V===Y,X=P({left:-z,top:-Z,right:B-z,bottom:U-Z},S),Q=P({left:0,top:0,right:_,bottom:M},S),J=V===q?Q:X,ee=K?Q:J;eK.style.left="auto",eK.style.top="auto",eK.style.right="0",eK.style.bottom="0";var et=eK.getBoundingClientRect();eK.style.left=h,eK.style.top=b,eK.style.right=v,eK.style.bottom=E,eK.style.overflow=x,null===(t=eK.parentElement)||void 0===t||t.removeChild(k);var en=R(Math.round(G/parseFloat(f)*1e3)/1e3),er=R(Math.round(H/parseFloat(m)*1e3)/1e3);if(!(0===en||0===er||(0,u.S)(i)&&!(0,T.Z)(i))){var eo=O.offset,ea=O.targetOffset,ei=L(A,eo),el=(0,o.Z)(ei,2),es=el[0],ec=el[1],eu=L(n,ea),ed=(0,o.Z)(eu,2),ep=ed[0],ef=ed[1];n.x-=ep,n.y-=ef;var em=O.points||[],eg=(0,o.Z)(em,2),eh=eg[0],eb=D(eg[1]),ev=D(eh),eE=j(n,eb),ex=j(A,ev),eO=(0,r.Z)({},O),ek=eE.x-ex.x+es,eC=eE.y-ex.y+ec,eT=tt(ek,eC),eA=tt(ek,eC,Q),eN=j(n,["t","l"]),eR=j(A,["t","l"]),e_=j(n,["b","r"]),eP=j(A,["b","r"]),eM=O.overflow||{},eL=eM.adjustX,eD=eM.adjustY,ej=eM.shiftX,eF=eM.shiftY,eB=function(e){return"boolean"==typeof e?e:e>=0};tn();var eU=eB(eD),eZ=ev[0]===eb[0];if(eU&&"t"===ev[0]&&(l>ee.bottom||w.current.bt)){var ez=eC;eZ?ez-=H-$:ez=eN.y-eP.y-ec;var eH=tt(ek,ez),eG=tt(ek,ez,Q);eH>eT||eH===eT&&(!K||eG>=eA)?(w.current.bt=!0,eC=ez,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.bt=!1}if(eU&&"b"===ev[0]&&(aeT||eW===eT&&(!K||eV>=eA)?(w.current.tb=!0,eC=e$,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.tb=!1}var eq=eB(eL),eY=ev[1]===eb[1];if(eq&&"l"===ev[1]&&(c>ee.right||w.current.rl)){var eX=ek;eY?eX-=G-W:eX=eN.x-eP.x-es;var eQ=tt(eX,eC),eJ=tt(eX,eC,Q);eQ>eT||eQ===eT&&(!K||eJ>=eA)?(w.current.rl=!0,ek=eX,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.rl=!1}if(eq&&"r"===ev[1]&&(seT||e1===eT&&(!K||e2>=eA)?(w.current.lr=!0,ek=e0,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.lr=!1}tn();var e4=!0===ej?0:ej;"number"==typeof e4&&(sQ.right&&(ek-=c-Q.right-es,n.x>Q.right-e4&&(ek+=n.x-Q.right+e4)));var e3=!0===eF?0:eF;"number"==typeof e3&&(aQ.bottom&&(eC-=l-Q.bottom-ec,n.y>Q.bottom-e3&&(eC+=n.y-Q.bottom+e3)));var e6=A.x+ek,e5=A.y+eC,e8=n.x,e9=n.y;null==eI||eI(eK,eO);var e7=et.right-A.x-(ek+A.width),te=et.bottom-A.y-(eC+A.height);y({ready:!0,offsetX:ek/en,offsetY:eC/er,offsetR:e7/en,offsetB:te/er,arrowX:((Math.max(e6,e8)+Math.min(e6+G,e8+W))/2-e6)/en,arrowY:((Math.max(e5,e9)+Math.min(e5+H,e9+$))/2-e5)/er,scaleX:en,scaleY:er,align:eO})}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,o=A.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+G,n.right)-a)*(Math.min(o+H,n.bottom)-i))}function tn(){l=(a=A.y+eC)+H,c=(s=A.x+ek)+G}}}),M=function(){y(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,m.Z)(M,[ey]),(0,m.Z)(function(){ta||M()},[ta]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){E.current+=1;var e=E.current;Promise.resolve().then(function(){E.current===e&&_()})}]),tT=(0,o.Z)(tC,11),tA=tT[0],tI=tT[1],tN=tT[2],tR=tT[3],t_=tT[4],tP=tT[5],tM=tT[6],tL=tT[7],tD=tT[8],tj=tT[9],tF=tT[10],tB=(z=void 0===Q?"hover":Q,h.useMemo(function(){var e=C(null!=J?J:z),t=C(null!=ee?ee:z),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,z,J,ee])),tU=(0,o.Z)(tB,2),tZ=tU[0],tz=tU[1],tH=tZ.has("click"),tG=tz.has("click")||tz.has("contextMenu"),t$=(0,p.Z)(function(){tg||tF()});H=function(){tl.current&&eT&&tG&&tp(!1)},(0,m.Z)(function(){if(ta&&e1&&eK){var e=N(e1),t=N(eK),n=I(eK),r=new Set([n].concat((0,B.Z)(e),(0,B.Z)(t)));function o(){t$(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),t$(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[ta,e1,eK]),(0,m.Z)(function(){t$()},[tx,ey]),(0,m.Z)(function(){ta&&!(null!=eS&&eS[ey])&&t$()},[JSON.stringify(ew)]);var tW=h.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eS,K,tj,eT);return s()(e,null==ek?void 0:ek(tj))},[tj,ek,eS,K,eT]);h.useImperativeHandle(n,function(){return{nativeElement:e4.current,forceAlign:t$}});var tV=h.useState(0),tq=(0,o.Z)(tV,2),tY=tq[0],tK=tq[1],tX=h.useState(0),tQ=(0,o.Z)(tX,2),tJ=tQ[0],t0=tQ[1],t1=function(){if(eO&&e1){var e=e1.getBoundingClientRect();tK(e.width),t0(e.height)}};function t2(e,t,n,r){e8[e]=function(o){var a;null==r||r(o),tp(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))}},8903:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(69703),o=n(64090);let a=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}))}},9853:function(e,t,n){n.d(t,{Z:function(){return mv}});var r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E,S,w,x,O={};n.r(O),n.d(O,{scaleBand:function(){return ou},scaleDiverging:function(){return function e(){var t=a3(sp()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=io(sp()).domain([.1,1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleDivergingPow:function(){return sf},scaleDivergingSqrt:function(){return sm},scaleDivergingSymlog:function(){return function e(){var t=il(sp());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,aF),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,aF):[0,1],a3(r)}},scaleImplicit:function(){return os},scaleLinear:function(){return a6},scaleLog:function(){return function e(){let t=io(a$()).domain([1,10]);return t.copy=()=>aG(t,e()).base(t.base()),or.apply(t,arguments),t}},scaleOrdinal:function(){return oc},scalePoint:function(){return od},scalePow:function(){return ip},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e2&&void 0!==arguments[2]?arguments[2]:o4;if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[o6(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,r]).range(i).unknown(t)},or.apply(a3(l),arguments)}},scaleRadial:function(){return function e(){var t,n=aW(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(ig(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,aF)).map(ig)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},or.apply(a,arguments),a3(a)}},scaleSequential:function(){return function e(){var t=a3(ss()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=io(ss()).domain([1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleSequentialPow:function(){return su},scaleSequentialQuantile:function(){return function e(){var t=[],n=aU;function r(e){if(null!=e&&!isNaN(e=+e))return n((o6(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(oJ),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return ib(e);if(t>=1)return ih(e);var r,o=(r-1)*t,a=Math.floor(o),i=ih((function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?iv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ;if(e===oJ)return iv;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,l=n-r+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(l-i/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/i+u)),p=Math.min(o,Math.floor(n+(i-l)*c/i+u));e(t,n,d,p,a)}let i=t[n],l=r,s=o;for(iy(t,r,n),a(t[o],i)>0&&iy(t,r,o);la(t[l],i);)++l;for(;a(t[s],i)>0;)--s}0===a(t[r],i)?iy(t,r,s):iy(t,++s,o),s<=n&&(r=s+1),n<=s&&(o=s-1)}return t})(e,a).subarray(0,a+1));return i+(ib(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},oo.apply(r,arguments)}},scaleSequentialSqrt:function(){return sd},scaleSequentialSymlog:function(){return function e(){var t=il(ss());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleSqrt:function(){return im},scaleSymlog:function(){return function e(){var t=il(a$());return t.copy=function(){return aG(t,e()).constant(t.constant())},or.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[o6(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},or.apply(a,arguments)}},scaleTime:function(){return si},scaleUtc:function(){return sl},tickFormat:function(){return a4}});var k=n(69703),C=n(54942),T=n(2898),A=n(99250),I=n(65492),N=n(64090),R=function(){for(var e,t,n=0,r="",o=arguments.length;n0?1:-1},G=function(e){return D()(e)&&e.indexOf("%")===e.length-1},$=function(e){return z()(e)&&!F()(e)},W=function(e){return $(e)||D()(e)},V=0,q=function(e){var t=++V;return"".concat(e||"").concat(t)},Y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!$(e)&&!D()(e))return r;if(G(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return F()(n)&&(n=r),o&&n>t&&(n=t),n},K=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},X=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ey=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},eE=null,eS=null,ew=function e(t){if(t===eE&&Array.isArray(eS))return eS;var n=[];return N.Children.forEach(t,function(t){en()(t)||((0,M.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),eS=n,eE=t,n};function ex(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ey(e)}):[ey(t)],ew(e).forEach(function(e){var t=U()(e,"type.displayName")||U()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function eO(e,t){var n=ex(e,t);return n&&n[0]}var ek=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!$(n)&&!(n<=0)&&!!$(r)&&!(r<=0)},eC=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],eT=function(e,t,n,r){var o,a=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!eo()(e)&&(r&&a.includes(t)||ec.includes(t))||n&&ep.includes(t)},eA=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,N.isValidElement)(e)&&(r=e.props),!ei()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;eT(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},eI=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(0===r)return!0;if(1===r)return eN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=ey(e.type),i=t[a]||{},l=i.handler,s=i.once;if(l&&(!s||!r[a])){var c=l(e,a,o);n.push(c),r[a]=!0}}}),n},e_=function(e){var t=e&&e.type;return t&&ev[t]?ev[t]:null};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=P()(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect();return C(n.width,n.height),t.observe(S.current),function(){t.disconnect()}},[C,h]);var T=(0,N.useMemo)(function(){var e=O.containerWidth,t=O.containerHeight;if(e<0||t<0)return null;ee(G(l)||G(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,c),ee(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=G(l)?e:l,o=G(c)?t:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),f&&o>f&&(o=f)),ee(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,l,c,d,p,r);var a=!Array.isArray(m)&&(0,M.isElement)(m)&&ey(m.type).endsWith("Chart");return N.Children.map(m,function(e){return(0,M.isElement)(e)?(0,N.cloneElement)(e,eL({width:n,height:o},a?{style:eL({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e})},[r,m,c,f,p,d,O,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:R("recharts-responsive-container",v),style:eL(eL({},void 0===E?{}:E),{},{width:l,height:c,minWidth:d,minHeight:p,maxHeight:f}),ref:S},T)}),eF=n(1646),eB=n.n(eF),eU=n(97572),eZ=n.n(eU),ez=n(209),eH=n.n(ez),eG=n(72986),e$=n.n(eG);function eW(e,t){if(!e)throw Error("Invariant failed")}var eV=["children","width","height","viewBox","className","style","title","desc"];function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eV),u=o||{width:n,height:r,x:0,y:0},d=R("recharts-surface",a);return N.createElement("svg",eq({},eA(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),N.createElement("title",null,l),N.createElement("desc",null,s),t)}var eK=["children","className"];function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eK),a=R("recharts-layer",r);return N.createElement("g",eX({className:a},eA(o,!0),{ref:t}),n)});function eJ(e){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tc(e,t){return to(e.getTime(),t.getTime())}function tu(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),l=0;(r=i.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,p=d[0],f=d[1],m=o.value,g=m[0],h=m[1];!c&&!a[u]&&(c=n.equals(p,g,l,u,e,t,n)&&n.equals(f,h,p,g,e,t,n))&&(a[u]=!0),u++}if(!c)return!1;l++}return!0}function td(e,t,n){var r,o=tl(e),a=o.length;if(tl(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tp(e,t,n){var r,o,a,i=tn(e),l=i.length;if(tn(t).length!==l)return!1;for(;l-- >0;)if((r=i[l])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=ti(e,r),a=ti(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tf(e,t){return to(e.valueOf(),t.valueOf())}function tm(e,t){return e.source===t.source&&e.flags===t.flags}function tg(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)!s&&!a[c]&&(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[c]=!0),c++;if(!s)return!1}return!0}function th(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var tb=Array.isArray,tv="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ty=Object.assign,tE=Object.prototype.toString.call.bind(Object.prototype.toString),tS=tw();function tw(e){void 0===e&&(e={});var t,n,r,o,a,i,l,s,c,u=e.circular,d=e.createInternalComparator,p=e.createState,f=e.strict,m=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?tp:ts,areDatesEqual:tc,areMapsEqual:r?te(tu,tp):tu,areObjectsEqual:r?tp:td,arePrimitiveWrappersEqual:tf,areRegExpsEqual:tm,areSetsEqual:r?te(tg,tp):tg,areTypedArraysEqual:r?tp:th};if(n&&(o=ty({},o,n(o))),t){var a=tt(o.areArraysEqual),i=tt(o.areMapsEqual),l=tt(o.areObjectsEqual),s=tt(o.areSetsEqual);o=ty({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,c=t.areTypedArraysEqual,function(e,t,u){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var d=e.constructor;if(d!==t.constructor)return!1;if(d===Object)return a(e,t,u);if(tb(e))return n(e,t,u);if(null!=tv&&tv(e))return c(e,t,u);if(d===Date)return r(e,t,u);if(d===RegExp)return l(e,t,u);if(d===Map)return o(e,t,u);if(d===Set)return s(e,t,u);var p=tE(e);return"[object Date]"===p?r(e,t,u):"[object RegExp]"===p?l(e,t,u):"[object Map]"===p?o(e,t,u):"[object Set]"===p?s(e,t,u):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,u):"[object Arguments]"===p?a(e,t,u):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,u)}),g=d?d(m):function(e,t,n,r,o,a,i){return m(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var l=r(),s=l.cache;return n(e,i,{cache:void 0===s?t?new WeakMap:void 0:s,equals:o,meta:l.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==u&&u,comparator:m,createState:p,equals:g,strict:void 0!==f&&f})}function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tH(a,l),f=tH(i,s),m=(e=a,t=l,function(n){var r;return tz([].concat(function(e){if(Array.isArray(e))return tU(e)}(r=tZ(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||tB(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=m(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return f(n)};return g.isStepper=!1,g},t$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,l=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,l=r*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return l.isStepper=!0,l.dt=i,l},tW=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(t6(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:a,easing:l}),a]);var f=tj(p,a,l),m=t9(t9(t9({},d.style),s),{},{transition:f});return[].concat(t6(e),[m,a,u]).filter(tP)},[i,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){tx(e.bind(null,i),a);return}e(a),tx(e.bind(null,i));return}"object"===tO(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,s=e.easing,c=e.onAnimationStart,u=e.onAnimationEnd,d=e.steps,p=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof s||"function"==typeof p||"spring"===s){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?t7({},i,l):l,g=tj(Object.keys(m),a,s);f.start([c,o,t9(t9({},m),{},{transition:g}),a,u])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,t3)),a=N.Children.count(t),i=tD(this.state.style);if("function"==typeof t)return t(i);if(!r||0===a||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=t.className;return(0,N.cloneElement)(e,t9(t9({},o),{},{style:t9(t9({},void 0===n?{}:n),i),className:r}))};return 1===a?l(N.Children.only(t)):N.createElement("div",null,N.Children.map(t,function(e){return l(e)}))}}],ne(a.prototype,n),r&&ne(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);ni.displayName="Animate",ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ni.propTypes={from:e5().oneOfType([e5().object,e5().string]),to:e5().oneOfType([e5().object,e5().string]),attributeName:e5().string,duration:e5().number,begin:e5().number,easing:e5().oneOfType([e5().string,e5().func]),steps:e5().arrayOf(e5().shape({duration:e5().number.isRequired,style:e5().object.isRequired,easing:e5().oneOfType([e5().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),e5().func]),properties:e5().arrayOf("string"),onAnimationEnd:e5().func})),children:e5().oneOfType([e5().node,e5().func]),isActive:e5().bool,canBegin:e5().bool,onAnimationEnd:e5().func,shouldReAnimate:e5().bool,onAnimationStart:e5().func,onAnimationReStart:e5().func};var nl=n(42859),ns=["children","appearOptions","enterOptions","leaveOptions"];function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(){return(nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nh(a);if(t){var r=nh(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ng(e)}(this,e)});function a(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),nb(ng(e=o.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),nb(ng(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(np(np({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return ny(t)+ny(n)+ny(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ns));return N.createElement(nl.Transition,nu({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return N.createElement(ni,e.state,N.Children.only(n))})}}],nf(a.prototype,n),r&&nf(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function nS(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,a=e.leave;return N.createElement(nl.TransitionGroup,{component:t},N.Children.map(n,function(e,t){return N.createElement(nE,{appearOptions:r,enterOptions:o,leaveOptions:a,key:"child-".concat(t)},e)}))}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nx(e,t,n){var r;return(r=function(e,t){if("object"!==nw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nw(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===nw(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nE.propTypes={appearOptions:e5().object,enterOptions:e5().object,leaveOptions:e5().object,children:e5().element},nS.propTypes={appear:e5().object,enter:e5().object,leave:e5().object,children:e5().oneOfType([e5().array,e5().element]),component:e5().any},nS.defaultProps={component:"span"};var nO="recharts-tooltip-wrapper",nk={visibility:"hidden"};function nC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&$(a[r]))return a[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?us[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E=this,S=this.props,w=S.active,x=S.allowEscapeViewBox,O=S.animationDuration,k=S.animationEasing,C=S.children,T=S.coordinate,A=S.hasPayload,I=S.isAnimationActive,_=S.offset,P=S.position,M=S.reverseDirection,L=S.useTranslate3d,D=S.viewBox,j=S.wrapperStyle,F=(p=(e={allowEscapeViewBox:x,coordinate:T,offsetTopLeft:_,position:P,reverseDirection:M,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:L,viewBox:D}).allowEscapeViewBox,f=e.coordinate,m=e.offsetTopLeft,g=e.position,h=e.reverseDirection,b=e.tooltipBox,v=e.useTranslate3d,y=e.viewBox,b.height>0&&b.width>0&&f?(n=(t={translateX:u=nC({allowEscapeViewBox:p,coordinate:f,key:"x",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.width,viewBox:y,viewBoxDimension:y.width}),translateY:d=nC({allowEscapeViewBox:p,coordinate:f,key:"y",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.height,viewBox:y,viewBoxDimension:y.height}),useTranslate3d:v}).translateX,r=t.translateY,c=tD({transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})):c=nk,{cssProperties:c,cssClasses:(i=(o={translateX:u,translateY:d,coordinate:f}).coordinate,l=o.translateX,s=o.translateY,R(nO,(nx(a={},"".concat(nO,"-right"),$(l)&&i&&$(i.x)&&l>=i.x),nx(a,"".concat(nO,"-left"),$(l)&&i&&$(i.x)&&l=i.y),nx(a,"".concat(nO,"-top"),$(s)&&i&&$(i.y)&&s0;return N.createElement(nD,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:u,active:r,coordinate:s,hasPayload:E,offset:d,position:m,reverseDirection:g,useTranslate3d:h,viewBox:b,wrapperStyle:v},(e=nH(nH({},this.props),{},{payload:y}),N.isValidElement(l)?N.cloneElement(l,e):"function"==typeof l?N.createElement(l,e):N.createElement(e3,e)))}}],nG(a.prototype,n),r&&nG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);nV(nK,"displayName","Tooltip"),nV(nK,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var nX=n(9332),nQ=n.n(nX);let nJ=Math.cos,n0=Math.sin,n1=Math.sqrt,n2=Math.PI,n4=2*n2;var n3={draw(e,t){let n=n1(t/n2);e.moveTo(n,0),e.arc(0,0,n,0,n4)}};let n6=n1(1/3),n5=2*n6,n8=n0(n2/10)/n0(7*n2/10),n9=n0(n4/10)*n8,n7=-nJ(n4/10)*n8,re=n1(3),rt=n1(3)/2,rn=1/n1(12),rr=(rn/2+1)*3;function ro(e){return function(){return e}}function ra(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ri(){let e=ra(["M",",",""]);return ri=function(){return e},e}function rl(){let e=ra(["Z"]);return rl=function(){return e},e}function rs(){let e=ra(["L",",",""]);return rs=function(){return e},e}function rc(){let e=ra(["Q",",",",",",",""]);return rc=function(){return e},e}function ru(){let e=ra(["C",",",",",",",",",",",""]);return ru=function(){return e},e}function rd(){let e=ra(["M",",",""]);return rd=function(){return e},e}function rp(){let e=ra(["L",",",""]);return rp=function(){return e},e}function rf(){let e=ra(["L",",",""]);return rf=function(){return e},e}function rm(){let e=ra(["A",",",",0,0,",",",",",""]);return rm=function(){return e},e}function rg(){let e=ra(["M",",",""]);return rg=function(){return e},e}function rh(){let e=ra(["L",",",""]);return rh=function(){return e},e}function rb(){let e=ra(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]);return rb=function(){return e},e}function rv(){let e=ra(["A",",",",0,",",",",",",",""]);return rv=function(){return e},e}function ry(){let e=ra(["M",",","h","v","h","Z"]);return ry=function(){return e},e}let rE=Math.PI,rS=2*rE,rw=rS-1e-6;function rx(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(u*l-s*c)>1e-6&&o){let p=n-a,f=r-i,m=l*l+s*s,g=Math.sqrt(m),h=Math.sqrt(d),b=o*Math.tan((rE-Math.acos((m+d-(p*p+f*f))/(2*g*h)))/2),v=b/h,y=b/g;Math.abs(v-1)>1e-6&&this._append(rf(),e+v*c,t+v*u),this._append(rm(),o,o,+(u*p>c*f),this._x1=e+y*l,this._y1=t+y*s)}else this._append(rp(),this._x1=e,this._y1=t)}}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error("negative radius: ".concat(n));let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,c=t+l,u=1^a,d=a?r-o:o-r;null===this._x1?this._append(rg(),s,c):(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append(rh(),s,c),n&&(d<0&&(d=d%rS+rS),d>rw?this._append(rb(),n,n,u,e-i,t-l,n,n,u,this._x1=s,this._y1=c):d>1e-6&&this._append(rv(),n,n,+(d>=rE),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}rect(e,t,n,r){this._append(ry(),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?rx:function(e){let t=Math.floor(e);if(!(t>=0))throw Error("invalid digits: ".concat(e));if(t>15)return rx;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw RangeError("invalid digits: ".concat(n));t=e}return e},()=>new rO(t)}function rC(e){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rO.prototype,n1(3),n1(3);var rT=["type","size","sizeType"];function rA(){return(rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rT)),{},{type:r,size:a,sizeType:l}),c=s.className,u=s.cx,d=s.cy,p=eA(s,!0);return u===+u&&d===+d&&a===+a?N.createElement("path",rA({},p,{className:R("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:(t=rR["symbol".concat(nQ()(r))]||n3,(function(e,t){let n=null,r=rk(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ro(e||n3),t="function"==typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(rP(a,l,r))())})):null};function rL(e){return(rL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rD(){return(rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var f=t.inactive?i:t.color;return N.createElement("li",rD({className:d,style:s,key:"legend-item-".concat(n)},em(e.props,t,n)),N.createElement(eY,{width:r,height:r,viewBox:l,style:c},e.renderIcon(t)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},u?u(p,t,n):p))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?N.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],rF(a.prototype,n),r&&rF(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function rG(e){return(rG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rZ(rH,"displayName","Legend"),rZ(rH,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var r$=["ref"];function rW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rV({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),rV(rV({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,s=rV(rV({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return N.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if("function"==typeof e)return N.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,r$);return N.createElement(rH,n)}(n,rV(rV({},this.props),{},{payload:nU(l,i,r0)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&$(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&rq(a.prototype,n),r&&rq(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function r2(){return(r2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),a+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),a+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),a+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},oe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+l)&&r<=Math.max(a,a+l)},ot={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},on=function(e){var t,n=r9(r9({},ot),e),r=(0,N.useRef)(),o=function(e){if(Array.isArray(e))return e}(t=(0,N.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r5(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o[1];(0,N.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=n.x,s=n.y,c=n.width,u=n.height,d=n.radius,p=n.className,f=n.animationEasing,m=n.animationDuration,g=n.animationBegin,h=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var v=R("recharts-rectangle",p);return b?N.createElement(ni,{canBegin:a>0,from:{width:c,height:u,x:l,y:s},to:{width:c,height:u,x:l,y:s},duration:m,animationEasing:f,isActive:b},function(e){var t=e.width,o=e.height,i=e.x,l=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:h,easing:f},N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(i,l,t,o,d),ref:r})))}):N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(l,s,c,u,d)}))};function or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class oa extends Map{get(e){return super.get(oi(this,e))}has(e){return super.has(oi(this,e))}set(e,t){return super.set(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}(this,e),t)}delete(e){return super.delete(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}(this,e))}constructor(e,t=ol){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}}function oi(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):t}function ol(e){return null!==e&&"object"==typeof e?e.valueOf():e}let os=Symbol("implicit");function oc(){var e=new oa,t=[],n=[],r=os;function o(o){let a=e.get(o);if(void 0===a){if(r!==os)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new oa,n))e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oc(t,n).unknown(r)},or.apply(o,arguments),o}function ou(){var e,t,n=oc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||nj.isSsr)return{width:0,height:0};var r=(Object.keys(t=om({},n)).forEach(function(e){t[e]||delete t[e]}),t),o=JSON.stringify({text:e,copyStyle:r});if(og.widthCache[o])return og.widthCache[o];try{var a=document.getElementById(ob);a||((a=document.createElement("span")).setAttribute("id",ob),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=om(om({},oh),r);Object.assign(a.style,i),a.textContent="".concat(e);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return og.widthCache[o]=s,++og.cacheCount>2e3&&(og.cacheCount=0,og.widthCache={}),s}catch(e){return{width:0,height:0}}};function oy(e){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},m=0,g=l.length-1,h=0;m<=g&&h<=l.length-1;){var b=Math.floor((m+g)/2),v=oj(f(b-1),2),y=v[0],E=v[1],S=oj(f(b),1)[0];if(y||S||(m=b+1),y&&S&&(g=b-1),!y&&S){a=E;break}h++}return a||p},oz=function(e){return[{words:en()(e)?[]:e.toString().split(oB)}]},oH=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!nj.isSsr){var l=oU({breakAll:a,children:r,style:o});return l?oZ({breakAll:a,children:r,maxLines:i,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):oz(r)}return oz(r)},oG="#808080",o$=function(e){var t,n=e.x,r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,i=e.lineHeight,l=void 0===i?"1em":i,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,f=e.verticalAnchor,m=e.fill,g=void 0===m?oG:m,h=oD(e,oP),b=(0,N.useMemo)(function(){return oH({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:d,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,d,h.style,h.width]),v=h.dx,y=h.dy,E=h.angle,S=h.className,w=h.breakAll,x=oD(h,oM);if(!W(r)||!W(a))return null;var O=r+($(v)?v:0),k=a+($(y)?y:0);switch(void 0===f?"end":f){case"start":t=o_("calc(".concat(c,")"));break;case"middle":t=o_("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:t=o_("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(d){var T=b[0].width,A=h.width;C.push("scale(".concat(($(A)?A/T:1)/T,")"))}return E&&C.push("rotate(".concat(E,", ").concat(O,", ").concat(k,")")),C.length&&(x.transform=C.join(" ")),N.createElement("text",oL({},eA(x,!0),{x:O,y:k,className:R("recharts-text",S),textAnchor:void 0===p?"start":p,fill:g.includes("url")?oG:g}),b.map(function(e,n){var r=e.words.join(w?"":" ");return N.createElement("tspan",{x:O,dy:0===n?t:l,key:r},r)}))};let oW=Math.sqrt(50),oV=Math.sqrt(10),oq=Math.sqrt(2);function oY(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(i)),s=i/Math.pow(10,l),c=s>=oW?10:s>=oV?5:s>=oq?2:1;return(l<0?(r=Math.round(e*(a=Math.pow(10,-l)/c)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,l)*c)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=a-o+1,s=Array(l);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function o0(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o1(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ooJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===oJ||e===o0?e:o2,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?am(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?am(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ar.exec(e))?new ah(t[1],t[2],t[3],1):(t=ao.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aa.exec(e))?am(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?am(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=al.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=as.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ac.hasOwnProperty(e)?af(ac[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function af(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function am(e,t,n,r){return r<=0&&(e=t=n=NaN),new ah(e,t,n,r)}function ag(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof o9||(o=ap(o)),o)?new ah((o=o.rgb()).r,o.g,o.b,o.opacity):new ah:new ah(e,t,n,null==r?1:r)}function ah(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ab(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b))}function av(){let e=ay(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aE(this.r),", ").concat(aE(this.g),", ").concat(aE(this.b)).concat(1===e?")":", ".concat(e,")"))}function ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aS(e){return((e=aE(e))<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aO(e,t,n,r)}function ax(e){if(e instanceof aO)return new aO(e.h,e.s,e.l,e.opacity);if(e instanceof o9||(e=ap(e)),!e)return new aO;if(e instanceof aO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+(n0&&s<1?0:i,new aO(i,l,s,e.opacity)}function aO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ak(e){return(e=(e||0)%360)<0?e+360:e}function aC(e){return Math.max(0,Math.min(1,e||0))}function aT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function aA(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}o5(o9,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ax(this).formatHsl()},formatRgb:ad,toString:ad}),o5(ah,ag,o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(aE(this.r),aE(this.g),aE(this.b),ay(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ab,formatHex:ab,formatHex8:function(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b)).concat(aS((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:av,toString:av})),o5(aO,function(e,t,n,r){return 1==arguments.length?ax(e):new aO(e,t,n,null==r?1:r)},o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new aO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ah(aT(e>=240?e-240:e+120,o,r),aT(e,o,r),aT(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new aO(ak(this.h),aC(this.s),aC(this.l),ay(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ay(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ak(this.h),", ").concat(100*aC(this.s),"%, ").concat(100*aC(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var aI=e=>()=>e;function aN(e,t){var n=t-e;return n?function(t){return e+t*n}:aI(isNaN(e)?t:e)}var aR=function e(t){var n,r=1==(n=+(n=t))?aN:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):aI(isNaN(e)?t:e)};function o(e,t){var n=r((e=ag(e)).r,(t=ag(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=aN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function a_(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=rl&&(i=t.slice(l,i),c[s]?c[s]+=i:c[++s]=i),(o=o[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,u.push({i:s,x:aP(o,a)})),l=aL.lastIndex;return lt&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=s>2?aH:az,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(l,i.map(e),aP)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,aF),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=aj,u()},d.clamp=function(e){return arguments.length?(c=!!e||aU,u()):c!==aU},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function aW(){return a$()(aU,aU)}var aV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aq(e){var t;if(!(t=aV.exec(e)))throw Error("invalid format: "+e);return new aY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aY(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function aK(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aX(e){return(e=aK(Math.abs(e)))?e[1]:NaN}function aQ(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}aq.prototype=aY.prototype,aY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var aJ={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aQ(100*e,t),r:aQ,s:function(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(b=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+aK(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a0(e){return e}var a1=Array.prototype.map,a2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a4(e,t,n,r){var o,a,i=oQ(e,t,n);switch((r=aq(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aX(l)/3)))-aX(Math.abs(i))))||(r.precision=a),E(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,aX(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=i)))-aX(o))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-aX(Math.abs(i))))||(r.precision=a-("%"===r.type)*2)}return y(r)}function a3(e){var t=e.domain;return e.ticks=function(e){var n=t();return oK(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return a4(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],c=a[l],u=10;for(c0;){if((o=oX(s,c,n))===r)return a[i]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else if(o<0)s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function a6(){var e=aW();return e.copy=function(){return aG(e,a6())},or.apply(e,arguments),a3(e)}function a5(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function io(e){let t,n;let r=e(a8,a9),o=r.domain,a=10;function i(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?it:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=ir(t),n=ir(n),e(a7,ie)):e(a8,a9),r}return r.base=function(e){return arguments.length?(a=+e,i()):a},r.domain=function(e){return arguments.length?(o(e),i()):o()},r.ticks=e=>{let r,i;let l=o(),s=l[0],c=l[l.length-1],u=c0){for(;d<=p;++d)for(r=1;rc)break;m.push(i)}}else for(;d<=p;++d)for(r=a-1;r>=1;--r)if(!((i=d>0?r/n(-d):r*n(d))c)break;m.push(i)}2*m.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=aq(o)).precision||(o.trim=!0),o=y(o)),e===1/0)return o;let i=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(a5(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ia(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ii(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function il(e){var t=1,n=e(ia(1),ii(t));return n.constant=function(n){return arguments.length?e(ia(t=+n),ii(t)):t},a3(n)}function is(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ic(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iu(e){return e<0?-e*e:e*e}function id(e){var t=e(aU,aU),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(aU,aU):.5===n?e(ic,iu):e(is(n),is(1/n)):n},a3(t)}function ip(){var e=id(a$());return e.copy=function(){return aG(e,ip()).exponent(e.exponent())},or.apply(e,arguments),e}function im(){return ip.apply(null,arguments).exponent(.5)}function ig(e){return Math.sign(e)*e*e}function ih(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function ib(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function iv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function iy(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}y=(v=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?a0:(t=a1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?a0:(r=a1.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=aq(e)).fill,n=e.align,r=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,h=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):aJ[y]||(void 0===h&&(h=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",S="$"===p?i:/[%p]/.test(y)?c:"",w=aJ[y],x=/[defgprs%]/.test(y);function O(e){var a,i,c,p=E,O=S;if("c"===y)O=w(e)+O,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),h),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==r&&(k=!1),p=(k?"("===r?r:u:"-"===r||"("===r?"":r)+p,O=("s"===y?a2[8+b/3]:"")+O+(k&&"("===r?")":""),x){for(a=-1,i=e.length;++a(c=e.charCodeAt(a))||c>57){O=(46===c?l+e.slice(a+1):e.slice(a))+O,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+O.length,T=C>1)+p+e+O+T.slice(C);break;default:e=T+p+e+O}return s(e)}return h=void 0===h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),O.toString=function(){return e+""},O}return{format:p,formatPrefix:function(e,t){var n=p(((e=aq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(aX(t)/3))),o=Math.pow(10,-r),a=a2[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,E=v.formatPrefix;let iE=new Date,iS=new Date;function iw(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let l=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return l;do l.push(i=new Date(+n)),t(n,a),e(n);while(iiw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(iE.setTime(+t),iS.setTime(+r),e(iE),e(iS),Math.floor(n(iE,iS))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ix=iw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ix.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?iw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ix:null,ix.range;let iO=iw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());iO.range;let ik=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());ik.range;let iC=iw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());iC.range;let iT=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());iT.range;let iA=iw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());iA.range;let iI=iw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);iI.range;let iN=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);iN.range;let iR=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function i_(e){return iw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}iR.range;let iP=i_(0),iM=i_(1),iL=i_(2),iD=i_(3),ij=i_(4),iF=i_(5),iB=i_(6);function iU(e){return iw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}iP.range,iM.range,iL.range,iD.range,ij.range,iF.range,iB.range;let iZ=iU(0),iz=iU(1),iH=iU(2),iG=iU(3),i$=iU(4),iW=iU(5),iV=iU(6);iZ.range,iz.range,iH.range,iG.range,i$.range,iW.range,iV.range;let iq=iw(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iq.range;let iY=iw(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());iY.range;let iK=iw(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());iK.every=e=>isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,iK.range;let iX=iw(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function iQ(e,t,n,r,o,a){let i=[[iO,1,1e3],[iO,5,5e3],[iO,15,15e3],[iO,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,a=o1(e=>{let[,,t]=e;return t}).right(i,o);if(a===i.length)return e.every(oQ(t/31536e6,n/31536e6,r));if(0===a)return ix.every(Math.max(oQ(t,n,r),1));let[l,s]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,iX.range;let[iJ,i0]=iQ(iX,iY,iZ,iR,iA,iC),[i1,i2]=iQ(iK,iq,iP,iI,iT,ik);function i4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i6(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var i5={"-":"",_:" ",0:"0"},i8=/^\s*\d+/,i9=/^%/,i7=/[\\^$*+?|[\]().{}]/g;function le(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function lo(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function la(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function li(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lc(e,t,n){var r=i8.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ld(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lp(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lf(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lm(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lh(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=i8.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lS(e,t,n){var r=i9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lw(e,t,n){var r=i8.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=i8.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lO(e,t){return le(e.getDate(),t,2)}function lk(e,t){return le(e.getHours(),t,2)}function lC(e,t){return le(e.getHours()%12||12,t,2)}function lT(e,t){return le(1+iI.count(iK(e),e),t,3)}function lA(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return lA(e,t)+"000"}function lN(e,t){return le(e.getMonth()+1,t,2)}function lR(e,t){return le(e.getMinutes(),t,2)}function l_(e,t){return le(e.getSeconds(),t,2)}function lP(e){var t=e.getDay();return 0===t?7:t}function lM(e,t){return le(iP.count(iK(e)-1,e),t,2)}function lL(e){var t=e.getDay();return t>=4||0===t?ij(e):ij.ceil(e)}function lD(e,t){return e=lL(e),le(ij.count(iK(e),e)+(4===iK(e).getDay()),t,2)}function lj(e){return e.getDay()}function lF(e,t){return le(iM.count(iK(e)-1,e),t,2)}function lB(e,t){return le(e.getFullYear()%100,t,2)}function lU(e,t){return le((e=lL(e)).getFullYear()%100,t,2)}function lZ(e,t){return le(e.getFullYear()%1e4,t,4)}function lz(e,t){var n=e.getDay();return le((e=n>=4||0===n?ij(e):ij.ceil(e)).getFullYear()%1e4,t,4)}function lH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function lG(e,t){return le(e.getUTCDate(),t,2)}function l$(e,t){return le(e.getUTCHours(),t,2)}function lW(e,t){return le(e.getUTCHours()%12||12,t,2)}function lV(e,t){return le(1+iN.count(iX(e),e),t,3)}function lq(e,t){return le(e.getUTCMilliseconds(),t,3)}function lY(e,t){return lq(e,t)+"000"}function lK(e,t){return le(e.getUTCMonth()+1,t,2)}function lX(e,t){return le(e.getUTCMinutes(),t,2)}function lQ(e,t){return le(e.getUTCSeconds(),t,2)}function lJ(e){var t=e.getUTCDay();return 0===t?7:t}function l0(e,t){return le(iZ.count(iX(e)-1,e),t,2)}function l1(e){var t=e.getUTCDay();return t>=4||0===t?i$(e):i$.ceil(e)}function l2(e,t){return e=l1(e),le(i$.count(iX(e),e)+(4===iX(e).getUTCDay()),t,2)}function l4(e){return e.getUTCDay()}function l3(e,t){return le(iz.count(iX(e)-1,e),t,2)}function l6(e,t){return le(e.getUTCFullYear()%100,t,2)}function l5(e,t){return le((e=l1(e)).getUTCFullYear()%100,t,2)}function l8(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var n=e.getUTCDay();return le((e=n>=4||0===n?i$(e):i$.ceil(e)).getUTCFullYear()%1e4,t,4)}function l7(){return"+0000"}function se(){return"%"}function st(e){return+e}function sn(e){return Math.floor(+e/1e3)}function sr(e){return new Date(e)}function so(e){return e instanceof Date?+e:+new Date(+e)}function sa(e,t,n,r,o,a,i,l,s,c){var u=aW(),d=u.invert,p=u.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),E=c("%Y");function S(e){return(s(e)1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a=0;)n[t]=t;return n}function sv(e,t){return e[t]}function sy(e){let t=[];return t.key=e,t}w=(S=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,c=ln(o),u=lr(o),d=ln(a),p=lr(a),f=ln(i),m=lr(i),g=ln(l),h=lr(l),b=ln(s),v=lr(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:lO,e:lO,f:lI,g:lU,G:lz,H:lk,I:lC,j:lT,L:lA,m:lN,M:lR,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:st,s:sn,S:l_,u:lP,U:lM,V:lD,w:lj,W:lF,x:null,X:null,y:lB,Y:lZ,Z:lH,"%":se},E={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lG,e:lG,f:lY,g:l5,G:l9,H:l$,I:lW,j:lV,L:lq,m:lK,M:lX,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:st,s:sn,S:lQ,u:lJ,U:l0,V:l2,w:l4,W:l3,x:null,X:null,y:l6,Y:l8,Z:l7,"%":se},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:lm,e:lm,f:lE,g:lu,G:lc,H:lh,I:lh,j:lg,L:ly,m:lf,M:lb,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:lp,Q:lw,s:lx,S:lv,u:la,U:li,V:ll,w:lo,W:ls,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:lu,Y:lc,Z:ld,"%":lS};function w(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=i3(i6(a.y,0,1))).getUTCDay())>4||0===o?iz.ceil(r):iz(r),r=iN.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=i4(i6(a.y,0,1))).getDay())>4||0===o?iM.ceil(r):iM(r),r=iI.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?i3(i6(a.y,0,1)).getUTCDay():i4(i6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,i3(a)):i4(a)}}function O(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i=s)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=S[(o=t.charAt(i++))in i5?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),E.x=w(n,E),E.X=w(r,E),E.c=w(t,E),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,S.parse,x=S.utcFormat,S.utcParse,Array.prototype.slice;var sE=n(5037),sS=n.n(sE),sw=n(30264),sx=n.n(sw),sO=n(20734),sk=n.n(sO),sC=n(93574),sT=n.n(sC),sA=n(6122),sI=n.n(sA);function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,sM(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function sV(e,t,n){if(e.lte(0))return new(sI())(0);var r=sZ.getDigitCount(e.toNumber()),o=new(sI())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,l=new(sI())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?l:new(sI())(Math.ceil(l))}function sq(e,t,n){var r=1,o=new(sI())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(sI())(10).pow(sZ.getDigitCount(e)-1),o=new(sI())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(sI())(Math.floor(e)))}else 0===e?o=new(sI())(Math.floor((t-1)/2)):n||(o=new(sI())(Math.floor(e)));var i=Math.floor((t-1)/2);return sF(sj(function(e){return o.add(new(sI())(e-i).mul(r)).toNumber()}),sD)(0,t)}var sY=sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(sz(sD(0,o-1).map(function(){return 1/0}))):[].concat(sz(sD(0,o-1).map(function(){return-1/0})),[c]);return n>r?sB(u):u}if(s===c)return sq(s,o,a);var d=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(sI())(0),tickMin:new(sI())(0),tickMax:new(sI())(0)};var l=sV(new(sI())(n).sub(t).div(r-1),o,i),s=Math.ceil((a=t<=0&&n>=0?new(sI())(0):(a=new(sI())(t).add(n).div(2)).sub(new(sI())(a).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(sI())(n).sub(a).div(l).toNumber()),u=s+c+1;return u>r?e(t,n,r,o,i+1):(u0?c+(r-u):c,s=n>0?s:s+(r-u)),{step:l,tickMin:a.sub(new(sI())(s).mul(l)),tickMax:a.add(new(sI())(c).mul(l))})}(s,c,i,a),p=d.step,f=d.tickMin,m=d.tickMax,g=sZ.rangeStep(f,m.add(new(sI())(.1).mul(p)),p);return n>r?sB(g):g});sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[n,r];if(s===c)return sq(s,o,a);var u=sV(new(sI())(c).sub(s).div(i-1),a,0),d=sF(sj(function(e){return new(sI())(s).add(new(sI())(e).mul(u)).toNumber()}),sD)(0,i).filter(function(e){return e>=s&&e<=c});return n>r?sB(d):d});var sK=sU(function(e,t){var n=sH(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=sH(sW([r,o]),2),l=i[0],s=i[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=sV(new(sI())(s).sub(l).div(Math.max(t,2)-1),a,0),u=[].concat(sz(sZ.rangeStep(new(sI())(l),new(sI())(s).sub(new(sI())(.99).mul(c)),c)),[s]);return r>o?sB(u):u}),sX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sQ(){return(sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sX),!1);"x"===e.direction&&"number"!==l.type&&eW(!1);var u=a.map(function(e){var a,u,d=i(e,o),p=d.x,f=d.y,m=d.value,g=d.errorVal;if(!g)return null;var h=[];if(Array.isArray(g)){var b=function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(g,2)||function(e,t){if(e){if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=b[0],u=b[1]}else a=u=g;if("vertical"===n){var v=l.scale,y=f+t,E=y+r,S=y-r,w=v(m-a),x=v(m+u);h.push({x1:x,y1:E,x2:x,y2:S}),h.push({x1:w,y1:y,x2:x,y2:y}),h.push({x1:w,y1:E,x2:w,y2:S})}else if("horizontal"===n){var O=s.scale,k=p+t,C=k-r,T=k+r,A=O(m-a),I=O(m+u);h.push({x1:C,y1:I,x2:T,y2:I}),h.push({x1:k,y1:A,x2:k,y2:I}),h.push({x1:C,y1:A,x2:T,y2:A})}return N.createElement(eQ,sQ({className:"recharts-errorBar",key:"bar-".concat(h.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},c),h.map(function(e){return N.createElement("line",sQ({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return N.createElement(eQ,{className:"recharts-errorBars"},u)}function s1(e){return(s1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,s=0;s0?r[s-1].coordinate:r[i-1].coordinate,u=r[s].coordinate,d=s>=i-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(H(u-c)!==H(d-u)){var f=[];if(H(d-u)===H(l[1]-l[0])){p=d;var m=u+l[1]-l[0];f[0]=Math.min(m,(m+c)/2),f[1]=Math.max(m,(m+c)/2)}else{p=c;var g=d+l[1]-l[0];f[0]=Math.min(u,(g+u)/2),f[1]=Math.max(u,(g+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){a=r[s].index;break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){a=r[s].index;break}}}else for(var y=0;y0&&y(n[y].coordinate+n[y-1].coordinate)/2&&e<=(n[y].coordinate+n[y+1].coordinate)/2||y===i-1&&e>(n[y].coordinate+n[y-1].coordinate)/2){a=n[y].index;break}return a},co=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ca=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,l=a.length;i=0});if(g&&g.length){var h=g[0].props.barSize,b=g[0].props[m];o[b]||(o[b]=[]),o[b].push({item:g[0],stackList:g.slice(1),barSize:en()(h)?t:h})}}return o},ci=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,s=i.length;if(s<1)return null;var c=Y(n,o,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=o/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=o&&(f-=(s-1)*c,c=0),f>=o&&p>0&&(d=!0,p*=.9,f=s*p);var m={offset:((o-f)/2>>0)-c,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?p:t.barSize}},r=[].concat(s7(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var g=Y(r,o,0,!0);o-2*g-(s-1)*c<=0&&(c=0);var h=(o-2*g-(s-1)*c)/s;h>1&&(h>>=0);var b=l===+l?Math.min(h,l):h;t=i.reduce(function(e,t,n){var r=[].concat(s7(e),[{item:t.item,position:{offset:g+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return t},cl=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,l=s3({children:o,legendWidth:a-(i.left||0)-(i.right||0)});if(l){var s=r||{},c=s.width,u=s.height,d=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==d&&$(e[d]))return s8(s8({},e),{},s9({},d,e[d]+(c||0)));if(("horizontal"===f||"vertical"===f&&"center"===d)&&"middle"!==p&&$(e[p]))return s8(s8({},e),{},s9({},p,e[p]+(u||0)))}return e},cs=function(e,t,n,r,o){var a=ex(t.props.children,s0).filter(function(e){var t;return t=e.props.direction,!!en()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=ct(t,n,0),o=Array.isArray(r)?[sx()(r),sS()(r)]:[r,r],a=i.reduce(function(e,n){var r=ct(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},cc=function(e,t,n,r,o){var a=t.map(function(t){return cs(e,t,n,o,r)}).filter(function(e){return!en()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},cu=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&cs(e,t,a,r)||cn(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*H(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+s,value:e,offset:s}}).filter(function(e){return!F()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+s,value:e,offset:s}}):r.domain().map(function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}})},cm=new WeakMap,cg=function(e,t){if("function"!=typeof t)return e;cm.has(e)||cm.set(e,new WeakMap);var n=cm.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},ch=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:ou(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:a6(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:od(),realScaleType:"point"}:"category"===o?{scale:ou(),realScaleType:"band"}:{scale:a6(),realScaleType:"linear"};if(D()(r)){var l="scale".concat(nQ()(r));return{scale:(O[l]||od)(),realScaleType:O[l]?l:"point"}}return eo()(r)?{scale:r}:{scale:od(),realScaleType:"point"}},cb=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),l=e(t[n-1]);(ia||la)&&e.domain([t[0],t[n-1]])}},cv=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+l,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+l,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},cS=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=cE[n];return(function(){var e=ro([]),t=sb,n=sg,r=sv;function o(o){var a,i,l=Array.from(e.apply(this,arguments),sy),s=l.length,c=-1;for(let e of o)for(a=0,++c;a=0?0:o<0?o:r}return n[0]},cC=function(e,t){var n=e.props.stackId;if(W(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},cT=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[sx()(t.concat([e[0]]).filter($)),sS()(t.concat([e[1]]).filter($))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},cA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=function(e,t,n){if(eo()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if($(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cA.test(e[0])){var o=+cA.exec(e[0])[1];r[0]=t[0]-o}else eo()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if($(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cI.test(e[1])){var a=+cI.exec(e[1])[1];r[1]=t[1]+a}else eo()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cR=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=eZ()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;i0&&t.handleDrag(e.changedTouches[0])}),cq(cW(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),cq(cW(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),cq(cW(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),cq(cW(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),cq(cW(t),"handleSlideDragStart",function(e){var n=cX(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cW(t),"startX"),endX:t.handleTravellerDragStart.bind(cW(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,l=o.data.length-1,s=a.getIndexInRange(r,Math.min(t,n)),c=a.getIndexInRange(r,Math.max(t,n));return{startIndex:s-s%i,endIndex:c===l?l:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ct(n[e],o,e);return eo()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,s=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+l-s-o,i+l-s-r):p<0&&(p=Math.max(p,i-r,i-o));var f=this.getIndex({startX:r+p,endX:o+p});(f.startIndex!==c||f.endIndex!==u)&&d&&d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=cX(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,d=s.travellerWidth,p=s.onChange,f=s.gap,m=s.data,g={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,c+u-d-l):h<0&&(h=Math.max(h,c-l)),g[o]=l+h;var b=this.getIndex(g),v=b.startIndex,y=b.endIndex,E=function(){var e=m.length-1;return"startX"===o&&(a>i?v%f==0:y%f==0)||ai?y%f==0:v%f==0)||a>i&&y===e};this.setState((cq(t={},o,l+h),cq(t,"brushMoveStartX",e.pageX),t),function(){p&&E()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(-1!==c&&!(c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(cq({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return N.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,s=N.Children.only(i);return s?N.cloneElement(s,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,l=r.height,s=r.traveller,c=r.ariaLabel,u=r.data,d=r.startIndex,p=r.endIndex,f=Math.max(e,this.props.x),m=cH(cH({},eA(this.props,!1)),{},{x:f,y:o,width:i,height:l}),g=c||"Min value: ".concat(u[d].name,", Max value: ").concat(u[p].name);return N.createElement(eQ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(s,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,s=l.startX,c=l.endX,u={pointerEvents:"none",fill:i};return N.createElement(eQ,{className:"recharts-brush-texts"},N.createElement(o$,cZ({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},u),this.getTextOfTick(t)),N.createElement(o$,cZ({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,s=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,p=c.isTextActive,f=c.isSlideMoving,m=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!$(o)||!$(a)||!$(i)||!$(l)||i<=0||l<=0)return null;var h=R("recharts-brush",n),b=1===N.Children.count(r),v=cB("userSelect","none");return N.createElement(eQ,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(p||f||m||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),N.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return cH({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?cK({data:n,width:r,x:o,travellerWidth:a,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&cG(a.prototype,n),r&&cG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function cJ(e){return(cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c1(e){for(var t=1;ta&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},c5=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},c8=function(e,t){var n,r=c6({x:e.x,y:e.y},t),o=r.radius,a=r.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var s=c5(t),c=s.startAngle,u=s.endAngle,d=a;if(c<=u){for(;d>u;)d-=360;for(;d=c&&d<=u}else{for(;d>c;)d-=360;for(;d=u&&d<=c}return n?c1(c1({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null};function c9(e){return(c9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c7=["offset"];function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===a?(r=f+v*l,o=g):"insideEnd"===a?(r=m-v*l,o=!g):"end"===a&&(r=m+v*l,o=g),o=b<=0?o:!o;var y=c4(c,u,h,r),E=c4(c,u,h,r+(o?1:-1)*359),S="M".concat(y.x,",").concat(y.y,"\n A").concat(h,",").concat(h,",0,1,").concat(o?0:1,",\n ").concat(E.x,",").concat(E.y),w=en()(e.id)?q("recharts-radial-line-"):e.id;return N.createElement("text",ur({},n,{dominantBaseline:"central",className:R("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:w,d:S})),N.createElement("textPath",{xlinkHref:"#".concat(w)},t))},ui=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=c4(o,a,l+n,s),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=c4(o,a,(i+l)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},ul=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,l=t.width,s=t.height,c=s>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",f=l>=0?1:-1,m=f*r,g=f>0?"end":"start",h=f>0?"start":"end";if("top"===o)return un(un({},{x:a+l/2,y:i-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(i-n.y,0),width:l}:{});if("bottom"===o)return un(un({},{x:a+l/2,y:i+s+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(i+s),0),width:l}:{});if("left"===o){var b={x:a-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"};return un(un({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===o){var v={x:a+l+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"};return un(un({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:s}:{})}var y=n?{width:l,height:s}:{};return"insideLeft"===o?un({x:a+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"},y):"insideRight"===o?un({x:a+l-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"},y):"insideTop"===o?un({x:a+l/2,y:i+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===o?un({x:a+l/2,y:i+s-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===o?un({x:a+m,y:i+u,textAnchor:h,verticalAnchor:p},y):"insideTopRight"===o?un({x:a+l-m,y:i+u,textAnchor:g,verticalAnchor:p},y):"insideBottomLeft"===o?un({x:a+m,y:i+s-u,textAnchor:h,verticalAnchor:d},y):"insideBottomRight"===o?un({x:a+l-m,y:i+s-u,textAnchor:g,verticalAnchor:d},y):ei()(o)&&($(o.x)||G(o.x))&&($(o.y)||G(o.y))?un({x:a+Y(o.x,l),y:i+Y(o.y,s),textAnchor:"end",verticalAnchor:"end"},y):un({x:a+l/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"},y)};function us(e){var t,n=e.offset,r=un({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c7)),o=r.viewBox,a=r.position,i=r.value,l=r.children,s=r.content,c=r.className,u=r.textBreakAll;if(!o||en()(i)&&en()(l)&&!(0,N.isValidElement)(s)&&!eo()(s))return null;if((0,N.isValidElement)(s))return(0,N.cloneElement)(s,r);if(eo()(s)){if(t=(0,N.createElement)(s,r),(0,N.isValidElement)(t))return t}else t=uo(r);var d="cx"in o&&$(o.cx),p=eA(r,!0);if(d&&("insideStart"===a||"insideEnd"===a||"end"===a))return ua(r,t,p);var f=d?ui(r):ul(r);return N.createElement(o$,ur({className:R("recharts-label",void 0===c?"":c)},p,f,{breakAll:u}),t)}us.displayName="Label";var uc=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,m=e.width,g=e.height,h=e.clockWise,b=e.labelViewBox;if(b)return b;if($(m)&&$(g)){if($(u)&&$(d))return{x:u,y:d,width:m,height:g};if($(p)&&$(f))return{x:p,y:f,width:m,height:g}}return $(u)&&$(d)?{x:u,y:d,width:0,height:0}:$(t)&&$(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:s||0,outerRadius:c||l||i||0,clockWise:h}:e.viewBox?e.viewBox:{}};us.parseViewBox=uc,us.renderCallByParent=function(e,t){var n,r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=uc(e),l=ex(a,us).map(function(e,n){return(0,N.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return o?[(n=e.label,r=t||i,n?!0===n?N.createElement(us,{key:"label-implicit",viewBox:r}):W(n)?N.createElement(us,{key:"label-implicit",viewBox:r,value:n}):(0,N.isValidElement)(n)?n.type===us?(0,N.cloneElement)(n,{key:"label-implicit",viewBox:r}):N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):eo()(n)?N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):ei()(n)?N.createElement(us,ur({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return ue(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l};var uu=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},ud=n(50924),up=n.n(ud),uf=function(e){return null};uf.displayName="Cell";var um=n(36887),ug=n.n(um);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ub=["valueAccessor"],uv=["data","dataKey","clockWise","id","textBreakAll"];function uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uO=function(e){return Array.isArray(e.value)?ug()(e.value):e.value};function uk(e){var t=e.valueAccessor,n=void 0===t?uO:t,r=ux(e,ub),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,s=r.textBreakAll,c=ux(r,uv);return o&&o.length?N.createElement(eQ,{className:"recharts-label-list"},o.map(function(e,t){var r=en()(a)?n(e,t):ct(e&&e.payload,a),o=en()(l)?{}:{id:"".concat(l,"-").concat(t)};return N.createElement(us,uE({},eA(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:us.parseViewBox(en()(i)?e:uw(uw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}uk.displayName="LabelList",uk.renderCallByParent=function(e,t){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=ex(e.children,uk).map(function(e,n){return(0,N.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return r?[(n=e.label)?!0===n?N.createElement(uk,{key:"labelList-implicit",data:t}):N.isValidElement(n)||eo()(n)?N.createElement(uk,{key:"labelList-implicit",data:t,content:n}):ei()(n)?N.createElement(uk,uE({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return uy(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(e,t)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var uC=n(23393),uT=n.n(uC),uA=n(90849),uI=n.n(uA);function uN(e){return(uN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uR(){return(uR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:u,height:d,x:l,y:s},duration:m,animationEasing:f,isActive:h},function(e){var t=e.upperWidth,o=e.lowerWidth,i=e.height,l=e.x,s=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:f},N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,t,o,i),ref:r})))}):N.createElement("g",null,N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,c,u,d)})))};function uF(e){return(uF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uB(){return(uB=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(o>0){var p=c4(n,r,o,i),f=c4(n,r,o,s);d+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},uG=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=H(c-s),d=uz({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,f=d.lineTangency,m=d.theta,g=uz({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,v=g.theta,y=l?Math.abs(s-c):Math.abs(s-c)-m-v;if(y<0)return i?"M ".concat(f.x,",").concat(f.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):uH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var E="M ".concat(f.x,",").concat(f.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var S=uz({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=S.circleTangency,x=S.lineTangency,O=S.theta,k=uz({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=k.circleTangency,T=k.lineTangency,A=k.theta,I=l?Math.abs(s-c):Math.abs(s-c)-O-A;if(I<0&&0===a)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},u$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uW=function(e){var t,n=uZ(uZ({},u$),e),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,p=n.className;if(i0&&360>Math.abs(u-d)?uG({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):uH({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d}),N.createElement("path",uB({},eA(n,!0),{className:f,d:t,role:"img"}))},uV=["option","shapeType","propTransformer","activeClassName","isActive"];function uq(e){return(uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uV);if((0,N.isValidElement)(n))t=(0,N.cloneElement)(n,uK(uK({},l),(0,N.isValidElement)(n)?n.props:n));else if(eo()(n))t=n(l);else if(uT()(n)&&!uI()(n)){var s=(void 0===o?function(e,t){return uK(uK({},t),e)}:o)(n,l);t=N.createElement(uX,{shapeType:r,elementProps:s})}else t=N.createElement(uX,{shapeType:r,elementProps:l});return i?N.createElement(eQ,{className:void 0===a?"recharts-active-shape":a},t):t}function uJ(e,t){return null!=t&&"trapezoids"in e.props}function u0(e,t){return null!=t&&"sectors"in e.props}function u1(e,t){return null!=t&&"points"in e.props}function u2(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function u4(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function u3(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function u6(e){return(u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u5=["x","y"];function u8(){return(u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u5),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),s=parseInt("".concat(t.width||o.width),10);return u7(u7(u7(u7(u7({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:l,width:s,name:t.name,radius:t.radius})}function dt(e){return N.createElement(uQ,u8({shapeType:"rectangle",propTransformer:de,activeClassName:"recharts-active-bar"},e))}var dn=["value","background"];function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(){return(da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,dn);if(!i)return null;var s=dl(dl(dl(dl(dl({},l),{},{fill:"#eee"},i),a),em(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return N.createElement(dt,da({option:e.props.background,isActive:n===o},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ex(n.children,s0);if(!l)return null;var s="vertical"===i?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ct(e,t)}};return N.createElement(eQ,{clipPath:e?"url(#clipPath-".concat(t,")"):null},l.map(function(e){return N.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:s,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,s=e.width,c=e.height,u=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,m=R("recharts-bar",r),g=o&&o.allowDataOverflow,h=a&&a.allowDataOverflow,b=g||h,v=en()(p)?this.id:p;return N.createElement(eQ,{className:m},g||h?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(v)},N.createElement("rect",{x:g?i:i-s/2,y:h?l:l-c/2,width:g?s:2*s,height:h?c:2*c}))):null,N.createElement(eQ,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,v),(!u||f)&&uk.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&ds(a.prototype,n),r&&ds(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){for(var n=0;n0&&Math.abs(b)0&&Math.abs(g)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&dh(n.prototype,e),t&&dh(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();dy(dw,"EPS",1e-4);var dx=function(e){var t=Object.keys(e).reduce(function(t,n){return dv(dv({},t),{},dy({},n,dw.create(e[n])))},{});return dv(dv({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return up()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return e$()(e,function(e,n){return t[n].isInRange(e)})}})},dO=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=d;--p)l.point(b[p],v[p]);l.lineEnd(),l.areaEnd()}}h&&(b[u]=+e(f,u,c),v[u]=+t(f,u,c),l.point(r?+r(f,u,c):b[u],n?+n(f,u,c):v[u]))}if(m)return l=null,m+""||null}function u(){return pT().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?pk:ro(+e),t="function"==typeof t?t:void 0===t?ro(0):ro(+t),n="function"==typeof n?n:void 0===n?pC:ro(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ro(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ro(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:ro(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),c):a},c}function pI(e){return(pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pN(){return(pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var pP={curveBasisClosed:function(e){return new pu(e)},curveBasisOpen:function(e){return new pd(e)},curveBasis:function(e){return new pc(e)},curveBumpX:function(e){return new pp(e,!0)},curveBumpY:function(e){return new pp(e,!1)},curveLinearClosed:function(e){return new pf(e)},curveLinear:pg,curveMonotoneX:function(e){return new py(e)},curveMonotoneY:function(e){return new pE(e)},curveNatural:function(e){return new pw(e)},curveStep:function(e){return new pO(e,.5)},curveStepAfter:function(e){return new pO(e,1)},curveStepBefore:function(e){return new pO(e,0)}},pM=function(e){return e.x===+e.x&&e.y===+e.y},pL=function(e){return e.x},pD=function(e){return e.y},pj=function(e,t){if(eo()(e))return e;var n="curve".concat(nQ()(e));return("curveMonotone"===n||"curveBump"===n)&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||pg},pF=function(e){var t,n=e.type,r=e.points,o=void 0===r?[]:r,a=e.baseLine,i=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=pj(void 0===n?"linear":n,i),u=s?o.filter(function(e){return pM(e)}):o;if(Array.isArray(a)){var d=s?a.filter(function(e){return pM(e)}):a,p=u.map(function(e,t){return p_(p_({},e),{},{base:d[t]})});return(t="vertical"===i?pA().y(pD).x1(pL).x0(function(e){return e.base.x}):pA().x(pL).y1(pD).y0(function(e){return e.base.y})).defined(pM).curve(c),t(p)}return(t="vertical"===i&&$(a)?pA().y(pD).x1(pL).x0(a):$(a)?pA().x(pL).y1(pD).y0(a):pT().x(pL).y(pD)).defined(pM).curve(c),t(u)},pB=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?pF(e):r;return N.createElement("path",pN({},eA(e,!1),ef(e),{className:R("recharts-curve",t),d:a,ref:o}))};function pU(e){return(pU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pZ=["x","y","top","left","width","height","className"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pZ));return $(n)&&$(o)&&$(u)&&$(p)&&$(i)&&$(s)?N.createElement("path",pz({},eA(m,!0),{className:R("recharts-cross",f),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(s,",").concat(o,"h").concat(u)})):null};function p$(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[c4(t,n,r,o),c4(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function pW(e){return(pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p2(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&$(r)&&$(o)?e.slice(r,o+1):[]};function fc(e){return"number"===e?[0,"auto"]:void 0}var fu=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=fs(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;return(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?J(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(p5(o),[cP(l,c)]):o},[])},fd=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=cr(a,i,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=fu(e,t,c,u),p=fl(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},fp=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=cd(c,o);return n.reduce(function(t,n){var f=n.props,m=f.type,g=f.dataKey,h=f.allowDataOverflow,b=f.allowDuplicatedCategory,v=f.scale,y=f.ticks,E=f.includeHidden,S=n.props[a];if(t[S])return t;var w=fs(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===S}),dataStartIndex:l,dataEndIndex:s}),x=w.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&$(r)&&$(o))return!0}return!1})(n.props.domain,h,m)&&(C=cN(n.props.domain,null,h),p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category")));var O=fc(m);if(!C||0===C.length){var k,C,T,A,I,N=null!==(I=n.props.domain)&&void 0!==I?I:O;if(g){if(C=cn(w,g,m),"category"===m&&p){var R=X(C);b&&R?(T=C,C=eB()(0,x)):b||(C=c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(p5(e),[t])},[]))}else if("category"===m)C=b?C.filter(function(e){return""!==e&&!en()(e)}):c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||en()(t)?e:[].concat(p5(e),[t])},[]);else if("number"===m){var _=cc(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),g,o,c);_&&(C=_)}p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category"))}else C=p?eB()(0,x):i&&i[S]&&i[S].hasStack&&"number"===m?"expand"===d?[0,1]:cT(i[S].stackGroups,l,s):cu(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),m,c,!0);"number"===m?(C=d9(u,C,S,o,y),N&&(C=cN(N,C,h))):"category"===m&&N&&C.every(function(e){return N.indexOf(e)>=0})&&(C=N)}return fe(fe({},t),{},ft({},S,fe(fe({},n.props),{},{axisType:o,domain:C,categoricalDomain:A,duplicateDomain:T,originalDomain:null!==(k=n.props.domain)&&void 0!==k?k:O,isCategorical:p,layout:c})))},{})},ff=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=fs(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),p=d.length,f=cd(c,o),m=-1;return n.reduce(function(e,t){var g,h=t.props[a],b=fc("number");return e[h]?e:(m++,g=f?eB()(0,p):i&&i[h]&&i[h].hasStack?d9(u,g=cT(i[h].stackGroups,l,s),h,o):d9(u,g=cN(b,cu(d,n.filter(function(e){return e.props[a]===h&&!e.props.hide}),"number",c),r.defaultProps.allowDataOverflow),h,o),fe(fe({},e),{},ft({},h,fe(fe({axisType:o},r.defaultProps),{},{hide:!0,orientation:U()(fr,"".concat(o,".").concat(m%2),null),domain:g,originalDomain:b,isCategorical:f,layout:c}))))},{})},fm=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ex(c,o),p={};return d&&d.length?p=fp(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=ff(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s})),p},fg=function(e){var t=K(e),n=cf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eZ()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cR(t,n)}},fh=function(e){var t=e.children,n=e.defaultShowTooltip,r=eO(t,cQ),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},fb=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fv=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,d=n.margin||{},p=eO(u,cQ),f=eO(u,r1),m=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,e[r]+n.width))},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,U()(e,"".concat(r))+n.height))},{top:d.top||0,bottom:d.bottom||0}),h=fe(fe({},g),m),b=h.bottom;p&&(h.bottom+=p.props.height||cQ.defaultProps.height),f&&t&&(h=cl(h,r,n,t));var v=s-h.left-h.right,y=c-h.top-h.bottom;return fe(fe({brushBottom:b},h),{},{width:Math.max(v,0),height:Math.max(y,0)})};function fy(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t=2?H(c[1].coordinate-c[0].coordinate):1,S=(r="width"===b,o=u.x,a=u.y,i=u.width,l=u.height,1===E?{start:r?o:a,end:r?o+i:a+l}:{start:r?o+i:a+l,end:r?o:a});return"equidistantPreserveStart"===f?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l;u<=i.length;)if(a=function(){var t,a=null==r?void 0:r[c];if(void 0===a)return{v:fy(r,u)};var i=c,p=function(){return void 0===t&&(t=n(a,i)),t},f=a.coordinate,m=0===c||fE(e,f,p,d,s);m||(c=0,d=l,u+=1),m&&(d=f+e*(p()/2+o),c+=u)}())return a.v;return[]}(E,S,y,c,d):("preserveStart"===f||"preserveStartEnd"===f?function(e,t,n,r,o,a){var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end;if(a){var u=r[l-1],d=n(u,l-1),p=e*(u.coordinate+e*d/2-c);i[l-1]=u=fx(fx({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),fE(e,u.tickCoord,function(){return d},s,c)&&(c=u.tickCoord-e*(d/2+o),i[l-1]=fx(fx({},u),{},{isShow:!0}))}for(var f=a?l-1:l,m=function(t){var r,a=i[t],l=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*l()/2-s);i[t]=a=fx(fx({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=fx(fx({},a),{},{tickCoord:a.coordinate});fE(e,a.tickCoord,l,s,c)&&(s=a.tickCoord+e*(l()/2+o),i[t]=fx(fx({},a),{},{isShow:!0}))},g=0;g0?c.coordinate-d*e:c.coordinate})}else a[t]=c=fx(fx({},c),{},{tickCoord:c.coordinate});fE(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),a[t]=fx(fx({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(E,S,y,c,d)).filter(function(e){return e.isShow})}var fk=["viewBox"],fC=["viewBox"],fT=["ticks"];function fA(e){return(fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(){return(fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fP(e,t){for(var n=0;n0?this.props:c)),r<=0||o<=0||!u||!u.length)?null:N.createElement(eQ,{className:R("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),us.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):N.createElement(o$,fI({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&fP(a.prototype,n),r&&fP(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function fB(){return(fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(O=Math.min((e||0)-(k[t-1]||0),O))});var C=O/x,T="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var A=Y(e.barCategoryGap,C*T),I=C*T/2;s=I-A-(I-A)/T*A}}c="xAxis"===r?[n.left+(y.left||0)+(s||0),n.left+n.width-(y.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(s||0),n.top+n.height-(y.bottom||0)-(s||0)]:g.range,S&&(c=[c[1],c[0]]);var N=ch(g,o,d),R=N.scale,_=N.realScaleType;R.domain(b).range(c),cb(R);var P=cx(R,dv(dv({},g),{},{realScaleType:_}));"xAxis"===r?(m="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-m*g.height):"yAxis"===r&&(m="left"===h&&!E||"right"===h&&E,p=u[w]-m*g.width,f=n.top);var M=dv(dv(dv({},g),P),{},{realScaleType:_,x:p,y:f,scale:R,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return M.bandSize=cR(M,P),g.hide||"xAxis"!==r?g.hide||(u[w]+=(m?-1:1)*M.width):u[w]+=(m?-1:1)*M.height,dv(dv({},a),{},dy({},i,M))},{})}}).chartName,i=r.GraphicalChild,s=void 0===(l=r.defaultTooltipEventType)?"axis":l,u=void 0===(c=r.validateTooltipEventTypes)?["axis"]:c,d=r.axisComponents,p=r.legendContent,f=r.formatAxisMap,m=r.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,m=fb(c),g=m.numericAxisName,h=m.cateAxisName,b=!!n&&!!n.length&&n.some(function(e){var t=ey(e&&e.type);return t&&t.indexOf("Bar")>=0})&&ca({barSize:s,stackGroups:r}),v=[];return n.forEach(function(n,s){var m,y=fs(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:l}),E=n.props,S=E.dataKey,w=E.maxBarSize,x=n.props["".concat(g,"Id")],O=n.props["".concat(h,"Id")],k=d.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||eW(!1);var l=a[i];return fe(fe({},e),{},(ft(o={},r.axisType,l),ft(o,"".concat(r.axisType,"Ticks"),cf(l)),o))},{}),C=k[h],T=k["".concat(h,"Ticks")],A=r&&r[x]&&r[x].hasStack&&cC(n,r[x].stackGroups),I=ey(n.type).indexOf("Bar")>=0,N=cR(C,T),R=[];if(I){var _,P,M=en()(w)?f:w,L=null!==(_=null!==(P=cR(C,T,!0))&&void 0!==P?P:M)&&void 0!==_?_:0;R=ci({barGap:u,barCategoryGap:p,bandSize:L!==N?L:N,sizeList:b[O],maxBarSize:M}),L!==N&&(R=R.map(function(e){return fe(fe({},e),{},{position:fe(fe({},e.position),{},{offset:e.position.offset-L/2})})}))}var D=n&&n.type&&n.type.getComposedData;D&&v.push({props:fe(fe({},D(fe(fe({},k),{},{displayedData:y,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:o,stackedData:A,layout:c,dataStartIndex:i,dataEndIndex:l}))),{},(ft(m={key:n.key||"item-".concat(s)},g,k[g]),ft(m,h,k[h]),ft(m,"animationId",a),m)),childIndex:ew(e.children).indexOf(n),item:n})}),v},h=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,l=e.updateId;if(!ek({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,p=n.data,m=n.reverseStackOrder,h=fb(c),b=h.numericAxisName,v=h.cateAxisName,y=ex(s,i),E=cw(p,y,"".concat(b,"Id"),"".concat(v,"Id"),u,m),S=d.reduce(function(e,t){var a="".concat(t.axisType,"Map");return fe(fe({},e),{},ft({},a,fm(n,fe(fe({},t),{},{graphicalItems:y,stackGroups:t.axisType===b&&E,dataStartIndex:r,dataEndIndex:o}))))},{}),w=fv(fe(fe({},S),{},{props:n,graphicalItems:y}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),a)});var x=fg(S["".concat(v,"Map")]),O=g(n,fe(fe({},S),{},{dataStartIndex:r,dataEndIndex:o,updateId:l,graphicalItems:y,stackGroups:E,offset:w}));return fe(fe({formattedGraphicalItems:O,graphicalItems:y,offset:w,stackGroups:E},x),S)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p4(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p6(i);if(t){var r=p6(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===pQ(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p3(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),ft(p3(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(p3(r),"accessibilityManager",new pi),ft(p3(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(fe({legendBBox:e},h({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},fe(fe({},r.state),{},{legendBBox:e}))))}}),ft(p3(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),ft(p3(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return fe({dataStartIndex:t,dataEndIndex:n},h({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),ft(p3(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;eo()(o)&&o(n,e)}}),ft(p3(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?fe(fe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;eo()(o)&&o(n,e)}),ft(p3(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ft(p3(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),ft(p3(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),ft(p3(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;eo()(n)&&n(t,e)}),ft(p3(r),"handleOuterEvent",function(e){var t,n=e_(e),o=U()(r.props,"".concat(n));n&&eo()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),ft(p3(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;eo()(o)&&o(n,e)}}),ft(p3(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ft(p3(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),ft(p3(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),ft(p3(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&pe.emit(pt,r.props.syncId,e,r.eventEmitterSymbol)}),ft(p3(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(fe({dataStartIndex:i,dataEndIndex:l},h({props:r.props,dataStartIndex:i,dataEndIndex:l,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof o)u=o(f,e);else if("value"===o){u=-1;for(var m=0;m=0){if(s.dataKey&&!s.allowDuplicatedCategory){var x="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=J(f,x,u),C=m&&g&&J(g,x,u)}else k=null==f?void 0:f[c],C=m&&g&&g[c];if(E||y){var O=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,N.cloneElement)(e,fe(fe(fe({},o.props),S),{},{activeIndex:O})),null,null]}if(!en()(k))return[w].concat(p5(r.renderActivePoints({item:o,activePoint:k,basePoint:C,childIndex:c,isRange:m})))}else{var k,C,T,A=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:w}).graphicalItem,I=A.item,R=void 0===I?e:I,_=A.childIndex,P=fe(fe(fe({},o.props),S),{},{activeIndex:_});return[(0,N.cloneElement)(R,P),null,null]}}return m?[w,null,null]:[w,null]}),ft(p3(r),"renderCustomized",function(e,t,n){return(0,N.cloneElement)(e,fe(fe({key:"recharts-customized-".concat(n)},r.props),r.state))}),ft(p3(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fi},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fi},YAxis:{handler:fi},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:q("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=eO(t,nK);if(a){var i=a.props.defaultIndex;if("number"==typeof i&&!(i<0)&&!(i>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=fu(this.state,n,i,l),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=fe(fe({},d),p.props.points[i].tooltipPosition),s=p.props.points[i].tooltipPayload);var f={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(f),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){eI([eO(e.children,nK)],[eO(this.props.children,nK)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eO(this.props.children,nK);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var l=this.state,s=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=K(s).scale,d=K(c).scale,p=u&&u.invert?u.invert(o.chartX):null,f=d&&d.invert?d.invert(o.chartY):null;return fe(fe({},o),{},{xValue:p,yValue:f})}var m=fd(this.state,this.props.data,this.props.layout,i);return m?fe(fe({},o),m):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;return s&&c?c8({x:o,y:a},K(s)):null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=eO(e,nK),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),fe(fe({},ef(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pe.on(pt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pe.removeListener(pt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height;return N.createElement("rect",{x:r,y:o,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fQ(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(eo()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,s=eA(fK(t,fG),!1),c=(s.offset,fK(s,f$));n=N.createElement("line",fY({},c,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function fJ(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function f0(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function f1(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,l){var s=c[l+1]?c[l+1]-e:o+i-e;if(s<=0)return null;var u=l%t.length;return N.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:s,width:a,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function f2(e){var t=e.vertical,n=e.verticalFill,r=e.fillOpacity,o=e.x,a=e.y,i=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:o+i-e;if(s<=0)return null;var u=t%n.length;return N.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:n[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var f4=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},f3=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},f6={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f5(e){var t,n,r,o,a,i,l=d$(),s=dW(),c=(0,N.useContext)(dF),u=fq(fq({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:f6.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:f6.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:f6.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:f6.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:f6.vertical,verticalFill:null!==(i=e.verticalFill)&&void 0!==i?i:f6.verticalFill}),d=u.x,p=u.y,f=u.width,m=u.height,g=u.xAxis,h=u.yAxis,b=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues;if(!$(f)||f<=0||!$(m)||m<=0||!$(d)||d!==+d||!$(p)||p!==+p)return null;var E=u.verticalCoordinatesGenerator||f4,S=u.horizontalCoordinatesGenerator||f3,w=u.horizontalPoints,x=u.verticalPoints;if((!w||!w.length)&&eo()(S)){var O=v&&v.length,k=S({yAxis:h?fq(fq({},h),{},{ticks:O?v:h.ticks}):void 0,width:l,height:s,offset:c},!!O||b);ee(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fW(k),"]")),Array.isArray(k)&&(w=k)}if((!x||!x.length)&&eo()(E)){var C=y&&y.length,T=E({xAxis:g?fq(fq({},g),{},{ticks:C?y:g.ticks}):void 0,width:l,height:s,offset:c},!!C||b);ee(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fW(T),"]")),Array.isArray(T)&&(x=T)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(fX,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height}),N.createElement(fJ,fY({},u,{offset:c,horizontalPoints:w})),N.createElement(f0,fY({},u,{offset:c,verticalPoints:x})),N.createElement(f1,fY({},u,{horizontalPoints:w})),N.createElement(f2,fY({},u,{verticalPoints:x})))}f5.displayName="CartesianGrid";let f8=(e,t)=>{let[n,r]=(0,N.useState)(t);(0,N.useEffect)(()=>{let t=()=>{r(window.innerWidth),e()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n])},f9=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M8 12L14 6V18L8 12Z"}))},f7=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M16 12L10 18V6L16 12Z"}))},me=(0,I.fn)("Legend"),mt=e=>{let{name:t,color:n,onClick:r,activeLegend:o}=e,a=!!r;return N.createElement("li",{className:(0,A.q)(me("legendItem"),"group inline-flex items-center px-2 py-0.5 rounded-tremor-small transition whitespace-nowrap",a?"cursor-pointer":"cursor-default","text-tremor-content",a?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",a?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:e=>{e.stopPropagation(),null==r||r(t,n)}},N.createElement("svg",{className:(0,A.q)("flex-none h-2 w-2 mr-1.5",(0,I.bM)(n,T.K.text).textColor,o&&o!==t?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},N.createElement("circle",{cx:4,cy:4,r:4})),N.createElement("p",{className:(0,A.q)("whitespace-nowrap truncate text-tremor-default","text-tremor-content",a?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",o&&o!==t?"opacity-40":"opacity-100",a?"dark:group-hover:text-dark-tremor-content-emphasis":"")},t))},mn=e=>{let{icon:t,onClick:n,disabled:r}=e,[o,a]=N.useState(!1),i=N.useRef(null);return N.useEffect(()=>(o?i.current=setInterval(()=>{null==n||n()},300):clearInterval(i.current),()=>clearInterval(i.current)),[o,n]),(0,N.useEffect)(()=>{r&&(clearInterval(i.current),a(!1))},[r]),N.createElement("button",{type:"button",className:(0,A.q)(me("legendSliderButton"),"w-5 group inline-flex items-center truncate rounded-tremor-small transition",r?"cursor-not-allowed":"cursor-pointer",r?"text-tremor-content-subtle":"text-tremor-content hover:text-tremor-content-emphasis hover:bg-tremor-background-subtle",r?"dark:text-dark-tremor-subtle":"dark:text-dark-tremor dark:hover:text-tremor-content-emphasis dark:hover:bg-dark-tremor-background-subtle"),disabled:r,onClick:e=>{e.stopPropagation(),null==n||n()},onMouseDown:e=>{e.stopPropagation(),a(!0)},onMouseUp:e=>{e.stopPropagation(),a(!1)}},N.createElement(t,{className:"w-full"}))},mr=N.forwardRef((e,t)=>{var n,r;let{categories:o,colors:a=T.s,className:i,onClickLegendItem:l,activeLegend:s,enableLegendSlider:c=!1}=e,u=(0,k._T)(e,["categories","colors","className","onClickLegendItem","activeLegend","enableLegendSlider"]),d=N.useRef(null),[p,f]=N.useState(null),[m,g]=N.useState(null),h=N.useRef(null),b=(0,N.useCallback)(()=>{let e=null==d?void 0:d.current;e&&f({left:e.scrollLeft>0,right:e.scrollWidth-e.clientWidth>e.scrollLeft})},[f]),v=(0,N.useCallback)(e=>{var t;let n=null==d?void 0:d.current,r=null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0;n&&c&&(n.scrollTo({left:"left"===e?n.scrollLeft-r:n.scrollLeft+r,behavior:"smooth"}),setTimeout(()=>{b()},400))},[c,b]);N.useEffect(()=>{let e=e=>{"ArrowLeft"===e?v("left"):"ArrowRight"===e&&v("right")};return m?(e(m),h.current=setInterval(()=>{e(m)},300)):clearInterval(h.current),()=>clearInterval(h.current)},[m,v]);let y=e=>{e.stopPropagation(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),g(e.key))},E=e=>{e.stopPropagation(),g(null)};return N.useEffect(()=>{let e=null==d?void 0:d.current;return c&&(b(),null==e||e.addEventListener("keydown",y),null==e||e.addEventListener("keyup",E)),()=>{null==e||e.removeEventListener("keydown",y),null==e||e.removeEventListener("keyup",E)}},[b,c]),N.createElement("ol",Object.assign({ref:t,className:(0,A.q)(me("root"),"relative overflow-hidden",i)},u),N.createElement("div",{ref:d,tabIndex:0,className:(0,A.q)("h-full flex",c?(null==p?void 0:p.right)||(null==p?void 0:p.left)?"pl-4 pr-12 items-center overflow-auto snap-mandatory [&::-webkit-scrollbar]:hidden [scrollbar-width:none]":"":"flex-wrap")},o.map((e,t)=>N.createElement(mt,{key:"item-".concat(t),name:e,color:a[t],onClick:l,activeLegend:s}))),c&&((null==p?void 0:p.right)||(null==p?void 0:p.left))?N.createElement(N.Fragment,null,N.createElement("div",{className:(0,A.q)("from-tremor-background","dark:from-dark-tremor-background","absolute top-0 bottom-0 left-0 w-4 bg-gradient-to-r to-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("to-tremor-background","dark:to-dark-tremor-background","absolute top-0 bottom-0 right-10 w-4 bg-gradient-to-r from-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("bg-tremor-background","dark:bg-dark-tremor-background","absolute flex top-0 pr-1 bottom-0 right-0 items-center justify-center h-full")},N.createElement(mn,{icon:f9,onClick:()=>{g(null),v("left")},disabled:!(null==p?void 0:p.left)}),N.createElement(mn,{icon:f7,onClick:()=>{g(null),v("right")},disabled:!(null==p?void 0:p.right)}))):null)});mr.displayName="Legend";let mo=(e,t,n,r,o,a)=>{let{payload:i}=e,l=(0,N.useRef)(null);f8(()=>{var e,t;n((t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60)});let s=i.filter(e=>"none"!==e.type);return N.createElement("div",{ref:l,className:"flex items-center justify-end"},N.createElement(mr,{categories:s.map(e=>e.value),colors:s.map(e=>t.get(e.value)),onClickLegendItem:o,activeLegend:r,enableLegendSlider:a}))},ma=e=>{let{children:t}=e;return N.createElement("div",{className:(0,A.q)("rounded-tremor-default text-tremor-default border","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border")},t)},mi=e=>{let{value:t,name:n,color:r}=e;return N.createElement("div",{className:"flex items-center justify-between space-x-8"},N.createElement("div",{className:"flex items-center space-x-2"},N.createElement("span",{className:(0,A.q)("shrink-0 rounded-tremor-full border-2 h-3 w-3","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",(0,I.bM)(r,T.K.background).bgColor)}),N.createElement("p",{className:(0,A.q)("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},n)),N.createElement("p",{className:(0,A.q)("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},t))},ml=e=>{let{active:t,payload:n,label:r,categoryColors:o,valueFormatter:a}=e;if(t&&n){let e=n.filter(e=>"none"!==e.type);return N.createElement(ma,null,N.createElement("div",{className:(0,A.q)("border-tremor-border border-b px-4 py-2","dark:border-dark-tremor-border")},N.createElement("p",{className:(0,A.q)("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),N.createElement("div",{className:(0,A.q)("px-4 py-2 space-y-1")},e.map((e,t)=>{var n;let{value:r,name:i}=e;return N.createElement(mi,{key:"id-".concat(t),value:a(r),name:i,color:null!==(n=o.get(i))&&void 0!==n?n:C.fr.Blue})})))}return null},ms=(0,I.fn)("Flex"),mc={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},mu={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},mp=N.forwardRef((e,t)=>{let{flexDirection:n="row",justifyContent:r="between",alignItems:o="center",children:a,className:i}=e,l=(0,k._T)(e,["flexDirection","justifyContent","alignItems","children","className"]);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)(ms("root"),"flex w-full",md[n],mc[r],mu[o],i)},l),a)});mp.displayName="Flex";var mf=n(71801);let mm=e=>{let{noDataText:t="No data"}=e;return N.createElement(mp,{alignItems:"center",justifyContent:"center",className:(0,A.q)("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},N.createElement(mf.Z,{className:(0,A.q)("text-tremor-content","dark:text-dark-tremor-content")},t))},mg=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{n.set(e,t[r])}),n},mh=(e,t,n)=>[e?"auto":null!=t?t:0,null!=n?n:"auto"];function mb(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!mb(e[o],t[o]))return!1;return!0}let mv=N.forwardRef((e,t)=>{let{data:n=[],categories:r=[],index:o,colors:a=T.s,valueFormatter:i=I.Cj,layout:l="horizontal",stack:s=!1,relative:c=!1,startEndOnly:u=!1,animationDuration:d=900,showAnimation:p=!1,showXAxis:f=!0,showYAxis:m=!0,yAxisWidth:g=56,intervalType:h="equidistantPreserveStart",showTooltip:b=!0,showLegend:v=!0,showGridLines:y=!0,autoMinValue:E=!1,minValue:S,maxValue:w,allowDecimals:x=!0,noDataText:O,onValueChange:R,enableLegendSlider:_=!1,customTooltip:P,rotateLabelX:M,tickGap:L=5,className:D}=e,j=(0,k._T)(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","enableLegendSlider","customTooltip","rotateLabelX","tickGap","className"]),F=f||m?20:0,[B,U]=(0,N.useState)(60),Z=mg(r,a),[z,H]=N.useState(void 0),[G,$]=(0,N.useState)(void 0),W=!!R;function V(e,t,n){var r,o,a,i;n.stopPropagation(),R&&(mb(z,Object.assign(Object.assign({},e.payload),{value:e.value}))?($(void 0),H(void 0),null==R||R(null)):($(null===(o=null===(r=e.tooltipPayload)||void 0===r?void 0:r[0])||void 0===o?void 0:o.dataKey),H(Object.assign(Object.assign({},e.payload),{value:e.value})),null==R||R(Object.assign({eventType:"bar",categoryClicked:null===(i=null===(a=e.tooltipPayload)||void 0===a?void 0:a[0])||void 0===i?void 0:i.dataKey},e.payload))))}let q=mh(E,S,w);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)("w-full h-80",D)},j),N.createElement(ej,{className:"h-full w-full"},(null==n?void 0:n.length)?N.createElement(fH,{data:n,stackOffset:s?"sign":c?"expand":"none",layout:"vertical"===l?"vertical":"horizontal",onClick:W&&(G||z)?()=>{H(void 0),$(void 0),null==R||R(null)}:void 0},y?N.createElement(f5,{className:(0,A.q)("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==l,vertical:"vertical"===l}):null,"vertical"!==l?N.createElement(fU,{padding:{left:F,right:F},hide:!f,dataKey:o,interval:u?"preserveStartEnd":h,tick:{transform:"translate(0, 6)"},ticks:u?[n[0][o],n[n.length-1][o]]:void 0,fill:"",stroke:"",className:(0,A.q)("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight,minTickGap:L}):N.createElement(fU,{hide:!f,type:"number",tick:{transform:"translate(-3, 0)"},domain:q,fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:i,minTickGap:L,allowDecimals:x,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight}),"vertical"!==l?N.createElement(fz,{width:g,hide:!m,axisLine:!1,tickLine:!1,type:"number",domain:q,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:c?e=>"".concat((100*e).toString()," %"):i,allowDecimals:x}):N.createElement(fz,{width:g,hide:!m,dataKey:o,axisLine:!1,tickLine:!1,ticks:u?[n[0][o],n[n.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),N.createElement(nK,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?e=>{let{active:t,payload:n,label:r}=e;return P?N.createElement(P,{payload:null==n?void 0:n.map(e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=Z.get(e.dataKey))&&void 0!==t?t:C.fr.Gray})}),active:t,label:r}):N.createElement(ml,{active:t,payload:n,label:r,valueFormatter:i,categoryColors:Z})}:N.createElement(N.Fragment,null),position:{y:0}}),v?N.createElement(r1,{verticalAlign:"top",height:B,content:e=>{let{payload:t}=e;return mo({payload:t},Z,U,G,W?e=>{W&&(e!==G||z?($(e),null==R||R({eventType:"category",categoryClicked:e})):($(void 0),null==R||R(null)),H(void 0))}:void 0,_)}}):null,r.map(e=>{var t;return N.createElement(dm,{className:(0,A.q)((0,I.bM)(null!==(t=Z.get(e))&&void 0!==t?t:C.fr.Gray,T.K.background).fillColor,R?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:s||c?"a":void 0,dataKey:e,fill:"",isAnimationActive:p,animationDuration:d,shape:e=>((e,t,n,r)=>{let{fillOpacity:o,name:a,payload:i,value:l}=e,{x:s,width:c,y:u,height:d}=e;return"horizontal"===r&&d<0?(u+=d,d=Math.abs(d)):"vertical"===r&&c<0&&(s+=c,c=Math.abs(c)),N.createElement("rect",{x:s,y:u,width:c,height:d,opacity:t||n&&n!==a?mb(t,Object.assign(Object.assign({},i),{value:l}))?o:.3:o})})(e,z,G,l),onClick:V})})):N.createElement(mm,{noDataText:O})))});mv.displayName="BarChart"},5:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(2898),s=n(99250),c=n(65492);let u={xs:{paddingX:"px-2",paddingY:"py-0.5",fontSize:"text-xs"},sm:{paddingX:"px-2.5",paddingY:"py-0.5",fontSize:"text-sm"},md:{paddingX:"px-3",paddingY:"py-0.5",fontSize:"text-md"},lg:{paddingX:"px-3.5",paddingY:"py-0.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-1",fontSize:"text-xl"}},d={xs:{height:"h-4",width:"w-4"},sm:{height:"h-4",width:"w-4"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"}},p=(0,c.fn)("Badge"),f=o.forwardRef((e,t)=>{let{color:n,icon:f,size:m=i.u8.SM,tooltip:g,className:h,children:b}=e,v=(0,r._T)(e,["color","icon","size","tooltip","className","children"]),y=f||null,{tooltipProps:E,getReferenceProps:S}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,c.lq)([t,E.refs.setReference]),className:(0,s.q)(p("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",n?(0,s.q)((0,c.bM)(n,l.K.background).bgColor,(0,c.bM)(n,l.K.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):(0,s.q)("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),u[m].paddingX,u[m].paddingY,u[m].fontSize,h)},S,v),o.createElement(a.Z,Object.assign({text:g},E)),y?o.createElement(y,{className:(0,s.q)(p("icon"),"shrink-0 -ml-1 mr-1.5",d[m].height,d[m].width)}):null,o.createElement("p",{className:(0,s.q)(p("text"),"text-sm whitespace-nowrap")},b))});f.displayName="Badge"},61244:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(99250),s=n(65492),c=n(2898);let u={xs:{paddingX:"px-1.5",paddingY:"py-1.5"},sm:{paddingX:"px-1.5",paddingY:"py-1.5"},md:{paddingX:"px-2",paddingY:"py-2"},lg:{paddingX:"px-2",paddingY:"py-2"},xl:{paddingX:"px-2.5",paddingY:"py-2.5"}},d={xs:{height:"h-3",width:"w-3"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-7",width:"w-7"},xl:{height:"h-9",width:"w-9"}},p={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:"border",ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:"border-2",ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:"border",ring:"ring-2",shadow:""}},f=(e,t)=>{switch(e){case"simple":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:t?(0,s.bM)(t,c.K.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:t?(0,l.q)((0,s.bM)(t,c.K.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}},m=(0,s.fn)("Icon"),g=o.forwardRef((e,t)=>{let{icon:n,variant:c="simple",tooltip:g,size:h=i.u8.SM,color:b,className:v}=e,y=(0,r._T)(e,["icon","variant","tooltip","size","color","className"]),E=f(c,b),{tooltipProps:S,getReferenceProps:w}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,s.lq)([t,S.refs.setReference]),className:(0,l.q)(m("root"),"inline-flex flex-shrink-0 items-center",E.bgColor,E.textColor,E.borderColor,E.ringColor,p[c].rounded,p[c].border,p[c].shadow,p[c].ring,u[h].paddingX,u[h].paddingY,v)},w,y),o.createElement(a.Z,Object.assign({text:g},S)),o.createElement(n,{className:(0,l.q)(m("icon"),"shrink-0",d[h].height,d[h].width)}))});g.displayName="Icon"},2179:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(69703),o=n(58437),a=n(64090);let i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],l=e=>({_s:e,status:i[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),s=e=>e?6:5,c=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return s(t)}},u=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],d=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),p=(e,t,n,r,o)=>{clearTimeout(r.current);let a=l(e);t(a),n.current=a,o&&o({current:a})},f=function(){let{enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:f,unmountOnExit:m,onStateChange:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,b]=(0,a.useState)(()=>l(i?2:s(f))),v=(0,a.useRef)(h),y=(0,a.useRef)(),[E,S]=u(o),w=(0,a.useCallback)(()=>{let e=c(v.current._s,m);e&&p(e,b,v,y,g)},[g,m]),x=(0,a.useCallback)(o=>{let a=e=>{switch(p(e,b,v,y,g),e){case 1:E>=0&&(y.current=setTimeout(w,E));break;case 4:S>=0&&(y.current=setTimeout(w,S));break;case 0:case 3:y.current=d(a,e)}},i=v.current.isEnter;"boolean"!=typeof o&&(o=!i),o?i||a(e?n?0:1:2):i&&a(t?r?3:4:s(m))},[w,g,e,t,n,r,E,S,m]);return(0,a.useEffect)(()=>()=>clearTimeout(y.current),[]),[h,x,w]};var m=n(54942),g=n(99250),h=n(65492);let b=e=>{var t=(0,r._T)(e,[]);return a.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};var v=n(2898);let y={xs:{height:"h-4",width:"w-4"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-6",width:"w-6"},xl:{height:"h-6",width:"w-6"}},E=e=>"light"!==e?{xs:{paddingX:"px-2.5",paddingY:"py-1.5",fontSize:"text-xs"},sm:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-sm"},md:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-md"},lg:{paddingX:"px-4",paddingY:"py-2.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-3",fontSize:"text-xl"}}:{xs:{paddingX:"",paddingY:"",fontSize:"text-xs"},sm:{paddingX:"",paddingY:"",fontSize:"text-sm"},md:{paddingX:"",paddingY:"",fontSize:"text-md"},lg:{paddingX:"",paddingY:"",fontSize:"text-lg"},xl:{paddingX:"",paddingY:"",fontSize:"text-xl"}},S=(e,t)=>{switch(e){case"primary":return{textColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,h.bM)(t,v.K.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:t?(0,h.bM)(t,v.K.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:t?(0,h.bM)(t,v.K.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,hoverBgColor:t?(0,g.q)((0,h.bM)(t,v.K.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,borderColor:"",hoverBorderColor:""}}},w=(0,h.fn)("Button"),x=e=>{let{loading:t,iconSize:n,iconPosition:r,Icon:o,needMargin:i,transitionStatus:l}=e,s=i?r===m.zS.Left?(0,g.q)("-ml-1","mr-1.5"):(0,g.q)("-mr-1","ml-1.5"):"",c=(0,g.q)("w-0 h-0"),u={default:c,entering:c,entered:n,exiting:n,exited:c};return t?a.createElement(b,{className:(0,g.q)(w("icon"),"animate-spin shrink-0",s,u.default,u[l]),style:{transition:"width 150ms"}}):a.createElement(o,{className:(0,g.q)(w("icon"),"shrink-0",n,s)})},O=a.forwardRef((e,t)=>{let{icon:n,iconPosition:i=m.zS.Left,size:l=m.u8.SM,color:s,variant:c="primary",disabled:u,loading:d=!1,loadingText:p,children:b,tooltip:v,className:O}=e,k=(0,r._T)(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),C=d||u,T=void 0!==n||d,A=d&&p,I=!(!b&&!A),N=(0,g.q)(y[l].height,y[l].width),R="light"!==c?(0,g.q)("rounded-tremor-default border","shadow-tremor-input","dark:shadow-dark-tremor-input"):"",_=S(c,s),P=E(c)[l],{tooltipProps:M,getReferenceProps:L}=(0,o.l)(300),[D,j]=f({timeout:50});return(0,a.useEffect)(()=>{j(d)},[d]),a.createElement("button",Object.assign({ref:(0,h.lq)([t,M.refs.setReference]),className:(0,g.q)(w("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",R,P.paddingX,P.paddingY,P.fontSize,_.textColor,_.bgColor,_.borderColor,_.hoverBorderColor,C?"opacity-50 cursor-not-allowed":(0,g.q)(S(c,s).hoverTextColor,S(c,s).hoverBgColor,S(c,s).hoverBorderColor),O),disabled:C},L,k),a.createElement(o.Z,Object.assign({text:v},M)),T&&i!==m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null,A||b?a.createElement("span",{className:(0,g.q)(w("text"),"text-tremor-default whitespace-nowrap")},A?p:b):null,T&&i===m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null)});O.displayName="Button"},47047:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(69703),o=n(64090);n(50027),n(18174),n(21871);var a=n(41213),i=n(46457),l=n(54518);let s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))};var c=n(8903),u=n(63416),d=n(70129);let p=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};var f=n(99250),m=n(65492),g=n(91753);let h=(0,m.fn)("MultiSelect"),b=o.forwardRef((e,t)=>{let{defaultValue:n,value:m,onValueChange:b,placeholder:v="Select...",placeholderSearch:y="Search",disabled:E=!1,icon:S,children:w,className:x}=e,O=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),[k,C]=(0,i.Z)(n,m),{reactElementChildren:T,optionsAvailable:A}=(0,o.useMemo)(()=>{let e=o.Children.toArray(w).filter(o.isValidElement);return{reactElementChildren:e,optionsAvailable:(0,g.n0)("",e)}},[w]),[I,N]=(0,o.useState)(""),R=(null!=k?k:[]).length>0,_=(0,o.useMemo)(()=>I?(0,g.n0)(I,T):A,[I,T,A]),P=()=>{N("")};return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:k,value:k,onChange:e=>{null==b||b(e),C(e)},disabled:E,className:(0,f.q)("w-full min-w-[10rem] relative text-tremor-default",x)},O,{multiple:!0}),e=>{let{value:t}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,f.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",S?"pl-11 -ml-0.5":"pl-3",(0,g.um)(t.length>0,E))},S&&o.createElement("span",{className:(0,f.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(S,{className:(0,f.q)(h("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("div",{className:"h-6 flex items-center"},t.length>0?o.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},A.filter(e=>t.includes(e.props.value)).map((e,n)=>{var r;return o.createElement("div",{key:n,className:(0,f.q)("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},o.createElement("div",{className:"text-xs truncate "},null!==(r=e.props.children)&&void 0!==r?r:e.props.value),o.createElement("div",{onClick:n=>{n.preventDefault();let r=t.filter(t=>t!==e.props.value);null==b||b(r),C(r)}},o.createElement(p,{className:(0,f.q)(h("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))})):o.createElement("span",null,v)),o.createElement("span",{className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-2.5")},o.createElement(l.Z,{className:(0,f.q)(h("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),R&&!E?o.createElement("button",{type:"button",className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),C([]),null==b||b([])}},o.createElement(c.Z,{className:(0,f.q)(h("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,f.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},o.createElement("div",{className:(0,f.q)("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},o.createElement("span",null,o.createElement(s,{className:(0,f.q)("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:y,className:(0,f.q)("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation()},onChange:e=>N(e.target.value),value:I})),o.createElement(a.Z.Provider,Object.assign({},{onBlur:{handleResetSearch:P}},{value:{selectedValue:t}}),_))))})});b.displayName="MultiSelect"},76628:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027),n(18174),n(21871);var o=n(41213),a=n(64090),i=n(99250),l=n(65492),s=n(63416);let c=(0,l.fn)("MultiSelectItem"),u=a.forwardRef((e,t)=>{let{value:n,className:u,children:d}=e,p=(0,r._T)(e,["value","className","children"]),{selectedValue:f}=(0,a.useContext)(o.Z),m=(0,l.NZ)(n,f);return a.createElement(s.R.Option,Object.assign({className:(0,i.q)(c("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",u),ref:t,key:n,value:n},p),a.createElement("input",{type:"checkbox",className:(0,i.q)(c("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:m,readOnly:!0}),a.createElement("span",{className:"whitespace-nowrap truncate"},null!=d?d:n))});u.displayName="MultiSelectItem"},95093:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(69703),o=n(64090),a=n(54518),i=n(8903),l=n(99250),s=n(65492),c=n(91753),u=n(63416),d=n(70129),p=n(46457);let f=(0,s.fn)("Select"),m=o.forwardRef((e,t)=>{let{defaultValue:n,value:s,onValueChange:m,placeholder:g="Select...",disabled:h=!1,icon:b,enableClear:v=!0,children:y,className:E}=e,S=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[w,x]=(0,p.Z)(n,s),O=(0,o.useMemo)(()=>{let e=o.Children.toArray(y).filter(o.isValidElement);return(0,c.sl)(e)},[y]);return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:w,value:w,onChange:e=>{null==m||m(e),x(e)},disabled:h,className:(0,l.q)("w-full min-w-[10rem] relative text-tremor-default",E)},S),e=>{var t;let{value:n}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,l.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",b?"pl-10":"pl-3",(0,c.um)((0,c.Uh)(n),h))},b&&o.createElement("span",{className:(0,l.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(b,{className:(0,l.q)(f("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("span",{className:"w-[90%] block truncate"},n&&null!==(t=O.get(n))&&void 0!==t?t:g),o.createElement("span",{className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-3")},o.createElement(a.Z,{className:(0,l.q)(f("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),v&&w?o.createElement("button",{type:"button",className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),x(""),null==m||m("")}},o.createElement(i.Z,{className:(0,l.q)(f("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,l.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},y)))})});m.displayName="Select"},27166:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(63416),i=n(99250);let l=(0,n(65492).fn)("SelectItem"),s=o.forwardRef((e,t)=>{let{value:n,icon:s,className:c,children:u}=e,d=(0,r._T)(e,["value","icon","className","children"]);return o.createElement(a.R.Option,Object.assign({className:(0,i.q)(l("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",c),ref:t,key:n,value:n},d),s&&o.createElement(s,{className:(0,i.q)(l("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),o.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:n))});s.displayName="SelectItem"},92836:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(69703),o=n(80991),a=n(2898),i=n(99250),l=n(65492),s=n(64090),c=n(41608),u=n(50027);n(18174),n(21871),n(41213);let d=(0,l.fn)("Tab"),p=s.forwardRef((e,t)=>{let{icon:n,className:p,children:f}=e,m=(0,r._T)(e,["icon","className","children"]),g=(0,s.useContext)(c.O),h=(0,s.useContext)(u.Z);return s.createElement(o.O,Object.assign({ref:t,className:(0,i.q)(d("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",h?(0,l.bM)(h,a.K.text).selectTextColor:"solid"===g?"ui-selected:text-tremor-content-emphasis dark:ui-selected:text-dark-tremor-content-emphasis":"ui-selected:text-tremor-brand dark:ui-selected:text-dark-tremor-brand",function(e,t){switch(e){case"line":return(0,i.q)("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","hover:border-tremor-content hover:text-tremor-content-emphasis text-tremor-content","dark:hover:border-dark-tremor-content-emphasis dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",t?(0,l.bM)(t,a.K.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return(0,i.q)("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","dark:ui-selected:border-dark-tremor-border dark:ui-selected:bg-dark-tremor-background dark:ui-selected:shadow-dark-tremor-input dark:hover:text-dark-tremor-content-emphasis dark:ui-selected:text-dark-tremor-brand",t?(0,l.bM)(t,a.K.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}(g,h),p)},m),n?s.createElement(n,{className:(0,i.q)(d("icon"),"flex-none h-5 w-5",f?"mr-2":"")}):null,f?s.createElement("span",null,f):null)});p.displayName="Tab"},26734:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(80991),a=n(99250),i=n(65492),l=n(64090);let s=(0,i.fn)("TabGroup"),c=l.forwardRef((e,t)=>{let{defaultIndex:n,index:i,onIndexChange:c,children:u,className:d}=e,p=(0,r._T)(e,["defaultIndex","index","onIndexChange","children","className"]);return l.createElement(o.O.Group,Object.assign({as:"div",ref:t,defaultIndex:n,selectedIndex:i,onChange:c,className:(0,a.q)(s("root"),"w-full",d)},p),u)});c.displayName="TabGroup"},41608:function(e,t,n){n.d(t,{O:function(){return c},Z:function(){return d}});var r=n(69703),o=n(64090),a=n(50027);n(18174),n(21871),n(41213);var i=n(80991),l=n(99250);let s=(0,n(65492).fn)("TabList"),c=(0,o.createContext)("line"),u={line:(0,l.q)("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:(0,l.q)("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},d=o.forwardRef((e,t)=>{let{color:n,variant:d="line",children:p,className:f}=e,m=(0,r._T)(e,["color","variant","children","className"]);return o.createElement(i.O.List,Object.assign({ref:t,className:(0,l.q)(s("root"),"justify-start overflow-x-clip",u[d],f)},m),o.createElement(c.Provider,{value:d},o.createElement(a.Z.Provider,{value:n},p)))});d.displayName="TabList"},32126:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027);var o=n(18174);n(21871);var a=n(41213),i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("TabPanel"),u=s.forwardRef((e,t)=>{let{children:n,className:l}=e,u=(0,r._T)(e,["children","className"]),{selectedValue:d}=(0,s.useContext)(a.Z),p=d===(0,s.useContext)(o.Z);return s.createElement("div",Object.assign({ref:t,className:(0,i.q)(c("root"),"w-full mt-2",p?"":"hidden",l),"aria-selected":p?"true":"false"},u),n)});u.displayName="TabPanel"},23682:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(80991);n(50027);var a=n(18174);n(21871);var i=n(41213),l=n(99250),s=n(65492),c=n(64090);let u=(0,s.fn)("TabPanels"),d=c.forwardRef((e,t)=>{let{children:n,className:s}=e,d=(0,r._T)(e,["children","className"]);return c.createElement(o.O.Panels,Object.assign({as:"div",ref:t,className:(0,l.q)(u("root"),"w-full",s)},d),e=>{let{selectedIndex:t}=e;return c.createElement(i.Z.Provider,{value:{selectedValue:t}},c.Children.map(n,(e,t)=>c.createElement(a.Z.Provider,{value:t},e)))})});d.displayName="TabPanels"},52273:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(99250),i=n(65492);let l=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}))},s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12ZM12.0003 17C14.7617 17 17.0003 14.7614 17.0003 12C17.0003 9.23858 14.7617 7 12.0003 7C9.23884 7 7.00026 9.23858 7.00026 12C7.00026 14.7614 9.23884 17 12.0003 17ZM12.0003 15C10.3434 15 9.00026 13.6569 9.00026 12C9.00026 10.3431 10.3434 9 12.0003 9C13.6571 9 15.0003 10.3431 15.0003 12C15.0003 13.6569 13.6571 15 12.0003 15Z"}))},c=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457ZM14.7577 16.1718L13.2937 14.7078C12.902 14.8952 12.4634 15.0002 12.0003 15.0002C10.3434 15.0002 9.00026 13.657 9.00026 12.0002C9.00026 11.537 9.10522 11.0984 9.29263 10.7067L7.82866 9.24277C7.30514 10.0332 7.00026 10.9811 7.00026 12.0002C7.00026 14.7616 9.23884 17.0002 12.0003 17.0002C13.0193 17.0002 13.9672 16.6953 14.7577 16.1718ZM7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925L16.947 12.7327C16.9821 12.4936 17.0003 12.249 17.0003 12.0002C17.0003 9.23873 14.7617 7.00016 12.0003 7.00016C11.7514 7.00016 11.5068 7.01833 11.2677 7.05343L7.97446 3.76015Z"}))};var u=n(91753);let d=o.forwardRef((e,t)=>{let{value:n,defaultValue:d,type:p,placeholder:f="Type...",icon:m,error:g=!1,errorMessage:h,disabled:b=!1,stepper:v,makeInputClassName:y,className:E,onChange:S,onValueChange:w,autoFocus:x}=e,O=(0,r._T)(e,["value","defaultValue","type","placeholder","icon","error","errorMessage","disabled","stepper","makeInputClassName","className","onChange","onValueChange","autoFocus"]),[k,C]=(0,o.useState)(x||!1),[T,A]=(0,o.useState)(!1),I=(0,o.useCallback)(()=>A(!T),[T,A]),N=(0,o.useRef)(null),R=(0,u.Uh)(n||d);return o.useEffect(()=>{let e=()=>C(!0),t=()=>C(!1),n=N.current;return n&&(n.addEventListener("focus",e),n.addEventListener("blur",t),x&&n.focus()),()=>{n&&(n.removeEventListener("focus",e),n.removeEventListener("blur",t))}},[x]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,a.q)(y("root"),"relative w-full flex items-center min-w-[10rem] outline-none rounded-tremor-default transition duration-100 border","shadow-tremor-input","dark:shadow-dark-tremor-input",(0,u.um)(R,b,g),k&&(0,a.q)("ring-2","border-tremor-brand-subtle ring-tremor-brand-muted","dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted"),E)},m?o.createElement(m,{className:(0,a.q)(y("icon"),"shrink-0 h-5 w-5 ml-2.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}):null,o.createElement("input",Object.assign({ref:(0,i.lq)([N,t]),defaultValue:d,value:n,type:T?"text":p,className:(0,a.q)(y("input"),"w-full focus:outline-none focus:ring-0 border-none bg-transparent text-tremor-default rounded-tremor-default transition duration-100 py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",m?"pl-2":"pl-3",g?"pr-3":"pr-4",b?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content"),placeholder:f,disabled:b,"data-testid":"base-input",onChange:e=>{null==S||S(e),null==w||w(e.target.value)}},O)),"password"!==p||b?null:o.createElement("button",{className:(0,a.q)(y("toggleButton"),"mr-2"),type:"button",onClick:()=>I(),"aria-label":T?"Hide password":"Show Password"},T?o.createElement(c,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0}):o.createElement(s,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0})),g?o.createElement(l,{className:(0,a.q)(y("errorIcon"),"text-red-500 shrink-0 w-5 h-5 mr-2.5")}):null,null!=v?v:null),g&&h?o.createElement("p",{className:(0,a.q)(y("errorMessage"),"text-sm text-red-500 mt-1")},h):null)});d.displayName="BaseInput";let p=(0,i.fn)("TextInput"),f=o.forwardRef((e,t)=>{let{type:n="text"}=e,a=(0,r._T)(e,["type"]);return o.createElement(d,Object.assign({ref:t,type:n,makeInputClassName:p},a))});f.displayName="TextInput"},91753:function(e,t,n){n.d(t,{Uh:function(){return c},n0:function(){return l},sl:function(){return i},um:function(){return s}});var r=n(99250),o=n(64090);let a=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(a).join(""):"object"==typeof e&&e?a(e.props.children):void 0;function i(e){let t=new Map;return o.Children.map(e,e=>{var n;t.set(e.props.value,null!==(n=a(e))&&void 0!==n?n:e.props.value)}),t}function l(e,t){return o.Children.map(t,t=>{var n;if((null!==(n=a(t))&&void 0!==n?n:t.props.value).toLowerCase().includes(e.toLowerCase()))return t})}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.q)(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",n&&"text-red-500",n?"border-red-500":"border-tremor-border dark:border-dark-tremor-border")};function c(e){return null!=e&&""!==e}},13810:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(54942),i=n(2898),l=n(99250),s=n(65492);let c=(0,s.fn)("Card"),u=e=>{if(!e)return"";switch(e){case a.zS.Left:return"border-l-4";case a.m.Top:return"border-t-4";case a.zS.Right:return"border-r-4";case a.m.Bottom:return"border-b-4";default:return""}},d=o.forwardRef((e,t)=>{let{decoration:n="",decorationColor:a,children:d,className:p}=e,f=(0,r._T)(e,["decoration","decorationColor","children","className"]);return o.createElement("div",Object.assign({ref:t,className:(0,l.q)(c("root"),"relative w-full text-left ring-1 rounded-tremor-default p-6","bg-tremor-background ring-tremor-ring shadow-tremor-card","dark:bg-dark-tremor-background dark:ring-dark-tremor-ring dark:shadow-dark-tremor-card",a?(0,s.bM)(a,i.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",u(n),p)},f),d)});d.displayName="Card"},39290:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250);let s=(0,n(65492).fn)("dialog"),c=o.forwardRef((e,t)=>{let{children:n,className:c}=e,u=(0,r._T)(e,["children","className"]);return o.createElement(a.u,{as:o.Fragment,appear:!0,show:e.open},o.createElement(i.V,Object.assign({as:"div",ref:t},u,{className:(0,l.q)(s("root"),"relative z-50",c)}),o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},o.createElement("div",{className:(0,l.q)("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),o.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},o.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},n))))});c.displayName="Dialog"},66952:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250),s=n(65492);n(50027),n(18174);var c=n(21871);n(41213);let u=(0,s.fn)("dialog"),d=o.forwardRef((e,t)=>{var n;let{children:s,className:d}=e,p=(0,r._T)(e,["children","className"]),f=null!==(n=o.useContext(c.Z))&&void 0!==n?n:(0,l.q)("rounded-tremor-default p-6");return o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},o.createElement(i.V.Panel,Object.assign({ref:t,className:(0,l.q)(u("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),s))});d.displayName="DialogPanel"},10384:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Col"),c=i.forwardRef((e,t)=>{let{numColSpan:n=1,numColSpanSm:a,numColSpanMd:c,numColSpanLg:u,children:d,className:p}=e,f=(0,r._T)(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),m=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"";return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),(()=>{let e=m(n,l.PT),t=m(a,l.SP),r=m(c,l.VS),i=m(u,l._w);return(0,o.q)(e,t,r,i)})(),p)},f),d)});c.displayName="Col"},46453:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Grid"),c=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"",u=i.forwardRef((e,t)=>{let{numItems:n=1,numItemsSm:a,numItemsMd:u,numItemsLg:d,children:p,className:f}=e,m=(0,r._T)(e,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),g=c(n,l._m),h=c(a,l.LH),b=c(u,l.l5),v=c(d,l.N4),y=(0,o.q)(g,h,b,v);return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),"grid",y,f)},m),p)});u.displayName="Grid"},50217:function(e,t,n){n.d(t,{LH:function(){return o},N4:function(){return i},PT:function(){return l},SP:function(){return s},VS:function(){return c},_m:function(){return r},_w:function(){return u},l5:function(){return a}});let r={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},o={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},a={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},i={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},l={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},s={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},c={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},u={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"}},10827:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("Table"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement("div",{className:(0,a.q)(i("root"),"overflow-auto",l)},o.createElement("table",Object.assign({ref:t,className:(0,a.q)(i("table"),"w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content")},s),n))});l.displayName="Table"},3851:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableBody"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tbody",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-top divide-y","divide-tremor-border","dark:divide-dark-tremor-border",l)},s),n))});l.displayName="TableBody"},2044:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("td",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-middle whitespace-nowrap text-left p-4",l)},s),n))});l.displayName="TableCell"},64167:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHead"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("thead",Object.assign({ref:t,className:(0,a.q)(i("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHead"},74480:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHeaderCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("th",Object.assign({ref:t,className:(0,a.q)(i("root"),"whitespace-nowrap text-left font-semibold top-0 px-4 py-3.5","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHeaderCell"},7178:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableRow"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tr",Object.assign({ref:t,className:(0,a.q)(i("row"),l)},s),n))});l.displayName="TableRow"},18190:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("Callout"),c=o.forwardRef((e,t)=>{let{title:n,icon:c,color:u,className:d,children:p}=e,f=(0,r._T)(e,["title","icon","color","className","children"]);return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default border-l-4 py-3 pr-3 pl-4",u?(0,i.q)((0,l.bM)(u,a.K.background).bgColor,(0,l.bM)(u,a.K.darkBorder).borderColor,(0,l.bM)(u,a.K.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):(0,i.q)("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),d)},f),o.createElement("div",{className:(0,i.q)(s("header"),"flex items-start")},c?o.createElement(c,{className:(0,i.q)(s("icon"),"flex-none h-5 w-5 mr-1.5")}):null,o.createElement("h4",{className:(0,i.q)(s("title"),"font-semibold")},n)),o.createElement("p",{className:(0,i.q)(s("body"),"overflow-y-auto",p?"mt-2":"")},p))});c.displayName="Callout"},71801:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2898),o=n(99250),a=n(65492),i=n(64090);let l=i.forwardRef((e,t)=>{let{color:n,className:l,children:s}=e;return i.createElement("p",{ref:t,className:(0,o.q)("text-tremor-default",n?(0,a.bM)(n,r.K.text).textColor:(0,o.q)("text-tremor-content","dark:text-dark-tremor-content"),l)},s)});l.displayName="Text"},42440:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(2898),a=n(99250),i=n(65492),l=n(64090);let s=l.forwardRef((e,t)=>{let{color:n,children:s,className:c}=e,u=(0,r._T)(e,["color","children","className"]);return l.createElement("p",Object.assign({ref:t,className:(0,a.q)("font-medium text-tremor-title",n?(0,i.bM)(n,o.K.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},u),s)});s.displayName="Title"},58437:function(e,t,n){n.d(t,{Z:function(){return eU},l:function(){return eB}});var r=n(64090),o=n.t(r,2),a=n(89542);function i(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return e instanceof Node||e instanceof l(e).Node}function u(e){return e instanceof Element||e instanceof l(e).Element}function d(e){return e instanceof HTMLElement||e instanceof l(e).HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function m(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=E(e);for(;d(t)&&!b(t);){if(m(t))return t;t=E(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function b(e){return["html","body","#document"].includes(i(e))}function v(e){return l(e).getComputedStyle(e)}function y(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function E(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||s(e);return p(t)?t.host:t}function S(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=E(t);return b(n)?t.ownerDocument?t.ownerDocument.body:t.body:d(n)&&f(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=l(o);return a?t.concat(i,i.visualViewport||[],f(o)?o:[],i.frameElement&&n?S(i.frameElement):[]):t.concat(o,S(o,[],n))}let w=Math.min,x=Math.max,O=Math.round,k=Math.floor,C=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}function M(e){return["top","bottom"].includes(N(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>A[e])}function D(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F(e,t,n){let r,{reference:o,floating:a}=e,i=M(t),l=_(M(t)),s=P(l),c=N(t),u="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-a.width,y:p};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[l]-=f*(n&&u?-1:1);break;case"end":r[l]+=f*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=F(c,r,s),p=r,f={},m=0;for(let n=0;n{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)});let o=g(e);if(t&&o){let e=o.getBoundingClientRect();n=e.x,r=e.y}return[t,n,r]}function K(e){return V(s(e)).left+y(e).scrollLeft}function X(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=l(e),r=s(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;let e=h();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:c,y:u}}(e,n);else if("document"===t)r=function(e){let t=s(e),n=y(e),r=e.ownerDocument.body,o=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+K(e),l=-n.scrollTop;return"rtl"===v(r).direction&&(i+=x(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(u(t))r=function(e,t){let n=V(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=d(e)?G(e):C(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{let n=W(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return j(r)}function Q(e,t){return d(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function J(e,t){let n=l(e);if(!d(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(i(r))&&"static"===v(r).position;)r=Q(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===v(r).position&&!m(r))?n:r||g(e)||n}let ee=async function(e){let t=this.getOffsetParent||J,n=this.getDimensions;return{reference:function(e,t,n,r){let o=d(t),a=s(t),l="fixed"===n,c=V(e,!0,l,t),u={scrollLeft:0,scrollTop:0},p=C(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(u=y(t)),o){let e=V(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=K(a))}let m=c.left+u.scrollLeft-p.x,g=c.top+u.scrollTop-p.y,[h,b,v]=Y(r);return h&&(m+=b,g+=v,o&&(m+=t.clientLeft,g+=t.clientTop)),{x:m,y:g,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a=s(r),[l]=t?Y(t.floating):[!1];if(r===a||l)return n;let c={scrollLeft:0,scrollTop:0},u=C(1),p=C(0),m=d(r);if((m||!m&&"fixed"!==o)&&(("body"!==i(r)||f(a))&&(c=y(r)),d(r))){let e=V(r);u=G(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=S(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===v(e).position,l=a?E(e):e;for(;u(l)&&!b(l);){let t=v(l),n=m(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(l)&&!n&&function e(t,n){let r=E(t);return!(r===n||!u(r)||b(r))&&("fixed"===v(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=E(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((e,n)=>{let r=X(t,n,o);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},X(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:J,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:G,isElement:u,isRTL:function(e){return"rtl"===v(e).direction}};function en(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=H(e),p=a||i?[...d?S(d):[],...S(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=d&&c?function(e,t){let n,r=null,o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let f=k(u),m=k(o.clientWidth-(c+d)),g={rootMargin:-f+"px "+-m+"px "+-k(o.clientHeight-(u+p))+"px "+-k(c)+"px",threshold:x(0,w(1,s))||1},h=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),a}(d,n):null,m=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let h=u?V(e):null;return u&&function t(){let r=V(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(o)}}let er=(e,t,n)=>{let r=new Map,o={platform:et,...n},a={...o.platform,_c:r};return B(e,t,{...o,platform:a})};var eo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ea(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ei(e){let t=r.useRef(e);return eo(()=>{t.current=e}),t}var el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let es=!1,ec=0,eu=()=>"floating-ui-"+ec++,ed=o["useId".toString()]||function(){let[e,t]=r.useState(()=>es?eu():void 0);return el(()=>{null==e&&t(eu())},[]),r.useEffect(()=>{es||(es=!0)},[]),e},ep=r.createContext(null),ef=r.createContext(null),em=()=>{var e;return(null==(e=r.useContext(ep))?void 0:e.id)||null},eg=()=>r.useContext(ef);function eh(e){return(null==e?void 0:e.ownerDocument)||document}function eb(e){return eh(e).defaultView||window}function ev(e){return!!e&&e instanceof eb(e).Element}function ey(e){return!!e&&e instanceof eb(e).HTMLElement}function eE(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eS(e){let t=(0,r.useRef)(e);return el(()=>{t.current=e}),t}let ew="data-floating-ui-safe-polygon";function ex(e,t,n){return n&&!eE(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let eO=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:a=null,mouseOnly:i=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t,{open:c,onOpenChange:u,dataRef:d,events:p,elements:{domReference:f,floating:m},refs:g}=e,h=eg(),b=em(),v=eS(a),y=eS(o),E=r.useRef(),S=r.useRef(),w=r.useRef(),x=r.useRef(),O=r.useRef(!0),k=r.useRef(!1),C=r.useRef(()=>{}),T=r.useCallback(()=>{var e;let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);r.useEffect(()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(S.current),clearTimeout(x.current),O.current=!0}},[n,p]),r.useEffect(()=>{if(!n||!v.current||!c)return;function e(){T()&&u(!1)}let t=eh(m).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[m,c,u,n,v,d,T]);let A=r.useCallback(function(e){void 0===e&&(e=!0);let t=ex(y.current,"close",E.current);t&&!w.current?(clearTimeout(S.current),S.current=setTimeout(()=>u(!1),t)):e&&(clearTimeout(S.current),u(!1))},[y,u]),I=r.useCallback(()=>{C.current(),w.current=void 0},[]),N=r.useCallback(()=>{if(k.current){let e=eh(g.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ew),k.current=!1}},[g]);return r.useEffect(()=>{if(n&&ev(f))return c&&f.addEventListener("mouseleave",a),null==m||m.addEventListener("mouseleave",a),s&&f.addEventListener("mousemove",r,{once:!0}),f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",o),()=>{c&&f.removeEventListener("mouseleave",a),null==m||m.removeEventListener("mouseleave",a),s&&f.removeEventListener("mousemove",r),f.removeEventListener("mouseenter",r),f.removeEventListener("mouseleave",o)};function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(S.current),O.current=!1,i&&!eE(E.current)||l>0&&0===ex(y.current,"open"))return;d.current.openEvent=e;let t=ex(y.current,"open",E.current);t?S.current=setTimeout(()=>{u(!0)},t):u(!0)}function o(n){if(t())return;C.current();let r=eh(m);if(clearTimeout(x.current),v.current){c||clearTimeout(S.current),w.current=v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}});let t=w.current;r.addEventListener("mousemove",t),C.current=()=>{r.removeEventListener("mousemove",t)};return}A()}function a(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}})(n)}},[f,m,n,e,i,l,s,A,I,N,u,c,h,y,v,d]),el(()=>{var e,t,r;if(n&&c&&null!=(e=v.current)&&e.__options.blockPointerEvents&&T()){let e=eh(m).body;if(e.setAttribute(ew,""),e.style.pointerEvents="none",k.current=!0,ev(f)&&m){let e=null==h?void 0:null==(t=h.nodesRef.current.find(e=>e.id===b))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),f.style.pointerEvents="auto",m.style.pointerEvents="auto",()=>{f.style.pointerEvents="",m.style.pointerEvents=""}}}},[n,c,b,m,f,h,v,d,T]),el(()=>{c||(E.current=void 0,I(),N())},[c,I,N]),r.useEffect(()=>()=>{I(),clearTimeout(S.current),clearTimeout(x.current),N()},[n,I,N]),r.useMemo(()=>{if(!n)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===l||(clearTimeout(x.current),x.current=setTimeout(()=>{O.current||u(!0)},l))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[p,n,l,c,u,A])};function ek(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=eb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function eC(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})||[],r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})})||[],n=n.concat(r);return n}let eT=o["useInsertionEffect".toString()]||(e=>e());function eA(e){let t=r.useRef(()=>{});return eT(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r!1),x="function"==typeof f?w:f,O=r.useRef(!1),{escapeKeyBubbles:k,outsidePressBubbles:C}=e_(v);return r.useEffect(()=>{if(!n||!d)return;function e(e){if("Escape"===e.key){let e=y?eC(y.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if(null!=(n=e.context)&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1)}}function t(e){var t;let n=O.current;if(O.current=!1,n||"function"==typeof x&&!x(e))return;let r="composedPath"in e?e.composedPath()[0]:e.target;if(ey(r)&&c){let t=c.ownerDocument.defaultView||window,n=r.scrollWidth>r.clientWidth,o=r.scrollHeight>r.clientHeight,a=o&&e.offsetX>r.clientWidth;if(o&&"rtl"===t.getComputedStyle(r).direction&&(a=e.offsetX<=r.offsetWidth-r.clientWidth),a||n&&e.offsetY>r.clientHeight)return}let l=y&&eC(y.nodesRef.current,i).some(t=>{var n;return eI(e,null==(n=t.context)?void 0:n.elements.floating)});if(eI(e,c)||eI(e,s)||l)return;let u=y?eC(y.nodesRef.current,i):[];if(u.length>0){let e=!0;if(u.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:E?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(e)||0===(t=e).width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"!==t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail}}),o(!1)}function r(){o(!1)}u.current.__escapeKeyBubbles=k,u.current.__outsidePressBubbles=C;let f=eh(c);p&&f.addEventListener("keydown",e),x&&f.addEventListener(m,t);let g=[];return b&&(ev(s)&&(g=S(s)),ev(c)&&(g=g.concat(S(c))),!ev(l)&&l&&l.contextElement&&(g=g.concat(S(l.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",r,{passive:!0})}),()=>{p&&f.removeEventListener("keydown",e),x&&f.removeEventListener(m,t),g.forEach(e=>{e.removeEventListener("scroll",r)})}},[u,c,s,l,p,x,m,a,y,i,n,o,b,d,k,C,E]),r.useEffect(()=>{O.current=!1},[x,m]),r.useMemo(()=>d?{reference:{[eN[h]]:()=>{g&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1))}},floating:{[eR[m]]:()=>{O.current=!0}}}:{},[d,a,g,m,h,o])},eM=function(e,t){let{open:n,onOpenChange:o,dataRef:a,events:i,refs:l,elements:{floating:s,domReference:c}}=e,{enabled:u=!0,keyboardOnly:d=!0}=void 0===t?{}:t,p=r.useRef(""),f=r.useRef(!1),m=r.useRef();return r.useEffect(()=>{if(!u)return;let e=eh(s).defaultView||window;function t(){!n&&ey(c)&&c===function(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}(eh(c))&&(f.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[s,c,n,u]),r.useEffect(()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(f.current=!0)}},[i,u]),r.useEffect(()=>()=>{clearTimeout(m.current)},[]),r.useMemo(()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;p.current=t,f.current=!!(t&&d)},onMouseLeave(){f.current=!1},onFocus(e){var t;f.current||"focus"===e.type&&(null==(t=a.current.openEvent)?void 0:t.type)==="mousedown"&&a.current.openEvent&&eI(a.current.openEvent,c)||(a.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){f.current=!1;let t=e.relatedTarget,n=ev(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");m.current=setTimeout(()=>{ek(l.floating.current,t)||ek(c,t)||n||o(!1)})}}}:{},[u,d,c,l,a,o])},eL=function(e,t){let{open:n}=e,{enabled:o=!0,role:a="dialog"}=void 0===t?{}:t,i=ed(),l=ed();return r.useMemo(()=>{let e={id:i,role:a};return o?"tooltip"===a?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":n?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}:{}},[o,a,n,i,l])};function eD(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),a=0;ae(...o))}}}else e[n]=o}),e),{})}}let ej=function(e){void 0===e&&(e=[]);let t=e,n=r.useCallback(t=>eD(t,e,"reference"),t),o=r.useCallback(t=>eD(t,e,"floating"),t),a=r.useCallback(t=>eD(t,e,"item"),e.map(e=>null==e?void 0:e.item));return r.useMemo(()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a}),[n,o,a])};var eF=n(99250);let eB=e=>{var t,n;let[o,i]=(0,r.useState)(!1),[l,s]=(0,r.useState)(),{x:c,y:u,refs:d,strategy:p,context:f}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:o}=e,i=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,whileElementsMounted:l,open:s}=e,[c,u]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=r.useState(o);ea(d,o)||p(o);let f=r.useRef(null),m=r.useRef(null),g=r.useRef(c),h=ei(l),b=ei(i),[v,y]=r.useState(null),[E,S]=r.useState(null),w=r.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),x=r.useCallback(e=>{m.current!==e&&(m.current=e,S(e))},[]),O=r.useCallback(()=>{if(!f.current||!m.current)return;let e={placement:t,strategy:n,middleware:d};b.current&&(e.platform=b.current),er(f.current,m.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!ea(g.current,t)&&(g.current=t,a.flushSync(()=>{u(t)}))})},[d,t,n,b]);eo(()=>{!1===s&&g.current.isPositioned&&(g.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let k=r.useRef(!1);eo(()=>(k.current=!0,()=>{k.current=!1}),[]),eo(()=>{if(v&&E){if(h.current)return h.current(v,E,O);O()}},[v,E,O,h]);let C=r.useMemo(()=>({reference:f,floating:m,setReference:w,setFloating:x}),[w,x]),T=r.useMemo(()=>({reference:v,floating:E}),[v,E]);return r.useMemo(()=>({...c,update:O,refs:C,elements:T,reference:w,floating:x}),[c,O,C,T,w,x])}(e),l=eg(),s=r.useRef(null),c=r.useRef({}),u=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],[d,p]=r.useState(null),f=r.useCallback(e=>{let t=ev(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),m=r.useCallback(e=>{(ev(e)||null===e)&&(s.current=e,p(e)),(ev(i.refs.reference.current)||null===i.refs.reference.current||null!==e&&!ev(e))&&i.refs.setReference(e)},[i.refs]),g=r.useMemo(()=>({...i.refs,setReference:m,setPositionReference:f,domReference:s}),[i.refs,m,f]),h=r.useMemo(()=>({...i.elements,domReference:d}),[i.elements,d]),b=eA(n),v=r.useMemo(()=>({...i,refs:g,elements:h,dataRef:c,nodeId:o,events:u,open:t,onOpenChange:b}),[i,o,u,t,b,g,h]);return el(()=>{let e=null==l?void 0:l.nodesRef.current.find(e=>e.id===o);e&&(e.context=v)}),r.useMemo(()=>({...i,context:v,refs:g,reference:m,positionReference:f}),[i,g,v,m,f])}({open:o,onOpenChange:t=>{t&&e?s(setTimeout(()=>{i(t)},e)):(clearTimeout(l),i(t))},placement:"top",whileElementsMounted:en,middleware:[{name:"offset",options:5,async fn(e){var t,n;let{x:r,y:o,placement:a,middlewareData:i}=e,l=await Z(e,5);return a===(null==(t=i.offset)?void 0:t.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}},{name:"flip",options:t={fallbackAxisSideDirection:"start"},async fn(e){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=I(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=N(l),S=N(u)===u,w=await (null==d.isRTL?void 0:d.isRTL(p.floating)),x=g||(S||!v?[D(u)]:function(e){let t=D(e);return[L(e),t,L(t)]}(u));g||"none"===b||x.push(...function(e,t,n,r){let o=R(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(N(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(L)))),a}(u,v,b,w));let O=[u,...x],k=await U(e,y),C=[],T=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&C.push(k[E]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=_(M(e)),a=P(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=D(i)),[i,D(i)]}(l,c,w);C.push(k[e[0]],k[e[1]])}if(T=[...T,{placement:l,overflows:C}],!C.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(a=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=T.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}},(void 0===n&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=I(n,e),c={x:t,y:r},u=await U(e,s),d=M(N(o)),p=_(d),f=c[p],m=c[d];if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+u[e],r=f-u[t];f=x(n,w(f,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+u[e],r=m-u[t];m=x(n,w(m,r))}let g=l.fn({...e,[p]:f,[d]:m});return{...g,data:{x:g.x-t,y:g.y-r}}}})]}),m=eO(f,{move:!1}),{getReferenceProps:g,getFloatingProps:h}=ej([m,eM(f),eP(f),eL(f,{role:"tooltip"})]);return{tooltipProps:{open:o,x:c,y:u,refs:d,strategy:p,getFloatingProps:h},getReferenceProps:g}},eU=e=>{let{text:t,open:n,x:o,y:a,refs:i,strategy:l,getFloatingProps:s}=e;return n&&t?r.createElement("div",Object.assign({className:(0,eF.q)("max-w-xs text-sm z-20 rounded-tremor-default opacity-100 px-2.5 py-1","text-white bg-tremor-background-emphasis","text-white dark:bg-dark-tremor-background-subtle"),ref:i.setFloating,style:{position:l,top:null!=a?a:0,left:null!=o?o:0}},s()),t):null};eU.displayName="Tooltip"},67989:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("BarList"),c=o.forwardRef((e,t)=>{var n;let c;let{data:u=[],color:d,valueFormatter:p=l.Cj,showAnimation:f=!1,className:m}=e,g=(0,r._T)(e,["data","color","valueFormatter","showAnimation","className"]),h=(n=u.map(e=>e.value),c=-1/0,n.forEach(e=>{c=Math.max(c,e)}),n.map(e=>0===e?0:Math.max(e/c*100,1)));return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex justify-between space-x-6",m)},g),o.createElement("div",{className:(0,i.q)(s("bars"),"relative w-full")},u.map((e,t)=>{var n,r,c;let p=e.icon;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("bar"),"flex items-center rounded-tremor-small bg-opacity-30","h-9",e.color||d?(0,l.bM)(null!==(r=e.color)&&void 0!==r?r:d,a.K.background).bgColor:"bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle dark:bg-opacity-30",t===u.length-1?"mb-0":"mb-2"),style:{width:"".concat(h[t],"%"),transition:f?"all 1s":""}},o.createElement("div",{className:(0,i.q)("absolute max-w-full flex left-2")},p?o.createElement(p,{className:(0,i.q)(s("barIcon"),"flex-none h-5 w-5 mr-2","text-tremor-content","dark:text-dark-tremor-content")}):null,e.href?o.createElement("a",{href:e.href,target:null!==(c=e.target)&&void 0!==c?c:"_blank",rel:"noreferrer",className:(0,i.q)(s("barLink"),"whitespace-nowrap hover:underline truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name):o.createElement("p",{className:(0,i.q)(s("barText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name)))})),o.createElement("div",{className:"text-right min-w-min"},u.map((e,t)=>{var n;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("labelWrapper"),"flex justify-end items-center","h-9",t===u.length-1?"mb-0":"mb-2")},o.createElement("p",{className:(0,i.q)(s("labelText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},p(e.value)))})))});c.displayName="BarList"},50027:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(64090),o=n(54942);n(99250);let a=(0,r.createContext)(o.fr.Blue)},18174:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(0)},21871:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(void 0)},41213:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)({selectedValue:void 0,handleValueChange:void 0})},46457:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);let o=(e,t)=>{let n=void 0!==t,[o,a]=(0,r.useState)(e);return[n?t:o,e=>{n||a(e)}]}},54942:function(e,t,n){n.d(t,{fr:function(){return r},m:function(){return i},u8:function(){return o},zS:function(){return a}});let r={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},o={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},a={Left:"left",Right:"right"},i={Top:"top",Bottom:"bottom"}},2898:function(e,t,n){n.d(t,{K:function(){return o},s:function(){return a}});var r=n(54942);let o={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},a=[r.fr.Blue,r.fr.Cyan,r.fr.Sky,r.fr.Indigo,r.fr.Violet,r.fr.Purple,r.fr.Fuchsia,r.fr.Slate,r.fr.Gray,r.fr.Zinc,r.fr.Neutral,r.fr.Stone,r.fr.Red,r.fr.Orange,r.fr.Amber,r.fr.Yellow,r.fr.Lime,r.fr.Green,r.fr.Emerald,r.fr.Teal,r.fr.Pink,r.fr.Rose]},99250:function(e,t,n){n.d(t,{q:function(){return j}});var r=/^\[(.+)\]$/;function o(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var a=/\s+/;function i(){for(var e,t,n=0,r="";ne&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,a=t[0],i=t.length,function(e){for(var r,o=[],l=0,s=0,c=0;cs?r-s:void 0}}),...(u=e.theme,d=e.prefix,p={nextPart:new Map,validators:[]},(f=Object.entries(e.classGroups),d?f.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):f).forEach(function(e){var t=e[0];(function e(t,n,r,a){t.forEach(function(t){if("string"==typeof t){(""===t?n:o(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(a),n,r,a);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],o(n,i),r,a)})})})(e[1],p,t,u)}),l=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r,o=t[0],a=n.nextPart.get(o),i=a?e(t.slice(1),a):void 0;if(i)return i;if(0!==n.validators.length){var l=t.join("-");return null===(r=n.validators.find(function(e){return(0,e.validator)(l)}))||void 0===r?void 0:r.classGroupId}}(t,p)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=l[e]||[];return t&&c[e]?[].concat(n,c[e]):n}})}}(s.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,n=e.cache.set,u=d,d(a)};function d(r){var o,i,l,s,c,u=t(r);if(u)return u;var d=(i=(o=e).splitModifiers,l=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,r.trim().split(a).map(function(e){var t=i(e),n=t.modifiers,r=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,s=l(a?o.substring(0,a):o),c=!!a;if(!s){if(!a||!(s=l(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,o=t+n;return!c.has(o)&&(c.add(o),s(n,r).forEach(function(e){return c.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return u(i.apply(null,arguments))}}function s(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(e){return S(e)||d.has(e)||u.test(e)||h(e)}function h(e){return A(e,"length",I)}function b(e){return A(e,"size",N)}function v(e){return A(e,"position",N)}function y(e){return A(e,"url",R)}function E(e){return A(e,"number",S)}function S(e){return!Number.isNaN(Number(e))}function w(e){return e.endsWith("%")&&S(e.slice(0,-1))}function x(e){return _(e)||A(e,"number",_)}function O(e){return c.test(e)}function k(){return!0}function C(e){return p.test(e)}function T(e){return A(e,"",P)}function A(e,t,n){var r=c.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return f.test(e)}function N(){return!1}function R(e){return e.startsWith("url(")}function _(e){return Number.isInteger(Number(e))}function P(e){return m.test(e)}function M(){var e=s("colors"),t=s("spacing"),n=s("blur"),r=s("brightness"),o=s("borderColor"),a=s("borderRadius"),i=s("borderSpacing"),l=s("borderWidth"),c=s("contrast"),u=s("grayscale"),d=s("hueRotate"),p=s("invert"),f=s("gap"),m=s("gradientColorStops"),A=s("gradientColorStopPositions"),I=s("inset"),N=s("margin"),R=s("opacity"),_=s("padding"),P=s("saturate"),M=s("scale"),L=s("sepia"),D=s("skew"),j=s("space"),F=s("translate"),B=function(){return["auto","contain","none"]},U=function(){return["auto","hidden","clip","visible","scroll"]},Z=function(){return["auto",O,t]},z=function(){return[O,t]},H=function(){return["",g]},G=function(){return["auto",S,O]},$=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",O]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[S,E]},Q=function(){return[S,O]};return{cacheSize:500,theme:{colors:[k],spacing:[g],blur:["none","",C,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",C,O],borderSpacing:z(),borderWidth:H(),contrast:X(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,h],inset:Z(),margin:Z(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Y(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat($(),[O])}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",x]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",x]},O]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[x]},O]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",O,t]}],"min-w":[{"min-w":["min","max","fit",O,g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,O]}],h:[{h:[O,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",O,g]}],"max-h":[{"max-h":[O,t,"min","max","fit"]}],"font-size":[{text:["base",C,h]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",S,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,g]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",O,g]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat($(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[O,g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,O]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[x,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,E]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var L=Object.prototype.hasOwnProperty,D=new Set(["string","number","boolean"]);let j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rr.includes(e),a=e=>e.toString(),i=(e,t)=>{for(let n=0;n{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function s(e){return t=>"tremor-".concat(e,"-").concat(t)}function c(e,t){let n=o(e);if("white"===e||"black"===e||"transparent"===e||!t||!n){let t=e.includes("#")||e.includes("--")||e.includes("rgb")?"[".concat(e,"]"):e;return{bgColor:"bg-".concat(t),hoverBgColor:"hover:bg-".concat(t),selectBgColor:"ui-selected:bg-".concat(t),textColor:"text-".concat(t),selectTextColor:"ui-selected:text-".concat(t),hoverTextColor:"hover:text-".concat(t),borderColor:"border-".concat(t),selectBorderColor:"ui-selected:border-".concat(t),hoverBorderColor:"hover:border-".concat(t),ringColor:"ring-".concat(t),strokeColor:"stroke-".concat(t),fillColor:"fill-".concat(t)}}return{bgColor:"bg-".concat(e,"-").concat(t),selectBgColor:"ui-selected:bg-".concat(e,"-").concat(t),hoverBgColor:"hover:bg-".concat(e,"-").concat(t),textColor:"text-".concat(e,"-").concat(t),selectTextColor:"ui-selected:text-".concat(e,"-").concat(t),hoverTextColor:"hover:text-".concat(e,"-").concat(t),borderColor:"border-".concat(e,"-").concat(t),selectBorderColor:"ui-selected:border-".concat(e,"-").concat(t),hoverBorderColor:"hover:border-".concat(e,"-").concat(t),ringColor:"ring-".concat(e,"-").concat(t),strokeColor:"stroke-".concat(e,"-").concat(t),fillColor:"fill-".concat(e,"-").concat(t)}}},21467:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(64090),o=n(44329),a=n(54165),i=n(57499);function l(e){return t=>r.createElement(a.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,a)=>l(l=>{let{prefixCls:s,style:c}=l,u=r.useRef(null),[d,p]=r.useState(0),[f,m]=r.useState(0),[g,h]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:b}=r.useContext(i.E_),v=b(t||"select",s);r.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?".".concat(n(v)):".".concat(v,"-dropdown"),a=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return a&&(y=a(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:f}},r.createElement(e,Object.assign({},y)))})},51761:function(e,t,n){n.d(t,{Cn:function(){return c},u6:function(){return i}});var r=n(64090),o=n(24750),a=n(86718);let i=1e3,l={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e,t){let[,n]=(0,o.ZP)(),c=r.useContext(a.Z);if(void 0!==t)return[t,t];let u=null!=c?c:0;return e in l?(u+=(c?0:n.zIndexPopupBase)+l[e],u=Math.min(u,n.zIndexPopupBase+i)):u+=s[e],[void 0===c?t:u,u]}},47387:function(e,t,n){n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},67966:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(89869);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},i=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach(e=>{let f=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(p[e]=f,i.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=d+s}let m=(0,r.wZ)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-d;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+d}f.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(f.htmlRegion="visibleFirst")}),p}},65823:function(e,t,n){n.d(t,{M2:function(){return i},Tm:function(){return l},l$:function(){return a}});var r,o=n(64090);let{isValidElement:a}=r||(r=n.t(o,2));function i(e){return e&&a(e)&&e.type===o.Fragment}function l(e,t){return a(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},47794:function(e,t,n){n.d(t,{F:function(){return i},Z:function(){return a}});var r=n(16480),o=n.n(r);function a(e,t,n){return o()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}let i=(e,t)=>t||e},76564:function(e,t,n){n.d(t,{G8:function(){return a},ln:function(){return i}});var r=n(64090);function o(){}n(53850);let a=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e}},86718:function(e,t,n){let r=n(64090).createContext(void 0);t.Z=r},51350:function(e,t,n){n.d(t,{Te:function(){return c},aG:function(){return i},hU:function(){return u},nx:function(){return l}});var r=n(64090),o=n(65823);let a=/^[\u4e00-\u9fa5]{2}$/,i=a.test.bind(a);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1,a=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=a.length-1,n=a[t];a[t]="".concat(n).concat(e)}else a.push(e);n=r}),r.Children.map(a,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&i(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?i(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e})(e,t))}},1861:function(e,t,n){n.d(t,{ZP:function(){return eb}});var r=n(64090),o=n(16480),a=n.n(o),i=n(35704),l=n(74084),s=n(73193),c=n(57499),u=n(65823),d=n(76585);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var f=(0,d.ZP)("Wave",e=>[p(e)]),m=n(48563),g=n(19223),h=n(49367),b=n(37274);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let y="ant-wave-target";function E(e){return Number.isNaN(e)?0:e}let S=e=>{let{className:t,target:n,component:o}=e,i=r.useRef(null),[l,s]=r.useState(null),[c,u]=r.useState([]),[d,p]=r.useState(0),[f,m]=r.useState(0),[S,w]=r.useState(0),[x,O]=r.useState(0),[k,C]=r.useState(!1),T={left:d,top:f,width:S,height:x,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function A(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:E(-parseFloat(r))),m(t?n.offsetTop:E(-parseFloat(o))),w(n.offsetWidth),O(n.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([a,i,c,l].map(e=>E(parseFloat(e))))}if(l&&(T["--wave-color"]=l),r.useEffect(()=>{if(n){let e;let t=(0,g.Z)(()=>{A(),C(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(A)).observe(n),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(h.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,b.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return r.createElement("div",{ref:i,className:a()(t,{"wave-quick":I},n),style:T})})};var w=(e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",null==e||e.insertBefore(a,null==e?void 0:e.firstChild),(0,b.s)(r.createElement(S,Object.assign({},t,{target:e})),a)},x=n(24750),O=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),p=i("wave"),[,h]=f(p),b=function(e,t,n){let{wave:o}=r.useContext(c.E_),[,a,i]=(0,x.ZP)(),l=(0,m.zX)(r=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(".".concat(y))||l,{showEffect:c}=o||{};(c||w)(s,{className:t,token:a,component:n,event:r,hashId:i})}),s=r.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(d,a()(p,h),o);if(r.useEffect(()=>{let e=d.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let v=(0,l.Yr)(t)?(0,l.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:v})},k=n(17094),C=n(10693),T=n(92801),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I=r.createContext(void 0);var N=n(51350);let R=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:i,prefixCls:l}=e,s=a()("".concat(l,"-icon"),n);return r.createElement("span",{ref:t,className:s,style:o},i)});var _=n(66155);let P=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:i,iconClassName:l}=e,s=a()("".concat(n,"-loading-icon"),o);return r.createElement(R,{prefixCls:n,className:s,style:i,ref:t},r.createElement(_.Z,{className:l}))}),M=()=>({width:0,opacity:0,transform:"scale(0)"}),L=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var D=e=>{let{prefixCls:t,loading:n,existIcon:o,className:a,style:i}=e,l=!!n;return o?r.createElement(P,{prefixCls:t,className:a,style:i}):r.createElement(h.ZP,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:M,onAppearActive:L,onEnterStart:M,onEnterActive:L,onLeaveStart:L,onLeaveActive:M},(e,n)=>{let{className:o,style:l}=e;return r.createElement(P,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:o})})},j=n(8985),F=n(11303),B=n(80316);let U=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Z=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},U("".concat(t,"-primary"),o),U("".concat(t,"-danger"),a)]}},z=n(49202);let H=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,B.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},G=e=>{var t,n,r,o,a,i;let l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,z.D)(l),d=null!==(a=e.contentLineHeightSM)&&void 0!==a?a:(0,z.D)(s),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,z.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},$=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,j.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,F.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},W=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Y=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),K=(e,t,n,r,o,a,i,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},W(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),X=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Y(e))}),Q=e=>Object.assign({},X(e)),J=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),W(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},W(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),X(e))}),et=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),W(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},W(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),X(e))}),en=e=>Object.assign(Object.assign({},ee(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},W(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},W(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),J(e))}),eo=e=>Object.assign(Object.assign(Object.assign({},W(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},J(e)),W(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ea=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:ee(e),["".concat(t,"-primary")]:et(e),["".concat(t,"-dashed")]:en(e),["".concat(t,"-link")]:er(e),["".concat(t,"-text")]:eo(e),["".concat(t,"-ghost")]:K(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(n).concat(t)]:{fontSize:o,lineHeight:a,height:r,padding:"".concat((0,j.bf)(c)," ").concat((0,j.bf)(l)),borderRadius:i,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:V(e)},{["".concat(n).concat(n,"-round").concat(t)]:q(e)}]},el=e=>ei((0,B.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),es=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),ec=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),eu=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var ed=(0,d.I$)("Button",e=>{let t=H(e);return[$(t),es(t),el(t),ec(t),eu(t),ea(t),Z(t)]},G,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ep=n(12288);let ef=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var em=(0,d.bk)(["Button","compact"],e=>{let t=H(e);return[(0,ep.c)(t),function(e){var t;let n="".concat(e.componentCls,"-compact-vertical");return{[n]:Object.assign(Object.assign({},{["&-item:not(".concat(n,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{["&-item:not(".concat(n,"-first-item):not(").concat(n,"-last-item)")]:{borderRadius:0},["&-item".concat(n,"-first-item:not(").concat(n,"-last-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(n,"-last-item:not(").concat(n,"-first-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),ef(t)]},G),eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eh=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:s=!1,prefixCls:u,type:d="default",danger:p,shape:f="default",size:m,styles:g,disabled:h,className:b,rootClassName:v,children:y,icon:E,ghost:S=!1,block:w=!1,htmlType:x="button",classNames:A,style:_={}}=e,P=eg(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:L,direction:j,button:F}=(0,r.useContext)(c.E_),B=M("btn",u),[U,Z,z]=ed(B),H=(0,r.useContext)(k.Z),G=null!=h?h:H,$=(0,r.useContext)(I),W=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(s),[s]),[V,q]=(0,r.useState)(W.loading),[Y,K]=(0,r.useState)(!1),X=(0,r.createRef)(),Q=(0,l.sQ)(t,X),J=1===r.Children.count(y)&&!E&&!(0,N.Te)(d);(0,r.useEffect)(()=>{let e=null;return W.delay>0?e=setTimeout(()=>{e=null,q(!0)},W.delay):q(W.loading),function(){e&&(clearTimeout(e),e=null)}},[W]),(0,r.useEffect)(()=>{if(!Q||!Q.current||!1===L)return;let e=Q.current.textContent;J&&(0,N.aG)(e)?Y||K(!0):Y&&K(!1)},[Q]);let ee=t=>{let{onClick:n}=e;if(V||G){t.preventDefault();return}null==n||n(t)},et=!1!==L,{compactSize:en,compactItemClassnames:er}=(0,T.ri)(B,j),eo=(0,C.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=m?m:en)&&void 0!==t?t:$)&&void 0!==n?n:e}),ea=eo&&({large:"lg",small:"sm",middle:void 0})[eo]||"",ei=V?"loading":E,el=(0,i.Z)(P,["navigate"]),es=a()(B,Z,z,{["".concat(B,"-").concat(f)]:"default"!==f&&f,["".concat(B,"-").concat(d)]:d,["".concat(B,"-").concat(ea)]:ea,["".concat(B,"-icon-only")]:!y&&0!==y&&!!ei,["".concat(B,"-background-ghost")]:S&&!(0,N.Te)(d),["".concat(B,"-loading")]:V,["".concat(B,"-two-chinese-chars")]:Y&&et&&!V,["".concat(B,"-block")]:w,["".concat(B,"-dangerous")]:!!p,["".concat(B,"-rtl")]:"rtl"===j},er,b,v,null==F?void 0:F.className),ec=Object.assign(Object.assign({},null==F?void 0:F.style),_),eu=a()(null==A?void 0:A.icon,null===(n=null==F?void 0:F.classNames)||void 0===n?void 0:n.icon),ep=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==F?void 0:F.styles)||void 0===o?void 0:o.icon)||{}),ef=E&&!V?r.createElement(R,{prefixCls:B,className:eu,style:ep},E):r.createElement(D,{existIcon:!!E,prefixCls:B,loading:!!V}),eh=y||0===y?(0,N.hU)(y,J&&et):null;if(void 0!==el.href)return U(r.createElement("a",Object.assign({},el,{className:a()(es,{["".concat(B,"-disabled")]:G}),href:G?void 0:el.href,style:ec,onClick:ee,ref:Q,tabIndex:G?-1:0}),ef,eh));let eb=r.createElement("button",Object.assign({},P,{type:x,className:es,style:ec,onClick:ee,disabled:G,ref:Q}),ef,eh,!!er&&r.createElement(em,{key:"compact",prefixCls:B}));return(0,N.Te)(d)||(eb=r.createElement(O,{component:"Button",disabled:!!V},eb)),U(eb)});eh.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:i,className:l}=e,s=A(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,x.ZP)(),p="";switch(i){case"large":p="lg";break;case"small":p="sm"}let f=a()(u,{["".concat(u,"-").concat(p)]:p,["".concat(u,"-rtl")]:"rtl"===n},l,d);return r.createElement(I.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:f})))},eh.__ANT_BUTTON=!0;var eb=eh},28683:function(e,t,n){var r=n(90791);t.Z=r.Z},17094:function(e,t,n){n.d(t,{n:function(){return a}});var r=n(64090);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},97303:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(64090);let o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:n||a},t)};t.Z=o},57499:function(e,t,n){n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(64090);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?"ant-".concat(e):"ant"),iconPrefixCls:o}),{Consumer:i}=a},92935:function(e,t,n){var r=n(24750);t.Z=e=>{let[,,,,t]=(0,r.ZP)();return t?"".concat(e,"-css-var"):""}},10693:function(e,t,n){var r=n(64090),o=n(97303);t.Z=e=>{let t=r.useContext(o.Z);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])}},54165:function(e,t,n){let r,o,a,i;n.d(t,{ZP:function(){return G},w6:function(){return Z}});var l=n(64090),s=n.t(l,2),c=n(8985),u=n(67689),d=n(61475),p=n(36597),f=n(76564),m=n(12519),g=n(4678),h=n(33302),b=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>(0,g.f)(t&&t.Modal),[t]);let o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(h.Z.Provider,{value:o},n)},v=n(79474),y=n(43345),E=n(46864),S=n(57499),w=n(12215),x=n(6336),O=n(22127),k=n(24050);let C="-ant-".concat(Date.now(),"-").concat(Math.random());var T=n(17094),A=n(97303),I=n(92536);let{useId:N}=Object.assign({},s);var R=void 0===N?()=>"":N,_=n(49367),P=n(24750);function M(e){let{children:t}=e,[,n]=(0,P.ZP)(),{motion:r}=n,o=l.useRef(!1);return(o.current=o.current||!1===r,o.current)?l.createElement(_.zt,{motion:r},t):t}var L=()=>null,D=n(28030),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function B(){return r||"ant"}function U(){return o||S.oR}let Z=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(B(),"-").concat(e):B()),getIconPrefixCls:U,getRootPrefixCls:()=>r||B(),getTheme:()=>a,holderRender:i}),z=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:g,direction:h,space:w,virtual:x,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:C,legacyLocale:N,parentContext:_,iconPrefixCls:P,theme:B,componentDisabled:U,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,input:ep,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD}=e,ej=l.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[_.getPrefixCls,e.prefixCls]),eF=P||_.iconPrefixCls||S.oR,eB=n||_.csp;(0,D.Z)(eF,eB);let eU=function(e,t){(0,f.ln)("ConfigProvider");let n=e||{},r=!1!==n.inherit&&t?t:y.u_,o=R();return(0,d.Z)(()=>{var a,i;if(!e)return t;let l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});let s="css-var-".concat(o.replace(/:/g,"")),c=(null!==(a=n.cssVar)&&void 0!==a?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,I.Z)(e,r,!0)}))}(B,_.theme),eZ={csp:eB,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||N,direction:h,space:w,virtual:x,popupMatchSelectWidth:null!=k?k:O,popupOverflow:C,getPrefixCls:ej,iconPrefixCls:eF,theme:eU,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,input:ep,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD},ez=Object.assign({},_);Object.keys(eZ).forEach(e=>{void 0!==eZ[e]&&(ez[e]=eZ[e])}),F.forEach(t=>{let n=e[t];n&&(ez[t]=n)});let eH=(0,d.Z)(()=>ez,ez,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eG=l.useMemo(()=>({prefixCls:eF,csp:eB}),[eF,eB]),e$=l.createElement(l.Fragment,null,l.createElement(L,{dropdownMatchSelectWidth:O}),t),eW=l.useMemo(()=>{var e,t,n,r;return(0,p.T)((null===(e=v.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eH.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eH.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})},[eH,null==i?void 0:i.validateMessages]);Object.keys(eW).length>0&&(e$=l.createElement(m.Z.Provider,{value:eW},e$)),s&&(e$=l.createElement(b,{locale:s,_ANT_MARK__:"internalMark"},e$)),(eF||eB)&&(e$=l.createElement(u.Z.Provider,{value:eG},e$)),g&&(e$=l.createElement(A.q,{size:g},e$)),e$=l.createElement(M,null,e$);let eV=l.useMemo(()=>{let e=eU||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=j(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,c.jG)(t):y.uH,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,c.jG)(r.algorithm)),delete r.algorithm),l[t]=r});let s=Object.assign(Object.assign({},E.Z),n);return Object.assign(Object.assign({},a),{theme:i,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[eU]);return B&&(e$=l.createElement(y.Mj.Provider,{value:eV},e$)),eH.warning&&(e$=l.createElement(f.G8.Provider,{value:eH.warning},e$)),void 0!==U&&(e$=l.createElement(T.n,{disabled:U},e$)),l.createElement(S.E_.Provider,{value:eH},e$)},H=e=>{let t=l.useContext(S.E_),n=l.useContext(h.Z);return l.createElement(z,Object.assign({parentContext:t,legacyLocale:n},e))};H.ConfigContext=S.E_,H.SizeContext=A.Z,H.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:s}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=s),l&&(Object.keys(l).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,w.R_)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=a[1],n["".concat(t,"-color-hover")]=a[4],n["".concat(t,"-color-active")]=a[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=a[0],n["".concat(t,"-color-deprecated-border")]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,w.R_)(e.toRgbString());a.forEach((e,t)=>{n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";"));return"\n :root {\n ".concat(a.join("\n"),"\n }\n ").trim()}(e,t);(0,O.Z)()&&(0,k.hq)(n,"".concat(C,"-dynamic-theme"))}(B(),l):a=l)},H.useConfig=function(){return{componentDisabled:(0,l.useContext)(T.Z),componentSize:(0,l.useContext)(A.Z)}},Object.defineProperty(H,"SizeContext",{get:()=>A.Z});var G=H},40491:function(e,t,n){n.d(t,{Z:function(){return er}});var r=n(64090),o=n(50459),a=n(16480),i=n.n(a),l=n(14749),s=n(50833),c=n(80406),u=n(6787),d=n(44101),p=n(74084),f=n(4295),m=n(19223),g=f.Z.ESC,h=f.Z.TAB,b=(0,r.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,i=(0,r.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,p.sQ)(t,null==i?void 0:i.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(a,"-arrow")}),r.cloneElement(i,{ref:(0,p.Yr)(i)?l:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],E={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},S=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=r.forwardRef(function(e,t){var n,o,a,f,v,y,w,x,O,k,C,T,A,I,N=e.arrow,R=void 0!==N&&N,_=e.prefixCls,P=void 0===_?"rc-dropdown":_,M=e.transitionName,L=e.animation,D=e.align,j=e.placement,F=e.placements,B=e.getPopupContainer,U=e.showAction,Z=e.hideAction,z=e.overlayClassName,H=e.overlayStyle,G=e.visible,$=e.trigger,W=void 0===$?["hover"]:$,V=e.autoFocus,q=e.overlay,Y=e.children,K=e.onVisibleChange,X=(0,u.Z)(e,S),Q=r.useState(),J=(0,c.Z)(Q,2),ee=J[0],et=J[1],en="visible"in e?G:ee,er=r.useRef(null),eo=r.useRef(null),ea=r.useRef(null);r.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==K||K(e)};o=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:V,overlayRef:eo}).visible,a=n.triggerRef,f=n.onVisibleChange,v=n.autoFocus,y=n.overlayRef,w=r.useRef(!1),x=function(){if(o){var e,t;null===(e=a.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==f||f(!1)}},O=function(){var e;return null!==(e=y.current)&&void 0!==e&&!!e.focus&&(y.current.focus(),w.current=!0,!0)},k=function(e){switch(e.keyCode){case g:x();break;case h:var t=!1;w.current||(t=O()),t?e.preventDefault():x()}},r.useEffect(function(){return o?(window.addEventListener("keydown",k),v&&(0,m.Z)(O,3),function(){window.removeEventListener("keydown",k),w.current=!1}):function(){w.current=!1}},[o]);var el=function(){return r.createElement(b,{ref:eo,overlay:q,prefixCls:P,arrow:R})},es=r.cloneElement(Y,{className:i()(null===(I=Y.props)||void 0===I?void 0:I.className,en&&(void 0!==(C=e.openClassName)?C:"".concat(P,"-open"))),ref:(0,p.Yr)(Y)?(0,p.sQ)(ea,Y.ref):void 0}),ec=Z;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),r.createElement(d.Z,(0,l.Z)({builtinPlacements:void 0===F?E:F},X,{prefixCls:P,ref:er,popupClassName:i()(z,(0,s.Z)({},"".concat(P,"-show-arrow"),R)),popupStyle:H,action:W,showAction:U,hideAction:ec,popupPlacement:void 0===j?"bottomLeft":j,popupAlign:D,popupTransitionName:M,popupAnimation:L,popupVisible:en,stretch:(T=e.minOverlayWidthMatchTrigger,A=e.alignPoint,"minOverlayWidthMatchTrigger"in e?T:!A)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),es)}),x=n(48563),O=n(44329),k=n(35704),C=n(51761),T=n(67966),A=n(21467),I=n(65823),N=n(76564),R=n(86718),_=n(57499),P=n(95781),M=n(81642),L=n(24750),D=n(11303),j=n(202),F=n(25926),B=n(58854),U=n(89869),Z=n(76585),z=n(80316),H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(a)]:{["&".concat(a,"-danger:not(").concat(a,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},G=n(2638),$=n(8985);let W=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(i,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(i,"-btn-icon > ").concat(l,"-down")]:{fontSize:f}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(l,"-down")]:{fontSize:f},["".concat(l,"-down::before")]:{transition:"transform ".concat(s)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:j.fJ},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:j.Qt},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:j.Uw},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:j.ly}})},(0,U.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,D.Qy)(e)),{["".concat(n,"-item-group-title")]:{padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorTextDescription,transition:"all ".concat(s)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(s),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(s),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,D.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat((0,$.bf)(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat((0,$.bf)(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:p,backgroundColor:g,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})}},[(0,j.oN)(e,"slide-up"),(0,j.oN)(e,"slide-down"),(0,F.Fm)(e,"move-up"),(0,F.Fm)(e,"move-down"),(0,B._y)(e,"zoom-big")]]};var V=(0,Z.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=(0,z.TS)(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[W(a),H(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,U.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,G.w)(e))),q=n(92935);let Y=e=>{let t;let{menu:n,arrow:a,prefixCls:l,children:s,trigger:c,disabled:u,dropdownRender:d,getPopupContainer:p,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:E=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:A=!0,placement:D="",overlay:j,transitionName:F}=e,{getPopupContainer:B,getPrefixCls:U,direction:Z,dropdown:z}=r.useContext(_.E_);(0,N.ln)("Dropdown");let H=r.useMemo(()=>{let e=U();return void 0!==F?F:D.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")},[U,D,F]),G=r.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===Z?"bottomRight":"bottomLeft",[D,Z]),$=U("dropdown",l),W=(0,q.Z)($),[Y,K,X]=V($,W),[,Q]=(0,L.ZP)(),J=r.Children.only(s),ee=(0,I.Tm)(J,{className:i()("".concat($,"-trigger"),{["".concat($,"-rtl")]:"rtl"===Z},J.props.className),disabled:u}),et=u?[]:c;et&&et.includes("contextMenu")&&(t=!0);let[en,er]=(0,O.Z)(!1,{value:null!=h?h:v}),eo=(0,x.zX)(e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),er(e)}),ea=i()(f,m,K,X,W,null==z?void 0:z.className,{["".concat($,"-rtl")]:"rtl"===Z}),ei=(0,T.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:A,offset:Q.marginXXS,arrowWidth:a?Q.sizePopupArrow:0,borderRadius:Q.borderRadius}),el=r.useCallback(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==b||b(!1,{source:"menu"}),er(!1))},[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[es,ec]=(0,C.Cn)("Dropdown",null==g?void 0:g.zIndex),eu=r.createElement(w,Object.assign({alignPoint:t},(0,k.Z)(e,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:S,visible:en,builtinPlacements:ei,arrow:!!a,overlayClassName:ea,prefixCls:$,getPopupContainer:p||B,transitionName:H,trigger:et,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(P.Z,Object.assign({},n)):"function"==typeof j?j():j,d&&(e=d(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(M.J,{prefixCls:"".concat($,"-menu"),rootClassName:i()(X,W),expandIcon:r.createElement("span",{className:"".concat($,"-menu-submenu-arrow")},r.createElement(o.Z,{className:"".concat($,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:el,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:eo,overlayStyle:Object.assign(Object.assign(Object.assign({},null==z?void 0:z.style),g),{zIndex:es})}),ee);return es&&(eu=r.createElement(R.Z.Provider,{value:ec},eu)),Y(eu)},K=(0,A.Z)(Y,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});Y._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(K,Object.assign({},e),r.createElement("span",null));var X=n(31413),Q=n(1861),J=n(65270),ee=n(92801),et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let en=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(_.E_),{prefixCls:a,type:l="default",danger:s,disabled:c,loading:u,onClick:d,htmlType:p,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:v,trigger:y,align:E,open:S,onOpenChange:w,placement:x,getPopupContainer:O,href:k,icon:C=r.createElement(X.Z,null),title:T,buttonsRender:A=e=>e,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L}=e,D=et(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",a),F={menu:g,arrow:h,autoFocus:b,align:E,disabled:c,trigger:c?[]:y,onOpenChange:w,getPopupContainer:O||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L},{compactSize:B,compactItemClassnames:U}=(0,ee.ri)(j,o),Z=i()("".concat(j,"-button"),U,m);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement="rtl"===o?"bottomLeft":"bottomRight";let[z,H]=A([r.createElement(Q.ZP,{type:l,danger:s,disabled:c,loading:u,onClick:d,htmlType:p,href:k,title:T},f),r.createElement(Q.ZP,{type:l,danger:s,icon:C})]);return r.createElement(J.Z.Compact,Object.assign({className:Z,size:B,block:!0},D),z,r.createElement(Y,Object.assign({},F),H))};en.__ANT_BUTTON=!0,Y.Button=en;var er=Y},47137:function(e,t,n){n.d(t,{RV:function(){return s},Rk:function(){return c},Ux:function(){return d},aM:function(){return u},pg:function(){return p},q3:function(){return i},qI:function(){return l}});var r=n(64090),o=n(76570),a=n(35704);let i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),s=e=>{let t=(0,a.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},c=r.createContext({prefixCls:""}),u=r.createContext({}),d=e=>{let{children:t,status:n,override:o}=e,a=(0,r.useContext)(u),i=(0,r.useMemo)(()=>{let e=Object.assign({},a);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,a]);return r.createElement(u.Provider,{value:i},t)},p=(0,r.createContext)(void 0)},8443:function(e,t,n){var r=n(64090),o=n(47137);let a=["outlined","borderless","filled"];t.Z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=(0,r.useContext)(o.pg);t=void 0!==e?e:!1===n?"borderless":null!=i?i:"outlined";let l=a.includes(t);return[t,l]}},81583:function(e,t,n){n.d(t,{Z:function(){return eD}});var r=n(63787),o=n(16480),a=n.n(o),i=n(49367),l=n(64090),s=n(47387),c=n(47137);function u(e){let[t,n]=l.useState(e);return l.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var d=n(8985),p=n(11303),f=n(58854),m=n(46154),g=n(80316),h=n(76585),b=e=>{let{componentCls:t}=e,n="".concat(t,"-show-help"),r="".concat(t,"-show-help-item");return{[n]:{transition:"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:"height ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n transform ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut," !important"),["&".concat(r,"-appear, &").concat(r,"-enter")]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},["&".concat(r,"-leave-active")]:{transform:"translateY(-5px)"}}}}};let v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:"".concat((0,d.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:"0 0 0 ".concat((0,d.bf)(e.controlOutlineWidth)," ").concat(e.controlOutline)},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{let{formItemCls:n}=e;return{[n]:{["".concat(n,"-label > label")]:{height:t},["".concat(n,"-control-input")]:{minHeight:t}}}},E=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),v(e)),{["".concat(t,"-text")]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},S=e=>{let{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},["&-hidden,\n &-hidden.".concat(o,"-row")]:{display:"none"},"&-has-warning":{["".concat(t,"-split")]:{color:e.colorError}},"&-has-error":{["".concat(t,"-split")]:{color:e.colorWarning}},["".concat(t,"-label")]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,["> ".concat(n)]:{fontSize:e.fontSize,verticalAlign:"top"},["&".concat(t,"-required:not(").concat(t,"-required-mark-optional)::before")]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-optional")]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-tooltip")]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},["&".concat(t,"-no-colon::after")]:{content:'"\\a0"'}}},["".concat(t,"-control")]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,["&:first-child:not([class^=\"'".concat(o,"-col-'\"]):not([class*=\"' ").concat(o,"-col-'\"])")]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:"color ".concat(e.motionDurationMid," ").concat(e.motionEaseOut)},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},["&-with-help ".concat(t,"-explain")]:{height:"auto",opacity:1},["".concat(t,"-feedback-icon")]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-horizontal")]:{["".concat(n,"-label")]:{flexGrow:0},["".concat(n,"-control")]:{flex:"1 1 0",minWidth:0},["".concat(n,"-label[class$='-24'], ").concat(n,"-label[class*='-24 ']")]:{["& + ".concat(n,"-control")]:{minWidth:"unset"}}}}},x=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-inline")]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},["> ".concat(n,"-label,\n > ").concat(n,"-control")]:{display:"inline-block",verticalAlign:"top"},["> ".concat(n,"-label")]:{flex:"none"},["".concat(t,"-text")]:{display:"inline-block"},["".concat(n,"-has-feedback")]:{display:"inline-block"}}}}},O=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(n," ").concat(n,"-label")]:O(e),["".concat(t,":not(").concat(t,"-inline)")]:{[n]:{flexWrap:"wrap",["".concat(n,"-label, ").concat(n,"-control")]:{['&:not([class*=" '.concat(r,'-col-xs"])')]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},C=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(t,"-vertical")]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},["".concat(t,"-item-control")]:{width:"100%"}}},["".concat(t,"-vertical ").concat(n,"-label,\n .").concat(r,"-col-24").concat(n,"-label,\n .").concat(r,"-col-xl-24").concat(n,"-label")]:O(e),["@media (max-width: ".concat((0,d.bf)(e.screenXSMax),")")]:[k(e),{[t]:{[".".concat(r,"-col-xs-24").concat(n,"-label")]:O(e)}}],["@media (max-width: ".concat((0,d.bf)(e.screenSMMax),")")]:{[t]:{[".".concat(r,"-col-sm-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenMDMax),")")]:{[t]:{[".".concat(r,"-col-md-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenLGMax),")")]:{[t]:{[".".concat(r,"-col-lg-24").concat(n,"-label")]:O(e)}}}},T=(e,t)=>(0,g.TS)(e,{formItemCls:"".concat(e.componentCls,"-item"),rootPrefixCls:t});var A=(0,h.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t,r=T(e,n);return[E(r),S(r),b(r),w(r),x(r),C(r),(0,m.Z)(r),f.kr]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:"0 0 ".concat(e.paddingXS,"px"),verticalLabelMargin:0}),{order:-1e3}),I=n(92935);let N=[];function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:"".concat(t,"-").concat(r),error:e,errorStatus:n}}var _=e=>{let{help:t,helpStatus:n,errors:o=N,warnings:d=N,className:p,fieldId:f,onVisibleChanged:m}=e,{prefixCls:g}=l.useContext(c.Rk),h="".concat(g,"-item-explain"),b=(0,I.Z)(g),[v,y,E]=A(g,b),S=(0,l.useMemo)(()=>(0,s.Z)(g),[g]),w=u(o),x=u(d),O=l.useMemo(()=>null!=t?[R(t,"help",n)]:[].concat((0,r.Z)(w.map((e,t)=>R(e,"error","error",t))),(0,r.Z)(x.map((e,t)=>R(e,"warning","warning",t)))),[t,n,w,x]),k={};return f&&(k.id="".concat(f,"_help")),v(l.createElement(i.ZP,{motionDeadline:S.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!O.length,onVisibleChanged:m},e=>{let{className:t,style:n}=e;return l.createElement("div",Object.assign({},k,{className:a()(h,t,E,b,p,y),style:n,role:"alert"}),l.createElement(i.V4,Object.assign({keys:O},(0,s.Z)(g),{motionName:"".concat(g,"-show-help-item"),component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:i}=e;return l.createElement("div",{key:t,className:a()(o,{["".concat(h,"-").concat(r)]:r}),style:i},n)}))}))},P=n(76570),M=n(57499),L=n(17094),D=n(10693),j=n(97303);let F=e=>"object"==typeof e&&null!=e&&1===e.nodeType,B=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,U=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,z=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},H=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];let{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!F(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,f=[],m=e;for(;F(m)&&d(m);){if((m=z(m))===p){f.push(m);break}null!=m&&m===document.body&&U(m)&&!U(document.documentElement)||null!=m&&U(m,u)&&f.push(m)}let g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:E,top:S,right:w,bottom:x,left:O}=e.getBoundingClientRect(),{top:k,right:C,bottom:T,left:A}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===l||"nearest"===l?S-k:"end"===l?x+T:S+y/2-k+T,N="center"===s?O+E/2-A+C:"end"===s?w+C:O-A,R=[];for(let e=0;e=0&&O>=0&&x<=h&&w<=g&&S>=o&&x<=c&&O>=u&&w<=a)break;let d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),A=0,_=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-T:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===l?I:"end"===l?I-h:"nearest"===l?Z(v,v+h,h,k,T,v+I,v+I+y,y):I-h/2,_="start"===s?N:"center"===s?N-g/2:"end"===s?N-g:Z(b,b+g,g,m,C,b+N,b+N+E,E),A=Math.max(0,A+v),_=Math.max(0,_+b);else{A="start"===l?I-o-k:"end"===l?I-c+T+M:"nearest"===l?Z(o,c,n,k,T+M,I,I+y,y):I-(o+n/2)+M/2,_="start"===s?N-u-m:"center"===s?N-(u+r/2)+P/2:"end"===s?N-a+C+P:Z(u,a,r,m,C+P,N,N+E,E);let{scrollLeft:e,scrollTop:i}=t;A=0===D?0:Math.max(0,Math.min(i+A/D,t.scrollHeight-n/D+M)),_=0===L?0:Math.max(0,Math.min(e+_/L,t.scrollWidth-r/L+P)),I+=i-A,N+=e-_}R.push({el:t,top:A,left:_})}return R},G=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"},$=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function V(e,t){if(!e.length)return;let n=e.join("_");return t?"".concat(t,"_").concat(n):$.includes(n)?"".concat("form_item","_").concat(n):n}function q(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function Y(e){return W(e).join("_")}function K(e){let[t]=(0,P.cI)(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let r=Y(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=V(W(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(H(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:a,left:i}of H(e,G(t))){let e=a-n.top+n.bottom,t=i-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{let t=Y(e);return n.current[t]}}),[e,t]);return[r]}var X=n(12519),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=l.forwardRef((e,t)=>{let n=l.useContext(L.Z),{getPrefixCls:r,direction:o,form:i}=l.useContext(M.E_),{prefixCls:s,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:b,labelCol:v,wrapperCol:y,hideRequiredMark:E,layout:S="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:O,name:k,style:C,feedbackIcons:T,variant:N}=e,R=Q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=(0,D.Z)(p),F=l.useContext(X.Z),B=(0,l.useMemo)(()=>void 0!==x?x:!E&&(!i||void 0===i.requiredMark||i.requiredMark),[E,x,i]),U=null!=g?g:null==i?void 0:i.colon,Z=r("form",s),z=(0,I.Z)(Z),[H,G,$]=A(Z,z),W=a()(Z,"".concat(Z,"-").concat(S),{["".concat(Z,"-hide-required-mark")]:!1===B,["".concat(Z,"-rtl")]:"rtl"===o,["".concat(Z,"-").concat(_)]:_},$,z,G,null==i?void 0:i.className,u,d),[V]=K(m),{__INTERNAL__:q}=V;q.name=k;let Y=(0,l.useMemo)(()=>({name:k,labelAlign:h,labelCol:v,labelWrap:b,wrapperCol:y,vertical:"vertical"===S,colon:U,requiredMark:B,itemRef:q.itemRef,form:V,feedbackIcons:T}),[k,h,v,y,S,U,B,V,T]);l.useImperativeHandle(t,()=>V);let J=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),V.scrollToField(t,n)}};return H(l.createElement(c.pg.Provider,{value:N},l.createElement(L.n,{disabled:f},l.createElement(j.Z.Provider,{value:_},l.createElement(c.RV,{validateMessages:F},l.createElement(c.q3.Provider,{value:Y},l.createElement(P.ZP,Object.assign({id:k},R,{name:k,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==w){J(w,t);return}i&&void 0!==i.scrollToFirstError&&J(i.scrollToFirstError,t)}},form:V,style:Object.assign(Object.assign({},null==i?void 0:i.style),C),className:W}))))))))});var ee=n(89211),et=n(74084),en=n(65823),er=n(76564),eo=n(33054);let ea=()=>{let{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(c.aM);return{status:e,errors:t,warnings:n}};ea.Context=c.aM;var ei=n(19223),el=n(73193),es=n(24800),ec=n(35704),eu=n(5056),ed=n(90791);let ep=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{["".concat(t,"-control")]:{display:"flex"}}}};var ef=(0,h.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;return[ep(T(e,n))]}),em=e=>{let{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:s,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h="".concat(t,"-item"),b=l.useContext(c.q3),v=r||b.wrapperCol||{},y=a()("".concat(h,"-control"),v.className),E=l.useMemo(()=>Object.assign({},b),[b]);delete E.labelCol,delete E.wrapperCol;let S=l.createElement("div",{className:"".concat(h,"-control-input")},l.createElement("div",{className:"".concat(h,"-control-input-content")},o)),w=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=null!==m||i.length||s.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(c.Rk.Provider,{value:w},l.createElement(_,{fieldId:f,errors:i,warnings:s,help:p,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,O={};f&&(O.id="".concat(f,"_extra"));let k=d?l.createElement("div",Object.assign({},O,{className:"".concat(h,"-extra")}),d):null,C=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:S,errorList:x,extra:k}):l.createElement(l.Fragment,null,S,x,k);return l.createElement(c.q3.Provider,{value:E},l.createElement(ed.Z,Object.assign({},v,{className:y}),C),l.createElement(ef,{prefixCls:t}))},eg=n(14749),eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},eb=n(60688),ev=l.forwardRef(function(e,t){return l.createElement(eb.Z,(0,eg.Z)({},e,{ref:t,icon:eh}))}),ey=n(79474),eE=n(70595),eS=n(1460),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ex=e=>{var t;let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:s,colon:u,required:d,requiredMark:p,tooltip:f}=e,[m]=(0,eE.Z)("Form"),{vertical:g,labelAlign:h,labelCol:b,labelWrap:v,colon:y}=l.useContext(c.q3);if(!r)return null;let E=i||b||{},S="".concat(n,"-item-label"),w=a()(S,"left"===(s||h)&&"".concat(S,"-left"),E.className,{["".concat(S,"-wrap")]:!!v}),x=r,O=!0===u||!1!==y&&!1!==u;O&&!g&&"string"==typeof r&&""!==r.trim()&&(x=r.replace(/[:|:]\s*$/,""));let k=f?"object"!=typeof f||l.isValidElement(f)?{title:f}:f:null;if(k){let{icon:e=l.createElement(ev,null)}=k,t=ew(k,["icon"]),r=l.createElement(eS.Z,Object.assign({},t),l.cloneElement(e,{className:"".concat(n,"-item-tooltip"),title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,r)}let C="optional"===p,T="function"==typeof p;T?x=p(x,{required:!!d}):C&&!d&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:"".concat(n,"-item-optional"),title:""},(null==m?void 0:m.optional)||(null===(t=ey.Z.Form)||void 0===t?void 0:t.optional))));let A=a()({["".concat(n,"-item-required")]:d,["".concat(n,"-item-required-mark-optional")]:C||T,["".concat(n,"-item-no-colon")]:!O});return l.createElement(ed.Z,Object.assign({},E,{className:w}),l.createElement("label",{htmlFor:o,className:A,title:"string"==typeof r?r:""},x))},eO=n(99537),ek=n(77136),eC=n(20653),eT=n(66155);let eA={success:eO.Z,warning:eC.Z,error:ek.Z,validating:eT.Z};function eI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:s,meta:u,noStyle:d}=e,p="".concat(s,"-item"),{feedbackIcons:f}=l.useContext(c.q3),m=q(n,r,u,null,!!o,i),{isFormItemInput:g,status:h,hasFeedback:b,feedbackIcon:v}=l.useContext(c.aM),y=l.useMemo(()=>{var e;let t;if(o){let i=!0!==o&&o.icons||f,s=m&&(null===(e=null==i?void 0:i({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),c=m&&eA[m];t=!1!==s&&c?l.createElement("span",{className:a()("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(m))},s||l.createElement(c,null)):null}let i={status:m||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return d&&(i.status=(null!=m?m:h)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=o?o:b),i.feedbackIcon=void 0!==o?i.feedbackIcon:v),i},[m,o,d,g,h]);return l.createElement(c.aM.Provider,{value:y},t)}var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eR(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:s,warnings:d,validateStatus:p,meta:f,hasFeedback:m,hidden:g,children:h,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:E}=e,S=eN(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),w="".concat(t,"-item"),{requiredMark:x}=l.useContext(c.q3),O=l.useRef(null),k=u(s),C=u(d),T=null!=i,A=!!(T||s.length||d.length),I=!!O.current&&(0,el.Z)(O.current),[N,R]=l.useState(null);(0,es.Z)(()=>{A&&O.current&&R(parseInt(getComputedStyle(O.current).marginBottom,10))},[A,I]);let _=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return q(e?k:f.errors,e?C:f.warnings,f,"",!!m,p)}(),P=a()(w,n,r,{["".concat(w,"-with-help")]:T||k.length||C.length,["".concat(w,"-has-feedback")]:_&&m,["".concat(w,"-has-success")]:"success"===_,["".concat(w,"-has-warning")]:"warning"===_,["".concat(w,"-has-error")]:"error"===_,["".concat(w,"-is-validating")]:"validating"===_,["".concat(w,"-hidden")]:g});return l.createElement("div",{className:P,style:o,ref:O},l.createElement(eu.Z,Object.assign({className:"".concat(w,"-row")},(0,ec.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(ex,Object.assign({htmlFor:b},e,{requiredMark:x,required:null!=v?v:y,prefixCls:t})),l.createElement(em,Object.assign({},e,f,{errors:k,warnings:C,prefixCls:t,status:_,help:i,marginBottom:N,onErrorVisibleChanged:e=>{e||R(null)}}),l.createElement(c.qI.Provider,{value:E},l.createElement(eI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:_},h)))),!!N&&l.createElement("div",{className:"".concat(w,"-margin-offset"),style:{marginBottom:-N}}))}let e_=l.memo(e=>{let{children:t}=e;return t},(e,t)=>(function(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function eP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eM=function(e){let{name:t,noStyle:n,className:o,dependencies:i,prefixCls:s,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:b,hidden:v,help:y}=e,{getPrefixCls:E}=l.useContext(M.E_),{name:S}=l.useContext(c.q3),w=function(e){if("function"==typeof e)return e;let t=(0,eo.Z)(e);return t.length<=1?t[0]:t}(p),x="function"==typeof w,O=l.useContext(c.qI),{validateTrigger:k}=l.useContext(P.zb),C=void 0!==b?b:k,T=null!=t,N=E("form",s),R=(0,I.Z)(N),[_,L,D]=A(N,R);(0,er.ln)("Form.Item");let j=l.useContext(P.ZM),F=l.useRef(),[B,U]=function(e){let[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),a=(0,l.useRef)(!1);return l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ei.Z.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=(0,ei.Z)(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[Z,z]=(0,ee.Z)(()=>eP()),H=(e,t)=>{U(n=>{let o=Object.assign({},n),a=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[a]:o[a]=e,o})},[G,$]=l.useMemo(()=>{let e=(0,r.Z)(Z.errors),t=(0,r.Z)(Z.warnings);return Object.values(B).forEach(n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))}),[e,t]},[B,Z.errors,Z.warnings]),q=function(){let{itemRef:e}=l.useContext(c.q3),t=l.useRef({});return function(n,r){let o=r&&"object"==typeof r&&r.ref,a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=(0,et.sQ)(e(n),o)),t.current.ref}}();function Y(t,r,i){return n&&!v?l.createElement(eI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:Z,errors:G,warnings:$,noStyle:!0},t):l.createElement(eR,Object.assign({key:"row"},e,{className:a()(o,D,R,L),prefixCls:N,fieldId:r,isRequired:i,errors:G,warnings:$,meta:Z,onSubItemMetaChange:H}),t)}if(!T&&!x&&!i)return _(Y(w));let K={};return"string"==typeof m?K.label=m:t&&(K.label=String(t)),g&&(K=Object.assign(Object.assign({},K),g)),_(l.createElement(P.gN,Object.assign({},e,{messageVariables:K,trigger:h,validateTrigger:C,onMetaChange:e=>{let t=null==j?void 0:j.getKey(e.name);if(z(e.destroy?eP():e,!0),n&&!1!==y&&O){let n=e.name;if(e.destroy)n=F.current||n;else if(void 0!==t){let[e,o]=t;n=[e].concat((0,r.Z)(o)),F.current=n}O(e,n)}}}),(n,o,a)=>{let s=W(t).length&&o?o.name:[],c=V(s,S),p=void 0!==f?f:!!(d&&d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return t&&t.required&&!t.warningOnly}return!1})),m=Object.assign({},n),g=null;if(Array.isArray(w)&&T)g=w;else if(x&&(!(u||i)||T));else if(!i||x||T){if((0,en.l$)(w)){let t=Object.assign(Object.assign({},w.props),m);if(t.id||(t.id=c),y||G.length>0||$.length>0||e.extra){let n=[];(y||G.length>0)&&n.push("".concat(c,"_help")),e.extra&&n.push("".concat(c,"_extra")),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,et.Yr)(w)&&(t.ref=q(s,w)),new Set([].concat((0,r.Z)(W(h)),(0,r.Z)(W(C)))).forEach(e=>{t[e]=function(){for(var t,n,r,o=arguments.length,a=Array(o),i=0;it.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};J.Item=eM,J.List=e=>{var{prefixCls:t,children:n}=e,r=eL(e,["prefixCls","children"]);let{getPrefixCls:o}=l.useContext(M.E_),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(P.aV,Object.assign({},r),(e,t,r)=>l.createElement(c.Rk.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},J.ErrorList=_,J.useForm=K,J.useFormInstance=function(){let{form:e}=(0,l.useContext)(c.q3);return e},J.useWatch=P.qo,J.Provider=c.RV,J.create=()=>{};var eD=J},12519:function(e,t,n){var r=n(64090);t.Z=(0,r.createContext)(void 0)},24305:function(e,t,n){let r=(0,n(64090).createContext)({});t.Z=r},90791:function(e,t,n){var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(24305),s=n(37148),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let u=["xs","sm","md","lg","xl","xxl"],d=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o}=r.useContext(i.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:b,pull:v,className:y,children:E,flex:S,style:w}=e,x=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=n("col",f),[k,C,T]=(0,s.cG)(O),A={};u.forEach(t=>{let n={},r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete x[t],A=Object.assign(Object.assign({},A),{["".concat(O,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(O,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(O,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(O,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(O,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(O,"-").concat(t,"-flex-").concat(n.flex)]:n.flex||"auto"===n.flex,["".concat(O,"-rtl")]:"rtl"===o})});let I=a()(O,{["".concat(O,"-").concat(m)]:void 0!==m,["".concat(O,"-order-").concat(g)]:g,["".concat(O,"-offset-").concat(h)]:h,["".concat(O,"-push-").concat(b)]:b,["".concat(O,"-pull-").concat(v)]:v},y,A,C,T),N={};if(d&&d[0]>0){let e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return S&&(N.flex="number"==typeof S?"".concat(S," ").concat(S," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(S)?"0 0 ".concat(S):S,!1!==p||N.minWidth||(N.minWidth=0)),k(r.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},N),w),className:I,ref:t}),E))});t.Z=d},5056:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(64090),o=n(16480),a=n.n(o),i=n(24750);let l=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),c=e=>{let t=[].concat(l).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),a="screen".concat(o,"Min"),i="screen".concat(o);if(!(e[a]<=e[i]))throw Error("".concat(a,"<=").concat(i," fails : !(").concat(e[a],"<=").concat(e[i],")"));if(rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m(e,t){let[n,o]=r.useState("string"==typeof e?e:""),a=()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{a()},[JSON.stringify(e),t]),n}var g=r.forwardRef((e,t)=>{let{prefixCls:n,justify:o,align:g,className:h,style:b,children:v,gutter:y=0,wrap:E}=e,S=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=r.useContext(u.E_),[O,k]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,T]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=m(g,C),I=m(o,C),N=r.useRef(y),R=function(){let[,e]=(0,i.ZP)(),t=s(c(e));return r.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}();r.useEffect(()=>{let e=R.subscribe(e=>{T(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&k(e)});return()=>R.unsubscribe(e)},[]);let _=w("row",n),[P,M,L]=(0,p.VM)(_),D=(()=>{let e=[void 0,void 0];return(Array.isArray(y)?y:[y,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(D[0]/2):void 0;B&&(F.marginLeft=B,F.marginRight=B),[,F.rowGap]=D;let[U,Z]=D,z=r.useMemo(()=>({gutter:[U,Z],wrap:E}),[U,Z,E]);return P(r.createElement(d.Z.Provider,{value:z},r.createElement("div",Object.assign({},S,{className:j,style:Object.assign(Object.assign({},F),b),ref:t}),v)))})},37148:function(e,t,n){n.d(t,{VM:function(){return u},cG:function(){return d}});var r=n(8985),o=n(76585),a=n(80316);let i=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{let{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o["".concat(n).concat(t,"-").concat(e)]={display:"none"},o["".concat(n,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:0},o["".concat(n).concat(t,"-order-").concat(e)]={order:0}):(o["".concat(n).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/r*100,"%"),maxWidth:"".concat(e/r*100,"%")}],o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-order-").concat(e)]={order:e});return o},s=(e,t)=>l(e,t),c=(e,t,n)=>({["@media (min-width: ".concat((0,r.bf)(t),")")]:Object.assign({},s(e,n))}),u=(0,o.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),d=(0,o.I$)("Grid",e=>{let t=(0,a.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>c(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},88707:function(e,t,n){n.d(t,{Z:function(){return em}});var r=n(64090),o=n(20383),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c=n(16480),u=n.n(c),d=n(50833),p=n(6976),f=n(80406),m=n(6787),g=n(47365),h=n(65127);function b(){return"function"==typeof BigInt}function v(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function y(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function E(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function S(e){var t=String(e);if(E(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(E(e)){if(e>Number.MAX_SAFE_INTEGER)return String(b()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":y("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),k=function(){function e(t){if((0,g.Z)(this,e),(0,d.Z)(this,"origin",""),(0,d.Z)(this,"number",void 0),(0,d.Z)(this,"empty",void 0),v(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,h.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}();function C(e){return b()?new O(e):new k(e)}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=y(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?T(C(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var A=n(90089),I=n(24800),N=n(74084),R=n(53850),_=n(76158),P=function(){var e=(0,r.useState)(!1),t=(0,f.Z)(e,2),n=t[0],o=t[1];return(0,I.Z)(function(){o((0,_.Z)())},[]),n},M=n(19223);function L(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,l=e.downDisabled,s=e.onStep,c=r.useRef(),p=r.useRef([]),f=r.useRef();f.current=s;var m=function(){clearTimeout(c.current)},g=function(e,t){e.preventDefault(),m(),f.current(t),c.current=setTimeout(function e(){f.current(t),c.current=setTimeout(e,200)},600)};if(r.useEffect(function(){return function(){m(),p.current.forEach(function(e){return M.Z.cancel(e)})}},[]),P())return null;var h="".concat(t,"-handler"),b=u()(h,"".concat(h,"-up"),(0,d.Z)({},"".concat(h,"-up-disabled"),i)),v=u()(h,"".concat(h,"-down"),(0,d.Z)({},"".concat(h,"-down-disabled"),l)),y=function(){return p.current.push((0,M.Z)(m))},E={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:b}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:v}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function D(e){var t="number"==typeof e?w(e):y(e).fullStr;return t.includes(".")?y(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var j=n(8002),F=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],B=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],U=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Z=function(e){var t=C(e);return t.isInvalidate()?null:t},z=r.forwardRef(function(e,t){var n,o,i,l,s,c=e.prefixCls,g=void 0===c?"rc-input-number":c,h=e.className,b=e.style,v=e.min,y=e.max,E=e.step,O=void 0===E?1:E,k=e.defaultValue,A=e.value,_=e.disabled,P=e.readOnly,j=e.upHandler,B=e.downHandler,z=e.keyboard,H=e.wheel,G=e.controls,$=(e.classNames,e.stringMode),W=e.parser,V=e.formatter,q=e.precision,Y=e.decimalSeparator,K=e.onChange,X=e.onInput,Q=e.onPressEnter,J=e.onStep,ee=e.changeOnBlur,et=void 0===ee||ee,en=(0,m.Z)(e,F),er="".concat(g,"-input"),eo=r.useRef(null),ea=r.useState(!1),ei=(0,f.Z)(ea,2),el=ei[0],es=ei[1],ec=r.useRef(!1),eu=r.useRef(!1),ed=r.useRef(!1),ep=r.useState(function(){return C(null!=A?A:k)}),ef=(0,f.Z)(ep,2),em=ef[0],eg=ef[1],eh=r.useCallback(function(e,t){return t?void 0:q>=0?q:Math.max(S(e),S(O))},[q,O]),eb=r.useCallback(function(e){var t=String(e);if(W)return W(t);var n=t;return Y&&(n=n.replace(Y,".")),n.replace(/[^\w.-]+/g,"")},[W,Y]),ev=r.useRef(""),ey=r.useCallback(function(e,t){if(V)return V(e,{userTyping:t,input:String(ev.current)});var n="number"==typeof e?w(e):e;if(!t){var r=eh(n,t);x(n)&&(Y||r>=0)&&(n=T(n,Y||".",r))}return n},[V,eh,Y]),eE=r.useState(function(){var e=null!=k?k:A;return em.isInvalidate()&&["string","number"].includes((0,p.Z)(e))?Number.isNaN(e)?"":e:ey(em.toString(),!1)}),eS=(0,f.Z)(eE,2),ew=eS[0],ex=eS[1];function eO(e,t){ex(ey(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ev.current=ew;var ek=r.useMemo(function(){return Z(y)},[y,q]),eC=r.useMemo(function(){return Z(v)},[v,q]),eT=r.useMemo(function(){return!(!ek||!em||em.isInvalidate())&&ek.lessEquals(em)},[ek,em]),eA=r.useMemo(function(){return!(!eC||!em||em.isInvalidate())&&em.lessEquals(eC)},[eC,em]),eI=(n=eo.current,o=(0,r.useRef)(null),[function(){try{var e=n.selectionStart,t=n.selectionEnd,r=n.value,a=r.substring(0,e),i=r.substring(t);o.current={start:e,end:t,value:r,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(n&&o.current&&el)try{var e=n.value,t=o.current,r=t.beforeTxt,a=t.afterTxt,i=t.start,l=e.length;if(e.endsWith(a))l=e.length-o.current.afterTxt.length;else if(e.startsWith(r))l=r.length;else{var s=r[i-1],c=e.indexOf(s,i-1);-1!==c&&(l=c+1)}n.setSelectionRange(l,l)}catch(e){(0,R.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),eN=(0,f.Z)(eI,2),eR=eN[0],e_=eN[1],eP=function(e){return ek&&!e.lessEquals(ek)?ek:eC&&!eC.lessEquals(e)?eC:null},eM=function(e){return!eP(e)},eL=function(e,t){var n=e,r=eM(n)||n.isEmpty();if(n.isEmpty()||t||(n=eP(n)||n,r=!0),!P&&!_&&r){var o,a=n.toString(),i=eh(a,t);return i>=0&&!eM(n=C(T(a,".",i)))&&(n=C(T(a,".",i,!0))),n.equals(em)||(o=n,void 0===A&&eg(o),null==K||K(n.isEmpty()?null:U($,n)),void 0===A&&eO(n,t)),n}return em},eD=(i=(0,r.useRef)(0),l=function(){M.Z.cancel(i.current)},(0,r.useEffect)(function(){return l},[]),function(e){l(),i.current=(0,M.Z)(function(){e()})}),ej=function e(t){if(eR(),ev.current=t,ex(t),!eu.current){var n=C(eb(t));n.isNaN()||eL(n,!0)}null==X||X(t),eD(function(){var n=t;W||(n=t.replace(/。/g,".")),n!==t&&e(n)})},eF=function(e){if((!e||!eT)&&(e||!eA)){ec.current=!1;var t,n=C(ed.current?D(O):O);e||(n=n.negate());var r=eL((em||C(0)).add(n.toString()),!1);null==J||J(U($,r),{offset:ed.current?D(O):O,type:e?"up":"down"}),null===(t=eo.current)||void 0===t||t.focus()}},eB=function(e){var t=C(eb(ew)),n=t;n=t.isNaN()?eL(em,e):eL(t,e),void 0!==A?eO(em,!1):n.isNaN()||eO(n,!1)};return r.useEffect(function(){var e=function(e){!1!==H&&(eF(e.deltaY<0),e.preventDefault())},t=eo.current;if(t)return t.addEventListener("wheel",e),function(){return t.removeEventListener("wheel",e)}},[eF]),(0,I.o)(function(){em.isInvalidate()||eO(em,!1)},[q,V]),(0,I.o)(function(){var e=C(A);eg(e);var t=C(eb(ew));e.equals(t)&&ec.current&&!V||eO(e,ec.current)},[A]),(0,I.o)(function(){V&&e_()},[ew]),r.createElement("div",{className:u()(g,h,(s={},(0,d.Z)(s,"".concat(g,"-focused"),el),(0,d.Z)(s,"".concat(g,"-disabled"),_),(0,d.Z)(s,"".concat(g,"-readonly"),P),(0,d.Z)(s,"".concat(g,"-not-a-number"),em.isNaN()),(0,d.Z)(s,"".concat(g,"-out-of-range"),!em.isInvalidate()&&!eM(em)),s)),style:b,onFocus:function(){es(!0)},onBlur:function(){et&&eB(!1),es(!1),ec.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;ec.current=!0,ed.current=n,"Enter"===t&&(eu.current||(ec.current=!1),eB(!1),null==Q||Q(e)),!1!==z&&!eu.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eF("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){ec.current=!1,ed.current=!1},onCompositionStart:function(){eu.current=!0},onCompositionEnd:function(){eu.current=!1,ej(eo.current.value)},onBeforeInput:function(){ec.current=!0}},(void 0===G||G)&&r.createElement(L,{prefixCls:g,upNode:j,downNode:B,upDisabled:eT,downDisabled:eA,onStep:eF}),r.createElement("div",{className:"".concat(er,"-wrap")},r.createElement("input",(0,a.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":em.isInvalidate()?null:em.toString(),step:O},en,{ref:(0,N.sQ)(eo,t),className:er,value:ew,onChange:function(e){ej(e.target.value)},disabled:_,readOnly:P}))))}),H=r.forwardRef(function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,f=e.classNames,g=(0,m.Z)(e,B),h=r.useRef(null);return r.createElement(A.Q,{className:p,triggerFocus:function(e){h.current&&(0,j.nH)(h.current,e)},prefixCls:i,value:l,disabled:n,style:o,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},r.createElement(z,(0,a.Z)({prefixCls:i,disabled:n,ref:(0,N.sQ)(h,t),className:null==f?void 0:f.input},g)))});H.displayName="InputNumber";var G=n(47794),$=n(57499),W=n(54165),V=n(17094),q=n(92935),Y=n(10693),K=n(47137),X=n(8443),Q=n(92801),J=n(8985),ee=n(94759),et=n(85980),en=n(61892),er=n(11303),eo=n(12288),ea=n(76585),ei=n(80316),el=n(6336);let es=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e,a="lg"===t?o:r;return{["&-".concat(t)]:{["".concat(n,"-handler-wrap")]:{borderStartEndRadius:a,borderEndEndRadius:a},["".concat(n,"-handler-up")]:{borderStartEndRadius:a},["".concat(n,"-handler-down")]:{borderEndEndRadius:a}}}},ec=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:b,handleBg:v,handleActiveBg:y,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:w,controlWidth:x,handleOpacity:O,handleBorderColor:k,filledHandleBg:C,lineHeightLG:T,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.ik)(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:o}),(0,en.qG)(e,{["".concat(t,"-handler-wrap")]:{background:v,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}}})),(0,en.H8)(e,{["".concat(t,"-handler-wrap")]:{background:C,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}},"&:focus-within":{["".concat(t,"-handler-wrap")]:{background:v}}})),(0,en.Mu)(e)),{"&-rtl":{direction:"rtl",["".concat(t,"-input")]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:w,["input".concat(t,"-input")]:{height:A(i).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(d)," ").concat((0,J.bf)(p))}},"&-sm":{padding:0,borderRadius:S,["input".concat(t,"-input")]:{height:A(l).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(u)," ").concat((0,J.bf)(c))}},"&-out-of-range":{["".concat(t,"-input-wrap")]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",["".concat(t,"-affix-wrapper")]:{width:"100%"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:S}}},(0,en.ir)(e)),(0,en.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled ".concat(t,"-input")]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),{width:"100%",padding:"".concat((0,J.bf)(b)," ").concat((0,J.bf)(h)),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:"all ".concat(m," linear"),appearance:"textfield",fontSize:"inherit"}),(0,ee.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({["&:hover ".concat(t,"-handler-wrap, &-focused ").concat(t,"-handler-wrap")]:{opacity:1},["".concat(t,"-handler-wrap")]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity ".concat(m," linear ").concat(m),["".concat(t,"-handler")]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},["".concat(t,"-handler")]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k),transition:"all ".concat(m," linear"),"&:active":{background:y},"&:hover":{height:"60%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,er.Ro)()),{color:f,transition:"all ".concat(m," linear"),userSelect:"none"})},["".concat(t,"-handler-up")]:{borderStartEndRadius:o},["".concat(t,"-handler-down")]:{borderEndEndRadius:o}},es(e,"lg")),es(e,"sm")),{"&-disabled, &-readonly":{["".concat(t,"-handler-wrap")]:{display:"none"},["".concat(t,"-input")]:{color:"inherit"}},["\n ".concat(t,"-handler-up-disabled,\n ").concat(t,"-handler-down-disabled\n ")]:{cursor:"not-allowed"},["\n ".concat(t,"-handler-up-disabled:hover &-handler-up-inner,\n ").concat(t,"-handler-down-disabled:hover &-handler-down-inner\n ")]:{color:E}})}]},eu=e=>{let{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign({["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(n)," 0")}},(0,ee.ik)(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(u)," 0")}},"&-sm":{borderRadius:l,paddingInlineStart:c,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(d)," 0")}},["&:not(".concat(t,"-disabled):hover")]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > ".concat(t,"-disabled")]:{background:"transparent"},["> div".concat(t)]:{width:"100%",border:"none",outline:"none",["&".concat(t,"-focused")]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t,"-handler-wrap")]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}};var ed=(0,ea.I$)("InputNumber",e=>{let t=(0,ei.TS)(e,(0,et.e)(e));return[ec(t),eu(t),(0,eo.c)(t)]},e=>{var t;let n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,et.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new el.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})},{unitless:{handleOpacity:!0}}),ep=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ef=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:a}=r.useContext($.E_),i=r.useRef(null);r.useImperativeHandle(t,()=>i.current);let{className:l,rootClassName:c,size:d,disabled:p,prefixCls:f,addonBefore:m,addonAfter:g,prefix:h,bordered:b,readOnly:v,status:y,controls:E,variant:S}=e,w=ep(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),x=n("input-number",f),O=(0,q.Z)(x),[k,C,T]=ed(x,O),{compactSize:A,compactItemClassnames:I}=(0,Q.ri)(x,a),N=r.createElement(s,{className:"".concat(x,"-handler-up-inner")}),R=r.createElement(o.Z,{className:"".concat(x,"-handler-down-inner")});"object"==typeof E&&(N=void 0===E.upIcon?N:r.createElement("span",{className:"".concat(x,"-handler-up-inner")},E.upIcon),R=void 0===E.downIcon?R:r.createElement("span",{className:"".concat(x,"-handler-down-inner")},E.downIcon));let{hasFeedback:_,status:P,isFormItemInput:M,feedbackIcon:L}=r.useContext(K.aM),D=(0,G.F)(P,y),j=(0,Y.Z)(e=>{var t;return null!==(t=null!=d?d:A)&&void 0!==t?t:e}),F=r.useContext(V.Z),[B,U]=(0,X.Z)(S,b),Z=_&&r.createElement(r.Fragment,null,L),z=u()({["".concat(x,"-lg")]:"large"===j,["".concat(x,"-sm")]:"small"===j,["".concat(x,"-rtl")]:"rtl"===a,["".concat(x,"-in-form-item")]:M},C),W="".concat(x,"-group");return k(r.createElement(H,Object.assign({ref:i,disabled:null!=p?p:F,className:u()(T,O,l,c,I),upHandler:N,downHandler:R,prefixCls:x,readOnly:v,controls:"boolean"==typeof E?E:void 0,prefix:h,suffix:Z,addonAfter:g&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},g)),addonBefore:m&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},m)),classNames:{input:z,variant:u()({["".concat(x,"-").concat(B)]:U},(0,G.Z)(x,D,_)),affixWrapper:u()({["".concat(x,"-affix-wrapper-sm")]:"small"===j,["".concat(x,"-affix-wrapper-lg")]:"large"===j,["".concat(x,"-affix-wrapper-rtl")]:"rtl"===a},C),wrapper:u()({["".concat(W,"-rtl")]:"rtl"===a},C),groupWrapper:u()({["".concat(x,"-group-wrapper-sm")]:"small"===j,["".concat(x,"-group-wrapper-lg")]:"large"===j,["".concat(x,"-group-wrapper-rtl")]:"rtl"===a,["".concat(x,"-group-wrapper-").concat(B)]:U},(0,G.Z)("".concat(x,"-group-wrapper"),D,_),C)}},w)))});ef._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(W.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(ef,Object.assign({},e)));var em=ef},88921:function(e,t,n){n.d(t,{Z:function(){return w},n:function(){return S}});var r=n(64090),o=n(16480),a=n.n(o),i=n(90089),l=n(74084),s=n(47794),c=n(57499),u=n(17094),d=n(10693),p=n(47137),f=n(92801),m=n(52274),g=n(94759),h=n(92935),b=n(8443),v=n(77136),y=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(v.Z,null)}),t},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function S(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var w=(0,r.forwardRef)((e,t)=>{var n;let{prefixCls:o,bordered:v=!0,status:S,size:w,disabled:x,onBlur:O,onFocus:k,suffix:C,allowClear:T,addonAfter:A,addonBefore:I,className:N,style:R,styles:_,rootClassName:P,onChange:M,classNames:L,variant:D}=e,j=E(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:F,direction:B,input:U}=r.useContext(c.E_),Z=F("input",o),z=(0,r.useRef)(null),H=(0,h.Z)(Z),[G,$,W]=(0,g.ZP)(Z,H),{compactSize:V,compactItemClassnames:q}=(0,f.ri)(Z,B),Y=(0,d.Z)(e=>{var t;return null!==(t=null!=w?w:V)&&void 0!==t?t:e}),K=r.useContext(u.Z),{status:X,hasFeedback:Q,feedbackIcon:J}=(0,r.useContext)(p.aM),ee=(0,s.F)(X,S),et=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!Q;(0,r.useRef)(et);let en=(0,m.Z)(z,!0),er=(Q||C)&&r.createElement(r.Fragment,null,C,Q&&J),eo=y(T),[ea,ei]=(0,b.Z)(D,v);return G(r.createElement(i.Z,Object.assign({ref:(0,l.sQ)(t,z),prefixCls:Z,autoComplete:null==U?void 0:U.autoComplete},j,{disabled:null!=x?x:K,onBlur:e=>{en(),null==O||O(e)},onFocus:e=>{en(),null==k||k(e)},style:Object.assign(Object.assign({},null==U?void 0:U.style),R),styles:Object.assign(Object.assign({},null==U?void 0:U.styles),_),suffix:er,allowClear:eo,className:a()(N,P,W,H,q,null==U?void 0:U.className),onChange:e=>{en(),null==M||M(e)},addonAfter:A&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},A)),addonBefore:I&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},L),null==U?void 0:U.classNames),{input:a()({["".concat(Z,"-sm")]:"small"===Y,["".concat(Z,"-lg")]:"large"===Y,["".concat(Z,"-rtl")]:"rtl"===B},null==L?void 0:L.input,null===(n=null==U?void 0:U.classNames)||void 0===n?void 0:n.input,$),variant:a()({["".concat(Z,"-").concat(ea)]:ei},(0,s.Z)(Z,ee)),affixWrapper:a()({["".concat(Z,"-affix-wrapper-sm")]:"small"===Y,["".concat(Z,"-affix-wrapper-lg")]:"large"===Y,["".concat(Z,"-affix-wrapper-rtl")]:"rtl"===B},$),wrapper:a()({["".concat(Z,"-group-rtl")]:"rtl"===B},$),groupWrapper:a()({["".concat(Z,"-group-wrapper-sm")]:"small"===Y,["".concat(Z,"-group-wrapper-lg")]:"large"===Y,["".concat(Z,"-group-wrapper-rtl")]:"rtl"===B,["".concat(Z,"-group-wrapper-").concat(ea)]:ei},(0,s.Z)("".concat(Z,"-group-wrapper"),ee,Q),$)})})))})},78578:function(e,t,n){n.d(t,{Z:function(){return F}});var r,o=n(64090),a=n(77136),i=n(16480),l=n.n(i),s=n(14749),c=n(50833),u=n(5239),d=n(63787),p=n(80406),f=n(6787),m=n(90089),g=n(44607),h=n(8002),b=n(44329),v=n(6976),y=n(46505),E=n(24800),S=n(19223),w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={},O=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=o.forwardRef(function(e,t){var n=e.prefixCls,a=(e.onPressEnter,e.defaultValue),i=e.value,d=e.autoSize,m=e.onResize,g=e.className,h=e.style,k=e.disabled,C=e.onChange,T=(e.onInternalAutoSize,(0,f.Z)(e,O)),A=(0,b.Z)(a,{value:i,postState:function(e){return null!=e?e:""}}),I=(0,p.Z)(A,2),N=I[0],R=I[1],_=o.useRef();o.useImperativeHandle(t,function(){return{textArea:_.current}});var P=o.useMemo(function(){return d&&"object"===(0,v.Z)(d)?[d.minRows,d.maxRows]:[]},[d]),M=(0,p.Z)(P,2),L=M[0],D=M[1],j=!!d,F=function(){try{if(document.activeElement===_.current){var e=_.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;_.current.setSelectionRange(t,n),_.current.scrollTop=r}}catch(e){}},B=o.useState(2),U=(0,p.Z)(B,2),Z=U[0],z=U[1],H=o.useState(),G=(0,p.Z)(H,2),$=G[0],W=G[1],V=function(){z(0)};(0,E.Z)(function(){j&&V()},[i,L,D,j]),(0,E.Z)(function(){if(0===Z)z(1);else if(1===Z){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:w.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(x[n]=l),l}(e,n),l=i.paddingSize,s=i.borderSize,c=i.boxSizing,u=i.sizingStyle;r.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=l),null!==o||null!==a){r.value=" ";var m=r.scrollHeight-l;null!==o&&(d=m*o,"border-box"===c&&(d=d+l+s),f=Math.max(d,f)),null!==a&&(p=m*a,"border-box"===c&&(p=p+l+s),t=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:t,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(_.current,!1,L,D);z(2),W(e)}else F()},[Z]);var q=o.useRef(),Y=function(){S.Z.cancel(q.current)};o.useEffect(function(){return Y},[]);var K=(0,u.Z)((0,u.Z)({},h),j?$:null);return(0===Z||1===Z)&&(K.overflowY="hidden",K.overflowX="hidden"),o.createElement(y.Z,{onResize:function(e){2===Z&&(null==m||m(e),d&&(Y(),q.current=(0,S.Z)(function(){V()})))},disabled:!(d||m)},o.createElement("textarea",(0,s.Z)({},T,{ref:_,style:K,className:l()(n,g,(0,c.Z)({},"".concat(n,"-disabled"),k)),disabled:k,value:N,onChange:function(e){R(e.target.value),null==C||C(e)}})))}),C=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],T=o.forwardRef(function(e,t){var n,r,a,i=e.defaultValue,v=e.value,y=e.onFocus,E=e.onBlur,S=e.onChange,w=e.allowClear,x=e.maxLength,O=e.onCompositionStart,T=e.onCompositionEnd,A=e.suffix,I=e.prefixCls,N=void 0===I?"rc-textarea":I,R=e.showCount,_=e.count,P=e.className,M=e.style,L=e.disabled,D=e.hidden,j=e.classNames,F=e.styles,B=e.onResize,U=(0,f.Z)(e,C),Z=(0,b.Z)(i,{value:v,defaultValue:i}),z=(0,p.Z)(Z,2),H=z[0],G=z[1],$=null==H?"":String(H),W=o.useState(!1),V=(0,p.Z)(W,2),q=V[0],Y=V[1],K=o.useRef(!1),X=o.useState(null),Q=(0,p.Z)(X,2),J=Q[0],ee=Q[1],et=(0,o.useRef)(null),en=function(){var e;return null===(e=et.current)||void 0===e?void 0:e.textArea},er=function(){en().focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:et.current,focus:er,blur:function(){en().blur()}}}),(0,o.useEffect)(function(){Y(function(e){return!L&&e})},[L]);var eo=o.useState(null),ea=(0,p.Z)(eo,2),ei=ea[0],el=ea[1];o.useEffect(function(){if(ei){var e;(e=en()).setSelectionRange.apply(e,(0,d.Z)(ei))}},[ei]);var es=(0,g.Z)(_,R),ec=null!==(n=es.max)&&void 0!==n?n:x,eu=Number(ec)>0,ed=es.strategy($),ep=!!ec&&ed>ec,ef=function(e,t){var n=t;!K.current&&es.exceedFormatter&&es.max&&es.strategy(t)>es.max&&(n=es.exceedFormatter(t,{max:es.max}),t!==n&&el([en().selectionStart||0,en().selectionEnd||0])),G(n),(0,h.rJ)(e.currentTarget,e,S,n)},em=A;es.show&&(a=es.showFormatter?es.showFormatter({value:$,count:ed,maxLength:ec}):"".concat(ed).concat(eu?" / ".concat(ec):""),em=o.createElement(o.Fragment,null,em,o.createElement("span",{className:l()("".concat(N,"-data-count"),null==j?void 0:j.count),style:null==F?void 0:F.count},a)));var eg=!U.autoSize&&!R&&!w;return o.createElement(m.Q,{value:$,allowClear:w,handleReset:function(e){G(""),er(),(0,h.rJ)(en(),e,S)},suffix:em,prefixCls:N,classNames:(0,u.Z)((0,u.Z)({},j),{},{affixWrapper:l()(null==j?void 0:j.affixWrapper,(r={},(0,c.Z)(r,"".concat(N,"-show-count"),R),(0,c.Z)(r,"".concat(N,"-textarea-allow-clear"),w),r))}),disabled:L,focused:q,className:l()(P,ep&&"".concat(N,"-out-of-range")),style:(0,u.Z)((0,u.Z)({},M),J&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof a?a:void 0}},hidden:D},o.createElement(k,(0,s.Z)({},U,{maxLength:x,onKeyDown:function(e){var t=U.onPressEnter,n=U.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){ef(e,e.target.value)},onFocus:function(e){Y(!0),null==y||y(e)},onBlur:function(e){Y(!1),null==E||E(e)},onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:function(e){K.current=!1,ef(e,e.currentTarget.value),null==T||T(e)},className:l()(null==j?void 0:j.textarea),style:(0,u.Z)((0,u.Z)({},null==F?void 0:F.textarea),{},{resize:null==M?void 0:M.resize}),disabled:L,prefixCls:N,onResize:function(e){var t;null==B||B(e),null!==(t=en())&&void 0!==t&&t.style.height&&ee(!0)},ref:et})))}),A=n(47794),I=n(57499),N=n(17094),R=n(10693),_=n(47137),P=n(88921),M=n(94759),L=n(92935),D=n(8443),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},F=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:i,bordered:s=!0,size:c,disabled:u,status:d,allowClear:p,classNames:f,rootClassName:m,className:g,variant:h}=e,b=j(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:v,direction:y}=o.useContext(I.E_),E=(0,R.Z)(c),S=o.useContext(N.Z),{status:w,hasFeedback:x,feedbackIcon:O}=o.useContext(_.aM),k=(0,A.F)(w,d),C=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,P.n)(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}});let F=v("input",i);"object"==typeof p&&(null==p?void 0:p.clearIcon)?r=p:p&&(r={clearIcon:o.createElement(a.Z,null)});let B=(0,L.Z)(F),[U,Z,z]=(0,M.ZP)(F,B),[H,G]=(0,D.Z)(h,s);return U(o.createElement(T,Object.assign({},b,{disabled:null!=u?u:S,allowClear:r,className:l()(z,B,g,m),classNames:Object.assign(Object.assign({},f),{textarea:l()({["".concat(F,"-sm")]:"small"===E,["".concat(F,"-lg")]:"large"===E},Z,null==f?void 0:f.textarea),variant:l()({["".concat(F,"-").concat(H)]:G},(0,A.Z)(F,k)),affixWrapper:l()("".concat(F,"-textarea-affix-wrapper"),{["".concat(F,"-affix-wrapper-rtl")]:"rtl"===y,["".concat(F,"-affix-wrapper-sm")]:"small"===E,["".concat(F,"-affix-wrapper-lg")]:"large"===E,["".concat(F,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},Z)}),prefixCls:F,suffix:x&&o.createElement("span",{className:"".concat(F,"-textarea-suffix")},O),ref:C})))})},52274:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);function o(e,t){let n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}},44839:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(47137),s=n(94759),c=n(88921),u=n(14749),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=n(60688),f=r.forwardRef(function(e,t){return r.createElement(p.Z,(0,u.Z)({},e,{ref:t,icon:d}))}),m=n(41311),g=n(35704),h=n(74084),b=n(52274),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=e=>e?r.createElement(m.Z,null):r.createElement(f,null),E={click:"onClick",hover:"onMouseOver"},S=r.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[l,s]=(0,r.useState)(()=>!!o&&n.visible),u=(0,r.useRef)(null);r.useEffect(()=>{o&&s(n.visible)},[o,n]);let d=(0,b.Z)(u),p=()=>{let{disabled:t}=e;t||(l&&d(),s(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:f,prefixCls:m,inputPrefixCls:S,size:w}=e,x=v(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=r.useContext(i.E_),k=O("input",S),C=O("input-password",m),T=n&&(t=>{let{action:n="click",iconRender:o=y}=e,a=E[n]||"",i=o(l);return r.cloneElement(r.isValidElement(i)?i:r.createElement("span",null,i),{[a]:p,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}})})(C),A=a()(C,f,{["".concat(C,"-").concat(w)]:!!w}),I=Object.assign(Object.assign({},(0,g.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:A,prefixCls:k,suffix:T});return w&&(I.size=w),r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(t,u)},I))});var w=n(96871),x=n(65823),O=n(1861),k=n(10693),C=n(92801),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=r.forwardRef((e,t)=>{let n;let{prefixCls:o,inputPrefixCls:l,className:s,size:u,suffix:d,enterButton:p=!1,addonAfter:f,loading:m,disabled:g,onSearch:b,onChange:v,onCompositionStart:y,onCompositionEnd:E}=e,S=T(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:A,direction:I}=r.useContext(i.E_),N=r.useRef(!1),R=A("input-search",o),_=A("input",l),{compactSize:P}=(0,C.ri)(R,I),M=(0,k.Z)(e=>{var t;return null!==(t=null!=u?u:P)&&void 0!==t?t:e}),L=r.useRef(null),D=e=>{var t;document.activeElement===(null===(t=L.current)||void 0===t?void 0:t.input)&&e.preventDefault()},j=e=>{var t,n;b&&b(null===(n=null===(t=L.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},F="boolean"==typeof p?r.createElement(w.Z,null):null,B="".concat(R,"-button"),U=p||{},Z=U.type&&!0===U.type.__ANT_BUTTON;n=Z||"button"===U.type?(0,x.Tm)(U,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==U?void 0:U.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),j(e)},key:"enterButton"},Z?{className:B,size:M}:{})):r.createElement(O.ZP,{className:B,type:p?"primary":void 0,size:M,disabled:g,key:"enterButton",onMouseDown:D,onClick:j,loading:m,icon:F},p),f&&(n=[n,(0,x.Tm)(f,{key:"addonAfter"})]);let z=a()(R,{["".concat(R,"-rtl")]:"rtl"===I,["".concat(R,"-").concat(M)]:!!M,["".concat(R,"-with-button")]:!!p},s);return r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(L,t),onPressEnter:e=>{N.current||m||j(e)}},S,{size:M,onCompositionStart:e=>{N.current=!0,null==y||y(e)},onCompositionEnd:e=>{N.current=!1,null==E||E(e)},prefixCls:_,addonAfter:n,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),v&&v(e)},className:z,disabled:g}))});var I=n(78578);let N=c.Z;N.Group=e=>{let{getPrefixCls:t,direction:n}=(0,r.useContext)(i.E_),{prefixCls:o,className:c}=e,u=t("input-group",o),d=t("input"),[p,f]=(0,s.ZP)(d),m=a()(u,{["".concat(u,"-lg")]:"large"===e.size,["".concat(u,"-sm")]:"small"===e.size,["".concat(u,"-compact")]:e.compact,["".concat(u,"-rtl")]:"rtl"===n},f,c),g=(0,r.useContext)(l.aM),h=(0,r.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return p(r.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(l.aM.Provider,{value:h},e.children)))},N.Search=A,N.TextArea=I.Z,N.Password=S;var R=N},94759:function(e,t,n){n.d(t,{ik:function(){return f},nz:function(){return u},s7:function(){return m}});var r=n(8985),o=n(11303),a=n(12288),i=n(76585),l=n(80316),s=n(85980),c=n(61892);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:"".concat((0,r.bf)(t)," ").concat((0,r.bf)(a)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},p=e=>({padding:"".concat((0,r.bf)(e.paddingBlockSM)," ").concat((0,r.bf)(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat((0,r.bf)(e.paddingBlock)," ").concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},u(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},d(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},p(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat((0,r.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),f(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat((0,r.bf)(e.inputAffixPadding))}}}},b=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},f(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{["".concat(l).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:i}}})}},v=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},(0,c.ir)(e)),(0,c.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{let{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover,&:focus,&:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},E=e=>{let{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{["> ".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(r,"-has-feedback")]:{["".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},S=e=>{let{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}};t.ZP=(0,i.I$)("Input",e=>{let t=(0,l.TS)(e,(0,s.e)(e));return[g(t),E(t),b(t),v(t),y(t),S(t),(0,a.c)(t)]},s.T)},85980:function(e,t,n){n.d(t,{T:function(){return a},e:function(){return o}});var r=n(80316);function o(e){return(0,r.TS)(e,{inputAffixPadding:e.paddingXXS})}let a=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:"0 0 0 ".concat(g,"px ").concat(h),errorActiveShadow:"0 0 0 ".concat(g,"px ").concat(b),warningActiveShadow:"0 0 0 ".concat(g,"px ").concat(v),hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}}},61892:function(e,t,n){n.d(t,{H8:function(){return g},Mu:function(){return p},S5:function(){return b},ir:function(){return d},qG:function(){return c}});var r=n(8985),o=n(80316);let a=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},a((0,o.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},l(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},i(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),f=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},f(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})})},8407:function(e,t,n){let r;n.d(t,{D:function(){return E},Z:function(){return w}});var o=n(64090),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},l=n(60688),s=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},u=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(50459),p=n(16480),f=n.n(p),m=n(35704),g=e=>!isNaN(parseFloat(e))&&isFinite(e),h=n(57499),b=n(31747),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=o.createContext({}),S=(r=0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r+=1,"".concat(e).concat(r)});var w=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:l=!1,theme:c="dark",style:p={},collapsible:w=!1,reverseArrow:x=!1,width:O=200,collapsedWidth:k=80,zeroWidthTriggerStyle:C,breakpoint:T,onCollapse:A,onBreakpoint:I}=e,N=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:R}=(0,o.useContext)(b.V),[_,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[M,L]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);let D=(t,n)=>{"collapsed"in e||P(t),null==A||A(t,n)},j=(0,o.useRef)();j.current=e=>{L(e.matches),null==I||I(e.matches),_!==e.matches&&D(e.matches,"responsive")},(0,o.useEffect)(()=>{let e;function t(e){return j.current(e)}{let{matchMedia:n}=window;if(n&&T&&T in y){e=n("screen and (max-width: ".concat(y[T],")"));try{e.addEventListener("change",t)}catch(n){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(n){null==e||e.removeListener(t)}}},[T]),(0,o.useEffect)(()=>{let e=S("ant-sider-");return R.addSider(e),()=>R.removeSider(e)},[]);let F=()=>{D(!_,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(h.E_),U=o.useMemo(()=>({siderCollapsed:_}),[_]);return o.createElement(E.Provider,{value:U},(()=>{let e=B("layout-sider",n),l=(0,m.Z)(N,["collapsed"]),h=_?k:O,b=g(h)?"".concat(h,"px"):String(h),v=0===parseFloat(String(k||0))?o.createElement("span",{onClick:F,className:f()("".concat(e,"-zero-width-trigger"),"".concat(e,"-zero-width-trigger-").concat(x?"right":"left")),style:C},a||o.createElement(s,null)):null,y={expanded:x?o.createElement(d.Z,null):o.createElement(u,null),collapsed:x?o.createElement(u,null):o.createElement(d.Z,null)}[_?"collapsed":"expanded"],E=null!==a?v||o.createElement("div",{className:"".concat(e,"-trigger"),onClick:F,style:{width:b}},a||y):null,S=Object.assign(Object.assign({},p),{flex:"0 0 ".concat(b),maxWidth:b,minWidth:b,width:b}),T=f()(e,"".concat(e,"-").concat(c),{["".concat(e,"-collapsed")]:!!_,["".concat(e,"-has-trigger")]:w&&null!==a&&!v,["".concat(e,"-below")]:!!M,["".concat(e,"-zero-width")]:0===parseFloat(b)},r);return o.createElement("aside",Object.assign({className:T},l,{style:S,ref:t}),o.createElement("div",{className:"".concat(e,"-children")},i),w||M&&v?E:null)})())})},31747:function(e,t,n){n.d(t,{V:function(){return r}});let r=n(64090).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},33509:function(e,t,n){n.d(t,{default:function(){return k}});var r=n(63787),o=n(64090),a=n(16480),i=n.n(a),l=n(35704),s=n(57499),c=n(31747),u=n(33054),d=n(8407),p=n(8985),f=n(76585),m=e=>{let{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{["".concat(t,"-sider-light")]:{background:r,["".concat(t,"-sider-trigger")]:{color:a,background:o},["".concat(t,"-sider-zero-width-trigger")]:{color:a,background:o,border:"1px solid ".concat(n),borderInlineStart:0}}}};let g=e=>{let{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:v,borderRadius:y,bodyBg:E,headerBg:S,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(h,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:(0,p.bf)(d),textAlign:"center",background:i,cursor:"pointer",transition:"all ".concat(h)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(b," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(b),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},m(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:l,padding:s,color:c,lineHeight:(0,p.bf)(l),background:S,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:r,fontSize:v,background:a},["".concat(n,"-content")]:{flex:"auto",minHeight:0}}};var h=(0,f.I$)("Layout",e=>[g(e)],e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(c,"px"),headerColor:o,footerPadding:"".concat(a,"px ").concat(c,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef((r,a)=>o.createElement(e,Object.assign({ref:a,suffixCls:t,tagName:n},r)))}let y=o.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=b(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=o.useContext(s.E_),d=u("layout",n),[p,f,m]=h(d),g=r?"".concat(d,"-").concat(r):d;return p(o.createElement(l,Object.assign({className:i()(n||g,a,f,m),ref:t},c)))}),E=o.forwardRef((e,t)=>{let{direction:n}=o.useContext(s.E_),[a,p]=o.useState([]),{prefixCls:f,className:m,rootClassName:g,children:v,hasSider:y,tagName:E,style:S}=e,w=b(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,l.Z)(w,["suffixCls"]),{getPrefixCls:O,layout:k}=o.useContext(s.E_),C=O("layout",f),T="boolean"==typeof y?y:!!a.length||(0,u.Z)(v).some(e=>e.type===d.Z),[A,I,N]=h(C),R=i()(C,{["".concat(C,"-has-sider")]:T,["".concat(C,"-rtl")]:"rtl"===n},null==k?void 0:k.className,m,g,I,N),_=o.useMemo(()=>({siderHook:{addSider:e=>{p(t=>[].concat((0,r.Z)(t),[e]))},removeSider:e=>{p(t=>t.filter(t=>t!==e))}}}),[]);return A(o.createElement(c.V.Provider,{value:_},o.createElement(E,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},null==k?void 0:k.style),S)},x),v)))}),S=v({tagName:"div",displayName:"Layout"})(E),w=v({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=v({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),O=v({suffixCls:"content",tagName:"main",displayName:"Content"})(y);S.Header=w,S.Footer=x,S.Content=O,S.Sider=d.Z,S._InternalSiderContext=d.D;var k=S},33302:function(e,t,n){let r=(0,n(64090).createContext)(void 0);t.Z=r},79474:function(e,t,n){n.d(t,{Z:function(){return i}});var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let o={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},r)},a="${label} is not a valid ${type}";var i={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:o,TimePicker:r,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},70595:function(e,t,n){var r=n(64090),o=n(33302),a=n(79474);t.Z=(e,t)=>{let n=r.useContext(o.Z);return[r.useMemo(()=>{var r;let o=t||a.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?a.Z.locale:e},[n])]}},81642:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(64090),o=n(48563),a=n(92801),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let l=r.createContext(null),s=r.forwardRef((e,t)=>{let{children:n}=e,s=i(e,["children"]),c=r.useContext(l),u=r.useMemo(()=>Object.assign(Object.assign({},c),s),[c,s.prefixCls,s.mode,s.selectable,s.rootClassName]),d=(0,o.t4)(n),p=(0,o.x1)(t,d?n.ref:null);return r.createElement(l.Provider,{value:u},r.createElement(a.BR,null,d?r.cloneElement(n,{ref:p}):n))});t.Z=l},95781:function(e,t,n){n.d(t,{Z:function(){return tg}});var r=n(64090),o=n(14749),a=n(50833),i=n(5239),l=n(63787),s=n(80406),c=n(6787),u=n(16480),d=n.n(u),p=n(54739),f=n(44329),m=n(92536),g=n(53850),h=n(89542),b=r.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(r.useContext(b),e)}var E=n(61475),S=["children","locked"],w=r.createContext(null);function x(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,S),a=r.useContext(w),l=(0,E.Z)(function(){var e;return e=(0,i.Z)({},a),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[a,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,m.Z)(e[1],t[1],!0))});return r.createElement(w.Provider,{value:l},t)}var O=r.createContext(null);function k(){return r.useContext(O)}var C=r.createContext([]);function T(e){var t=r.useContext(C);return r.useMemo(function(){return void 0!==e?[].concat((0,l.Z)(t),[e]):t},[t,e])}var A=r.createContext(null),I=r.createContext({}),N=n(73193);function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var _=n(4295),P=n(19223),M=_.Z.LEFT,L=_.Z.RIGHT,D=_.Z.UP,j=_.Z.DOWN,F=_.Z.ENTER,B=_.Z.ESC,U=_.Z.HOME,Z=_.Z.END,z=[D,j,M,L];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,l.Z)(e.querySelectorAll("*")).filter(function(e){return R(e,t)});return R(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var $=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(v(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},W="__RC_UTIL_PATH_SPLIT__",V=function(e){return e.join(W)},q="rc-menu-more";function Y(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(O.motionAppear=!1);var k=O.onVisibleChanged;return(O.onVisibleChanged=function(e){return h.current||e||E(!0),null==k?void 0:k(e)},y)?null:r.createElement(x,{mode:c,locked:!h.current},r.createElement(eC.ZP,(0,o.Z)({visible:S},O,{forceRender:p,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(e){var n=e.className,o=e.style;return r.createElement(eh,{id:t,className:n,style:o},l)}))}var eA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eI=["active"],eN=function(e){var t,n=e.style,l=e.className,u=e.title,f=e.eventKey,m=(e.warnKey,e.disabled),g=e.internalPopupClose,h=e.children,b=e.itemIcon,v=e.expandIcon,E=e.popupClassName,S=e.popupOffset,O=e.popupStyle,k=e.onClick,C=e.onMouseEnter,N=e.onMouseLeave,R=e.onTitleClick,_=e.onTitleMouseEnter,P=e.onTitleMouseLeave,M=(0,c.Z)(e,eA),L=y(f),D=r.useContext(w),j=D.prefixCls,F=D.mode,B=D.openKeys,U=D.disabled,Z=D.overflowDisabled,z=D.activeKey,H=D.selectedKeys,G=D.itemIcon,$=D.expandIcon,W=D.onItemClick,V=D.onOpenChange,q=D.onActive,K=r.useContext(I)._internalRenderSubMenuItem,X=r.useContext(A).isSubPathKey,Q=T(),J="".concat(j,"-submenu"),ee=U||m,et=r.useRef(),en=r.useRef(),er=null!=v?v:$,el=B.includes(f),ec=!Z&&el,eu=X(H,f),ed=eo(f,ee,_,P),ep=ed.active,ef=(0,c.Z)(ed,eI),em=r.useState(!1),eg=(0,s.Z)(em,2),eb=eg[0],ev=eg[1],ey=function(e){ee||ev(e)},eE=r.useMemo(function(){return ep||"inline"!==F&&(eb||X([z],f))},[F,ep,z,eb,f,X]),eS=ea(Q.length),ew=Y(function(e){null==k||k(es(e)),W(e)}),ex=L&&"".concat(L,"-popup"),eO=r.createElement("div",(0,o.Z)({role:"menuitem",style:eS,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":Z&&L?null:L,"aria-expanded":ec,"aria-haspopup":!0,"aria-controls":ex,"aria-disabled":ee,onClick:function(e){ee||(null==R||R({key:f,domEvent:e}),"inline"===F&&V(f,!el))},onFocus:function(){q(f)}},ef),u,r.createElement(ei,{icon:"horizontal"!==F?er:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ec,isSubMenu:!0})},r.createElement("i",{className:"".concat(J,"-arrow")}))),eC=r.useRef(F);if("inline"!==F&&Q.length>1?eC.current="vertical":eC.current=F,!Z){var eN=eC.current;eO=r.createElement(ek,{mode:eN,prefixCls:J,visible:!g&&ec&&"inline"!==F,popupClassName:E,popupOffset:S,popupStyle:O,popup:r.createElement(x,{mode:"horizontal"===eN?"vertical":eN},r.createElement(eh,{id:ex,ref:en},h)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(f,e)}},eO)}var eR=r.createElement(p.Z.Item,(0,o.Z)({role:"none"},M,{component:"li",style:n,className:d()(J,"".concat(J,"-").concat(F),l,(t={},(0,a.Z)(t,"".concat(J,"-open"),ec),(0,a.Z)(t,"".concat(J,"-active"),eE),(0,a.Z)(t,"".concat(J,"-selected"),eu),(0,a.Z)(t,"".concat(J,"-disabled"),ee),t)),onMouseEnter:function(e){ey(!0),null==C||C({key:f,domEvent:e})},onMouseLeave:function(e){ey(!1),null==N||N({key:f,domEvent:e})}}),eO,!Z&&r.createElement(eT,{id:ex,open:ec,keyPath:Q},h));return K&&(eR=K(eR,e,{selected:eu,active:eE,open:ec,disabled:ee})),r.createElement(x,{onItemClick:ew,mode:"horizontal"===F?"vertical":F,itemIcon:null!=b?b:G,expandIcon:er},eR)};function eR(e){var t,n=e.eventKey,o=e.children,a=T(n),i=ev(o,a),l=k();return r.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]),t=l?i:r.createElement(eN,e,i),r.createElement(C.Provider,{value:a},t)}var e_=n(6976),eP=["className","title","eventKey","children"],eM=["children"],eL=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=(0,c.Z)(e,eP),l=r.useContext(w).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},a))};function eD(e){var t=e.children,n=(0,c.Z)(e,eM),o=ev(t,T(n.eventKey));return k()?o:r.createElement(eL,(0,en.Z)(n,["warnKey"]),o)}function ej(e){var t=e.className,n=e.style,o=r.useContext(w).prefixCls;return k()?null:r.createElement("li",{role:"separator",className:d()("".concat(o,"-item-divider"),t),style:n})}var eF=["label","children","key","type"],eB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eU=[],eZ=r.forwardRef(function(e,t){var n,u,g,v,y,E,S,w,k,C,T,N,R,_,Q,J,ee,et,en,er,eo,ea,ei,el,ec,eu,ed,ep=e.prefixCls,ef=void 0===ep?"rc-menu":ep,eg=e.rootClassName,eh=e.style,eb=e.className,ey=e.tabIndex,eE=e.items,eS=e.children,ew=e.direction,ex=e.id,eO=e.mode,ek=void 0===eO?"vertical":eO,eC=e.inlineCollapsed,eT=e.disabled,eA=e.disabledOverflow,eI=e.subMenuOpenDelay,eN=e.subMenuCloseDelay,eP=e.forceSubMenuRender,eM=e.defaultOpenKeys,eL=e.openKeys,eZ=e.activeKey,ez=e.defaultActiveFirst,eH=e.selectable,eG=void 0===eH||eH,e$=e.multiple,eW=void 0!==e$&&e$,eV=e.defaultSelectedKeys,eq=e.selectedKeys,eY=e.onSelect,eK=e.onDeselect,eX=e.inlineIndent,eQ=e.motion,eJ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e4=e.expandIcon,e3=e.overflowedIndicator,e6=void 0===e3?"...":e3,e5=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e9=e.onClick,e7=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,c.Z)(e,eB),to=r.useMemo(function(){var e;return e=eS,eE&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,e_.Z)(t)){var a=t.label,i=t.children,l=t.key,s=t.type,u=(0,c.Z)(t,eF),d=null!=l?l:"tmp-".concat(n);return i||"group"===s?"group"===s?r.createElement(eD,(0,o.Z)({key:d},u,{title:a}),e(i)):r.createElement(eR,(0,o.Z)({key:d},u,{title:a}),e(i)):"divider"===s?r.createElement(ej,(0,o.Z)({key:d},u)):r.createElement(em,(0,o.Z)({key:d},u),a)}return null}).filter(function(e){return e})}(eE)),ev(e,eU)},[eS,eE]),ta=r.useState(!1),ti=(0,s.Z)(ta,2),tl=ti[0],ts=ti[1],tc=r.useRef(),tu=(n=(0,f.Z)(ex,{value:ex}),g=(u=(0,s.Z)(n,2))[0],v=u[1],r.useEffect(function(){X+=1;var e="".concat(K,"-").concat(X);v("rc-menu-uuid-".concat(e))},[]),g),td="rtl"===ew,tp=(0,f.Z)(eM,{value:eL,postState:function(e){return e||eU}}),tf=(0,s.Z)(tp,2),tm=tf[0],tg=tf[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tg(e),null==e7||e7(e)}t?(0,h.flushSync)(n):n()},tb=r.useState(tm),tv=(0,s.Z)(tb,2),ty=tv[0],tE=tv[1],tS=r.useRef(!1),tw=r.useMemo(function(){return("inline"===ek||"vertical"===ek)&&eC?["vertical",eC]:[ek,!1]},[ek,eC]),tx=(0,s.Z)(tw,2),tO=tx[0],tk=tx[1],tC="inline"===tO,tT=r.useState(tO),tA=(0,s.Z)(tT,2),tI=tA[0],tN=tA[1],tR=r.useState(tk),t_=(0,s.Z)(tR,2),tP=t_[0],tM=t_[1];r.useEffect(function(){tN(tO),tM(tk),tS.current&&(tC?tg(ty):th(eU))},[tO,tk]);var tL=r.useState(0),tD=(0,s.Z)(tL,2),tj=tD[0],tF=tD[1],tB=tj>=to.length-1||"horizontal"!==tI||eA;r.useEffect(function(){tC&&tE(tm)},[tm]),r.useEffect(function(){return tS.current=!0,function(){tS.current=!1}},[]);var tU=(y=r.useState({}),E=(0,s.Z)(y,2)[1],S=(0,r.useRef)(new Map),w=(0,r.useRef)(new Map),k=r.useState([]),T=(C=(0,s.Z)(k,2))[0],N=C[1],R=(0,r.useRef)(0),_=(0,r.useRef)(!1),Q=function(){_.current||E({})},J=(0,r.useCallback)(function(e,t){var n=V(t);w.current.set(n,e),S.current.set(e,n),R.current+=1;var r=R.current;Promise.resolve().then(function(){r===R.current&&Q()})},[]),ee=(0,r.useCallback)(function(e,t){var n=V(t);w.current.delete(n),S.current.delete(e)},[]),et=(0,r.useCallback)(function(e){N(e)},[]),en=(0,r.useCallback)(function(e,t){var n=(S.current.get(e)||"").split(W);return t&&T.includes(n[0])&&n.unshift(q),n},[T]),er=(0,r.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,r.useCallback)(function(e){var t="".concat(S.current.get(e)).concat(W),n=new Set;return(0,l.Z)(w.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(w.current.get(e))}),n},[]),r.useEffect(function(){return function(){_.current=!0}},[]),{registerPath:J,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,l.Z)(S.current.keys());return T.length&&e.push(q),e},getSubPathKeys:eo}),tZ=tU.registerPath,tz=tU.unregisterPath,tH=tU.refreshOverflowKeys,tG=tU.isSubPathKey,t$=tU.getKeyPath,tW=tU.getKeys,tV=tU.getSubPathKeys,tq=r.useMemo(function(){return{registerPath:tZ,unregisterPath:tz}},[tZ,tz]),tY=r.useMemo(function(){return{isSubPathKey:tG}},[tG]);r.useEffect(function(){tH(tB?eU:to.slice(tj+1).map(function(e){return e.key}))},[tj,tB]);var tK=(0,f.Z)(eZ||ez&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:eZ}),tX=(0,s.Z)(tK,2),tQ=tX[0],tJ=tX[1],t0=Y(function(e){tJ(e)}),t1=Y(function(){tJ(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r=$(tW(),tu),o=r.elements,a=r.key2element,i=r.element2key,l=H(tc.current,o),s=null!=tQ?tQ:l[0]?i.get(l[0]):null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,c=a.get(s);s&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}});var t2=(0,f.Z)(eV||[],{value:eq,postState:function(e){return Array.isArray(e)?e:null==e?eU:[e]}}),t4=(0,s.Z)(t2,2),t3=t4[0],t6=t4[1],t5=function(e){if(eG){var t,n=e.key,r=t3.includes(n);t6(t=eW?r?t3.filter(function(e){return e!==n}):[].concat((0,l.Z)(t3),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eK||eK(o):null==eY||eY(o)}!eW&&tm.length&&"inline"!==tI&&th(eU)},t8=Y(function(e){null==e9||e9(es(e)),t5(e)}),t9=Y(function(e,t){var n=tm.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tI){var r=tV(e);n=n.filter(function(e){return!r.has(e)})}(0,m.Z)(tm,n,!0)||th(n,!0)}),t7=(ea=function(e,t){var n=null!=t?t:!tm.includes(e);t9(e,n)},ei=r.useRef(),(el=r.useRef()).current=tQ,ec=function(){P.Z.cancel(ei.current)},r.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(z,[F,B,U,Z]).includes(t)){var n=tW(),r=$(n,tu),o=r,i=o.elements,l=o.key2element,s=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(tQ),i),u=s.get(c),d=function(e,t,n,r){var o,i,l,s,c="prev",u="next",d="children",p="parent";if("inline"===e&&r===F)return{inlineTrigger:!0};var f=(o={},(0,a.Z)(o,D,c),(0,a.Z)(o,j,u),o),m=(i={},(0,a.Z)(i,M,n?u:c),(0,a.Z)(i,L,n?c:u),(0,a.Z)(i,j,d),(0,a.Z)(i,F,d),i),g=(l={},(0,a.Z)(l,D,c),(0,a.Z)(l,j,u),(0,a.Z)(l,F,d),(0,a.Z)(l,B,p),(0,a.Z)(l,M,n?d:p),(0,a.Z)(l,L,n?p:d),l);switch(null===(s=({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(tI,1===t$(u,!0).length,td,t);if(!d&&t!==U&&t!==Z)return;(z.includes(t)||[U,Z].includes(t))&&e.preventDefault();var p=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=s.get(e);tJ(r),ec(),ei.current=(0,P.Z)(function(){el.current===r&&t.focus()})}};if([U,Z].includes(t)||d.sibling||!c){var f,m=H(f=c&&"inline"!==tI?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):tc.current,i);p(t===U?m[0]:t===Z?m[m.length-1]:G(f,i,c,d.offset))}else if(d.inlineTrigger)ea(u);else if(d.offset>0)ea(u,!0),ec(),ei.current=(0,P.Z)(function(){r=$(n,tu);var e=c.getAttribute("aria-controls");p(G(document.getElementById(e),r.elements))},5);else if(d.offset<0){var g=t$(u,!0),h=g[g.length-2],b=l.get(h);ea(h,!1),p(b)}}null==te||te(e)});r.useEffect(function(){ts(!0)},[]);var ne=r.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tI||eA?to:to.map(function(e,t){return r.createElement(x,{key:e.key,overflowDisabled:t>tj},e)}),nn=r.createElement(p.Z,(0,o.Z)({id:ex,ref:tc,prefixCls:"".concat(ef,"-overflow"),component:"ul",itemComponent:em,className:d()(ef,"".concat(ef,"-root"),"".concat(ef,"-").concat(tI),eb,(ed={},(0,a.Z)(ed,"".concat(ef,"-inline-collapsed"),tP),(0,a.Z)(ed,"".concat(ef,"-rtl"),td),ed),eg),dir:ew,style:eh,role:"menu",tabIndex:void 0===ey?0:ey,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return r.createElement(eR,{eventKey:q,title:e6,disabled:tB,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tI||eA?p.Z.INVALIDATE:p.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tF(e)},onKeyDown:t7},tr));return r.createElement(I.Provider,{value:ne},r.createElement(b.Provider,{value:tu},r.createElement(x,{prefixCls:ef,rootClassName:eg,mode:tI,openKeys:tm,rtl:td,disabled:eT,motion:tl?eQ:null,defaultMotions:tl?eJ:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t3,inlineIndent:void 0===eX?24:eX,subMenuOpenDelay:void 0===eI?.1:eI,subMenuCloseDelay:void 0===eN?.1:eN,forceSubMenuRender:eP,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e4,onItemClick:t8,onOpenChange:t9},r.createElement(A.Provider,{value:tY},nn),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(O.Provider,{value:tq},to)))))});eZ.Item=em,eZ.SubMenu=eR,eZ.ItemGroup=eD,eZ.Divider=ej;var ez=n(8407),eH=n(31413),eG=n(48563),e$=n(47387),eW=n(65823),eV=n(57499),eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eY=e=>{let{prefixCls:t,className:n,dashed:o}=e,a=eq(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=r.useContext(eV.E_),l=i("menu",t),s=d()({["".concat(l,"-item-divider-dashed")]:!!o},n);return r.createElement(ej,Object.assign({className:s},a))},eK=n(1460);let eX=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var eQ=e=>{var t;let{className:n,children:o,icon:a,title:i,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(eX),{siderCollapsed:m}=r.useContext(ez.D),g=i;void 0===i?g=c?o:"":!1===i&&(g="");let h={title:g};m||f||(h.title=null,h.open=!1);let b=(0,eb.Z)(o).length,v=r.createElement(em,Object.assign({},(0,en.Z)(e,["title","icon","danger"]),{className:d()({["".concat(s,"-item-danger")]:l,["".concat(s,"-item-only-child")]:(a?b+1:b)===1},n),title:"string"==typeof i?i:void 0}),(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),(e=>{let t=r.createElement("span",{className:"".concat(s,"-title-content")},o);return(!a||(0,eW.l$)(o)&&"span"===o.type)&&o&&e&&c&&"string"==typeof o?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},o.charAt(0)):t})(f));return p||(v=r.createElement(eK.Z,Object.assign({},h,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),v)),v},eJ=n(51761),e0=e=>{var t;let n;let{popupClassName:o,icon:a,title:i,theme:l}=e,s=r.useContext(eX),{prefixCls:c,inlineCollapsed:u,theme:p}=s,f=T();if(a){let e=(0,eW.l$)(i)&&"span"===i.type;n=r.createElement(r.Fragment,null,(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),e?i:r.createElement("span",{className:"".concat(c,"-title-content")},i))}else n=u&&!f.length&&i&&"string"==typeof i?r.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},i.charAt(0)):r.createElement("span",{className:"".concat(c,"-title-content")},i);let m=r.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=(0,eJ.Cn)("Menu");return r.createElement(eX.Provider,{value:m},r.createElement(eR,Object.assign({},(0,en.Z)(e,["icon"]),{title:n,popupClassName:d()(c,o,"".concat(c,"-").concat(l||p)),popupStyle:{zIndex:g}})))},e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},e2=n(81642),e4=n(8985),e3=n(6336),e6=n(11303),e5=n(46154),e8=n(202),e9=n(58854),e7=n(76585),te=n(80316),tt=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat((0,e4.bf)(a)," ").concat(i," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},tn=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(n),")")}}}}};let tr=e=>Object.assign({},(0,e6.oN)(e));var to=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:O,dangerItemSelectedBg:k,popupBg:C,itemHoverBg:T,itemActiveBg:A,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:P}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:i,["&".concat(n,"-root:focus-visible")]:Object.assign({},tr(e)),["".concat(n,"-item-group-title")]:{color:a},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(E," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:b}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}}},["".concat(n,"-item-danger")]:{color:S,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:w}},["&".concat(n,"-item:active")]:{background:O}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:x},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:s,["&".concat(n,"-item-danger")]:{backgroundColor:k}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},tr(e))},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:I},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:"".concat((0,e4.bf)(c)," solid transparent"),transition:"border-color ".concat(p," ").concat(f),content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat((0,e4.bf)(d)," ").concat(v," ").concat(y)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat((0,e4.bf)(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(h," ").concat(m),"opacity ".concat(h," ").concat(m)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:x}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(h," ").concat(f),"opacity ".concat(h," ").concat(f)].join(",")}}}}}};let ta=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(a).add(o).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:c}}};var ti=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:(0,e4.bf)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ta(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ta(e)),{boxShadow:m})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:a,maxHeight:"calc(100vh - ".concat((0,e4.bf)(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(p),"background ".concat(p),"padding ".concat(l," ").concat(s)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:b,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:b}},{["".concat(t,"-inline-collapsed")]:{width:g,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat((0,e4.bf)(e.calc(d).div(2).equal())," - ").concat((0,e4.bf)(u),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:h,lineHeight:(0,e4.bf)(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},e6.vS),{paddingInline:f})}}]};let tl=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(r," ").concat(a),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},(0,e6.Ro)()),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},ts=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(i),")")}}}}},tc=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},(0,e6.dF)()),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,e6.Wf)(e)),(0,e6.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat((0,e4.bf)(l)," ").concat((0,e4.bf)(s)),fontSize:y,lineHeight:v,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(i),"padding ".concat(o," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(o),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tl(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat((0,e4.bf)(e.calc(r).mul(2).equal())," ").concat((0,e4.bf)(s))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:"".concat((0,e4.bf)(b)," 0 0"),zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:p},tl(e)),ts(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:f},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(i)}})}}),ts(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(g),")")},"&::after":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat((0,e4.bf)(e.calc(m).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(g),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},tu=e=>{var t,n,r;let{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:E,padding:S,fontSize:w,controlHeightSM:x,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:C}=e,T=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new e3.C(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:"".concat(1.15*b,"px"),iconSize:w,iconMarginInlineEnd:x-w,collapsedIconSize:O,groupTitleFontSize:w,darkItemDisabledColor:new e3.C(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:a,itemWidth:T?"calc(100% + ".concat(A,"px)"):"calc(100% - ".concat(2*I,"px)")}};var td=n(92935),tp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tf=(0,r.forwardRef)((e,t)=>{var n,o;let a;let i=r.useContext(e2.Z),l=i||{},{getPrefixCls:s,getPopupContainer:c,direction:u,menu:p}=r.useContext(eV.E_),f=s(),{prefixCls:m,className:g,style:h,theme:b="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:E,siderCollapsed:S,items:w,children:x,rootClassName:O,mode:k,selectable:C,onClick:T,overflowedIndicatorPopupClassName:A}=e,I=tp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=(0,en.Z)(I,["collapsedWidth"]),R=r.useMemo(()=>w?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:o,children:a,key:i,type:l}=t,s=e1(t,["label","children","key","type"]),c=null!=i?i:"tmp-".concat(n);return a||"group"===l?"group"===l?r.createElement(eD,Object.assign({key:c},s,{title:o}),e(a)):r.createElement(e0,Object.assign({key:c},s,{title:o}),e(a)):"divider"===l?r.createElement(eY,Object.assign({key:c},s)):r.createElement(eQ,Object.assign({key:c},s),o)}return null}).filter(e=>e)}(w):w,[w])||x;null===(n=l.validator)||void 0===n||n.call(l,{mode:k});let _=(0,eG.zX)(function(){var e;null==T||T.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)}),P=l.mode||k,M=null!=C?C:l.selectable,L=r.useMemo(()=>void 0!==S?S:E,[E,S]),D={horizontal:{motionName:"".concat(f,"-slide-up")},inline:(0,e$.Z)(f),other:{motionName:"".concat(f,"-zoom-big")}},j=s("menu",m||l.prefixCls),F=(0,td.Z)(j),[B,U,Z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,e7.I$)("Menu",e=>{let{colorBgElevated:t,colorPrimary:n,colorTextLightSolid:r,controlHeightLG:o,fontSize:a,darkItemColor:i,darkDangerItemColor:l,darkItemBg:s,darkSubMenuItemBg:c,darkItemSelectedColor:u,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:f,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:h,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:y,popupBg:E,darkPopupBg:S}=e,w=e.calc(a).div(7).mul(5).equal(),x=(0,te.TS)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:t,calc:e.calc,popupBg:E}),O=(0,te.TS)(x,{itemColor:i,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:u,itemBg:s,popupBg:S,subMenuItemBg:c,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:h,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:v,dangerItemActiveBg:y,dangerItemSelectedBg:p,menuSubMenuBg:c,horizontalItemSelectedColor:r,horizontalItemSelectedBg:n});return[tc(x),tt(x),ti(x),to(x,"light"),to(O,"dark"),tn(x),(0,e5.Z)(x),(0,e8.oN)(x,"slide-up"),(0,e8.oN)(x,"slide-down"),(0,e9._y)(x,"zoom-big")]},tu,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}(j,F,!i),z=d()("".concat(j,"-").concat(b),null==p?void 0:p.className,g);if("function"==typeof v)a=v;else if(null===v||!1===v)a=null;else if(null===l.expandIcon||!1===l.expandIcon)a=null;else{let e=null!=v?v:l.expandIcon;a=(0,eW.Tm)(e,{className:d()("".concat(j,"-submenu-expand-icon"),(0,eW.l$)(e)?null===(o=e.props)||void 0===o?void 0:o.className:"")})}let H=r.useMemo(()=>({prefixCls:j,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:y}),[j,L,u,y,b]);return B(r.createElement(e2.Z.Provider,{value:null},r.createElement(eX.Provider,{value:H},r.createElement(eZ,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(eH.Z,null),overflowedIndicatorPopupClassName:d()(j,"".concat(j,"-").concat(b),A),mode:P,selectable:M,onClick:_},N,{inlineCollapsed:L,style:Object.assign(Object.assign({},null==p?void 0:p.style),h),className:z,prefixCls:j,direction:u,defaultMotions:D,expandIcon:a,ref:t,rootClassName:d()(O,U,l.rootClassName,Z,F)}),R))))}),tm=(0,r.forwardRef)((e,t)=>{let n=(0,r.useRef)(null),o=r.useContext(ez.D);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),r.createElement(tf,Object.assign({ref:n},e,o))});tm.Item=eQ,tm.SubMenu=e0,tm.Divider=eY,tm.ItemGroup=eD;var tg=tm},80588:function(e,t,n){n.d(t,{ZP:function(){return eu}});var r=n(63787),o=n(64090),a=n(37274);let i=o.createContext({});var l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(66155),m=n(16480),g=n.n(m),h=n(80406),b=n(6787),v=n(5239),y=n(89542),E=n(14749),S=n(50833),w=n(49367),x=n(4295),O=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,l=void 0===i?4.5:i,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=e.props,f=e.onClick,m=e.onNoticeClose,b=e.times,v=e.hovering,y=o.useState(!1),w=(0,h.Z)(y,2),O=w[0],k=w[1],C=v||O,T=function(){m(s)};o.useEffect(function(){if(!C&&l>0){var e=setTimeout(function(){T()},1e3*l);return function(){clearTimeout(e)}}},[l,C,b]);var A="".concat(n,"-notice");return o.createElement("div",(0,E.Z)({},p,{ref:t,className:g()(A,a,(0,S.Z)({},"".concat(A,"-closable"),u)),style:r,onMouseEnter:function(e){var t;k(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;k(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:f}),o.createElement("div",{className:"".concat(A,"-content")},c),u&&o.createElement("a",{tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===x.Z.ENTER)&&T()},onClick:function(e){e.preventDefault(),e.stopPropagation(),T()}},void 0===d?"x":d))}),k=o.createContext({}),C=function(e){var t=e.children,n=e.classNames;return o.createElement(k.Provider,{value:{classNames:n}},t)},T=n(6976),A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,T.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},I=["className","style","classNames","styles"],N=function(e){var t,n=e.configList,a=e.placement,i=e.prefixCls,l=e.className,s=e.style,c=e.motion,u=e.onAllNoticeRemoved,d=e.onNoticeClose,p=e.stack,f=(0,o.useContext)(k).classNames,m=(0,o.useRef)({}),y=(0,o.useState)(null),x=(0,h.Z)(y,2),C=x[0],T=x[1],N=(0,o.useState)([]),R=(0,h.Z)(N,2),_=R[0],P=R[1],M=n.map(function(e){return{config:e,key:String(e.key)}}),L=A(p),D=(0,h.Z)(L,2),j=D[0],F=D[1],B=F.offset,U=F.threshold,Z=F.gap,z=j&&(_.length>0||M.length<=U),H="function"==typeof c?c(a):c;return(0,o.useEffect)(function(){j&&_.length>1&&P(function(e){return e.filter(function(e){return M.some(function(t){return e===t.key})})})},[_,M,j]),(0,o.useEffect)(function(){var e,t;j&&m.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&T(m.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])},[M,j]),o.createElement(w.V4,(0,E.Z)({key:a,className:g()(i,"".concat(i,"-").concat(a),null==f?void 0:f.list,l,(t={},(0,S.Z)(t,"".concat(i,"-stack"),!!j),(0,S.Z)(t,"".concat(i,"-stack-expanded"),z),t)),style:s,keys:M,motionAppear:!0},H,{onAllRemoved:function(){u(a)}}),function(e,t){var n=e.config,l=e.className,s=e.style,c=e.index,u=n.key,p=n.times,h=String(u),y=n.className,S=n.style,w=n.classNames,x=n.styles,k=(0,b.Z)(n,I),T=M.findIndex(function(e){return e.key===h}),A={};if(j){var N=M.length-1-(T>-1?T:c-1),R="top"===a||"bottom"===a?"-50%":"0";if(N>0){A.height=z?null===(L=m.current[h])||void 0===L?void 0:L.offsetHeight:null==C?void 0:C.offsetHeight;for(var L,D,F,U,H=0,G=0;G-1?m.current[h]=e:delete m.current[h]},prefixCls:i,classNames:w,styles:x,className:g()(y,null==f?void 0:f.notice),style:S,times:p,key:u,eventKey:u,onNoticeClose:d,hovering:j&&_.length>0})))})},R=o.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,i=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,p=e.stack,f=e.renderNotifications,m=o.useState([]),g=(0,h.Z)(m,2),b=g[0],E=g[1],S=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),E(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){E(function(t){var n,o=(0,r.Z)(t),a=o.findIndex(function(t){return t.key===e.key}),i=(0,v.Z)({},e);return a>=0?(i.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,o[a]=i):(i.times=0,o.push(i)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){E([])}}});var w=o.useState({}),x=(0,h.Z)(w,2),O=x[0],k=x[1];o.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(O).forEach(function(t){e[t]=e[t]||[]}),k(e)},[b]);var C=function(e){k(function(t){var n=(0,v.Z)({},t);return(n[e]||[]).length||delete n[e],n})},T=o.useRef(!1);if(o.useEffect(function(){Object.keys(O).length>0?T.current=!0:T.current&&(null==d||d(),T.current=!1)},[O]),!i)return null;var A=Object.keys(O);return(0,y.createPortal)(o.createElement(o.Fragment,null,A.map(function(e){var t=O[e],n=o.createElement(N,{key:e,configList:t,placement:e,prefixCls:a,className:null==c?void 0:c(e),style:null==u?void 0:u(e),motion:l,onNoticeClose:S,onAllNoticeRemoved:C,stack:p});return f?f(n,{prefixCls:a,key:e}):n})),i)}),_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],P=function(){return document.body},M=0,L=n(8985),D=n(51761),j=n(11303),F=n(76585),B=n(80316);let U=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,v="".concat(t,"-notice"),y=new L.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),E=new L.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:f,textAlign:"center",["".concat(t,"-custom-content > ").concat(n)]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},["".concat(v,"-content")]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:a},["".concat(t,"-error > ").concat(n)]:{color:i},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(v,"-wrapper")]:Object.assign({},S)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var Z=(0,F.I$)("Message",e=>[U((0,B.TS)(e,{height:150}))],e=>({zIndexPopup:e.zIndexPopupBase+D.u6+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})),z=n(92935),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let G={info:o.createElement(p.Z,null),success:o.createElement(c.Z,null),error:o.createElement(u.Z,null),warning:o.createElement(d.Z,null),loading:o.createElement(f.Z,null)},$=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return o.createElement("div",{className:g()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||G[n],o.createElement("span",null,a))};var W=n(81303),V=n(76564);function q(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let K=e=>{let{children:t,prefixCls:n}=e,r=(0,z.Z)(n),[a,i,l]=Z(n,r);return a(o.createElement(C,{classNames:{list:g()(i,l,r)}},t))},X=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(K,{prefixCls:n,key:r},e)},Q=o.forwardRef((e,t)=>{let{top:n,prefixCls:a,getContainer:i,maxCount:s,duration:c=3,rtl:u,transitionName:d,onAllRemoved:p}=e,{getPrefixCls:f,getPopupContainer:m,message:v,direction:y}=o.useContext(l.E_),E=a||f("message"),S=o.createElement("span",{className:"".concat(E,"-close-x")},o.createElement(W.Z,{className:"".concat(E,"-close-icon")})),[w,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?P:t,a=e.motion,i=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,f=(0,b.Z)(e,_),m=o.useState(),g=(0,h.Z)(m,2),v=g[0],y=g[1],E=o.useRef(),S=o.createElement(R,{container:v,ref:E,prefixCls:i,motion:a,maxCount:l,className:s,style:c,onAllRemoved:u,stack:d,renderNotifications:p}),w=o.useState([]),x=(0,h.Z)(w,2),O=x[0],k=x[1],C=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>g()({["".concat(E,"-rtl")]:null!=u?u:"rtl"===y}),motion:()=>({motionName:null!=d?d:"".concat(E,"-move-up")}),closable:!1,closeIcon:S,duration:c,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:p,renderNotifications:X});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:E,message:v})),x}),J=0;function ee(e){let t=o.useRef(null);return(0,V.ln)("Message"),[o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:a,message:i}=t.current,l="".concat(a,"-notice"),{content:s,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,h=Y(n,["content","icon","type","key","className","style","onClose"]),b=d;return null==b&&(J+=1,b="antd-message-".concat(J)),q(t=>(r(Object.assign(Object.assign({},h),{key:b,content:o.createElement($,{prefixCls:a,type:u,icon:c},s),placement:"top",className:g()(u&&"".concat(l,"-").concat(u),p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(b)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i;return"function"==typeof r?i=r:(a=r,i=o),n(Object.assign(Object.assign({onClose:i,duration:a},t&&"object"==typeof t&&"content"in t?t:{content:t}),{type:e}))}}),r},[]),o.createElement(Q,Object.assign({key:"message-holder"},e,{ref:t}))]}let et=null,en=e=>e(),er=[],eo={};function ea(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=eo,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}let ei=o.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:a}=(0,o.useContext)(l.E_),s=eo.prefixCls||a("message"),c=(0,o.useContext)(i),[u,d]=ee(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),c.message));return o.useImperativeHandle(t,()=>{let e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}}),{instance:e,sync:r}}),d}),el=o.forwardRef((e,t)=>{let[n,r]=o.useState(ea),a=()=>{r(ea)};o.useEffect(a,[]);let i=(0,s.w6)(),l=i.getRootPrefixCls(),c=i.getIconPrefixCls(),u=i.getTheme(),d=o.createElement(ei,{ref:t,sync:a,messageConfig:n});return o.createElement(s.ZP,{prefixCls:l,iconPrefixCls:c,theme:u},i.holderRender?i.holderRender(d):d)});function es(){if(!et){let e=document.createDocumentFragment(),t={fragment:e};et=t,en(()=>{(0,a.s)(o.createElement(el,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,es())})}}),e)});return}et.instance&&(er.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":en(()=>{let t=et.instance.open(Object.assign(Object.assign({},eo),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":en(()=>{null==et||et.instance.destroy(e.key)});break;default:en(()=>{var n;let o=(n=et.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),er=[])}let ec={open:function(e){let t=q(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return er.push(r),()=>{n?en(()=>{n()}):r.skipped=!0}});return es(),t},destroy:function(e){er.push({type:"destroy",key:e}),es()},config:function(e){eo=Object.assign(Object.assign({},eo),e),en(()=>{var e;null===(e=null==et?void 0:et.sync)||void 0===e||e.call(et)})},useMessage:function(e){return ee(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:a,content:i}=e,s=H(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=o.useContext(l.E_),u=t||c("message"),d=(0,z.Z)(u),[p,f,m]=Z(u,d);return p(o.createElement(O,Object.assign({},s,{prefixCls:u,className:g()(n,f,"".concat(u,"-notice-pure-panel"),m,d),eventKey:"pure",duration:null,content:o.createElement($,{prefixCls:u,type:r,icon:a},i)})))}};["success","info","warning","error","loading"].forEach(e=>{ec[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return er.push(o),()=>{r?en(()=>{r()}):o.skipped=!0}});return es(),n}(e,n)}});var eu=ec},99129:function(e,t,n){let r;n.d(t,{Z:function(){return eq}});var o=n(63787),a=n(64090),i=n(37274),l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(16480),m=n.n(f),g=n(51761),h=n(47387),b=n(70595),v=n(24750),y=n(89211),E=n(1861),S=n(51350),w=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=a.useRef(!1),f=a.useRef(null),[m,g]=(0,y.Z)(!1),h=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(g(!0),e.then(function(){g(!1,!0),h.apply(void 0,arguments),p.current=!1},e=>{if(g(!1,!0),p.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(E.ZP,Object.assign({},(0,S.nx)(t),{onClick:e=>{let t;if(!p.current){if(p.current=!0,!d){h();return}if(s){var n;if(t=d(e),u&&!((n=t)&&n.then)){p.current=!1,h(e);return}}else if(d.length)t=d(i),p.current=!1;else if(!(t=d())){h();return}b(t)}},loading:m,prefixCls:r},o,{ref:f}),n)};let x=a.createContext({}),{Provider:O}=x;var k=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=(0,a.useContext)(x);return o?a.createElement(w,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(i,"-btn")},n):null},C=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=(0,a.useContext)(x);return a.createElement(w,{isSilent:n,type:l||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:"".concat(o,"-btn")},i)},T=n(81303),A=n(14749),I=n(80406),N=n(88804),R=a.createContext({}),_=n(5239),P=n(31506),M=n(91010),L=n(4295),D=n(72480);function j(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function F(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var B=n(49367),U=n(74084),Z=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),z={width:0,height:0,overflow:"hidden",outline:"none"},H=a.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,d=e.footer,p=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,v=e.bodyProps,y=e.modalRender,E=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,x=e.visible,O=e.forceRender,k=e.width,C=e.height,T=e.classNames,I=e.styles,N=a.useContext(R).panel,P=(0,U.x1)(w,N),M=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?M.current.focus():e||t!==M.current||L.current.focus()}}});var D={};void 0!==k&&(D.width=k),void 0!==C&&(D.height=C),d&&(n=a.createElement("div",{className:m()("".concat(i,"-footer"),null==T?void 0:T.footer),style:(0,_.Z)({},null==I?void 0:I.footer)},d)),c&&(r=a.createElement("div",{className:m()("".concat(i,"-header"),null==T?void 0:T.header),style:(0,_.Z)({},null==I?void 0:I.header)},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),p&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},f||a.createElement("span",{className:"".concat(i,"-close-x")})));var j=a.createElement("div",{className:m()("".concat(i,"-content"),null==T?void 0:T.content),style:null==I?void 0:I.content},o,r,a.createElement("div",(0,A.Z)({className:m()("".concat(i,"-body"),null==T?void 0:T.body),style:(0,_.Z)((0,_.Z)({},b),null==I?void 0:I.body)},v),h),n);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:P,style:(0,_.Z)((0,_.Z)({},s),D),className:m()(i,l),onMouseDown:E,onMouseUp:S},a.createElement("div",{tabIndex:0,ref:M,style:z,"aria-hidden":"true"}),a.createElement(Z,{shouldUpdate:x||O},y?y(j):j),a.createElement("div",{tabIndex:0,ref:L,style:z,"aria-hidden":"true"}))}),G=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,g=(0,a.useRef)(),h=a.useState(),b=(0,I.Z)(h,2),v=b[0],y=b[1],E={};function S(){var e,t,n,r,o,a=(n={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=F(o),n.top+=F(o,!0),n);y(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return v&&(E.transformOrigin=v),a.createElement(B.ZP,{visible:l,onVisibleChanged:p,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(H,(0,A.Z)({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:s,style:(0,_.Z)((0,_.Z)((0,_.Z)({},u),o),E),className:m()(i,c)}))})});function $(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,l=e.className;return a.createElement(B.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,s=e.style;return a.createElement("div",(0,A.Z)({ref:r,style:(0,_.Z)((0,_.Z)({},s),n),className:m()("".concat(t,"-mask"),i,l)},o))})}function W(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,g=e.onClose,h=e.afterOpenChange,b=e.afterClose,v=e.transitionName,y=e.animation,E=e.closable,S=e.mask,w=void 0===S||S,x=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,C=e.maskStyle,T=e.maskProps,N=e.rootClassName,R=e.classNames,F=e.styles,B=(0,a.useRef)(),U=(0,a.useRef)(),Z=(0,a.useRef)(),z=a.useState(i),H=(0,I.Z)(z,2),W=H[0],V=H[1],q=(0,M.Z)();function Y(e){null==g||g(e)}var K=(0,a.useRef)(!1),X=(0,a.useRef)(),Q=null;return(void 0===k||k)&&(Q=function(e){K.current?K.current=!1:U.current===e.target&&Y(e)}),(0,a.useEffect)(function(){i&&(V(!0),(0,P.Z)(U.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(X.current)}},[]),a.createElement("div",(0,A.Z)({className:m()("".concat(n,"-root"),N)},(0,D.Z)(e,{data:!0})),a.createElement($,{prefixCls:n,visible:w&&i,motionName:j(n,x,O),style:(0,_.Z)((0,_.Z)({zIndex:r},C),null==F?void 0:F.mask),maskProps:T,className:null==R?void 0:R.mask}),a.createElement("div",(0,A.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===L.Z.ESC){e.stopPropagation(),Y(e);return}i&&e.keyCode===L.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:m()("".concat(n,"-wrap"),p,null==R?void 0:R.wrapper),ref:U,onClick:Q,style:(0,_.Z)((0,_.Z)((0,_.Z)({zIndex:r},d),null==F?void 0:F.wrapper),{},{display:W?null:"none"})},f),a.createElement(G,(0,A.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),K.current=!0},onMouseUp:function(){X.current=setTimeout(function(){K.current=!1})},ref:Z,closable:void 0===E||E,ariaId:q,prefixCls:n,visible:i&&W,onClose:Y,onVisibleChanged:function(e){if(e)!function(){if(!(0,P.Z)(U.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(V(!1),w&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==b||b())}null==h||h(e)},motionName:j(n,v,y)}))))}G.displayName="Content",n(53850);var V=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=e.panelRef,c=a.useState(t),u=(0,I.Z)(c,2),d=u[0],p=u[1],f=a.useMemo(function(){return{panel:s}},[s]);return(a.useEffect(function(){t&&p(!0)},[t]),r||!i||d)?a.createElement(R.Provider,{value:f},a.createElement(N.Z,{open:t||r||d,autoDestroy:!1,getContainer:n,autoLock:t||d},a.createElement(W,(0,A.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),p(!1)}})))):null};V.displayName="Dialog";var q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.createElement(T.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("boolean"==typeof e?!e:void 0===t?!o:!1===t||null===t)return[!1,null];let i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]},Y=n(22127),K=n(86718),X=n(47137),Q=n(92801),J=n(48563);function ee(){}let et=a.createContext({add:ee,remove:ee});var en=n(17094),er=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({onClick:n},e),t)},eo=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({},(0,S.nx)(n),{loading:e,onClick:o},t),r)},ea=n(4678);function ei(e,t){return a.createElement("span",{className:"".concat(e,"-close-x")},t||a.createElement(T.Z,{className:"".concat(e,"-close-icon")}))}let el=e=>{let t;let{okText:n,okType:r="primary",cancelText:i,confirmLoading:l,onOk:s,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:p}=e,[f]=(0,b.Z)("Modal",(0,ea.A)()),m={confirmLoading:l,okButtonProps:u,cancelButtonProps:d,okTextLocale:n||(null==f?void 0:f.okText),cancelTextLocale:i||(null==f?void 0:f.cancelText),okType:r,onOk:s,onCancel:c},g=a.useMemo(()=>m,(0,o.Z)(Object.values(m)));return"function"==typeof p||void 0===p?(t=a.createElement(a.Fragment,null,a.createElement(er,null),a.createElement(eo,null)),"function"==typeof p&&(t=p(t,{OkBtn:eo,CancelBtn:er})),t=a.createElement(O,{value:g},t)):t=p,a.createElement(en.n,{disabled:!1},t)};var es=n(11303),ec=n(13703),eu=n(58854),ed=n(80316),ep=n(76585),ef=n(8985);function em(e){return{position:e,inset:0}}let eg=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",["&:has(".concat(t).concat(n,"-zoom-enter), &:has(").concat(t).concat(n,"-zoom-appear)")]:{pointerEvents:"none"}})}},{["".concat(t,"-root")]:(0,ec.J$)(e)}]},eh=e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,ef.bf)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,es.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,ef.bf)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:"".concat((0,ef.bf)(e.modalCloseBtnSize)),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,es.Qy)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},eb=e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},ev=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ed.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ey=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:"".concat((0,ef.bf)(e.paddingMD)," ").concat((0,ef.bf)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,ef.bf)(e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,ef.bf)(e.paddingXS)," ").concat((0,ef.bf)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var eE=(0,ep.I$)("Modal",e=>{let t=ev(e);return[eh(t),eb(t),eg(t),(0,eu._y)(t,"zoom")]},ey,{unitless:{titleLineHeight:!0}}),eS=n(92935),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,Y.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var ex=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:s}=a.useContext(l.E_),c=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:u,className:d,rootClassName:p,open:f,wrapClassName:b,centered:v,getContainer:y,closeIcon:E,closable:S,focusTriggerAfterClose:w=!0,style:x,visible:O,width:k=520,footer:C,classNames:A,styles:I}=e,N=ew(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),R=o("modal",u),_=o(),P=(0,eS.Z)(R),[M,L,D]=eE(R,P),j=m()(b,{["".concat(R,"-centered")]:!!v,["".concat(R,"-wrap-rtl")]:"rtl"===i}),F=null!==C&&a.createElement(el,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:c})),[B,U]=q(S,E,e=>ei(R,e),a.createElement(T.Z,{className:"".concat(R,"-close-icon")}),!0),Z=function(e){let t=a.useContext(et),n=a.useRef();return(0,J.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(".".concat(R,"-content")),[z,H]=(0,g.Cn)("Modal",N.zIndex);return M(a.createElement(Q.BR,null,a.createElement(X.Ux,{status:!0,override:!0},a.createElement(K.Z.Provider,{value:H},a.createElement(V,Object.assign({width:k},N,{zIndex:z,getContainer:void 0===y?n:y,prefixCls:R,rootClassName:m()(L,p,D,P),footer:F,visible:null!=f?f:O,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:c,closable:B,closeIcon:U,focusTriggerAfterClose:w,transitionName:(0,h.m)(_,"zoom",e.transitionName),maskTransitionName:(0,h.m)(_,"fade",e.maskTransitionName),className:m()(L,d,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),x),classNames:Object.assign(Object.assign({wrapper:j},null==s?void 0:s.classNames),A),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),I),panelRef:Z}))))))};let eO=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,es.dF)()),["&".concat(t," ").concat(t,"-body")]:{padding:c},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:"calc(100% - ".concat((0,ef.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:a,lineHeight:i},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}};var ek=(0,ep.bk)(["Modal","confirm"],e=>[eO(ev(e))],ey,{order:-1e3}),eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eT(e){let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:s,okCancel:f,footer:g,locale:h}=e,v=eC(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),y=n;if(!n&&null!==n)switch(s){case"info":y=a.createElement(p.Z,null);break;case"success":y=a.createElement(c.Z,null);break;case"error":y=a.createElement(u.Z,null);break;default:y=a.createElement(d.Z,null)}let E=null!=f?f:"confirm"===s,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[w]=(0,b.Z)("Modal"),x=h||w,T=r||(E?null==x?void 0:x.okText:null==x?void 0:x.justOkText),A=Object.assign({autoFocusButton:S,cancelTextLocale:i||(null==x?void 0:x.cancelText),okTextLocale:T,mergedOkCancel:E},v),I=a.useMemo(()=>A,(0,o.Z)(Object.values(A))),N=a.createElement(a.Fragment,null,a.createElement(k,null),a.createElement(C,null)),R=void 0!==e.title&&null!==e.title,_="".concat(l,"-body");return a.createElement("div",{className:"".concat(l,"-body-wrapper")},a.createElement("div",{className:m()(_,{["".concat(_,"-has-title")]:R})},y,a.createElement("div",{className:"".concat(l,"-paragraph")},R&&a.createElement("span",{className:"".concat(l,"-title")},e.title),a.createElement("div",{className:"".concat(l,"-content")},e.content))),void 0===g||"function"==typeof g?a.createElement(O,{value:I},a.createElement("div",{className:"".concat(l,"-btns")},"function"==typeof g?g(N,{OkBtn:C,CancelBtn:k}):N)):g,a.createElement(ek,{prefixCls:t}))}let eA=e=>{let{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:l,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:b,closable:y=!1,closeIcon:E,modalRender:S,focusTriggerAfterClose:w,onConfirm:x,styles:O}=e,k="".concat(d,"-confirm"),C=e.width||416,T=e.style||{},A=void 0===e.mask||e.mask,I=void 0!==e.maskClosable&&e.maskClosable,N=m()(k,"".concat(k,"-").concat(e.type),{["".concat(k,"-rtl")]:"rtl"===u},e.className),[,R]=(0,v.ZP)(),_=a.useMemo(()=>void 0!==n?n:R.zIndexPopupBase+g.u6,[n,R]);return a.createElement(ex,{prefixCls:d,className:N,wrapClassName:m()({["".concat(k,"-centered")]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:o,title:"",footer:null,transitionName:(0,h.m)(f||"","zoom",e.transitionName),maskTransitionName:(0,h.m)(f||"","fade",e.maskTransitionName),mask:A,maskClosable:I,style:T,styles:Object.assign({body:b,mask:c},O),width:C,zIndex:_,afterClose:r,keyboard:i,centered:l,getContainer:s,closable:y,closeIcon:E,modalRender:S,focusTriggerAfterClose:w},a.createElement(eT,Object.assign({},e,{confirmPrefixCls:k})))};var eI=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(eA,Object.assign({},e)))},eN=[];let eR="",e_=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:i}=e,s=(0,ea.A)(),c=(0,a.useContext)(l.E_),u=eR||c.getPrefixCls(),d=r||"".concat(u,"-modal"),p=o;return!1===p&&(p=void 0),a.createElement(eI,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=i?i:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:p}))};function eP(e){let t;let n=(0,s.w6)(),r=document.createDocumentFragment(),l=Object.assign(Object.assign({},e),{close:d,open:!0});function c(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let t=n.getPrefixCls(void 0,eR),o=n.getIconPrefixCls(),l=n.getTheme(),c=a.createElement(e_,Object.assign({},e));(0,i.s)(a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:o,theme:l},n.holderRender?n.holderRender(c):c),r)})}function d(){for(var t=arguments.length,n=Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,n)}})).visible&&delete l.visible,u(l)}return u(l),eN.push(d),{destroy:d,update:function(e){u(l="function"==typeof e?e(l):Object.assign(Object.assign({},l),e))}}}function eM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eL(e){return Object.assign(Object.assign({},e),{type:"info"})}function eD(e){return Object.assign(Object.assign({},e),{type:"success"})}function ej(e){return Object.assign(Object.assign({},e),{type:"error"})}function eF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eB=n(21467),eU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eZ=(0,eB.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:c,footer:u}=e,d=eU(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(l.E_),f=p(),g=t||p("modal"),h=(0,eS.Z)(f),[b,v,y]=eE(g,h),E="".concat(g,"-confirm"),S={};return S=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(eT,Object.assign({},e,{prefixCls:g,confirmPrefixCls:E,rootPrefixCls:f,content:c}))}:{closable:null==o||o,title:s,footer:null!==u&&a.createElement(el,Object.assign({},e)),children:c},b(a.createElement(H,Object.assign({prefixCls:g,className:m()(v,"".concat(g,"-pure-panel"),i&&E,i&&"".concat(E,"-").concat(i),n,y,h)},d,{closeIcon:ei(g,r),closable:o},S)))}),ez=n(79474),eH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eG=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,s=eH(e,["afterClose","config"]);let[c,u]=a.useState(!0),[d,p]=a.useState(i),{direction:f,getPrefixCls:m}=a.useContext(l.E_),g=m("modal"),h=m(),v=function(){u(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);d.onCancel&&r&&d.onCancel.apply(d,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:v,update:e=>{p(t=>Object.assign(Object.assign({},t),e))}}));let y=null!==(n=d.okCancel)&&void 0!==n?n:"confirm"===d.type,[E]=(0,b.Z)("Modal",ez.Z.Modal);return a.createElement(eI,Object.assign({prefixCls:g,rootPrefixCls:h},d,{close:v,open:c,afterClose:()=>{var e;r(),null===(e=d.afterClose)||void 0===e||e.call(d)},okText:d.okText||(y?null==E?void 0:E.okText:null==E?void 0:E.justOkText),direction:d.direction||f,cancelText:d.cancelText||(null==E?void 0:E.cancelText)},s))});let e$=0,eW=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function eV(e){return eP(eM(e))}ex.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&((0,o.Z)(t).forEach(e=>{e()}),n([]))},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;e$+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),d=!1,p=a.createElement(eG,{key:"modal-".concat(e$),config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(p))&&eN.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,u.then(e))}},[]);return[a.useMemo(()=>({info:r(eL),success:r(eD),error:r(ej),warning:r(eM),confirm:r(eF)}),[]),a.createElement(eW,{key:"modal-holder",ref:e})]},ex.info=function(e){return eP(eL(e))},ex.success=function(e){return eP(eD(e))},ex.error=function(e){return eP(ej(e))},ex.warning=eV,ex.warn=eV,ex.confirm=function(e){return eP(eF(e))},ex.destroyAll=function(){for(;eN.length;){let e=eN.pop();e&&e()}},ex.config=function(e){let{rootPrefixCls:t}=e;eR=t},ex._InternalPanelDoNotUseOrYouWillBeFired=eZ;var eq=ex},4678:function(e,t,n){n.d(t,{A:function(){return s},f:function(){return l}});var r=n(79474);let o=Object.assign({},r.Z.Modal),a=[],i=()=>a.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},38302:function(e,t,n){var r=n(5056);t.Z=r.Z},50670:function(e,t,n){n.d(t,{default:function(){return tT}});var r=n(64090),o=n(16480),a=n.n(o),i=n(14749),l=n(63787),s=n(50833),c=n(5239),u=n(80406),d=n(6787),p=n(6976),f=n(44329),m=n(53850),g=n(24800),h=n(76158),b=n(4295),v=n(74084),y=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,l=e.onMouseDown,s=e.onClick,c="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:r.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))},E=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=r.useMemo(function(){return"object"===(0,p.Z)(o)?o.clearIcon:a||void 0},[o,a]);return{allowClear:r.useMemo(function(){return!i&&!!o&&(!!n.length||!!l)&&!("combobox"===s&&""===l)},[o,i,n.length,l,s]),clearIcon:r.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},S=r.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var x=n(72480),O=n(54739),k=r.forwardRef(function(e,t){var n,o=e.prefixCls,i=e.id,l=e.inputElement,s=e.disabled,u=e.tabIndex,d=e.autoFocus,p=e.autoComplete,f=e.editable,g=e.activeDescendantId,h=e.value,b=e.maxLength,y=e.onKeyDown,E=e.onMouseDown,S=e.onChange,w=e.onPaste,x=e.onCompositionStart,O=e.onCompositionEnd,k=e.open,C=e.attrs,T=l||r.createElement("input",null),A=T,I=A.ref,N=A.props,R=N.onKeyDown,_=N.onChange,P=N.onMouseDown,M=N.onCompositionStart,L=N.onCompositionEnd,D=N.style;return(0,m.Kp)(!("maxLength"in T.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),T=r.cloneElement(T,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},N),{},{id:i,ref:(0,v.sQ)(t,I),disabled:s,tabIndex:u,autoComplete:p||"off",autoFocus:d,className:a()("".concat(o,"-selection-search-input"),null===(n=T)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?g:void 0},C),{},{value:f?h:"",maxLength:b,readOnly:!f,unselectable:f?null:"on",style:(0,c.Z)((0,c.Z)({},D),{},{opacity:f?null:0}),onKeyDown:function(e){y(e),R&&R(e)},onMouseDown:function(e){E(e),P&&P(e)},onChange:function(e){S(e),_&&_(e)},onCompositionStart:function(e){x(e),M&&M(e)},onCompositionEnd:function(e){O(e),L&&L(e)},onPaste:w}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T=window.document&&window.document.documentElement;function A(e){return["string","number"].includes((0,p.Z)(e))}function I(e){var t=void 0;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var R=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,c=e.open,d=e.searchValue,p=e.autoClearSearchValue,f=e.inputRef,m=e.placeholder,g=e.disabled,h=e.mode,b=e.showSearch,v=e.autoFocus,E=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,C=e.removeIcon,A=e.maxTagCount,_=e.maxTagTextLength,P=e.maxTagPlaceholder,M=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,L=e.tagRender,D=e.onToggleOpen,j=e.onRemove,F=e.onInputChange,B=e.onInputPaste,U=e.onInputKeyDown,Z=e.onInputMouseDown,z=e.onInputCompositionStart,H=e.onInputCompositionEnd,G=r.useRef(null),$=(0,r.useState)(0),W=(0,u.Z)($,2),V=W[0],q=W[1],Y=(0,r.useState)(!1),K=(0,u.Z)(Y,2),X=K[0],Q=K[1],J="".concat(i,"-selection"),ee=c||"multiple"===h&&!1===p||"tags"===h?d:"",et="tags"===h||"multiple"===h&&!1===p||b&&(c||X);t=function(){q(G.current.scrollWidth)},n=[ee],T?r.useLayoutEffect(t,n):r.useEffect(t,n);var en=function(e,t,n,o,i){return r.createElement("span",{title:I(e),className:a()("".concat(J,"-item"),(0,s.Z)({},"".concat(J,"-item-disabled"),n))},r.createElement("span",{className:"".concat(J,"-item-content")},t),o&&r.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:R,onClick:i,customizeIcon:C},"\xd7"))},er=r.createElement("div",{className:"".concat(J,"-search"),style:{width:V},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},r.createElement(k,{ref:f,open:c,prefixCls:i,id:o,inputElement:null,disabled:g,autoFocus:v,autoComplete:E,editable:et,activeDescendantId:S,value:ee,onKeyDown:U,onMouseDown:Z,onChange:F,onPaste:B,onCompositionStart:z,onCompositionEnd:H,tabIndex:w,attrs:(0,x.Z)(e,!0)}),r.createElement("span",{ref:G,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),eo=r.createElement(O.Z,{prefixCls:"".concat(J,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,o=e.label,a=e.value,i=!g&&!n,l=o;if("number"==typeof _&&("string"==typeof o||"number"==typeof o)){var s=String(l);s.length>_&&(l="".concat(s.slice(0,_),"..."))}var u=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof L?(t=l,r.createElement("span",{onMouseDown:function(e){R(e),D(!c)}},L({label:t,value:a,disabled:n,closable:i,onClose:u}))):en(e,l,n,i,u)},renderRest:function(e){var t="function"==typeof M?M(e):M;return en({title:t},t,!1)},suffix:er,itemKey:N,maxCount:A});return r.createElement(r.Fragment,null,eo,!l.length&&!ee&&r.createElement("span",{className:"".concat(J,"-placeholder")},m))},P=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,d=e.mode,p=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,E=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,O=e.onInputPaste,C=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=e.title,N=r.useState(!1),R=(0,u.Z)(N,2),_=R[0],P=R[1],M="combobox"===d,L=M||h,D=f[0],j=b||"";M&&v&&!_&&(j=v),r.useEffect(function(){M&&P(!1)},[M,v]);var F=("combobox"===d||!!p||!!h)&&!!j,B=void 0===A?I(D):A,U=r.useMemo(function(){return D?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},m)},[D,F,m,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(k,{ref:a,prefixCls:n,id:o,open:p,inputElement:t,disabled:i,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:c,value:j,onKeyDown:E,onMouseDown:S,onChange:function(e){P(!0),w(e)},onPaste:O,onCompositionStart:C,onCompositionEnd:T,tabIndex:g,attrs:(0,x.Z)(e,!0),maxLength:M?y:void 0})),!M&&D?r.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:F?{visibility:"hidden"}:void 0},D.label):null,U)},M=r.forwardRef(function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=e.prefixCls,l=e.open,s=e.mode,c=e.showSearch,d=e.tokenWithEnter,p=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=w(0),E=(0,u.Z)(y,2),S=E[0],x=E[1],O=(0,r.useRef)(null),k=function(e){!1!==f(e,!0,o.current)&&g(!0)},C={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===b.Z.UP||t===b.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==b.Z.ENTER||"tags"!==s||o.current||l||null==m||m(e.target.value),[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(d&&O.current&&/[\r\n]/.test(O.current)){var n=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,O.current)}O.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");O.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},T="multiple"===s||"tags"===s?r.createElement(_,(0,i.Z)({},e,C)):r.createElement(P,(0,i.Z)({},e,C));return r.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||c&&t)&&l||(l&&!1!==p&&f("",!0,!1),g())}},T)}),L=n(44101),D=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},F=r.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,u=e.popupElement,p=e.animation,f=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,b=e.placement,v=e.builtinPlacements,y=e.dropdownMatchSelectWidth,E=e.dropdownRender,S=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,O=e.getTriggerDOMNode,k=e.onPopupVisibleChange,C=e.onPopupMouseEnter,T=(0,d.Z)(e,D),A="".concat(n,"-dropdown"),I=u;E&&(I=E(u));var N=r.useMemo(function(){return v||j(y)},[v,y]),R=p?"".concat(A,"-").concat(p):f,_="number"==typeof y,P=r.useMemo(function(){return _?null:!1===y?"minWidth":"width"},[y,_]),M=m;_&&(M=(0,c.Z)((0,c.Z)({},M),{},{width:y}));var F=r.useRef(null);return r.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current}}}),r.createElement(L.Z,(0,i.Z)({},T,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===(void 0===h?"ltr":h)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:A,popupTransitionName:R,popup:r.createElement("div",{ref:F,onMouseEnter:C},I),stretch:P,popupAlign:S,popupVisible:o,getPopupContainer:w,popupClassName:a()(g,(0,s.Z)({},"".concat(A,"-empty"),x)),popupStyle:M,getTriggerDOMNode:O,onPopupVisibleChange:k}),l)}),B=n(56721);function U(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function Z(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function z(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var H=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,B.Z)(n),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},G=r.createContext(null),$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],V=function(e){return"tags"===e||"multiple"===e},q=r.forwardRef(function(e,t){var n,o,m,x,O,k,C,T,A=e.id,I=e.prefixCls,N=e.className,R=e.showSearch,_=e.tagRender,P=e.direction,L=e.omitDomProps,D=e.displayValues,j=e.onDisplayValuesChange,B=e.emptyOptions,U=e.notFoundContent,Z=void 0===U?"Not Found":U,z=e.onClear,q=e.mode,Y=e.disabled,K=e.loading,X=e.getInputElement,Q=e.getRawInputElement,J=e.open,ee=e.defaultOpen,et=e.onDropdownVisibleChange,en=e.activeValue,er=e.onActiveValueChange,eo=e.activeDescendantId,ea=e.searchValue,ei=e.autoClearSearchValue,el=e.onSearch,es=e.onSearchSplit,ec=e.tokenSeparators,eu=e.allowClear,ed=e.suffixIcon,ep=e.clearIcon,ef=e.OptionList,em=e.animation,eg=e.transitionName,eh=e.dropdownStyle,eb=e.dropdownClassName,ev=e.dropdownMatchSelectWidth,ey=e.dropdownRender,eE=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,ex=e.getPopupContainer,eO=e.showAction,ek=void 0===eO?[]:eO,eC=e.onFocus,eT=e.onBlur,eA=e.onKeyUp,eI=e.onKeyDown,eN=e.onMouseDown,eR=(0,d.Z)(e,$),e_=V(q),eP=(void 0!==R?R:e_)||"combobox"===q,eM=(0,c.Z)({},eR);W.forEach(function(e){delete eM[e]}),null==L||L.forEach(function(e){delete eM[e]});var eL=r.useState(!1),eD=(0,u.Z)(eL,2),ej=eD[0],eF=eD[1];r.useEffect(function(){eF((0,h.Z)())},[]);var eB=r.useRef(null),eU=r.useRef(null),eZ=r.useRef(null),ez=r.useRef(null),eH=r.useRef(null),eG=r.useRef(!1),e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,u.Z)(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};return r.useEffect(function(){return l},[]),[o,function(t,n){l(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},l]}(),eW=(0,u.Z)(e$,3),eV=eW[0],eq=eW[1],eY=eW[2];r.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ez.current)||void 0===e?void 0:e.focus,blur:null===(t=ez.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eH.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=r.useMemo(function(){if("combobox"!==q)return ea;var e,t=null===(e=D[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[ea,q,D]),eX="combobox"===q&&"function"==typeof X&&X()||null,eQ="function"==typeof Q&&Q(),eJ=(0,v.x1)(eU,null==eQ||null===(x=eQ.props)||void 0===x?void 0:x.ref),e0=r.useState(!1),e1=(0,u.Z)(e0,2),e2=e1[0],e4=e1[1];(0,g.Z)(function(){e4(!0)},[]);var e3=(0,f.Z)(!1,{defaultValue:ee,value:J}),e6=(0,u.Z)(e3,2),e5=e6[0],e8=e6[1],e9=!!e2&&e5,e7=!Z&&B;(Y||e7&&e9&&"combobox"===q)&&(e9=!1);var te=!e7&&e9,tt=r.useCallback(function(e){var t=void 0!==e?e:!e9;Y||(e8(t),e9!==t&&(null==et||et(t)))},[Y,e9,e8,et]),tn=r.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),tr=r.useContext(G)||{},to=tr.maxCount,ta=tr.rawValues,ti=function(e,t,n){if(!((null==ta?void 0:ta.size)>=to)){var r=!0,o=e;null==er||er(null);var a=H(e,ec,to&&to-ta.size),i=n?null:a;return"combobox"!==q&&i&&(o="",null==es||es(i),tt(!1),r=!1),el&&eK!==o&&el(o,{source:t?"typing":"effect"}),r}};r.useEffect(function(){e9||e_||"combobox"===q||ti("",!1,!1)},[e9]),r.useEffect(function(){e5&&Y&&e8(!1),Y&&!eG.current&&eq(!1)},[Y]);var tl=w(),ts=(0,u.Z)(tl,2),tc=ts[0],tu=ts[1],td=r.useRef(!1),tp=[];r.useEffect(function(){return function(){tp.forEach(function(e){return clearTimeout(e)}),tp.splice(0,tp.length)}},[]);var tf=r.useState({}),tm=(0,u.Z)(tf,2)[1];eQ&&(k=function(e){tt(e)}),n=function(){var e;return[eB.current,null===(e=eZ.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eQ,(m=r.useRef(null)).current={open:te,triggerOpen:tt,customizedTrigger:o},r.useEffect(function(){function e(e){if(null===(t=m.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),m.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&m.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=r.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:Z,open:e9,triggerOpen:te,id:A,showSearch:eP,multiple:e_,toggleOpen:tt})},[e,Z,te,e9,A,eP,e_,tt]),th=!!ed||K;th&&(C=r.createElement(y,{className:a()("".concat(I,"-arrow"),(0,s.Z)({},"".concat(I,"-arrow-loading"),K)),customizeIcon:ed,customizeIconProps:{loading:K,searchValue:eK,open:e9,focused:eV,showSearch:eP}}));var tb=E(I,function(){var e;null==z||z(),null===(e=ez.current)||void 0===e||e.focus(),j([],{type:"clear",values:D}),ti("",!1,!1)},D,eu,ep,Y,eK,q),tv=tb.allowClear,ty=tb.clearIcon,tE=r.createElement(ef,{ref:eH}),tS=a()(I,N,(O={},(0,s.Z)(O,"".concat(I,"-focused"),eV),(0,s.Z)(O,"".concat(I,"-multiple"),e_),(0,s.Z)(O,"".concat(I,"-single"),!e_),(0,s.Z)(O,"".concat(I,"-allow-clear"),eu),(0,s.Z)(O,"".concat(I,"-show-arrow"),th),(0,s.Z)(O,"".concat(I,"-disabled"),Y),(0,s.Z)(O,"".concat(I,"-loading"),K),(0,s.Z)(O,"".concat(I,"-open"),e9),(0,s.Z)(O,"".concat(I,"-customize-input"),eX),(0,s.Z)(O,"".concat(I,"-show-search"),eP),O)),tw=r.createElement(F,{ref:eZ,disabled:Y,prefixCls:I,visible:te,popupElement:tE,animation:em,transitionName:eg,dropdownStyle:eh,dropdownClassName:eb,direction:P,dropdownMatchSelectWidth:ev,dropdownRender:ey,dropdownAlign:eE,placement:eS,builtinPlacements:ew,getPopupContainer:ex,empty:B,getTriggerDOMNode:function(){return eU.current},onPopupVisibleChange:k,onPopupMouseEnter:function(){tm({})}},eQ?r.cloneElement(eQ,{ref:eJ}):r.createElement(M,(0,i.Z)({},e,{domRef:eU,prefixCls:I,inputElement:eX,ref:ez,id:A,showSearch:eP,autoClearSearchValue:ei,mode:q,activeDescendantId:eo,tagRender:_,values:D,open:e9,onToggleOpen:tt,activeValue:en,searchValue:eK,onSearch:ti,onSearchSubmit:function(e){e&&e.trim()&&el(e,{source:"submit"})},onRemove:function(e){j(D.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tn})));return T=eQ?tw:r.createElement("div",(0,i.Z)({className:tS},eM,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eZ.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tp.indexOf(o);-1!==t&&tp.splice(t,1),eY(),ej||r.contains(document.activeElement)||null===(e=ez.current)||void 0===e||e.focus()});tp.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&j(o,{type:"remove",values:[a]})}for(var c=arguments.length,u=Array(c>1?c-1:0),d=1;d1?n-1:0),o=1;o0?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,K.height="100%",K.width=h,_?K.left=H:K.right=H):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,K.width="100%",K.height=h,K.top=H),r.createElement("div",{ref:P,className:a()(q,(n={},(0,s.Z)(n,"".concat(q,"-horizontal"),g),(0,s.Z)(n,"".concat(q,"-vertical"),!g),(0,s.Z)(n,"".concat(q,"-visible"),j),n)),style:(0,c.Z)((0,c.Z)({},Y),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:U},r.createElement("div",{ref:M,className:a()("".concat(q,"-thumb"),(0,s.Z)({},"".concat(q,"-thumb-moving"),w)),style:(0,c.Z)((0,c.Z)({},K),y),onMouseDown:$}))});function ea(e){var t=e.children,n=e.setRef,o=r.useCallback(function(e){n(e)},[]);return r.cloneElement(t,{ref:o})}var ei=n(97472),el=n(47365),es=n(65127),ec=function(){function e(){(0,el.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,es.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eu=n(48563),ed=("undefined"==typeof navigator?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);function ep(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(null),a=(0,r.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&a.current.top||e>0&&a.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):(!r||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&r}}var ef=14/15;function em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var eg=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],eh=[],eb={overflowY:"auto",overflowAnchor:"none"},ev=r.forwardRef(function(e,t){var n,o,l,f,m,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W=e.prefixCls,V=void 0===W?"rc-virtual-list":W,q=e.className,Y=e.height,K=e.itemHeight,X=e.fullHeight,Q=e.style,er=e.data,el=e.children,es=e.itemKey,ev=e.virtual,ey=e.direction,eE=e.scrollWidth,eS=e.component,ew=e.onScroll,ex=e.onVirtualScroll,eO=e.onVisibleChange,ek=e.innerProps,eC=e.extraRender,eT=e.styles,eA=(0,d.Z)(e,eg),eI=!!(!1!==ev&&Y&&K),eN=eI&&er&&(K*er.length>Y||!!eE),eR="rtl"===ey,e_=a()(V,(0,s.Z)({},"".concat(V,"-rtl"),eR),q),eP=er||eh,eM=(0,r.useRef)(),eL=(0,r.useRef)(),eD=(0,r.useState)(0),ej=(0,u.Z)(eD,2),eF=ej[0],eB=ej[1],eU=(0,r.useState)(0),eZ=(0,u.Z)(eU,2),ez=eZ[0],eH=eZ[1],eG=(0,r.useState)(!1),e$=(0,u.Z)(eG,2),eW=e$[0],eV=e$[1],eq=function(){eV(!0)},eY=function(){eV(!1)},eK=r.useCallback(function(e){return"function"==typeof es?es(e):null==e?void 0:e[es]},[es]);function eX(e){eB(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tp.current)||(n=Math.min(n,tp.current)),n=Math.max(n,0));return eM.current.scrollTop=r,r})}var eQ=(0,r.useRef)({start:0,end:eP.length}),eJ=(0,r.useRef)(),e0=(o=r.useState(eP),f=(l=(0,u.Z)(o,2))[0],m=l[1],h=r.useState(null),v=(b=(0,u.Z)(h,2))[0],y=b[1],r.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a0&&void 0!==arguments[0]&&arguments[0];p();var t=function(){s.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,ei.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}}),l(function(e){return e+1})};e?t():d.current=(0,en.Z)(t)}return(0,r.useEffect)(function(){return p},[]),[function(r,o){var a=e(r),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,i]}(eK,null,null),e4=(0,u.Z)(e2,4),e3=e4[0],e6=e4[1],e5=e4[2],e8=e4[3],e9=r.useMemo(function(){if(!eI)return{scrollHeight:void 0,start:0,end:eP.length-1,offset:void 0};if(!eN)return{scrollHeight:(null===(e=eL.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eP.length-1,offset:void 0};for(var e,t,n,r,o=0,a=eP.length,i=0;i=eF&&void 0===t&&(t=i,n=o),c>eF+Y&&void 0===r&&(r=i),o=c}return void 0===t&&(t=0,n=0,r=Math.ceil(Y/K)),void 0===r&&(r=eP.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,eP.length-1),offset:n}},[eN,eI,eF,eP,e8,Y]),e7=e9.scrollHeight,te=e9.start,tt=e9.end,tn=e9.offset;eQ.current.start=te,eQ.current.end=tt;var tr=r.useState({width:0,height:Y}),to=(0,u.Z)(tr,2),ta=to[0],ti=to[1],tl=(0,r.useRef)(),ts=(0,r.useRef)(),tc=r.useMemo(function(){return em(ta.width,eE)},[ta.width,eE]),tu=r.useMemo(function(){return em(ta.height,e7)},[ta.height,e7]),td=e7-Y,tp=(0,r.useRef)(td);tp.current=td;var tf=eF<=0,tm=eF>=td,tg=ep(tf,tm),th=function(){return{x:eR?-ez:ez,y:eF}},tb=(0,r.useRef)(th()),tv=(0,eu.zX)(function(){if(ex){var e=th();(tb.current.x!==e.x||tb.current.y!==e.y)&&(ex(e),tb.current=e)}});function ty(e,t){t?((0,J.flushSync)(function(){eH(e)}),tv()):eX(e)}var tE=function(e){var t=e,n=eE-ta.width;return Math.min(t=Math.max(t,0),n)},tS=(0,eu.zX)(function(e,t){t?((0,J.flushSync)(function(){eH(function(t){return tE(t+(eR?-e:e))})}),tv()):eX(function(t){return t+e})}),tw=(E=!!eE,S=(0,r.useRef)(0),w=(0,r.useRef)(null),x=(0,r.useRef)(null),O=(0,r.useRef)(!1),k=ep(tf,tm),C=(0,r.useRef)(null),T=(0,r.useRef)(null),[function(e){if(eI){en.Z.cancel(T.current),T.current=(0,en.Z)(function(){C.current=null},2);var t,n=e.deltaX,r=e.deltaY,o=e.shiftKey,a=n,i=r;("sx"===C.current||!C.current&&o&&r&&!n)&&(a=r,i=0,C.current="sx");var l=Math.abs(a),s=Math.abs(i);(null===C.current&&(C.current=E&&l>s?"x":"y"),"y"===C.current)?(t=i,en.Z.cancel(w.current),S.current+=t,x.current=t,k(t)||(ed||e.preventDefault(),w.current=(0,en.Z)(function(){var e=O.current?10:1;tS(S.current*e),S.current=0}))):(tS(a,!0),ed||e.preventDefault())}},function(e){eI&&(O.current=e.detail===x.current)}]),tx=(0,u.Z)(tw,2),tO=tx[0],tk=tx[1];A=function(e,t){return!tg(e,t)&&(tO({preventDefault:function(){},deltaY:e}),!0)},N=(0,r.useRef)(!1),R=(0,r.useRef)(0),_=(0,r.useRef)(null),P=(0,r.useRef)(null),M=function(e){if(N.current){var t=Math.ceil(e.touches[0].pageY),n=R.current-t;R.current=t,A(n)&&e.preventDefault(),clearInterval(P.current),P.current=setInterval(function(){(!A(n*=ef,!0)||.1>=Math.abs(n))&&clearInterval(P.current)},16)}},L=function(){N.current=!1,I()},D=function(e){I(),1!==e.touches.length||N.current||(N.current=!0,R.current=Math.ceil(e.touches[0].pageY),_.current=e.target,_.current.addEventListener("touchmove",M),_.current.addEventListener("touchend",L))},I=function(){_.current&&(_.current.removeEventListener("touchmove",M),_.current.removeEventListener("touchend",L))},(0,g.Z)(function(){return eI&&eM.current.addEventListener("touchstart",D),function(){var e;null===(e=eM.current)||void 0===e||e.removeEventListener("touchstart",D),I(),clearInterval(P.current)}},[eI]),(0,g.Z)(function(){function e(e){eI&&e.preventDefault()}var t=eM.current;return t.addEventListener("wheel",tO),t.addEventListener("DOMMouseScroll",tk),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tO),t.removeEventListener("DOMMouseScroll",tk),t.removeEventListener("MozMousePixelScroll",e)}},[eI]),(0,g.Z)(function(){eE&&eH(function(e){return tE(e)})},[ta.width,eE]);var tC=function(){var e,t;null===(e=tl.current)||void 0===e||e.delayHidden(),null===(t=ts.current)||void 0===t||t.delayHidden()},tT=(j=r.useRef(),F=r.useState(null),U=(B=(0,u.Z)(F,2))[0],Z=B[1],(0,g.Z)(function(){if(U&&U.times<10){if(!eM.current){Z(function(e){return(0,c.Z)({},e)});return}e6(!0);var e=U.targetAlign,t=U.originAlign,n=U.index,r=U.offset,o=eM.current.clientHeight,a=!1,i=e,l=null;if(o){for(var s=e||t,u=0,d=0,p=0,f=Math.min(eP.length-1,n),m=0;m<=f;m+=1){var g=eK(eP[m]);d=u;var h=e5.get(g);u=p=d+(void 0===h?K:h)}for(var b="top"===s?r:o-r,v=f;v>=0;v-=1){var y=eK(eP[v]),E=e5.get(y);if(void 0===E){a=!0;break}if((b-=E)<=0)break}switch(s){case"top":l=d-r;break;case"bottom":l=p-o+r;break;default:var S=eM.current.scrollTop;dS+o&&(i="bottom")}null!==l&&eX(l),l!==U.lastTop&&(a=!0)}a&&Z((0,c.Z)((0,c.Z)({},U),{},{times:U.times+1,targetAlign:i,lastTop:l}))}},[U,eM.current]),function(e){if(null==e){tC();return}if(en.Z.cancel(j.current),"number"==typeof e)eX(e);else if(e&&"object"===(0,p.Z)(e)){var t,n=e.align;t="index"in e?e.index:eP.findIndex(function(t){return eK(t)===e.key});var r=e.offset;Z({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});r.useImperativeHandle(t,function(){return{getScrollInfo:th,scrollTo:function(e){e&&"object"===(0,p.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tE(e.left)),tT(e.top)):tT(e)}}}),(0,g.Z)(function(){eO&&eO(eP.slice(te,tt+1),eP)},[te,tt,eP]);var tA=(z=r.useMemo(function(){return[new Map,[]]},[eP,e5.id,K]),G=(H=(0,u.Z)(z,2))[0],$=H[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=G.get(e),r=G.get(t);if(void 0===n||void 0===r)for(var o=eP.length,a=$.length;aY&&r.createElement(eo,{ref:tl,prefixCls:V,scrollOffset:eF,scrollRange:e7,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tu,containerSize:ta.height,style:null==eT?void 0:eT.verticalScrollBar,thumbStyle:null==eT?void 0:eT.verticalScrollBarThumb}),eN&&eE&&r.createElement(eo,{ref:ts,prefixCls:V,scrollOffset:ez,scrollRange:eE,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tc,containerSize:ta.width,horizontal:!0,style:null==eT?void 0:eT.horizontalScrollBar,thumbStyle:null==eT?void 0:eT.horizontalScrollBarThumb}))});ev.displayName="List";var ey=["disabled","title","children","style","className"];function eE(e){return"string"==typeof e||"number"==typeof e}var eS=r.forwardRef(function(e,t){var n=r.useContext(S),o=n.prefixCls,c=n.id,p=n.open,f=n.multiple,m=n.mode,g=n.searchValue,h=n.toggleOpen,v=n.notFoundContent,E=n.onPopupScroll,w=r.useContext(G),O=w.maxCount,k=w.flattenOptions,C=w.onActiveValue,T=w.defaultActiveFirstOption,A=w.onSelect,I=w.menuItemSelectedIcon,N=w.rawValues,R=w.fieldNames,_=w.virtual,P=w.direction,M=w.listHeight,L=w.listItemHeight,D=w.optionRender,j="".concat(o,"-item"),F=(0,X.Z)(function(){return k},[p,k],function(e,t){return t[0]&&e[1]!==t[1]}),B=r.useRef(null),U=r.useMemo(function(){return f&&void 0!==O&&(null==N?void 0:N.size)>=O},[f,O,null==N?void 0:N.size]),Z=function(e){e.preventDefault()},z=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=F[e];if(!r){C(null,-1,n);return}C(r.value,e,n)};(0,r.useEffect)(function(){Y(!1!==T?H(0):-1)},[F.length,g]);var K=r.useCallback(function(e){return N.has(e)&&"combobox"!==m},[m,(0,l.Z)(N).toString(),N.size]);(0,r.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&p&&1===N.size){var e=Array.from(N)[0],t=F.findIndex(function(t){return t.data.value===e});-1!==t&&(Y(t),z(t))}});return p&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[p,g]);var J=function(e){void 0!==e&&A(e,{selected:!N.has(e)}),f||h(!1)};if(r.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var r=0;if(t===b.Z.UP?r=-1:t===b.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?r=1:t===b.Z.P&&(r=-1)),0!==r){var o=H(V+r,r);z(o),Y(o,!0)}break;case b.Z.ENTER:var a,i=F[V];!i||null!=i&&null!==(a=i.data)&&void 0!==a&&a.disabled||U?J(void 0):J(i.value),p&&e.preventDefault();break;case b.Z.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===F.length)return r.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(j,"-empty"),onMouseDown:Z},v);var ee=Object.keys(R).map(function(e){return R[e]}),et=function(e){return e.label};function en(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var er=function(e){var t=F[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,l=(0,x.Z)(n,!0),s=et(t);return t?r.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof s||a?null:s},l,{key:e},en(t,e),{"aria-selected":K(o)}),o):null},eo={role:"listbox",id:"".concat(c,"_list")};return r.createElement(r.Fragment,null,_&&r.createElement("div",(0,i.Z)({},eo,{style:{height:0,width:0,overflow:"hidden"}}),er(V-1),er(V),er(V+1)),r.createElement(ev,{itemKey:"key",ref:B,data:F,height:M,itemHeight:L,fullHeight:!1,onMouseDown:Z,onScroll:E,virtual:_,direction:P,innerProps:_?null:eo},function(e,t){var n=e.group,o=e.groupOption,l=e.data,c=e.label,u=e.value,p=l.key;if(n){var f,m,g=null!==(m=l.title)&&void 0!==m?m:eE(c)?c.toString():void 0;return r.createElement("div",{className:a()(j,"".concat(j,"-group")),title:g},void 0!==c?c:p)}var h=l.disabled,b=l.title,v=(l.children,l.style),E=l.className,S=(0,d.Z)(l,ey),w=(0,Q.Z)(S,ee),O=K(u),k=h||!O&&U,C="".concat(j,"-option"),T=a()(j,C,E,(f={},(0,s.Z)(f,"".concat(C,"-grouped"),o),(0,s.Z)(f,"".concat(C,"-active"),V===t&&!k),(0,s.Z)(f,"".concat(C,"-disabled"),k),(0,s.Z)(f,"".concat(C,"-selected"),O),f)),A=et(e),N=!I||"function"==typeof I||O,R="number"==typeof A?A:A||u,P=eE(R)?R.toString():void 0;return void 0!==b&&(P=b),r.createElement("div",(0,i.Z)({},(0,x.Z)(w),_?{}:en(e,t),{"aria-selected":O,className:T,title:P,onMouseMove:function(){V===t||k||Y(t)},onClick:function(){k||J(u)},style:v}),r.createElement("div",{className:"".concat(C,"-content")},"function"==typeof D?D(e,{index:t}):R),r.isValidElement(I)||O,N&&r.createElement(y,{className:"".concat(j,"-option-state"),customizeIcon:I,customizeIconProps:{value:u,disabled:k,isSelected:O}},O?"✓":null))}))});function ew(e,t){return C(e).join("").toUpperCase().includes(t)}var ex=n(22127),eO=0,ek=(0,ex.Z)(),eC=n(33054),eT=["children","value"],eA=["children"];function eI(e){var t=r.useRef();return t.current=e,r.useCallback(function(){return t.current.apply(t,arguments)},[])}var eN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],eR=["inputValue"],e_=r.forwardRef(function(e,t){var n,o,a,m,g,h,b,v=e.id,y=e.mode,E=e.prefixCls,S=e.backfill,w=e.fieldNames,x=e.inputValue,O=e.searchValue,k=e.onSearch,T=e.autoClearSearchValue,A=void 0===T||T,I=e.onSelect,N=e.onDeselect,R=e.dropdownMatchSelectWidth,_=void 0===R||R,P=e.filterOption,M=e.filterSort,L=e.optionFilterProp,D=e.optionLabelProp,j=e.options,F=e.optionRender,B=e.children,H=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,W=e.virtual,Y=e.direction,K=e.listHeight,X=void 0===K?200:K,Q=e.listItemHeight,J=void 0===Q?20:Q,ee=e.value,et=e.defaultValue,en=e.labelInValue,er=e.onChange,eo=e.maxCount,ea=(0,d.Z)(e,eN),ei=(n=r.useState(),a=(o=(0,u.Z)(n,2))[0],m=o[1],r.useEffect(function(){var e;m("rc_select_".concat((ek?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),v||a),el=V(y),es=!!(!j&&B),ec=r.useMemo(function(){return(void 0!==P||"combobox"!==y)&&P},[P,y]),eu=r.useMemo(function(){return Z(w,es)},[JSON.stringify(w),es]),ed=(0,f.Z)("",{value:void 0!==O?O:x,postState:function(e){return e||""}}),ep=(0,u.Z)(ed,2),ef=ep[0],em=ep[1],eg=r.useMemo(function(){var e=j;j||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eC.Z)(t).map(function(t,o){if(!r.isValidElement(t)||!t.type)return null;var a,i,l,s,u,p=t.type.isSelectOptGroup,f=t.key,m=t.props,g=m.children,h=(0,d.Z)(m,eA);return n||!p?(a=t.key,l=(i=t.props).children,s=i.value,u=(0,d.Z)(i,eT),(0,c.Z)({key:a,value:void 0!==s?s:a,children:l},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===f?o:f,"__"),label:f},h),{},{options:e(g)})}).filter(function(e){return e})}(B));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Z(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&s in t){var a=t[c];void 0===a&&r&&(a=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:a}),e(t[s],!0)}else{var u=t[l];o.push({key:U(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(eH,{fieldNames:eu,childrenAsData:es})},[eH,eu,es]),e$=function(e){var t=ey(e);if(eP(t),er&&(t.length!==eD.length||t.some(function(e,t){var n;return(null===(n=eD[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=en?t:t.map(function(e){return e.value}),r=t.map(function(e){return z(ej(e.value))});er(el?n:n[0],el?r:r[0])}},eW=r.useState(null),eV=(0,u.Z)(eW,2),eq=eV[0],eY=eV[1],eK=r.useState(0),eX=(0,u.Z)(eK,2),eQ=eX[0],eJ=eX[1],e0=void 0!==H?H:"combobox"!==y,e1=r.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eJ(t),S&&"combobox"===y&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eY(String(e))},[S,y]),e2=function(e,t,n){var r=function(){var t,n=ej(e);return[en?{label:null==n?void 0:n[eu.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,z(n)]};if(t&&I){var o=r(),a=(0,u.Z)(o,2);I(a[0],a[1])}else if(!t&&N&&"clear"!==n){var i=r(),l=(0,u.Z)(i,2);N(l[0],l[1])}},e4=eI(function(e,t){var n=!el||t.selected;e$(n?el?[].concat((0,l.Z)(eD),[e]):[e]:eD.filter(function(t){return t.value!==e})),e2(e,n),"combobox"===y?eY(""):(!V||A)&&(em(""),eY(""))}),e3=r.useMemo(function(){var e=!1!==W&&!1!==_;return(0,c.Z)((0,c.Z)({},eg),{},{flattenOptions:eG,onActiveValue:e1,defaultActiveFirstOption:e0,onSelect:e4,menuItemSelectedIcon:$,rawValues:eB,fieldNames:eu,virtual:e,direction:Y,listHeight:X,listItemHeight:J,childrenAsData:es,maxCount:eo,optionRender:F})},[eo,eg,eG,e1,e0,e4,$,eB,eu,W,_,Y,X,J,es,F]);return r.createElement(G.Provider,{value:e3},r.createElement(q,(0,i.Z)({},ea,{id:ei,prefixCls:void 0===E?"rc-select":E,ref:t,omitDomProps:eR,mode:y,displayValues:eF,onDisplayValuesChange:function(e,t){e$(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){e2(e.value,!1,n)})},direction:Y,searchValue:ef,onSearch:function(e,t){if(em(e),eY(null),"submit"===t.source){var n=(e||"").trim();n&&(e$(Array.from(new Set([].concat((0,l.Z)(eB),[n])))),e2(n,!0),em(""));return}"blur"!==t.source&&("combobox"===y&&e$(e),null==k||k(e))},autoClearSearchValue:A,onSearchSplit:function(e){var t=e;"tags"!==y&&(t=e.map(function(e){var t=eb.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(eB),(0,l.Z)(t))));e$(n),n.forEach(function(e){e2(e,!0)})},dropdownMatchSelectWidth:_,OptionList:eS,emptyOptions:!eG.length,activeValue:eq,activeDescendantId:"".concat(ei,"_list_").concat(eQ)})))});e_.Option=K,e_.OptGroup=Y;var eP=n(51761),eM=n(47387),eL=n(21467),eD=n(47794),ej=n(57499),eF=n(70595),eB=n(6336),eU=n(24750),eZ=n(76585),ez=n(80316);let eH=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,["".concat(t,"-description")]:{color:e.colorTextDisabled},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}};var eG=(0,eZ.I$)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return[eH((0,ez.TS)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))]}),e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eW=r.createElement(()=>{let[,e]=(0,eU.ZP)(),t=new eB.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),eV=r.createElement(()=>{let[,e]=(0,eU.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=(0,r.useMemo)(()=>({borderColor:new eB.C(t).onBackground(a).toHexShortString(),shadowColor:new eB.C(n).onBackground(a).toHexShortString(),contentColor:new eB.C(o).onBackground(a).toHexShortString()}),[t,n,o,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:i},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),eq=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=eW,description:l,children:s,imageStyle:c,style:u}=e,d=e$(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:p,direction:f,empty:m}=r.useContext(ej.E_),g=p("empty",o),[h,b,v]=eG(g),[y]=(0,eF.Z)("Empty"),E=void 0!==l?l:null==y?void 0:y.description,S=null;return S="string"==typeof i?r.createElement("img",{alt:"string"==typeof E?E:"empty",src:i}):i,h(r.createElement("div",Object.assign({className:a()(b,v,g,null==m?void 0:m.className,{["".concat(g,"-normal")]:i===eV,["".concat(g,"-rtl")]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==m?void 0:m.style),u)},d),r.createElement("div",{className:"".concat(g,"-image"),style:c},S),E&&r.createElement("div",{className:"".concat(g,"-description")},E),s&&r.createElement("div",{className:"".concat(g,"-footer")},s)))};eq.PRESENTED_IMAGE_DEFAULT=eW,eq.PRESENTED_IMAGE_SIMPLE=eV;var eY=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(ej.E_),o=n("empty");switch(t){case"Table":case"List":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});default:return r.createElement(eq,null)}},eK=n(17094),eX=n(92935),eQ=n(10693),eJ=n(47137),e0=n(8443),e1=n(92801);let e2=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var e4=n(11303),e3=n(12288),e6=n(202),e5=n(25926);let e8=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var e9=e=>{let{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n ".concat(o).concat(l,"bottomLeft,\n ").concat(a).concat(l,"bottomLeft\n ")]:{animationName:e6.fJ},["\n ".concat(o).concat(l,"topLeft,\n ").concat(a).concat(l,"topLeft,\n ").concat(o).concat(l,"topRight,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:e6.Qt},["".concat(i).concat(l,"bottomLeft")]:{animationName:e6.Uw},["\n ".concat(i).concat(l,"topLeft,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:e6.ly},"&-hidden":{display:"none"},["".concat(r)]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e4.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,e6.oN)(e,"slide-up"),(0,e6.oN)(e,"slide-down"),(0,e5.Fm)(e,"move-up"),(0,e5.Fm)(e,"move-down")]},e7=n(8985);let te=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function tt(e,t){let{componentCls:n,iconCls:r}=e,o="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=te(e),l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(i).sub(2).equal(),borderRadius:e.borderRadius,["".concat(n,"-show-search&")]:{cursor:"text"},["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,e7.bf)(2)," 0"),lineHeight:(0,e7.bf)(a),visibility:"hidden",content:'"\\a0"'}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:(0,e7.bf)(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,e4.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(r)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}}var tn=e=>{let{componentCls:t}=e,n=(0,ez.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,ez.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tt(e),tt(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},tt(r,"lg")]};function tr(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,e4.Wf)(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat((0,e7.bf)(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:(0,e7.bf)(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,e7.bf)(r)),"&:after":{display:"none"}}}}}}}let to=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,e7.bf)(o)," ").concat(t.activeShadowColor),outline:0}}}},ta=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},to(e,t))}),ti=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},to(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ta(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ta(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),tl=(e,t)=>{let{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ts=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},tl(e,t))}),tc=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tl(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ts(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ts(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),tu=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}});var td=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ti(e)),tc(e)),tu(e))});let tp=e=>{let{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tf=e=>{let{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tm=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},tp(e)),tf(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e4.vS),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},e4.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,e4.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},tg=e=>{let{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},tm(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tr(e),tr((0,ez.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat((0,e7.bf)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tr((0,ez.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tn(e),e9(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,e3.c)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]};var th=(0,eZ.I$)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,ez.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tg(r),td(r)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:"".concat((r-t*n)/2,"px ").concat(o,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),tb=n(90507),tv=n(77136),ty=n(81303),tE=n(20383),tS=n(66155),tw=n(96871),tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tO="SECRET_COMBOBOX_MODE_DO_NOT_USE",tk=r.forwardRef((e,t)=>{var n,o,i;let l;let{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:p,popupClassName:f,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:b,size:v,disabled:y,notFoundContent:E,status:S,builtinPlacements:w,dropdownMatchSelectWidth:x,popupMatchSelectWidth:O,direction:k,style:C,allowClear:T,variant:A,dropdownStyle:I,transitionName:N,tagRender:R,maxCount:_}=e,P=tx(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:L,renderEmpty:D,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:U,select:Z}=r.useContext(ej.E_),[,z]=(0,eU.ZP)(),H=null!=b?b:null==z?void 0:z.controlHeight,G=L("select",s),$=L(),W=null!=k?k:j,{compactSize:V,compactItemClassnames:q}=(0,e1.ri)(G,W),[Y,K]=(0,e0.Z)(A,c),X=(0,eX.Z)(G),[J,ee,et]=th(G,X),en=r.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===tO?"combobox":t},[e.mode]),er="multiple"===en||"tags"===en,eo=(o=e.suffixIcon,void 0!==(i=e.showArrow)?i:null!==o),ea=null!==(n=null!=O?O:x)&&void 0!==n?n:B,{status:ei,hasFeedback:el,isFormItemInput:es,feedbackIcon:ec}=r.useContext(eJ.aM),eu=(0,eD.F)(ei,S);l=void 0!==E?E:"combobox"===en?null:(null==D?void 0:D("Select"))||r.createElement(eY,{componentName:"Select"});let{suffixIcon:ed,itemIcon:ep,removeIcon:ef,clearIcon:em}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e,m=null!=n?n:r.createElement(tv.Z,null),g=e=>null!==t||s||p?r.createElement(r.Fragment,null,!1!==u&&e,s&&d):null,h=null;if(void 0!==t)h=g(t);else if(i)h=g(r.createElement(tS.Z,{spin:!0}));else{let e="".concat(c,"-suffix");h=t=>{let{open:n,showSearch:o}=t;return n&&o?g(r.createElement(tw.Z,{className:e})):g(r.createElement(tE.Z,{className:e}))}}let b=null;return b=void 0!==o?o:l?r.createElement(tb.Z,null):null,{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:void 0!==a?a:r.createElement(ty.Z,null)}}(Object.assign(Object.assign({},P),{multiple:er,hasFeedback:el,feedbackIcon:ec,showSuffixIcon:eo,prefixCls:G,componentName:"Select"})),eg=(0,Q.Z)(P,["suffixIcon","itemIcon"]),eh=a()(f||m,{["".concat(G,"-dropdown-").concat(W)]:"rtl"===W},d,et,X,ee),eb=(0,eQ.Z)(e=>{var t;return null!==(t=null!=v?v:V)&&void 0!==t?t:e}),ev=r.useContext(eK.Z),ey=a()({["".concat(G,"-lg")]:"large"===eb,["".concat(G,"-sm")]:"small"===eb,["".concat(G,"-rtl")]:"rtl"===W,["".concat(G,"-").concat(Y)]:K,["".concat(G,"-in-form-item")]:es},(0,eD.Z)(G,eu,el),q,null==Z?void 0:Z.className,u,d,et,X,ee),eE=r.useMemo(()=>void 0!==h?h:"rtl"===W?"bottomRight":"bottomLeft",[h,W]),[eS]=(0,eP.Cn)("SelectLike",null==I?void 0:I.zIndex);return J(r.createElement(e_,Object.assign({ref:t,virtual:F,showSearch:null==Z?void 0:Z.showSearch},eg,{style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),dropdownMatchSelectWidth:ea,transitionName:(0,eM.m)($,"slide-up",N),builtinPlacements:w||e2(U),listHeight:g,listItemHeight:H,mode:en,prefixCls:G,placement:eE,direction:W,suffixIcon:ed,menuItemSelectedIcon:ep,removeIcon:ef,allowClear:!0===T?{clearIcon:em}:T,notFoundContent:l,className:ey,getPopupContainer:p||M,dropdownClassName:eh,disabled:null!=y?y:ev,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:eS}),maxCount:er?_:void 0,tagRender:er?R:void 0})))}),tC=(0,eL.Z)(tk);tk.SECRET_COMBOBOX_MODE_DO_NOT_USE=tO,tk.Option=K,tk.OptGroup=Y,tk._InternalPanelDoNotUseOrYouWillBeFired=tC;var tT=tk},92801:function(e,t,n){n.d(t,{BR:function(){return f},ri:function(){return p}});var r=n(16480),o=n.n(r),a=n(33054),i=n(64090),l=n(57499),s=n(10693),c=n(86682),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=i.createContext(null),p=(e,t)=>{let n=i.useContext(d),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:a,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(l,"item"),{["".concat(e,"-compact").concat(l,"first-item")]:a,["".concat(e,"-compact").concat(l,"last-item")]:i,["".concat(e,"-compact").concat(l,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},f=e=>{let{children:t}=e;return i.createElement(d.Provider,{value:null},t)},m=e=>{var{children:t}=e,n=u(e,["children"]);return i.createElement(d.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=i.useContext(l.E_),{size:r,direction:p,block:f,prefixCls:g,className:h,rootClassName:b,children:v}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),E=(0,s.Z)(e=>null!=r?r:e),S=t("space-compact",g),[w,x]=(0,c.Z)(S),O=o()(S,x,{["".concat(S,"-rtl")]:"rtl"===n,["".concat(S,"-block")]:f,["".concat(S,"-vertical")]:"vertical"===p},h,b),k=i.useContext(d),C=(0,a.Z)(v),T=i.useMemo(()=>C.map((e,t)=>{let n=e&&e.key||"".concat(S,"-item-").concat(t);return i.createElement(m,{key:n,compactSize:E,compactDirection:p,isFirstItem:0===t&&(!k||(null==k?void 0:k.isFirstItem)),isLastItem:t===C.length-1&&(!k||(null==k?void 0:k.isLastItem))},e)}),[r,C,k]);return 0===C.length?null:w(i.createElement("div",Object.assign({className:O},y),T))}},65270:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(64090),o=n(16480),a=n.n(o),i=n(33054);function l(e){return["small","middle","large"].includes(e)}function s(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}var c=n(57499),u=n(92801);let d=r.createContext({latestIndex:0}),p=d.Provider;var f=e=>{let{className:t,index:n,children:o,split:a,style:i}=e,{latestIndex:l}=r.useContext(d);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:i},o),nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=r.forwardRef((e,t)=>{var n,o;let{getPrefixCls:u,space:d,direction:h}=r.useContext(c.E_),{size:b=(null==d?void 0:d.size)||"small",align:v,className:y,rootClassName:E,children:S,direction:w="horizontal",prefixCls:x,split:O,style:k,wrap:C=!1,classNames:T,styles:A}=e,I=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,R]=Array.isArray(b)?b:[b,b],_=l(R),P=l(N),M=s(R),L=s(N),D=(0,i.Z)(S,{keepEmpty:!0}),j=void 0===v&&"horizontal"===w?"center":v,F=u("space",x),[B,U,Z]=(0,m.Z)(F),z=a()(F,null==d?void 0:d.className,U,"".concat(F,"-").concat(w),{["".concat(F,"-rtl")]:"rtl"===h,["".concat(F,"-align-").concat(j)]:j,["".concat(F,"-gap-row-").concat(R)]:_,["".concat(F,"-gap-col-").concat(N)]:P},y,E,Z),H=a()("".concat(F,"-item"),null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==d?void 0:d.classNames)||void 0===o?void 0:o.item),G=0,$=D.map((e,t)=>{var n,o;null!=e&&(G=t);let a=e&&e.key||"".concat(H,"-").concat(t);return r.createElement(f,{className:H,key:a,index:t,split:O,style:null!==(n=null==A?void 0:A.item)&&void 0!==n?n:null===(o=null==d?void 0:d.styles)||void 0===o?void 0:o.item},e)}),W=r.useMemo(()=>({latestIndex:G}),[G]);if(0===D.length)return null;let V={};return C&&(V.flexWrap="wrap"),!P&&L&&(V.columnGap=N),!_&&M&&(V.rowGap=R),B(r.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),null==d?void 0:d.style),k)},I),r.createElement(p,{value:W},$)))});h.Compact=u.ZP;var b=h},86682:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(76585),o=n(80316),a=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var s=(0,r.I$)("Space",e=>{let t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),l(t),a(t)]},()=>({}),{resetStyle:!1})},12288:function(e,t,n){n.d(t,{c:function(){return r}});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(i)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(i)]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}},11303:function(e,t,n){n.d(t,{Lx:function(){return s},Qy:function(){return d},Ro:function(){return i},Wf:function(){return a},dF:function(){return l},du:function(){return c},oN:function(){return u},vS:function(){return o}});var r=n(8985);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},46154:function(e,t){t.Z=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}})},13703:function(e,t,n){n.d(t,{J$:function(){return l}});var r=n(8985),o=n(59353);let a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r="".concat(n,"-fade"),l=t?"&":"";return[(0,o.R)(r,a,i,e.motionDurationMid,t),{["\n ".concat(l).concat(r,"-enter,\n ").concat(l).concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(l).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]}},59353:function(e,t,n){n.d(t,{R:function(){return a}});let r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=i?"&":"";return{["\n ".concat(l).concat(e,"-enter,\n ").concat(l).concat(e,"-appear\n ")]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),["".concat(l).concat(e,"-leave")]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),["\n ".concat(l).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(l).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(l).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},25926:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(8985),o=n(59353);let a=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:a,outKeyframes:i},"move-left":{inKeyframes:l,outKeyframes:s},"move-right":{inKeyframes:c,outKeyframes:u}},p=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},202:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return i},fJ:function(){return a},ly:function(){return s},oN:function(){return d}});var r=n(8985),o=n(59353);let a=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},d=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=u[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},58854:function(e,t,n){n.d(t,{_y:function(){return g},kr:function(){return a}});var r=n(8985),o=n(59353);let a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:d,outKeyframes:p},"zoom-right":{inKeyframes:f,outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},g=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=m[t];return[(0,o.R)(r,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},89869:function(e,t,n){n.d(t,{ZP:function(){return i},qN:function(){return o},wZ:function(){return a}});var r=n(2638);let o=8;function a(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o:r}}function i(e,t,n){var o,a,i,l,s,c,u,d;let{componentCls:p,boxShadowPopoverArrow:f,arrowOffsetVertical:m,arrowOffsetHorizontal:g}=e,{arrowDistance:h=0,arrowPlacement:b={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(p,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,f)),{"&:before":{background:t}})]},(o=!!b.top,a={[["&-placement-top > ".concat(p,"-arrow"),"&-placement-topLeft > ".concat(p,"-arrow"),"&-placement-topRight > ".concat(p,"-arrow")].join(",")]:{bottom:h,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-topRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},o?a:{})),(i=!!b.bottom,l={[["&-placement-bottom > ".concat(p,"-arrow"),"&-placement-bottomLeft > ".concat(p,"-arrow"),"&-placement-bottomRight > ".concat(p,"-arrow")].join(",")]:{top:h,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-bottomRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},i?l:{})),(s=!!b.left,c={[["&-placement-left > ".concat(p,"-arrow"),"&-placement-leftTop > ".concat(p,"-arrow"),"&-placement-leftBottom > ".concat(p,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:h},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(p,"-arrow")]:{top:m},["&-placement-leftBottom > ".concat(p,"-arrow")]:{bottom:m}},s?c:{})),(u=!!b.right,d={[["&-placement-right > ".concat(p,"-arrow"),"&-placement-rightTop > ".concat(p,"-arrow"),"&-placement-rightBottom > ".concat(p,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:h},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(p,"-arrow")]:{top:m},["&-placement-rightBottom > ".concat(p,"-arrow")]:{bottom:m}},u?d:{}))}}},2638:function(e,t,n){n.d(t,{W:function(){return a},w:function(){return o}});var r=n(8985);function o(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=1*r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,s=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,c=2*o-l,u=2*o-a,d=2*o-0,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m="polygon(".concat(f,"px 100%, 50% ").concat(f,"px, ").concat(2*o-f,"px 100%, ").concat(f,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(a," ").concat(i," L ").concat(l," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(c," ").concat(s," L ").concat(u," ").concat(i," A ").concat(r," ").concat(r," 0 0 0 ").concat(d," ").concat(o," Z')"),arrowPolygon:m}}let a=(e,t,n)=>{let{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,r.bf)(s)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},43345:function(e,t,n){n.d(t,{Mj:function(){return v},u_:function(){return b},uH:function(){return h}});var r=n(64090),o=n(8985),a=n(12215),i=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},l=n(46864),s=n(6336),c=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};let u=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),d=(e,t)=>new s.C(e).darken(t).toHexString(),p=e=>{let t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgLayout:d(n,4),colorBgContainer:d(n,0),colorBgElevated:d(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:d(n,15),colorBorderSecondary:d(n,6)}};var m=n(49202),g=e=>{let t=(0,m.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};let h=(0,o.jG)(function(e){let t=Object.keys(l.M).map(t=>{let n=(0,a.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t,{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),f=n(o),m=n(a),g=n(i),h=n(l),b=r(u,d),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},b),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new s.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:p,generateNeutralColorPalettes:f})),g(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),i(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},c(r))}(e))}),b={token:l.Z,override:{override:l.Z},hashed:!0},v=r.createContext(b)},46864:function(e,t,n){n.d(t,{M:function(){return r}});let r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},49202:function(e,t,n){function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},24750:function(e,t,n){n.d(t,{ZP:function(){return b},ID:function(){return m},NJ:function(){return f}});var r=n(64090),o=n(8985),a=n(43345),i=n(46864),l=n(6336);function s(e){return e>=0&&e<=255}var c=function(e,t){let{r:n,g:r,b:o,a:a}=new l.C(e).toRgb();if(a<1)return e;let{r:i,g:c,b:u}=new l.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-c*(1-e))/e),d=Math.round((o-u*(1-e))/e);if(s(t)&&s(a)&&s(d))return new l.C({r:t,g:a,b:d,a:Math.round(100*e)/100}).toRgbString()}return new l.C({r:n,g:r,b:o,a:1}).toRgbString()},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d(e){let{override:t}=e,n=u(e,["override"]),r=Object.assign({},t);Object.keys(i.Z).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:c(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:c(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:c(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:c(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new l.C("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new l.C("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new l.C("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},m={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,a=p(t,["override"]),i=Object.assign(Object.assign({},r),{override:o});return i=d(i),a&&Object.entries(a).forEach(e=>{let[t,n]=e,{theme:r}=n,o=p(n,["theme"]),a=o;r&&(a=h(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a}),i};function b(){let{token:e,hashed:t,theme:n,override:l,cssVar:s}=r.useContext(a.Mj),c="".concat("5.13.2","-").concat(t||""),u=n||a.uH,[p,b,v]=(0,o.fp)(u,[i.Z,e],{salt:c,override:l,getComputedToken:h,formatToken:d,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:f,ignore:m,preserve:g}});return[u,v,t?b:"",p,s]}},76585:function(e,t,n){n.d(t,{ZP:function(){return k},I$:function(){return A},bk:function(){return C}});var r=n(64090),o=n(8985);n(48563);var a=n(57499),i=n(11303),l=n(24750),s=n(47365),c=n(65127),u=n(72784),d=n(29676),p=n(68605),f=n(27478);let m=(0,c.Z)(function e(){(0,s.Z)(this,e)}),g=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(m),h="CALC_UNIT";function b(e){return"number"==typeof e?"".concat(e).concat(h):e}let v=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(h),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(m);var y=e=>{let t="css"===e?v:g;return e=>new t(e)},E=n(80316),S=n(28030);let w=(e,t,n)=>{var r;return"function"==typeof n?n((0,E.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},x=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(e=>{a[e]===t[e]&&delete a[e]}),a},O=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function k(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{let[c,p,f,m,g]=(0,l.ZP)(),{getPrefixCls:h,iconPrefixCls:b,csp:v}=(0,r.useContext)(a.E_),k=h(),C=g?"css":"js",T=y(C),{max:A,min:I}="js"===C?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}},N={theme:c,token:m,hashId:f,nonce:()=>null==v?void 0:v.nonce,clientOnly:s.clientOnly,order:s.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",k]}),()=>[{"&":(0,i.Lx)(m)}]),(0,S.Z)(b,v),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,b]}),()=>{if(!1===s.injectStyle)return[];let{token:r,flush:a}=(0,E.ZP)(m),l=w(u,p,n),c=".".concat(e),d=x(u,p,l,{deprecatedTokens:s.deprecatedTokens});g&&Object.keys(l).forEach(e=>{l[e]="var(".concat((0,o.ks)(e,O(u,g.prefix)),")")});let h=(0,E.TS)(r,{componentCls:c,prefixCls:e,iconCls:".".concat(b),antCls:".".concat(k),calc:T,max:A,min:I},g?l:d),v=t(h,{hashId:f,prefixCls:e,rootPrefixCls:k,iconPrefixCls:b});return a(u,d),[!1===s.resetStyle?null:(0,i.du)(h,e),v]}),f]}}let C=(e,t,n,r)=>{let o=k(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n)=>{function a(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:i={},injectStyle:s=!0}=null!=n?n:{},c={[a("zIndexPopup")]:!0};Object.keys(i).forEach(e=>{c[a(e)]=i[e]});let u=r=>{let{rootCls:i,cssVar:s}=r,[,u]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},l.NJ),c),ignore:l.ID,token:u,scope:i},()=>{let r=w(e,u,t),o=x(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[a(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,l.ZP)();return[o=>s&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},A=(e,t,n,r)=>{let o=k(e,t,n,r),a=T(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e),[r,i]=a(t);return[r,n,i]}}},80316:function(e,t,n){n.d(t,{TS:function(){return a}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}t.ZP=e=>{let t;let n=e,a=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{var r;i[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=i[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:a}}},28030:function(e,t,n){var r=n(8985),o=n(11303),a=n(24750);t.Z=(e,t)=>{let[n,i]=(0,a.ZP)();return(0,r.xy)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,o.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])}},1460:function(e,t,n){n.d(t,{Z:function(){return H}});var r=n(64090),o=n(16480),a=n.n(o);function i(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return r.createElement("div",{className:a()("".concat(n,"-content"),l),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}var l=n(14749),s=n(5239),c=n(6787),u=n(44101),d={shiftX:64,adjustY:1},p={adjustX:1,shiftY:!0},f=[0,0],m={left:{points:["cr","cl"],overflow:p,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:p,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:p,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:p,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:p,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:p,offset:[-4,0],targetOffset:f}},g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=(0,r.forwardRef)(function(e,t){var n=e.overlayClassName,o=e.trigger,a=e.mouseEnterDelay,d=e.mouseLeaveDelay,p=e.overlayStyle,f=e.prefixCls,h=void 0===f?"rc-tooltip":f,b=e.children,v=e.onVisibleChange,y=e.afterVisibleChange,E=e.transitionName,S=e.animation,w=e.motion,x=e.placement,O=e.align,k=e.destroyTooltipOnHide,C=e.defaultVisible,T=e.getTooltipContainer,A=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),N=e.id,R=e.showArrow,_=(0,c.Z)(e,g),P=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,function(){return P.current});var M=(0,s.Z)({},_);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(u.Z,(0,l.Z)({popupClassName:n,prefixCls:h,popup:function(){return r.createElement(i,{key:"content",prefixCls:h,id:N,overlayInnerStyle:A},I)},action:void 0===o?["hover"]:o,builtinPlacements:m,popupPlacement:void 0===x?"right":x,ref:P,popupAlign:void 0===O?{}:O,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:E,popupAnimation:S,popupMotion:w,defaultPopupVisible:C,autoDestroy:void 0!==k&&k,mouseLeaveDelay:void 0===d?.1:d,popupStyle:p,mouseEnterDelay:void 0===a?0:a,arrow:void 0===R||R},M),b)}),b=n(44329),v=n(51761),y=n(47387),E=n(67966),S=n(65823),w=n(76564),x=n(86718),O=n(57499),k=n(92801),C=n(24750),T=n(11303),A=n(58854),I=n(89869);let N=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var R=n(80316),_=n(76585),P=n(8985),M=n(2638);let L=e=>{var t;let{componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,P.bf)(e.calc(u).div(2).equal())," ").concat((0,P.bf)(d)),color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:e.min(i,I.qN)}},["".concat(n,"-content")]:{position:"relative"}}),(t=(e,t)=>{let{darkColor:r}=t;return{["&".concat(n,"-").concat(e)]:{["".concat(n,"-inner")]:{backgroundColor:r},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":r}}}},N.reduce((n,r)=>{let o=e["".concat(r,"1")],a=e["".concat(r,"3")],i=e["".concat(r,"6")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{}))),{"&-rtl":{direction:"rtl"}})},(0,I.ZP)(e,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},D=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,I.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,M.w)((0,R.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));function j(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,_.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[L((0,R.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),(0,A._y)(e,"zoom-big-fast")]},D,{resetStyle:!1,injectStyle:t})(e)}var F=n(63787);let B=N.map(e=>"".concat(e,"-inverse"));function U(e,t){let n=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,F.Z)(B),(0,F.Z)(N)).includes(e):N.includes(e)}(t),r=a()({["".concat(e,"-").concat(t)]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=r.forwardRef((e,t)=>{var n,o;let{prefixCls:i,openClassName:l,getTooltipContainer:s,overlayClassName:c,color:u,overlayInnerStyle:d,children:p,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:T=!0,title:A,overlay:I,builtinPlacements:N,arrowPointAtCenter:R=!1,autoAdjustOverflow:_=!0}=e,P=!!T,[,M]=(0,C.ZP)(),{getPopupContainer:L,getPrefixCls:D,direction:F}=r.useContext(O.E_),B=(0,w.ln)("Tooltip"),z=r.useRef(null),H=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>({forceAlign:H,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),H()}}));let[G,$]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),W=!A&&!I&&0!==A,V=r.useMemo(()=>{var e,t;let n=R;return"object"==typeof T&&(n=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:R),N||(0,E.Z)({arrowPointAtCenter:n,autoAdjustOverflow:_,arrowWidth:P?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[R,T,N,M]),q=r.useMemo(()=>0===A?A:I||A||"",[I,A]),Y=r.createElement(k.BR,null,"function"==typeof q?q():q),{getPopupContainer:K,placement:X="top",mouseEnterDelay:Q=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:et}=e,en=Z(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=D("tooltip",i),eo=D(),ea=e["data-popover-inject"],ei=G;"open"in e||"visible"in e||!W||(ei=!1);let el=(0,S.l$)(p)&&!(0,S.M2)(p)?p:r.createElement("span",null,p),es=el.props,ec=es.className&&"string"!=typeof es.className?es.className:a()(es.className,l||"".concat(er,"-open")),[eu,ed,ep]=j(er,!ea),ef=U(er,u),em=ef.arrowStyle,eg=Object.assign(Object.assign({},d),ef.overlayStyle),eh=a()(c,{["".concat(er,"-rtl")]:"rtl"===F},ef.className,et,ed,ep),[eb,ev]=(0,v.Cn)("Tooltip",en.zIndex),ey=r.createElement(h,Object.assign({},en,{zIndex:eb,showArrow:P,placement:X,mouseEnterDelay:Q,mouseLeaveDelay:J,prefixCls:er,overlayClassName:eh,overlayStyle:Object.assign(Object.assign({},em),ee),getTooltipContainer:K||s||L,ref:z,builtinPlacements:V,overlay:Y,visible:ei,onVisibleChange:t=>{var n,r;$(!W&&t),W||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:eg,arrowContent:r.createElement("span",{className:"".concat(er,"-arrow-content")}),motion:{motionName:(0,y.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ei?(0,S.Tm)(el,{className:ec}):el);return eu(r.createElement(x.Z.Provider,{value:ev},ey))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:l,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=r.useContext(O.E_),d=u("tooltip",t),[p,f,m]=j(d),g=U(d,s),h=g.arrowStyle,b=Object.assign(Object.assign({},c),g.overlayStyle),v=a()(f,m,d,"".concat(d,"-pure"),"".concat(d,"-placement-").concat(o),n,g.className);return p(r.createElement("div",{className:v,style:h},r.createElement("div",{className:"".concat(d,"-arrow")}),r.createElement(i,Object.assign({},e,{className:f,prefixCls:d,overlayInnerStyle:b}),l)))};var H=z},36083:function(e,t,n){n.d(t,{default:function(){return eh}});var r=n(64090),o=n(90507),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},u=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(16480),p=n.n(d),f=n(81441),m=n.n(f),g=n(46505),h=n(33054),b=n(24800),v=n(44329),y=n(35704),E=n(74084),S=n(22127),w=function(e){if((0,S.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},x=function(e,t){if(!w(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function O(e,t){return Array.isArray(e)||void 0===t?w(e):x(e,t)}var k=n(4295),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let T={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},A=r.forwardRef((e,t)=>{let{style:n,noStyle:o,disabled:a}=e,i=C(e,["style","noStyle","disabled"]),l={};return o||(l=Object.assign({},T)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),r.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{let{keyCode:t}=e;t===k.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{let{keyCode:n}=t,{onClick:r}=e;n===k.Z.ENTER&&r&&r()},style:l}))});var I=n(57499),N=n(70595),R=n(1460),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},P=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:_}))}),M=n(65823),L=n(78578);let D=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var j=n(76585),F=n(12215),B=n(8985);let U=(e,t,n,r)=>{let{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Z=e=>{let t={};return[1,2,3,4,5].forEach(n=>{t["\n h".concat(n,"&,\n div&-h").concat(n,",\n div&-h").concat(n," > textarea,\n h").concat(n,"\n ")]=U(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)}),t},z=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},D(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:F.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),G=e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:"calc(1em - ".concat((0,B.bf)(n),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),W=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),V=e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Z(e)),{["\n & + h1".concat(t,",\n & + h2").concat(t,",\n & + h3").concat(t,",\n & + h4").concat(t,",\n & + h5").concat(t,"\n ")]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),z(e)),{["\n ".concat(t,"-expand,\n ").concat(t,"-edit,\n ").concat(t,"-copy\n ")]:Object.assign(Object.assign({},D(e)),{marginInlineStart:e.marginXXS})}),G(e)),$(e)),W()),{"&-rtl":{direction:"rtl"}})}};var q=(0,j.I$)("Typography",e=>[V(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Y=e=>{let{prefixCls:t,"aria-label":n,className:o,style:a,direction:i,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=r.createElement(P,null)}=e,h=r.useRef(null),b=r.useRef(!1),v=r.useRef(),[y,E]=r.useState(c);r.useEffect(()=>{E(c)},[c]),r.useEffect(()=>{if(h.current&&h.current.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=()=>{u(y.trim())},w=m?"".concat(t,"-").concat(m):"",[x,O,C]=q(t),T=p()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===i},o,w,O,C);return x(r.createElement("div",{className:T,style:a},r.createElement(L.Z,{ref:h,maxLength:l,value:y,onChange:e=>{let{target:t}=e;E(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;b.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:a}=e;v.current!==t||b.current||n||r||o||a||(t===k.Z.ENTER?(S(),null==f||f()):t===k.Z.ESC&&d())},onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onBlur:()=>{S()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,M.Tm)(g,{className:"".concat(t,"-edit-content-confirm")}):null))};function K(e,t){return r.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var X=(e,t)=>{let n=r.useRef(!1);r.useEffect(()=>{n.current?e():n.current=!0},t)},Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=r.forwardRef((e,t)=>{let{prefixCls:n,component:o="article",className:a,rootClassName:i,setContentRef:l,children:s,direction:c,style:u}=e,d=Q(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=r.useContext(I.E_),h=t;l&&(h=(0,E.sQ)(t,l));let b=f("typography",n),[v,y,S]=q(b),w=p()(b,null==g?void 0:g.className,{["".concat(b,"-rtl")]:"rtl"===(null!=c?c:m)},a,i,y,S),x=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(o,Object.assign({className:w,style:x,ref:h},d),s))});function ee(e){let t=typeof e;return"string"===t||"number"===t}function et(e,t){let n=0,r=[];for(let o=0;ot){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=i}return e}var en=e=>{let{enabledMeasure:t,children:n,text:o,width:a,fontSize:i,rows:l,onEllipsis:s}=e,[[c,u,d],p]=r.useState([0,0,0]),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,E]=r.useState(0),S=r.useRef(null),w=r.useRef(null),x=r.useMemo(()=>(0,h.Z)(o),[o]),O=r.useMemo(()=>{let e;return e=0,x.forEach(t=>{ee(t)?e+=String(t).length:e+=1}),e},[x]),k=r.useMemo(()=>t&&3===g?n(et(x,u),u{t&&a&&i&&O&&(v(1),p([0,Math.ceil(O/2),O]))},[t,a,i,o,O,l]),(0,b.Z)(()=>{var e;1===g&&E((null===(e=S.current)||void 0===e?void 0:e.offsetHeight)||0)},[g]),(0,b.Z)(()=>{var e,t;if(y){if(1===g)((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=l*y?(v(4),s(!1)):v(2);else if(2===g){if(c!==d){let e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0,n=l*y,r=c,o=d;c===d-1?o=c:e<=n?r=u:o=u;let a=Math.ceil((r+o)/2);p([r,a,o])}else v(3),m(u),s(!0)}}},[g,c,d,l,y]);let C=(e,t,n)=>r.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return r.createElement(r.Fragment,null,k,t&&3!==g&&4!==g&&r.createElement(r.Fragment,null,C("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),C(1===g?n(x,!1):n(et(x,u),!0),w,{width:a,whiteSpace:"normal",margin:0,padding:0})))},er=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:a}=e;return(null==a?void 0:a.title)&&t?r.createElement(R.Z,Object.assign({open:!!n&&void 0},a),o):o},eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ea(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ei(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}let el=r.forwardRef((e,t)=>{var n,a,i;let{prefixCls:l,className:c,style:d,type:f,disabled:S,children:w,ellipsis:x,editable:k,copyable:C,component:T,title:_}=e,P=eo(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:L}=r.useContext(I.E_),[D]=(0,N.Z)("Text"),j=r.useRef(null),F=r.useRef(null),B=M("typography",l),U=(0,y.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[Z,z]=K(k),[H,G]=(0,v.Z)(!1,{value:z.editing}),{triggerType:$=["icon"]}=z,W=e=>{var t;e&&(null===(t=z.onStart)||void 0===t||t.call(z)),G(e)};X(()=>{var e;H||null===(e=F.current)||void 0===e||e.focus()},[H]);let V=e=>{null==e||e.preventDefault(),W(!0)},[q,Q]=K(C),[ee,et]=r.useState(!1),el=r.useRef(null),es={};Q.format&&(es.format=Q.format);let ec=()=>{el.current&&clearTimeout(el.current)},eu=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),m()(Q.text||String(w)||"",es),et(!0),ec(),el.current=setTimeout(()=>{et(!1)},3e3),null===(t=Q.onCopy)||void 0===t||t.call(Q,e)};r.useEffect(()=>ec,[]);let[ed,ep]=r.useState(!1),[ef,em]=r.useState(!1),[eg,eh]=r.useState(!1),[eb,ev]=r.useState(!1),[ey,eE]=r.useState(!1),[eS,ew]=r.useState(!0),[ex,eO]=K(x,{expandable:!1}),ek=ex&&!eg,{rows:eC=1}=eO,eT=r.useMemo(()=>!ek||void 0!==eO.suffix||eO.onEllipsis||eO.expandable||Z||q,[ek,eO,Z,q]);(0,b.Z)(()=>{ex&&!eT&&(ep(O("webkitLineClamp")),em(O("textOverflow")))},[eT,ex]);let eA=r.useMemo(()=>!eT&&(1===eC?ef:ed),[eT,ef,ed]),eI=ek&&(eA?ey:eb),eN=ek&&1===eC&&eA,eR=ek&&eC>1&&eA,e_=e=>{var t;eh(!0),null===(t=eO.onExpand)||void 0===t||t.call(eO,e)},[eP,eM]=r.useState(0),[eL,eD]=r.useState(0),ej=e=>{var t;ev(e),eb!==e&&(null===(t=eO.onEllipsis)||void 0===t||t.call(eO,e))};r.useEffect(()=>{let e=j.current;if(ex&&eA&&e){let t=eR?e.offsetHeight{let e=j.current;if("undefined"==typeof IntersectionObserver||!e||!eA||!ek)return;let t=new IntersectionObserver(()=>{ew(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eA,ek]);let eF={};eF=!0===eO.tooltip?{title:null!==(n=z.text)&&void 0!==n?n:w}:r.isValidElement(eO.tooltip)?{title:eO.tooltip}:"object"==typeof eO.tooltip?Object.assign({title:null!==(a=z.text)&&void 0!==a?a:w},eO.tooltip):{title:eO.tooltip};let eB=r.useMemo(()=>{let e=e=>["string","number"].includes(typeof e);return!ex||eA?void 0:e(z.text)?z.text:e(w)?w:e(_)?_:e(eF.title)?eF.title:void 0},[ex,eA,_,eF.title,eI]);if(H)return r.createElement(Y,{value:null!==(i=z.text)&&void 0!==i?i:"string"==typeof w?w:"",onSave:e=>{var t;null===(t=z.onChange)||void 0===t||t.call(z,e),W(!1)},onCancel:()=>{var e;null===(e=z.onCancel)||void 0===e||e.call(z),W(!1)},onEnd:z.onEnd,prefixCls:B,className:c,style:d,direction:L,component:T,maxLength:z.maxLength,autoSize:z.autoSize,enterIcon:z.enterIcon});let eU=()=>{let e;let{expandable:t,symbol:n}=eO;return t?(e=n||(null==D?void 0:D.expand),r.createElement("a",{key:"expand",className:"".concat(B,"-expand"),onClick:e_,"aria-label":null==D?void 0:D.expand},e)):null},eZ=()=>{if(!Z)return;let{icon:e,tooltip:t}=z,n=(0,h.Z)(t)[0]||(null==D?void 0:D.edit),o="string"==typeof n?n:"";return $.includes("icon")?r.createElement(R.Z,{key:"edit",title:!1===t?"":n},r.createElement(A,{ref:F,className:"".concat(B,"-edit"),onClick:V,"aria-label":o},e||r.createElement(u,{role:"button"}))):null},ez=()=>{if(!q)return null;let{tooltips:e,icon:t}=Q,n=ei(e),a=ei(t),i=ee?ea(n[1],null==D?void 0:D.copied):ea(n[0],null==D?void 0:D.copy),l=ee?null==D?void 0:D.copied:null==D?void 0:D.copy,c="string"==typeof i?i:l;return r.createElement(R.Z,{key:"copy",title:i},r.createElement(A,{className:p()("".concat(B,"-copy"),{["".concat(B,"-copy-success")]:ee,["".concat(B,"-copy-icon-only")]:null==w}),onClick:eu,"aria-label":c},ee?ea(a[1],r.createElement(o.Z,null),!0):ea(a[0],r.createElement(s,null),!0)))},eH=e=>[e&&eU(),eZ(),ez()],eG=e=>[e&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),eO.suffix,eH(e)];return r.createElement(g.Z,{onResize:(e,t)=>{var n;let{offsetWidth:r}=e;eM(r),eD(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!ek},n=>r.createElement(er,{tooltipProps:eF,enabledEllipsis:ek,isEllipsis:eI},r.createElement(J,Object.assign({className:p()({["".concat(B,"-").concat(f)]:f,["".concat(B,"-disabled")]:S,["".concat(B,"-ellipsis")]:ex,["".concat(B,"-single-line")]:ek&&1===eC,["".concat(B,"-ellipsis-single-line")]:eN,["".concat(B,"-ellipsis-multiple-line")]:eR},c),prefixCls:l,style:Object.assign(Object.assign({},d),{WebkitLineClamp:eR?eC:void 0}),component:T,ref:(0,E.sQ)(n,j,t),direction:L,onClick:$.includes("text")?V:void 0,"aria-label":null==eB?void 0:eB.toString(),title:_},U),r.createElement(en,{enabledMeasure:ek&&!eA,text:w,rows:eC,width:eP,fontSize:eL,onEllipsis:ej},(t,n)=>{let o=t;return t.length&&n&&eB&&(o=r.createElement("span",{key:"show-content","aria-hidden":!0},o)),function(e,t){let{mark:n,code:o,underline:a,delete:i,strong:l,keyboard:s,italic:c}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",a),d("del",i),d("code",o),d("mark",n),d("kbd",s),d("i",c),u}(e,r.createElement(r.Fragment,null,o,eG(n)))}))))});var es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ec=r.forwardRef((e,t)=>{var{ellipsis:n,rel:o}=e,a=es(e,["ellipsis","rel"]);let i=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete i.navigate,r.createElement(el,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),eu=r.forwardRef((e,t)=>r.createElement(el,Object.assign({ref:t},e,{component:"div"})));var ed=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ep=r.forwardRef((e,t)=>{var{ellipsis:n}=e,o=ed(e,["ellipsis"]);let a=r.useMemo(()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n,[n]);return r.createElement(el,Object.assign({ref:t},o,{ellipsis:a,component:"span"}))}),ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let em=[1,2,3,4,5],eg=r.forwardRef((e,t)=>{let n;let{level:o=1}=e,a=ef(e,["level"]);return n=em.includes(o)?"h".concat(o):"h1",r.createElement(el,Object.assign({ref:t},a,{component:n}))});J.Text=ep,J.Link=ec,J.Title=eg,J.Paragraph=eu;var eh=J},46495:function(e,t,n){n.d(t,{Z:function(){return ts}});var r=n(64090),o=n(63787),a=n(89542),i=n(16480),l=n.n(i),s=n(14749),c=n(47365),u=n(65127),d=n(34951),p=n(27478),f=n(85430),m=n(50833),g=n(5239),h=n(6787),b=n(86926),v=n(6976),y=n(74902),E=n(72480),S=n(53850);function w(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0}function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var O=function(e,t,n){var r=function e(r,o){if(r){if(r.path=o||"",r.isFile)r.file(function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(r.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(o).concat(r.name,"/"))})},i=r.createReader(),l=[],function e(){i.readEntries(function(t){var n=Array.prototype.slice.apply(t);l=l.concat(n),n.length?e():a(l)})}()}}};e.forEach(function(e){r(e.webkitGetAsEntry())})},k=+new Date,C=0;function T(){return"rc-upload-".concat(k,"-").concat(++C)}var A=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],I=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){(0,c.Z)(this,n);for(var e,r,a=arguments.length,i=Array(a),l=0;l0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];if(Array.isArray(r)){r.forEach(function(e){n.append("".concat(t,"[]"),e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var n;return e.onError(((n=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,n.method=e.method,n.url=e.action,n),x(t))}return e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}})({action:o,filename:c,data:n,file:a,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,a)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,a,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,a),delete t.reqs[f]}})}}},{key:"reset",value:function(){this.setState({uid:T()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.prefixCls,a=t.className,i=t.classNames,c=t.disabled,u=t.id,d=t.style,p=t.styles,f=t.multiple,b=t.accept,v=t.capture,y=t.children,S=t.directory,w=t.openFileDialogOnClick,x=t.onMouseEnter,O=t.onMouseLeave,k=t.hasControlInside,C=(0,h.Z)(t,A),T=l()((e={},(0,m.Z)(e,o,!0),(0,m.Z)(e,"".concat(o,"-disabled"),c),(0,m.Z)(e,a,a),e)),I=c?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return r.createElement(n,(0,s.Z)({},I,{className:T,role:k?void 0:"button",style:d}),r.createElement("input",(0,s.Z)({},(0,E.Z)(C,{aria:!0,data:!0}),{id:u,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,g.Z)({display:"none"},(void 0===p?{}:p).input),className:(void 0===i?{}:i).input,accept:b},S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},{multiple:f,onChange:this.onChange},null!=v?{capture:v}:{})),y)}}]),n}(r.Component);function N(){}var R=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=Array(r),a=0;a{let{componentCls:t,iconCls:n}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-drag")]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),[t]:{padding:e.padding},["".concat(t,"-btn")]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:"".concat((0,Z.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder)}},["".concat(t,"-drag-container")]:{display:"table-cell",verticalAlign:"middle"},["\n &:not(".concat(t,"-disabled):hover,\n &-hover:not(").concat(t,"-disabled)\n ")]:{borderColor:e.colorPrimaryHover},["p".concat(t,"-drag-icon")]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},["p".concat(t,"-text")]:{margin:"0 0 ".concat((0,Z.bf)(e.marginXXS)),color:e.colorTextHeading,fontSize:e.fontSizeLG},["p".concat(t,"-hint")]:{color:e.colorTextDescription,fontSize:e.fontSize},["&".concat(t,"-disabled")]:{["p".concat(t,"-drag-icon ").concat(n,",\n p").concat(t,"-text,\n p").concat(t,"-hint\n ")]:{color:e.colorTextDisabled}}}}}},H=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a,calc:i}=e,l="".concat(t,"-list-item"),s="".concat(l,"-actions"),c="".concat(l,"-action"),u=e.fontHeightSM;return{["".concat(t,"-wrapper")]:{["".concat(t,"-list")]:Object.assign(Object.assign({},(0,j.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:"background-color ".concat(e.motionDurationSlow),"&:hover":{backgroundColor:e.controlItemBgHover},["".concat(l,"-name")]:Object.assign(Object.assign({},j.vS),{padding:"0 ".concat((0,Z.bf)(e.paddingXS)),lineHeight:a,flex:"auto",transition:"all ".concat(e.motionDurationSlow)}),[s]:{[c]:{opacity:0},[r]:{color:e.actionsColor,transition:"all ".concat(e.motionDurationSlow)},["\n ".concat(c,":focus-visible,\n &.picture ").concat(c,"\n ")]:{opacity:1},["".concat(c).concat(n,"-btn")]:{height:u,border:0,lineHeight:1}},["".concat(t,"-icon ").concat(r)]:{color:e.colorTextDescription,fontSize:o},["".concat(l,"-progress")]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},["".concat(l,":hover ").concat(c)]:{opacity:1},["".concat(l,"-error")]:{color:e.colorError,["".concat(l,"-name, ").concat(t,"-icon ").concat(r)]:{color:e.colorError},[s]:{["".concat(r,", ").concat(r,":hover")]:{color:e.colorError},[c]:{opacity:1}}},["".concat(t,"-list-item-container")]:{transition:"opacity ".concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},G=n(13703);let $=new Z.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),W=new Z.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var V=e=>{let{componentCls:t}=e,n="".concat(t,"-animate-inline");return[{["".concat(t,"-wrapper")]:{["".concat(n,"-appear, ").concat(n,"-enter, ").concat(n,"-leave")]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},["".concat(n,"-appear, ").concat(n,"-enter")]:{animationName:$},["".concat(n,"-leave")]:{animationName:W}}},{["".concat(t,"-wrapper")]:(0,G.J$)(e)},$,W]},q=n(12215);let Y=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item");return{["".concat(t,"-wrapper")]:{["\n ".concat(i).concat(i,"-picture,\n ").concat(i).concat(i,"-picture-card,\n ").concat(i).concat(i,"-picture-circle\n ")]:{[l]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:"".concat((0,Z.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},["".concat(l,"-thumbnail")]:Object.assign(Object.assign({},j.vS),{width:r,height:r,lineHeight:(0,Z.bf)(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),["".concat(l,"-progress")]:{bottom:o,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingSM).mul(2).equal()),")"),marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},["".concat(l,"-error")]:{borderColor:e.colorError,["".concat(l,"-thumbnail ").concat(n)]:{["svg path[fill='".concat(q.iN[0],"']")]:{fill:e.colorErrorBg},["svg path[fill='".concat(q.iN.primary,"']")]:{fill:e.colorError}}},["".concat(l,"-uploading")]:{borderStyle:"dashed",["".concat(l,"-name")]:{marginBottom:o}}},["".concat(i).concat(i,"-picture-circle ").concat(l)]:{["&, &::before, ".concat(l,"-thumbnail")]:{borderRadius:"50%"}}}}},K=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item"),s=e.uploadPicCardSize;return{["\n ".concat(t,"-wrapper").concat(t,"-picture-card-wrapper,\n ").concat(t,"-wrapper").concat(t,"-picture-circle-wrapper\n ")]:Object.assign(Object.assign({},(0,j.dF)()),{display:"inline-block",width:"100%",["".concat(t).concat(t,"-select")]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),["> ".concat(t)]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},["&:not(".concat(t,"-disabled):hover")]:{borderColor:e.colorPrimary}},["".concat(i).concat(i,"-picture-card, ").concat(i).concat(i,"-picture-circle")]:{["".concat(i,"-item-container")]:{display:"inline-block",width:s,height:s,marginBlock:"0 ".concat((0,Z.bf)(e.marginXS)),marginInline:"0 ".concat((0,Z.bf)(e.marginXS)),verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),height:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),backgroundColor:e.colorBgMask,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'" "'}},["".concat(l,":hover")]:{["&::before, ".concat(l,"-actions")]:{opacity:1}},["".concat(l,"-actions")]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(e.motionDurationSlow),["\n ".concat(n,"-eye,\n ").concat(n,"-download,\n ").concat(n,"-delete\n ")]:{zIndex:10,width:r,margin:"0 ".concat((0,Z.bf)(e.marginXXS)),fontSize:r,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},["".concat(l,"-thumbnail, ").concat(l,"-thumbnail img")]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},["".concat(l,"-name")]:{display:"none",textAlign:"center"},["".concat(l,"-file + ").concat(l,"-name")]:{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")")},["".concat(l,"-uploading")]:{["&".concat(l)]:{backgroundColor:e.colorFillAlter},["&::before, ".concat(n,"-eye, ").concat(n,"-download, ").concat(n,"-delete")]:{display:"none"}},["".concat(l,"-progress")]:{bottom:e.marginXL,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),paddingInlineStart:0}}}),["".concat(t,"-wrapper").concat(t,"-picture-circle-wrapper")]:{["".concat(t).concat(t,"-select")]:{borderRadius:"50%"}}}};var X=e=>{let{componentCls:t}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"}}};let Q=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},(0,j.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},["".concat(t,"-select")]:{display:"inline-block"},["".concat(t,"-disabled")]:{color:n,cursor:"not-allowed"}})}};var J=(0,B.I$)("Upload",e=>{let{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=(0,U.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Q(i),z(i),Y(i),K(i),H(i),V(i),X(i),(0,F.Z)(i)]},e=>({actionsColor:e.colorTextDescription})),ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},et=n(60688),en=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ee}))}),er=n(66155),eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ea=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eo}))}),ei={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},el=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ei}))}),es=n(49367),ec=n(47387),eu=n(65823),ed=n(1861);function ep(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ef(e,t){let n=(0,o.Z)(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return -1===r?n.push(e):n[r]=e,n}function em(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},eh=e=>0===e.indexOf("image/"),eb=e=>{if(e.type&&!e.thumbUrl)return eh(e.type);let t=e.thumbUrl||e.url||"",n=eg(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function ev(e){return new Promise(t=>{if(!e.type||!eh(e.type)){t("");return}let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,s=0,c=0;e>a?c=-((l=200/e*a)-i)/2:s=-((i=200/a*e)-l)/2,r.drawImage(o,s,c,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eE=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ey}))}),eS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ew=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eS}))}),ex=n(41311),eO=n(99537),ek=n(90507),eC=n(77136),eT=n(81303),eA=n(35704),eI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eN=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current},eR=n(80406),e_=n(22127),eP=0,eM=(0,e_.Z)(),eL=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function eD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n);return"".concat(e[n]," ").concat("".concat(Math.floor(r*t),"%"))})}var ej=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.color,a=e.gradientId,i=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=o&&"object"===(0,v.Z)(o),m=d/2,g=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:f?"#FFF":void 0,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!f)return g;var h="".concat(a,"-conic"),b=eD(o,(360-p)/360),y=eD(o,1),E="conic-gradient(from ".concat(p?"".concat(180+p/2,"deg"):"0deg",", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:h},g),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},r.createElement(eL,{bg:S},r.createElement(eL,{bg:E}))))}),eF=function(e,t,n,r,o,a,i,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-r)/100*t;return"round"===s&&100!==r&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+n/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function eU(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eZ=function(e){var t,n,o,a,i,c,u,d,p=(0,g.Z)((0,g.Z)({},eI),e),f=p.id,m=p.prefixCls,b=p.steps,y=p.strokeWidth,E=p.trailWidth,S=p.gapDegree,w=void 0===S?0:S,x=p.gapPosition,O=p.trailColor,k=p.strokeLinecap,C=p.style,T=p.className,A=p.strokeColor,I=p.percent,N=(0,h.Z)(p,eB),R=(t=r.useState(),o=(n=(0,eR.Z)(t,2))[0],a=n[1],r.useEffect(function(){var e;a("rc_progress_".concat((eM?(e=eP,eP+=1):e="TEST_OR_SSR",e)))},[]),f||o),_="".concat(R,"-gradient"),P=50-y/2,M=2*Math.PI*P,L=w>0?90+w/2:-90,D=(360-w)/360*M,j="object"===(0,v.Z)(b)?b:{count:b,space:2},F=j.count,B=j.space,U=eU(I),Z=eU(A),z=Z.find(function(e){return e&&"object"===(0,v.Z)(e)}),H=z&&"object"===(0,v.Z)(z)?"butt":k,G=eF(M,D,0,100,L,w,x,O,H,y),$=eN();return r.createElement("svg",(0,s.Z)({className:l()("".concat(m,"-circle"),T),viewBox:"0 0 ".concat(100," ").concat(100),style:C,id:f,role:"presentation"},N),!F&&r.createElement("circle",{className:"".concat(m,"-circle-trail"),r:P,cx:50,cy:50,stroke:O,strokeLinecap:H,strokeWidth:E||y,style:G}),F?(i=Math.round(U[0]/100*F),c=100/F,u=0,Array(F).fill(null).map(function(e,t){var n=t<=i-1?Z[0]:O,o=n&&"object"===(0,v.Z)(n)?"url(#".concat(_,")"):void 0,a=eF(M,D,u,c,L,w,x,n,"butt",y,B);return u+=(D-a.strokeDashoffset+B)*100/D,r.createElement("circle",{key:t,className:"".concat(m,"-circle-path"),r:P,cx:50,cy:50,stroke:o,strokeWidth:y,opacity:1,style:a,ref:function(e){$[t]=e}})})):(d=0,U.map(function(e,t){var n=Z[t]||Z[Z.length-1],o=eF(M,D,d,e,L,w,x,n,H,y);return d+=e,r.createElement(ej,{key:t,color:n,ptg:e,radius:P,prefixCls:m,gradientId:_,style:o,strokeLinecap:H,strokeWidth:y,gapDegree:w,ref:function(e){$[t]=e},size:100})}).reverse()))},ez=n(1460);function eH(e){return!e||e<0?0:e>100?100:e}function eG(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}let e$=e=>{let{percent:t,success:n,successPercent:r}=e,o=eH(eG({success:n,successPercent:r}));return[o,eH(eH(t)-o)]},eW=e=>{let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||q.ez.green,n||null]},eV=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if("step"===t){let t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=r?r:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=t}else if("line"===t){let t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,s]},eq=e=>3/e*100;var eY=e=>{let{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:a,gapDegree:i,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eV(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eq(f),6));let h=r.useMemo(()=>i||0===i?i:"dashboard"===c?75:void 0,[i,c]),b="[object Object]"===Object.prototype.toString.call(e.strokeColor),v=eW({success:d,strokeColor:e.strokeColor}),y=l()("".concat(t,"-inner"),{["".concat(t,"-circle-gradient")]:b}),E=r.createElement(eZ,{percent:e$(e),strokeWidth:g,trailWidth:g,strokeColor:v,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:a||"dashboard"===c&&"bottom"||void 0});return r.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?r.createElement(ez.Z,{title:u},r.createElement("span",null,E)):r.createElement(r.Fragment,null,E,u))};let eK="--progress-line-stroke-color",eX="--progress-percent",eQ=e=>{let t=e?"100%":"-100%";return new Z.E4("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},["".concat(t,"-outer")]:{display:"inline-block",width:"100%"},["&".concat(t,"-show-info")]:{["".concat(t,"-outer")]:{marginInlineEnd:"calc(-2em - ".concat((0,Z.bf)(e.marginXS),")"),paddingInlineEnd:"calc(2em + ".concat((0,Z.bf)(e.paddingXS),")")}},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(eK,")")]},height:"100%",width:"calc(1 / var(".concat(eX,") * 100%)"),display:"block"}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:eQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:eQ(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},e0=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},e1=e=>{let{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},e2=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}};var e4=(0,B.I$)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=(0,U.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eJ(n),e0(n),e1(n),e2(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})),e3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let e6=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")}).join(", ")},e5=(e,t)=>{let{from:n=q.ez.blue,to:r=q.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,a=e3(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=e6(a),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[eK]:t}}let i="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:i,[eK]:i}};var e8=e=>{let{prefixCls:t,direction:n,percent:o,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=l&&"string"!=typeof l?e5(l,n):{[eK]:l,background:l},f="square"===s||"butt"===s?0:void 0,[m,g]=eV(null!=a?a:[-1,i||("small"===a?6:8)],"line",{strokeWidth:i}),h=Object.assign(Object.assign({width:"".concat(eH(o),"%"),height:g,borderRadius:f},p),{[eX]:eH(o)/100}),b=eG(e),v={width:"".concat(eH(b),"%"),height:g,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(t,"-outer"),style:{width:m<0?"100%":m,height:g}},r.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:u||void 0,borderRadius:f}},r.createElement("div",{className:"".concat(t,"-bg"),style:h}),void 0!==b?r.createElement("div",{className:"".concat(t,"-success-bg"),style:v}):null)),c)},e9=e=>{let{size:t,steps:n,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(o/100*n),[p,f]=eV(null!=t?t:["small"===t?2:14,a],"step",{steps:n,strokeWidth:a}),m=p/n,g=Array(n);for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let te=["normal","exception","active","success"],tt=r.forwardRef((e,t)=>{let n;let{prefixCls:o,className:a,rootClassName:i,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=e7(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=r.useMemo(()=>{var t,n;let r=eG(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=u?u:0)||void 0===n?void 0:n.toString(),10)},[u,e.success,e.successPercent]),y=r.useMemo(()=>!te.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:E,direction:S,progress:w}=r.useContext(P.E_),x=E("progress",o),[O,k,C]=e4(x),T=r.useMemo(()=>{let t;if(!p)return null;let n=eG(e),o=g||(e=>"".concat(e,"%")),a="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eH(u),eH(n)):"exception"===y?t=a?r.createElement(eC.Z,null):r.createElement(eT.Z,null):"success"===y&&(t=a?r.createElement(eO.Z,null):r.createElement(ek.Z,null)),r.createElement("span",{className:"".concat(x,"-text"),title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,x,g]),A=Array.isArray(c)?c[0]:c,I="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?n=s?r.createElement(e9,Object.assign({},e,{strokeColor:I,prefixCls:x,steps:s}),T):r.createElement(e8,Object.assign({},e,{strokeColor:A,prefixCls:x,direction:S}),T):("circle"===f||"dashboard"===f)&&(n=r.createElement(eY,Object.assign({},e,{strokeColor:A,prefixCls:x,progressStatus:y}),T));let N=l()(x,"".concat(x,"-status-").concat(y),"".concat(x,"-").concat("dashboard"===f&&"circle"||s&&"steps"||f),{["".concat(x,"-inline-circle")]:"circle"===f&&eV(d,"circle")[0]<=20,["".concat(x,"-show-info")]:p,["".concat(x,"-").concat(d)]:"string"==typeof d,["".concat(x,"-rtl")]:"rtl"===S},null==w?void 0:w.className,a,i,k,C);return O(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==w?void 0:w.style),h),className:N,role:"progressbar","aria-valuenow":v},(0,eA.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),n))}),tn=r.forwardRef((e,t)=>{var n,o;let{prefixCls:a,className:i,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:E,previewIcon:S,removeIcon:w,downloadIcon:x,onPreview:O,onDownload:k,onClose:C}=e,{status:T}=d,[A,I]=r.useState(T);r.useEffect(()=>{"removed"!==T&&I(T)},[T]);let[N,R]=r.useState(!1);r.useEffect(()=>{let e=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(e)}},[]);let _=m(d),M=r.createElement("div",{className:"".concat(a,"-icon")},_);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==A&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?r.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(a,"-list-item-image"),crossOrigin:d.crossOrigin}):_,t=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:b&&!b(d)});M=r.createElement("a",{className:t,onClick:e=>O(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:"uploading"!==A});M=r.createElement("div",{className:e},_)}}let L=l()("".concat(a,"-list-item"),"".concat(a,"-list-item-").concat(A)),D="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,j=y?g(("function"==typeof w?w(d):w)||r.createElement(eE,null),()=>C(d),a,c.removeFile,!0):null,F=E&&"done"===A?g(("function"==typeof x?x(d):x)||r.createElement(ew,null),()=>k(d),a,c.downloadFile):null,B="picture-card"!==u&&"picture-circle"!==u&&r.createElement("span",{key:"download-delete",className:l()("".concat(a,"-list-item-actions"),{picture:"picture"===u})},F,j),U=l()("".concat(a,"-list-item-name")),Z=d.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:d.name},D,{href:d.url,onClick:e=>O(d,e)}),d.name),B]:[r.createElement("span",{key:"view",className:U,onClick:e=>O(d,e),title:d.name},d.name),B],z=v&&(d.url||d.thumbUrl)?r.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>O(d,e),title:c.previewFile},"function"==typeof S?S(d):S||r.createElement(ex.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==A&&r.createElement("span",{className:"".concat(a,"-list-item-actions")},z,"done"===A&&F,j),{getPrefixCls:G}=r.useContext(P.E_),$=G(),W=r.createElement("div",{className:L},M,Z,H,N&&r.createElement(es.ZP,{motionName:"".concat($,"-fade"),visible:"uploading"===A,motionDeadline:2e3},e=>{let{className:t}=e,n="percent"in d?r.createElement(tt,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return r.createElement("div",{className:l()("".concat(a,"-list-item-progress"),t)},n)})),V=d.response&&"string"==typeof d.response?d.response:(null===(n=d.error)||void 0===n?void 0:n.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,q="error"===A?r.createElement(ez.Z,{title:V,getPopupContainer:e=>e.parentNode},W):W;return r.createElement("div",{className:l()("".concat(a,"-list-item-container"),i),style:s,ref:t},h?h(q,d,p,{download:k.bind(null,d),preview:O.bind(null,d),remove:C.bind(null,d)}):q)}),tr=r.forwardRef((e,t)=>{let{listType:n="text",previewFile:a=ev,onPreview:i,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=eb,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:E,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:x=!0,itemRender:O,disabled:k}=e,C=function(){let[,e]=r.useReducer(e=>e+1,0);return e}(),[T,A]=r.useState(!1);r.useEffect(()=>{("picture"===n||"picture-card"===n||"picture-circle"===n)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",C()}))})},[n,m,a]),r.useEffect(()=>{A(!0)},[]);let I=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},N=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},R=e=>{null==c||c(e)},_=e=>{if(d)return d(e,n);let t="uploading"===e.status,o=p&&p(e)?r.createElement(el,null):r.createElement(en,null),a=t?r.createElement(er.Z,null):r.createElement(ea,null);return"picture"===n?a=t?r.createElement(er.Z,null):o:("picture-card"===n||"picture-circle"===n)&&(a=t?u.uploading:o),a},M=(e,t,n,o,a)=>{let i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,eu.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-action")};if(a&&(i.disabled=k),(0,eu.l$)(e)){let t=(0,eu.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(ed.ZP,Object.assign({},i,{icon:t}))}return r.createElement(ed.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:N}));let{getPrefixCls:L}=r.useContext(P.E_),D=L("upload",f),j=L(),F=l()("".concat(D,"-list"),"".concat(D,"-list-").concat(n)),B=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),U={motionDeadline:2e3,motionName:"".concat(D,"-").concat("picture-card"===n||"picture-circle"===n?"animate-inline":"animate"),keys:B,motionAppear:T},Z=r.useMemo(()=>{let e=Object.assign({},(0,ec.Z)(j));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[j]);return"picture-card"!==n&&"picture-circle"!==n&&(U=Object.assign(Object.assign({},Z),U)),r.createElement("div",{className:F},r.createElement(es.V4,Object.assign({},U,{component:!1}),e=>{let{key:t,file:o,className:a,style:i}=e;return r.createElement(tn,{key:t,locale:u,prefixCls:D,className:a,style:i,file:o,items:m,progress:S,listType:n,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:E,iconRender:_,actionIconRender:M,itemRender:O,onPreview:I,onDownload:N,onClose:R})}),w&&r.createElement(es.ZP,Object.assign({},U,{visible:x,forceRender:!0}),e=>{let{className:t,style:n}=e;return(0,eu.Tm)(w,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))}),to="__LIST_IGNORE_".concat(Date.now(),"__"),ta=r.forwardRef((e,t)=>{let{fileList:n,defaultFileList:i,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:E,prefixCls:S,className:w,type:x="select",children:O,style:k,itemRender:C,maxCount:T,data:A={},multiple:I=!1,hasControlInside:N=!0,action:j="",accept:F="",supportServerRender:B=!0,rootClassName:U}=e,Z=r.useContext(M.Z),z=null!=h?h:Z,[H,G]=(0,_.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[$,W]=r.useState("drop"),V=r.useRef(null);r.useMemo(()=>{let e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))})},[n]);let q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===T?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,a.flushSync)(()=>{G(r)});let l={file:e,fileList:r};n&&(l.event=n),(!i||r.some(t=>t.uid===e.uid))&&(0,a.flushSync)(()=>{null==f||f(l)})},Y=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let n=t.map(e=>ep(e.file)),r=(0,o.Z)(H);n.forEach(e=>{r=ef(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t;let{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}q(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!em(t,H))return;let r=ep(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=ef(r,H);q(r,o)},X=(e,t)=>{if(!em(t,H))return;let n=ep(t);n.status="uploading",n.percent=e.percent;let r=ef(n,H);q(n,r,e)},Q=(e,t,n)=>{if(!em(n,H))return;let r=ep(n);r.error=e,r.response=t,r.status="error";let o=ef(r,H);q(r,o)},ee=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(n=>{var r;if(!1===n)return;let o=function(e,t){let n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))})},et=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};r.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:K,onProgress:X,onError:Q,fileList:H,upload:V.current}));let{getPrefixCls:en,direction:er,upload:eo}=r.useContext(P.E_),ea=en("upload",S),ei=Object.assign(Object.assign({onBatchStart:Y,onError:Q,onProgress:X,onSuccess:K},e),{data:A,multiple:I,action:j,accept:F,supportServerRender:B,prefixCls:ea,disabled:z,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}s((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:N});delete ei.className,delete ei.style,(!O||z)&&delete ei.id;let el="".concat(ea,"-wrapper"),[es,ec,eu]=J(ea,el),[ed]=(0,L.Z)("Upload",D.Z.Upload),{showRemoveIcon:eg,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE}="boolean"==typeof c?{}:c,eS=void 0===eg?!z:!!eg,ew=(e,t)=>c?r.createElement(tr,{prefixCls:ea,listType:u,items:H,previewFile:g,onPreview:d,onDownload:p,onRemove:ee,showRemoveIcon:eS,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:y,progress:E,appendAction:e,appendActionVisible:t,itemRender:C,disabled:z}):e,ex=l()(el,w,U,ec,eu,null==eo?void 0:eo.className,{["".concat(ea,"-rtl")]:"rtl"===er,["".concat(ea,"-picture-card-wrapper")]:"picture-card"===u,["".concat(ea,"-picture-circle-wrapper")]:"picture-circle"===u}),eO=Object.assign(Object.assign({},null==eo?void 0:eo.style),k);if("drag"===x){let e=l()(ec,ea,"".concat(ea,"-drag"),{["".concat(ea,"-drag-uploading")]:H.some(e=>"uploading"===e.status),["".concat(ea,"-drag-hover")]:"dragover"===$,["".concat(ea,"-disabled")]:z,["".concat(ea,"-rtl")]:"rtl"===er});return es(r.createElement("span",{className:ex},r.createElement("div",{className:e,style:eO,onDrop:et,onDragOver:et,onDragLeave:et},r.createElement(R,Object.assign({},ei,{ref:V,className:"".concat(ea,"-btn")}),r.createElement("div",{className:"".concat(ea,"-drag-container")},O))),ew()))}let ek=l()(ea,"".concat(ea,"-select"),{["".concat(ea,"-disabled")]:z}),eC=r.createElement("div",{className:ek,style:O?void 0:{display:"none"}},r.createElement(R,Object.assign({},ei,{ref:V})));return es("picture-card"===u||"picture-circle"===u?r.createElement("span",{className:ex},ew(eC,!!O)):r.createElement("span",{className:ex},eC,ew()))});var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tl=r.forwardRef((e,t)=>{var{style:n,height:o,hasControlInside:a=!1}=e,i=ti(e,["style","height","hasControlInside"]);return r.createElement(ta,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))});ta.Dragger=tl,ta.LIST_IGNORE=to;var ts=ta},81441:function(e,t,n){var r=n(89090),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u,d,p=!1;t||(t={}),i=t.debug||!1;try{if(s=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),s()}return p}},6122:function(e,t,n){var r;!function(o){var a,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,s="[DecimalError] ",c=s+"Invalid argument: ",u=s+"Exponent out of range: ",d=Math.floor,p=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=d(1286742750677284.5),g={};function h(e,t){var n,r,o,a,i,s,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?C(t,p):t;if(c=e.d,u=t.d,i=e.e,o=t.e,c=c.slice(),a=i-o){for(a<0?(r=c,a=-a,s=u.length):(r=u,o=i,s=c.length),a>(s=(i=Math.ceil(p/7))>s?i+1:s+1)&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((s=c.length)-(a=u.length)<0&&(a=s,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/1e7|0,c[a]%=1e7;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,l?C(t,p):t}function b(e,t,n){if(e!==~~e||en)throw Error(c+e)}function v(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},g.dividedBy=g.div=function(e){return y(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return C(y(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return 0>this.cmp(e)},g.lessThanOrEqualTo=g.lte=function(e){return 1>this.cmp(e)},g.logarithm=g.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(a))throw Error(s+"NaN");if(this.s<1)throw Error(s+(this.s?"NaN":"-Infinity"));return this.eq(a)?new n(0):(l=!1,t=y(O(this,o),O(e,o),o),l=!0,C(t,r))},g.minus=g.sub=function(e){return e=new this.constructor(e),this.s==e.s?T(this,e):h(this,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return this.s?(l=!1,t=y(this,e,0,1).times(e),l=!0,this.minus(t)):C(new n(this),r)},g.naturalExponential=g.exp=function(){return E(this)},g.naturalLogarithm=g.ln=function(){return O(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){return e=new this.constructor(e),this.s==e.s?h(this,e):T(this,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(c+e);if(t=S(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,a,i,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(s+"NaN")}for(e=S(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=v(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=i=(n=c.precision)+3;;)if(r=(a=r).plus(y(this,a,i+2)).times(.5),v(a.d).slice(0,i)===(t=v(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(C(a,n+1,0),a.times(a).eq(this)){r=a;break}}else if("9999"!=t)break;i+=4}return l=!0,C(r,n)},g.times=g.mul=function(e){var t,n,r,o,a,i,s,c,u,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(!this.s||!e.s)return new d(0);for(e.s*=this.s,n=this.e+e.e,(c=p.length)<(u=f.length)&&(a=p,p=f,f=a,i=c,c=u,u=i),a=[],r=i=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=a[o]+f[r]*p[o-r-1]+t,a[o--]=s%1e7|0,t=s/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,l?C(e,d.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(b(e,0,1e9),void 0===t?t=r.rounding:b(t,0,8),C(n,e+S(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=A(r,!0):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A(r=C(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?A(this):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A((r=C(new o(this),e+S(this)+1,t)).abs(),!1,e+S(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this.constructor;return C(new e(this),S(this)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,i,c,u=this,p=u.constructor,f=+(e=new p(e));if(!e.s)return new p(a);if(!(u=new p(u)).s){if(e.s<1)throw Error(s+"Infinity");return u}if(u.eq(a))return u;if(r=p.precision,e.eq(a))return C(u,r);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=f<0?-f:f)<=9007199254740991){for(o=new p(a),t=Math.ceil(r/7+4),l=!1;n%2&&I((o=o.times(u)).d,t),0!==(n=d(n/2));)I((u=u.times(u)).d,t);return l=!0,e.s<0?new p(a).div(o):C(o,r)}}else if(i<0)throw Error(s+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,o=e.times(O(u,r+12)),l=!0,(o=E(o)).s=i,o},g.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?(n=S(o),r=A(o,n<=a.toExpNeg||n>=a.toExpPos)):(b(e,1,1e9),void 0===t?t=a.rounding:b(t,0,8),n=S(o=C(new a(o),e,t)),r=A(o,e<=n||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,1e9),void 0===t?t=n.rounding:b(t,0,8)),C(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=S(this),t=this.constructor;return A(this,e<=t.toExpNeg||e>=t.toExpPos)};var y=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,a,i){var l,c,u,d,p,f,m,g,h,b,v,y,E,w,x,O,k,T,A=r.constructor,I=r.s==o.s?1:-1,N=r.d,R=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(s+"Division by zero");for(u=0,c=r.e-o.e,k=R.length,x=N.length,g=(m=new A(I)).d=[];R[u]==(N[u]||0);)++u;if(R[u]>(N[u]||0)&&--c,(y=null==a?a=A.precision:i?a+(S(r)-S(o))+1:a)<0)return new A(0);if(y=y/7+2|0,u=0,1==k)for(d=0,R=R[0],y++;(u1&&(R=e(R,d),N=e(N,d),k=R.length,x=N.length),w=k,b=(h=N.slice(0,k)).length;b=1e7/2&&++O;do d=0,(l=t(R,h,k,b))<0?(v=h[0],k!=b&&(v=1e7*v+(h[1]||0)),(d=v/O|0)>1?(d>=1e7&&(d=1e7-1),f=(p=e(R,d)).length,b=h.length,1==(l=t(p,h,f,b))&&(d--,n(p,k16)throw Error(u+S(e));if(!e.s)return new f(a);for(null==t?(l=!1,s=m):s=t,i=new f(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(s+=Math.log(p(2,d))/Math.LN10*2+5|0,n=r=o=new f(a),f.precision=s;;){if(r=C(r.times(e),s),n=n.times(++c),v((i=o.plus(y(r,n,s))).d).slice(0,s)===v(o.d).slice(0,s)){for(;d--;)o=C(o.times(o),s);return f.precision=m,null==t?(l=!0,C(o,m)):o}o=i}}function S(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function w(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,o,i,c,u,d,p,f,m=1,g=e,h=g.d,b=g.constructor,E=b.precision;if(g.s<1)throw Error(s+(g.s?"NaN":"-Infinity"));if(g.eq(a))return new b(0);if(null==t?(l=!1,p=E):p=t,g.eq(10))return null==t&&(l=!0),w(b,p);if(p+=10,b.precision=p,r=(n=v(h)).charAt(0),!(15e14>Math.abs(i=S(g))))return d=w(b,p+2,E).times(i+""),g=O(new b(r+"."+n.slice(1)),p-10).plus(d),b.precision=E,null==t?(l=!0,C(g,E)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=v((g=g.times(e)).d)).charAt(0),m++;for(i=S(g),r>1?(g=new b("0."+n),i++):g=new b(r+"."+n.slice(1)),u=c=g=y(g.minus(a),g.plus(a),p),f=C(g.times(g),p),o=3;;){if(c=C(c.times(f),p),v((d=u.plus(y(c,new b(o),p))).d).slice(0,p)===v(u.d).slice(0,p))return u=u.times(2),0!==i&&(u=u.plus(w(b,p+2,E).times(i+""))),u=y(u,new b(m),p),b.precision=E,null==t?(l=!0,C(u,E)):u;u=d,o+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rm||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,o,a,i,s,c,f,g,h=e.d;for(i=1,a=h[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,f=h[g=0];else{if((g=Math.ceil((r+1)/7))>=(a=h.length))return e;for(i=1,f=a=h[g];a>=10;a/=10)i++;r%=7,o=r-7+i}if(void 0!==n&&(s=f/(a=p(10,i-o-1))%10|0,c=t<0||void 0!==h[g+1]||f%a,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?f/p(10,i-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(a=S(e),h.length=1,t=t-a-1,h[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(0==r?(h.length=g,a=1,g--):(h.length=g+1,a=p(10,7-r),h[g]=o>0?(f/p(10,i-o)%p(10,o)|0)*a:0),c)for(;;){if(0==g){1e7==(h[0]+=a)&&(h[0]=1,++e.e);break}if(h[g]+=a,1e7!=h[g])break;h[g--]=0,a=1}for(r=h.length;0===h[--r];)h.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+S(e));return e}function T(e,t){var n,r,o,a,i,s,c,u,d,p,f=e.constructor,m=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?C(t,m):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),i=u-r){for((d=i<0)?(n=c,i=-i,s=p.length):(n=p,r=u,s=c.length),i>(o=Math.max(Math.ceil(m/7),s)+2)&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(s=p.length))&&(s=o),o=0;o0;--o)c[s++]=0;for(o=p.length;o>i;){if(c[--o]0?a=a.charAt(0)+"."+a.slice(1)+x(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+x(-o-1)+a,n&&(r=n-i)>0&&(a+=x(r))):o>=i?(a+=x(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+x(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=x(r))),e.s<0?"-"+a:a}function I(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(c+n+": "+r)}if(void 0!==(r=e[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(c+n+": "+r)}return this}(i=function e(t){var n,r,o;function a(e){if(!(this instanceof a))return new a(e);if(this.constructor=a,e instanceof a){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,f.test(e))k(this,e);else throw Error(c+e)}if(a.prototype=g,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=N,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n4&&m.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?g=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=s.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),i+f)),h=o),new h(g,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},31872:function(e,t,n){var r=n(96130),o=n(64730),a=n(61861),i=n(46982),l=n(83671),s=n(53618);e.exports=r([a,o,i,l,s])},83671:function(e,t,n){var r=n(7667),o=n(13585),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},53618:function(e,t,n){var r=n(7667),o=n(13585),a=n(46640),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},46640:function(e,t,n){var r=n(25852);e.exports=function(e,t){return r(e,t.toLowerCase())}},25852:function(e){e.exports=function(e,t){return t in e?e[t]:t}},13585:function(e,t,n){var r=n(39900),o=n(94949),a=n(7478);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},7478:function(e,t,n){var r=n(74108),o=n(7667);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d-1}},64797:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},94410:function(e,t,n){var r=n(320)();e.exports=r},77458:function(e,t,n){var r=n(94410),o=n(39406);e.exports=function(e,t){return e&&r(e,t,o)}},38824:function(e,t,n){var r=n(53066),o=n(217);e.exports=function(e,t){t=r(t,e);for(var n=0,a=t.length;null!=e&&nt}},69959:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77095:function(e,t,n){var r=n(47495),o=n(77562),a=n(48150);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},63686:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},29759:function(e,t,n){var r=n(28685),o=n(19340);e.exports=function e(t,n,a,i,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,a,i,e,l):t!=t&&n!=n)}},28685:function(e,t,n){var r=n(4380),o=n(63859),a=n(41020),i=n(10701),l=n(96770),s=n(95059),c=n(64843),u=n(30484),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,h,b){var v=s(e),y=s(t),E=v?p:l(e),S=y?p:l(t);E=E==d?f:E,S=S==d?f:S;var w=E==f,x=S==f,O=E==S;if(O&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new r),v||u(e)?o(e,t,n,g,h,b):a(e,t,E,n,g,h,b);if(!(1&n)){var k=w&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(k||C){var T=k?e.value():e,A=C?t.value():t;return b||(b=new r),h(T,A,n,g,b)}}return!!O&&(b||(b=new r),i(e,t,n,g,h,b))}},59165:function(e,t,n){var r=n(4380),o=n(29759);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=200){var g=t?null:l(e);if(g)return s(g);p=!1,u=i,m=new r}else m=t?[]:f;t:for(;++c=o?e:r(e,t,n)}},9058:function(e,t,n){var r=n(62704);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e=s)return c;return c*("desc"==n[o]?-1:1)}}return e.index-t.index}},35852:function(e,t,n){var r=n(67741)["__core-js_shared__"];e.exports=r},91502:function(e,t,n){var r=n(10187);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i-1?l[s?t[c]:c]:void 0}}},16519:function(e,t,n){var r=n(67535),o=n(45021),a=n(55038);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?tu))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=-1,g=!0,h=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++m-1&&e%1==0&&e-1}},42572:function(e,t,n){var r=n(89329);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},26528:function(e,t,n){var r=n(68193),o=n(5835),a=n(58246);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},90972:function(e,t,n){var r=n(72080);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},55981:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).get(e)}},76656:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).has(e)}},45541:function(e,t,n){var r=n(72080);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},38737:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},69794:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},53092:function(e,t,n){var r=n(49512);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},83463:function(e,t,n){var r=n(93245)(Object,"create");e.exports=r},51678:function(e,t,n){var r=n(93332)(Object.keys,Object);e.exports=r},16474:function(e,t,n){e=n.nmd(e);var r=n(58584),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},8611:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},93332:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7157:function(e,t,n){var r=n(24821),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4800:function(e,t,n){var r=n(5835);e.exports=function(){this.__data__=new r,this.size=0}},73987:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},59728:function(e){e.exports=function(e){return this.__data__.get(e)}},4146:function(e){e.exports=function(e){return this.__data__.has(e)}},81333:function(e,t,n){var r=n(5835),o=n(58246),a=n(93785);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},48150:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||h&&r>=u}function E(){var e,n,r,a=o();if(y(a))return S(a);p=setTimeout(E,(e=a-f,n=a-m,r=t-e,h?l(r,u-n):r))}function S(e){return(p=void 0,b&&s)?v(e):(s=c=void 0,d)}function w(){var e,n=o(),r=y(n);if(s=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(E,t),g?v(e):d;if(h)return clearTimeout(p),p=setTimeout(E,t),v(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(h="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=f=c=p=void 0},w.flush=function(){return void 0===p?d:S(o())},w}},61595:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72986:function(e,t,n){var r=n(31917),o=n(31062),a=n(49452),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,a(t,3))}},209:function(e,t,n){var r=n(70493)(n(87539));e.exports=r},87539:function(e,t,n){var r=n(47495),o=n(49452),a=n(26018),i=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var s=null==n?0:a(n);return s<0&&(s=i(l+s,0)),r(e,o(t,3),s)}},20734:function(e,t,n){var r=n(9677),o=n(30677);e.exports=function(e,t){return r(o(e,t),1)}},44750:function(e,t,n){var r=n(38824);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},19955:function(e,t,n){var r=n(69959),o=n(24986);e.exports=function(e,t){return null!=e&&o(e,t,r)}},39100:function(e){e.exports=function(e){return e}},99782:function(e,t,n){var r=n(63686),o=n(19340),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},95059:function(e){var t=Array.isArray;e.exports=t},10187:function(e,t,n){var r=n(80509),o=n(54512);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},90849:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},64843:function(e,t,n){e=n.nmd(e);var r=n(67741),o=n(33879),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||o},93574:function(e,t,n){var r=n(29759);e.exports=function(e,t){return r(e,t)}},80509:function(e,t,n){var r=n(7976),o=n(70816);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},54512:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},96240:function(e,t,n){var r=n(39018);e.exports=function(e){return r(e)&&e!=+e}},71292:function(e){e.exports=function(e){return null==e}},39018:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},70816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19340:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},23393:function(e,t,n){var r=n(7976),o=n(28766),a=n(19340),i=Object.prototype,l=Function.prototype.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},96907:function(e,t,n){var r=n(7976),o=n(95059),a=n(19340);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},62704:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},30484:function(e,t,n){var r=n(80043),o=n(43863),a=n(16474),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},39406:function(e,t,n){var r=n(26546),o=n(92916),a=n(10187);e.exports=function(e){return a(e)?r(e):o(e)}},36887:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30677:function(e,t,n){var r=n(83690),o=n(49452),a=n(28245),i=n(95059);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},50924:function(e,t,n){var r=n(30804),o=n(77458),a=n(49452);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},5037:function(e,t,n){var r=n(41764),o=n(92262),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},49512:function(e,t,n){var r=n(93785);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},30264:function(e,t,n){var r=n(41764),o=n(87004),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},67222:function(e){e.exports=function(){}},80128:function(e,t,n){var r=n(67741);e.exports=function(){return r.Date.now()}},62973:function(e,t,n){var r=n(60411),o=n(34831),a=n(55632),i=n(217);e.exports=function(e){return a(e)?r(i(e)):o(e)}},1646:function(e,t,n){var r=n(16519)();e.exports=r},13435:function(e,t,n){var r=n(30927),o=n(49452),a=n(61700),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:a;return n&&l(e,t,n)&&(t=void 0),s(e,o(t,3))}},97572:function(e,t,n){var r=n(9677),o=n(56871),a=n(70712),i=n(45021),l=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=l},30786:function(e){e.exports=function(){return[]}},33879:function(e){e.exports=function(){return!1}},68417:function(e,t,n){var r=n(54525),o=n(70816);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},55038:function(e,t,n){var r=n(89753),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},26018:function(e,t,n){var r=n(55038);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},89753:function(e,t,n){var r=n(33223),o=n(70816),a=n(62704),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?i:+e}},25635:function(e,t,n){var r=n(2218);e.exports=function(e){return null==e?"":r(e)}},98116:function(e,t,n){var r=n(49452),o=n(15375);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},9332:function(e,t,n){var r=n(6551)("toUpperCase");e.exports=r},8792:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(25250),o=n.n(r)},47907:function(e,t,n){var r=n(15313);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},49079:function(e,t,n){var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(13127)},12956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(82139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let E=a.default.forwardRef(function(e,t){let n,r;let{href:s,as:b,children:E,prefetch:S=null,passHref:w,replace:x,shallow:O,scroll:k,locale:C,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:N=!1,...R}=e;n=E,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let _=a.default.useContext(d.RouterContext),P=a.default.useContext(p.AppRouterContext),M=null!=_?_:P,L=!_,D=!1!==S,j=null===S?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:F,as:B}=a.default.useMemo(()=>{if(!_){let e=y(s);return{href:e,as:b?y(b):e}}let[e,t]=(0,i.resolveHref)(_,s,!0);return{href:e,as:b?(0,i.resolveHref)(_,b):t||e}},[_,s,b]),U=a.default.useRef(F),Z=a.default.useRef(B);N&&(r=a.default.Children.only(n));let z=N?r&&"object"==typeof r&&r.ref:t,[H,G,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(Z.current!==B||U.current!==F)&&($(),Z.current=B,U.current=F),H(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,$,H]);a.default.useEffect(()=>{M&&G&&D&&v(M,F,B,{locale:C},{kind:j},L)},[B,F,G,C,D,null==_?void 0:_.locale,M,L,j]);let V={ref:W,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,o,i,s,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?a.default.startTransition(p):p()}(e,M,F,B,x,O,k,C,L)},onMouseEnter(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){N||"function"!=typeof I||I(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,c.isAbsoluteUrl)(B))V.href=B;else if(!N||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);V.href=t||(0,g.addBasePath)((0,u.addLocale)(B,e,null==_?void 0:_.defaultLocale))}return N?a.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(95770),o=n(11030),a=n(24544),i=n(36874),l=n(82139),s=n(17434),c=n(22360),u=n(96735);function d(e,t,n){let d;let p="string"==typeof t?t:(0,o.formatWithValidation)(t),f=p.match(/^[a-zA-Z]{1,}:\/\//),m=f?p.slice(f[0].length):p;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);p=(f?f[0]:"")+t}if(!(0,s.isLocalURL)(p))return n?[p]:p;try{d=new URL(p.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(p,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,u.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(64090),o=n(52185),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),i.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8620:function(e){!function(){var t={675:function(e,t){t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),i=a[0],l=a[1],c=new o((i+l)*3/4-l),u=0,d=l>0?i-4:i;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=0,l=r-o;i>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}(e,i,i+16383>l?l:i+16383));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=a.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){/*! +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[968],{12215:function(e,t,n){n.d(t,{iN:function(){return h},R_:function(){return d},EV:function(){return g},ez:function(){return p}});var r=n(41785),o=n(76991),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=i(r),f=l((0,o.uA)({h:s(p,d,!0),s:c(p,d,!0),v:u(p,d,!0)}));n.push(f)}n.push(l(r));for(var m=1;m<=4;m+=1){var g=i(r),h=l((0,o.uA)({h:s(g,m),s:c(g,m),v:u(g,m)}));n.push(h)}return"dark"===t.theme?a.map(function(e){var r,a,i,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[s]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f={},m={};Object.keys(p).forEach(function(e){f[e]=d(p[e]),f[e].primary=f[e][5],m[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}),f.red,f.volcano;var g=f.gold;f.orange,f.yellow,f.lime,f.green,f.cyan;var h=f.blue;f.geekblue,f.purple,f.magenta,f.grey,f.grey},8985:function(e,t,n){n.d(t,{E4:function(){return ej},jG:function(){return A},ks:function(){return U},bf:function(){return F},CI:function(){return eD},fp:function(){return X},xy:function(){return eM}});var r,o,a=n(50833),i=n(80406),l=n(63787),s=n(5239),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(24050),d=n(64090),p=n.t(d,2);n(61475),n(92536);var f=n(47365),m=n(65127);function g(e){return e.join("%")}var h=function(){function e(t){(0,f.Z)(this,e),(0,a.Z)(this,"instanceId",void 0),(0,a.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__",E=d.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new h(e)}(),defaultCache:!0}),S=n(6976),w=n(22127),x=function(){function e(){(0,f.Z)(this,e),(0,a.Z)(this,"cache",void 0),(0,a.Z)(this,"keys",void 0),(0,a.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,m.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),T=new x;function A(e){var t=Array.isArray(e)?e:[e];return T.has(t)||T.set(t,new C(t)),T.get(t)}var I=new WeakMap,N={},R=new WeakMap;function _(e){var t=R.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,S.Z)(r)?t+=_(r):t+=r}),R.set(e,t)),t}function P(e,t){return c("".concat(t,"_").concat(_(e)))}var M="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),L="_bAmBoO_",D=void 0,j=(0,w.Z)();function F(e){return"number"==typeof e?"".concat(e,"px"):e}function B(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var l=(0,s.Z)((0,s.Z)({},o),{},(r={},(0,a.Z)(r,b,t),(0,a.Z)(r,v,n),r)),c=Object.keys(l).map(function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];if(null!=n&&null!==(s=n.preserve)&&void 0!==s&&s[r])a[r]=l;else if(("string"==typeof l||"number"==typeof l)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[r])){var s,c,u,d=U(r,null==n?void 0:n.prefix);o[d]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[r]?String(l):"".concat(l,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},z=n(24800),H=(0,s.Z)({},p).useInsertionEffect,G=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){d.useMemo(e,n),(0,z.Z)(function(){return t(!0)},n)},$=void 0!==(0,s.Z)({},p).useInsertionEffect?function(e){var t=[],n=!1;return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function W(e,t,n,r,o){var a=d.useContext(E).cache,s=g([e].concat((0,l.Z)(t))),c=$([s]),u=function(e){a.opUpdate(s,function(t){var r=(0,i.Z)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};d.useMemo(function(){u()},[s]);var p=a.opGet(s)[1];return G(function(){null==o||o(p)},function(e){return u(function(t){var n=(0,i.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(p)),[r+1,a]}),function(){a.opUpdate(s,function(t){var n=(0,i.Z)(t||[],2),o=n[0],l=void 0===o?0:o,u=n[1];return 0==l-1?(c(function(){(e||!a.opGet(s))&&(null==r||r(u,!1))}),null):[l-1,u]})}},[s]),p}var V={},q=new Map,Y=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,s.Z)((0,s.Z)({},o),t);return r&&(a=r(a)),a},K="token";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(E),o=r.cache.instanceId,a=r.container,p=n.salt,f=void 0===p?"":p,m=n.override,g=void 0===m?V:m,h=n.formatToken,S=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=I,r=0;r=(q.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(w&&r){var l=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:a,priority:-999});l[y]=o,l.setAttribute(b,n._themeKey)}})}var Q=n(14749),J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee="comm",et="rule",en="decl",er=Math.abs,eo=String.fromCharCode;function ea(e,t,n){return e.replace(t,n)}function ei(e,t){return 0|e.charCodeAt(t)}function el(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ec(e,t){return t.push(e),e}function eu(e,t){for(var n="",r=0;r0?f[v]+" "+y:ea(y,/&\f/g,f[v])).trim())&&(s[b++]=E);return ev(e,t,n,0===o?et:l,s,c,u,d)}function eO(e,t,n,r,o){return ev(e,t,n,en,el(e,0,r),el(e,r+1,-1),r,o)}var ek="data-ant-cssinjs-cache-path",eC="_FILE_STYLE__",eT=!0,eA="_multi_value_";function eI(e){var t,n,r;return eu((r=function e(t,n,r,o,a,i,l,s,c){for(var u,d,p,f=0,m=0,g=l,h=0,b=0,v=0,y=1,E=1,S=1,w=0,x="",O=a,k=i,C=o,T=x;E;)switch(v=w,w=ey()){case 40:if(108!=v&&58==ei(T,g-1)){-1!=(d=T+=ea(ew(w),"&","&\f"),p=er(f?s[f-1]:0),d.indexOf("&\f",p))&&(S=-1);break}case 34:case 39:case 91:T+=ew(w);break;case 9:case 10:case 13:case 32:T+=function(e){for(;eh=eE();)if(eh<33)ey();else break;return eS(e)>2||eS(eh)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&ey()&&!(eh<48)&&!(eh>102)&&(!(eh>57)||!(eh<65))&&(!(eh>70)||!(eh<97)););return n=eg+(t<6&&32==eE()&&32==ey()),el(eb,e,n)}(eg-1,7);continue;case 47:switch(eE()){case 42:case 47:ec(ev(u=function(e,t){for(;ey();)if(e+eh===57)break;else if(e+eh===84&&47===eE())break;return"/*"+el(eb,t,eg-1)+"*"+eo(47===e?e:ey())}(ey(),eg),n,r,ee,eo(eh),el(u,2,-2),0,c),c);break;default:T+="/"}break;case 123*y:s[f++]=es(T)*S;case 125*y:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+m:-1==S&&(T=ea(T,/\f/g,"")),b>0&&es(T)-g&&ec(b>32?eO(T+";",o,r,g-1,c):eO(ea(T," ","")+";",o,r,g-2,c),c);break;case 59:T+=";";default:if(ec(C=ex(T,n,r,f,m,a,s,x,O=[],k=[],g,i),i),123===w){if(0===m)e(T,n,C,C,O,i,g,s,k);else switch(99===h&&110===ei(T,3)?100:h){case 100:case 108:case 109:case 115:e(t,C,C,o&&ec(ex(t,C,C,0,0,a,s,x,a,O=[],g,k),k),a,k,g,s,o?O:k);break;default:e(T,C,C,C,[""],k,0,s,k)}}}f=m=b=0,y=S=1,x=T="",g=l;break;case 58:g=1+es(T),b=v;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(eh=eg>0?ei(eb,--eg):0,ef--,10===eh&&(ef=1,ep--),eh))continue}switch(T+=eo(w),w*y){case 38:S=m>0?1:(T+="\f",-1);break;case 44:s[f++]=(es(T)-1)*S,S=1;break;case 64:45===eE()&&(T+=ew(ey())),h=eE(),m=g=es(x=T+=function(e){for(;!eS(eE());)ey();return el(eb,e,eg)}(eg)),w++;break;case 45:45===v&&2==es(T)&&(y=0)}}return i}("",null,null,null,[""],(n=t=e,ep=ef=1,em=es(eb=n),eg=0,t=[]),0,[0],t),eb="",r),ed).replace(/\{%%%\:[^;];}/g,";")}var eN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,c=r.parentSelectors,d=n.hashId,p=n.layer,f=(n.path,n.hashPriority),m=n.transformers,g=void 0===m?[]:m;n.linters;var h="",b={};function v(t){var r=t.getName(d);if(!b[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];b[r]="@keyframes ".concat(t.getName(d)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var u=g.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,S.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,S.Z)(r)&&r&&("_skip_check_"in r||eA in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;J[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(d)),h+="".concat(n,":").concat(r,";")}var m,g=null!==(m=null==r?void 0:r.value)&&void 0!==m?m:r;"object"===(0,S.Z)(r)&&null!=r&&r[eA]&&Array.isArray(g)?g.forEach(function(e){p(t,e)}):p(t,g)}else{var y=!1,E=t.trim(),w=!1;(o||a)&&d?E.startsWith("@")?y=!0:E=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,l.Z)(n.slice(1))).join(" ")}).join(",")}(t,d,f):o&&!d&&("&"===E||""===E)&&(E="",w=!0);var x=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,l.Z)(c),[E])}),O=(0,i.Z)(x,2),k=O[0],C=O[1];b=(0,s.Z)((0,s.Z)({},b),C),h+="".concat(E).concat(k)}})}}),o){if(p&&(void 0===D&&(D=function(e,t,n){if((0,w.Z)()){(0,u.hq)(e,M);var r,o,a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(L);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,u.jL)(M),i}return!1}("@layer ".concat(M," { .").concat(M,' { content: "').concat(L,'"!important; } }'),function(e){e.className=M})),D)){var y=p.split(","),E=y[y.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(p,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,b]};function eR(e,t){return c("".concat(e.join("%")).concat(t))}function e_(){return null}var eP="style";function eM(e,t){var n=e.token,o=e.path,s=e.hashId,c=e.layer,p=e.nonce,f=e.clientOnly,m=e.order,g=void 0===m?0:m,h=d.useContext(E),S=h.autoClear,x=(h.mock,h.defaultCache),O=h.hashPriority,k=h.container,C=h.ssrInline,T=h.transformers,A=h.linters,I=h.cache,N=n._tokenKey,R=[N].concat((0,l.Z)(o)),_=W(eP,R,function(){var e=R.join("|");if(!function(){if(!r&&(r={},(0,w.Z)())){var e,t=document.createElement("div");t.className=ek,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.Z)(t,2),o=n[0],a=n[1];r[o]=a});var o=document.querySelector("style[".concat(ek,"]"));o&&(eT=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,w.Z)()){if(eT)n=eC;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),a=(0,i.Z)(n,2),l=a[0],u=a[1];if(l)return[l,N,u,{},f,g]}var d=eN(t(),{hashId:s,hashPriority:O,layer:c,path:o.join("-"),transformers:T,linters:A}),p=(0,i.Z)(d,2),m=p[0],h=p[1],b=eI(m),y=eR(R,b);return[b,N,y,h,f,g]},function(e,t){var n=(0,i.Z)(e,3)[2];(t||S)&&j&&(0,u.jL)(n,{mark:v})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==eC){var a={mark:v,prepend:"queue",attachTo:k,priority:g},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var s=(0,u.hq)(n,r,a);s[y]=I.instanceId,s.setAttribute(b,N),Object.keys(o).forEach(function(e){(0,u.hq)(eI(o[e]),"_effect-".concat(e),a)})}}),P=(0,i.Z)(_,3),M=P[0],L=P[1],D=P[2];return function(e){var t,n;return t=C&&!j&&x?d.createElement("style",(0,Q.Z)({},(n={},(0,a.Z)(n,b,L),(0,a.Z)(n,v,D),n),{dangerouslySetInnerHTML:{__html:M}})):d.createElement(e_,null),d.createElement(d.Fragment,null,t,e)}}var eL="cssVar",eD=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,p=void 0===c?"":c,f=(0,d.useContext)(E),m=f.cache.instanceId,g=f.container,h=s._tokenKey,S=[].concat((0,l.Z)(e.path),[n,p,h]);return W(eL,S,function(){var e=Z(t(),n,{prefix:r,unitless:o,ignore:a,scope:p}),l=(0,i.Z)(e,2),s=l[0],c=l[1],u=eR(S,c);return[s,c,u,n]},function(e){var t=(0,i.Z)(e,3)[2];j&&(0,u.jL)(t,{mark:v})},function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,u.hq)(r,o,{mark:v,prepend:"queue",attachTo:g,priority:-999});a[y]=m,a.setAttribute(b,n)}})};o={},(0,a.Z)(o,eP,function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var p=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=B(o,a,l,f,d),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=eI(s[e]);p+=B(n,a,"_effect-".concat(e),f,d)}}),[u,l,p]}),(0,a.Z)(o,K,function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=B(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,c,u]}),(0,a.Z)(o,eL,function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!o)return null;var c=B(o,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,c]});var ej=function(){function e(t,n){(0,f.Z)(this,e),(0,a.Z)(this,"name",void 0),(0,a.Z)(this,"style",void 0),(0,a.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eF(e){return e.notSplit=!0,e}eF(["borderTop","borderBottom"]),eF(["borderTop"]),eF(["borderBottom"]),eF(["borderLeft","borderRight"]),eF(["borderLeft"]),eF(["borderRight"])},60688:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(14749),o=n(80406),a=n(50833),i=n(6787),l=n(64090),s=n(16480),c=n.n(s),u=n(12215),d=n(67689),p=n(5239),f=n(6976),m=n(24050),g=n(74687),h=n(53850);function b(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(d.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,g.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},O=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,d=(0,i.Z)(e,w),f=l.useRef(),m=x;if(c&&(m={primaryColor:c,secondaryColor:u||y(c)}),S(f),t=b(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!b(r))return null;var g=r;return g&&"function"==typeof g.icon&&(g=(0,p.Z)((0,p.Z)({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,p.Z)((0,p.Z)({key:n},v(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,p.Z)({key:n},v(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,p.Z)((0,p.Z)({className:o,onClick:a,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};function k(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return O.setTwoToneColors({primaryColor:r,secondaryColor:a})}O.displayName="IconReact",O.getTwoToneColors=function(){return(0,p.Z)({},x)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||y(t),x.calculated=!!n};var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var T=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,p=e.spin,f=e.rotate,m=e.tabIndex,g=e.onClick,h=e.twoToneColor,b=(0,i.Z)(e,C),v=l.useContext(d.Z),y=v.prefixCls,S=void 0===y?"anticon":y,w=v.rootClassName,x=c()(w,S,(n={},(0,a.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(S,"-spin"),!!p||"loading"===u.name),n),s),k=m;void 0===k&&g&&(k=-1);var T=E(h),A=(0,o.Z)(T,2),I=A[0],N=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},b,{ref:t,tabIndex:k,onClick:g,className:x}),l.createElement(O,{icon:u,primaryColor:I,secondaryColor:N,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});T.displayName="AntdIcon",T.getTwoToneColor=function(){var e=O.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},T.setTwoToneColor=k;var A=T},67689:function(e,t,n){var r=(0,n(64090).createContext)({});t.Z=r},99537:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},90507:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},77136:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},81303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20383:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31413:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20653:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41311:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},40388:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},66155:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},50459:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},96871:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},97766:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41785:function(e,t,n){n.d(t,{T6:function(){return p},VD:function(){return f},WE:function(){return c},Yt:function(){return m},lC:function(){return a},py:function(){return s},rW:function(){return o},s:function(){return d},ve:function(){return l},vq:function(){return u}});var r=n(27974);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,s=(o+a)/2;if(o===a)l=0,i=0;else{var c=o-a;switch(l=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=i(c,s,e+1/3),a=i(c,s,e),l=i(c,s,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},6564:function(e,t,n){n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76991:function(e,t,n){n.d(t,{uA:function(){return i}});var r=n(41785),o=n(6564),a=n(27974);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,s=null,c=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),c=!0,p="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,a.JX)(e.s),s=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,s),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},6336:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(41785),o=n(6564),a=n(76991),i=n(27974),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},88804:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(80406),a=n(64090),i=n(89542),l=n(22127);n(53850);var s=n(74084),c=a.createContext(null),u=n(63787),d=n(24800),p=[],f=n(24050);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),r=a-i}return r}():n}var g="rc-util-locker-".concat(Date.now()),h=0,b=!1,v=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=a.forwardRef(function(e,t){var n,r,y,E,S=e.open,w=e.autoLock,x=e.getContainer,O=(e.debug,e.autoDestroy),k=void 0===O||O,C=e.children,T=a.useState(S),A=(0,o.Z)(T,2),I=A[0],N=A[1],R=I||S;a.useEffect(function(){(k||S)&&N(S)},[S,k]);var _=a.useState(function(){return v(x)}),P=(0,o.Z)(_,2),M=P[0],L=P[1];a.useEffect(function(){var e=v(x);L(null!=e?e:null)});var D=function(e,t){var n=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(n,1)[0],i=a.useRef(!1),s=a.useContext(c),f=a.useState(p),m=(0,o.Z)(f,2),g=m[0],h=m[1],b=s||(i.current?void 0:function(e){h(function(t){return[e].concat((0,u.Z)(t))})});function v(){r.parentElement||document.body.appendChild(r),i.current=!0}function y(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return(0,d.Z)(function(){return e?s?s(v):v():y(),y},[e]),(0,d.Z)(function(){g.length&&(g.forEach(function(e){return e()}),h(p))},[g]),[r,b]}(R&&!M,0),j=(0,o.Z)(D,2),F=j[0],B=j[1],U=null!=M?M:F;n=!!(w&&S&&(0,l.Z)()&&(U===F||U===document.body)),r=a.useState(function(){return h+=1,"".concat(g,"_").concat(h)}),y=(0,o.Z)(r,1)[0],(0,d.Z)(function(){if(n){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,f.jL)(y);return function(){(0,f.jL)(y)}},[n,y]);var Z=null;C&&(0,s.Yr)(C)&&t&&(Z=C.ref);var z=(0,s.x1)(Z,t);if(!R||!(0,l.Z)()||void 0===M)return null;var H=!1===U||("boolean"==typeof E&&(b=E),b),G=C;return t&&(G=a.cloneElement(C,{ref:z})),a.createElement(c.Provider,{value:B},H?G:(0,i.createPortal)(G,U))})},44101:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(5239),o=n(80406),a=n(6787),i=n(88804),l=n(16480),s=n.n(l),c=n(46505),u=n(97472),d=n(74687),p=n(54811),f=n(91010),m=n(24800),g=n(76158),h=n(64090),b=n(14749),v=n(49367),y=n(74084);function E(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=o.y,d=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],m=n.points[1],g=f[0],b=f[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=void 0===u?0:u,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=void 0===c?0:c}return h.createElement("div",{ref:d,className:s()("".concat(t,"-arrow"),i),style:p},l)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?h.createElement(v.ZP,(0,b.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var w=h.memo(function(e){return e.children},function(e,t){return t.cache}),x=h.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,O=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,A=e.motion,I=e.maskMotion,N=e.forceRender,R=e.getPopupContainer,_=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,F=e.ready,B=e.offsetX,U=e.offsetY,Z=e.offsetR,z=e.offsetB,H=e.onAlign,G=e.onPrepare,$=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof n?n():n,Y=p||f,K=(null==R?void 0:R.length)>0,X=h.useState(!R||!K),Q=(0,o.Z)(X,2),J=Q[0],ee=Q[1];if((0,m.Z)(function(){!J&&K&&u&&ee(!0)},[J,K,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!p){var er,eo=T.points,ea=T.dynamicInset||(null===(er=T._experimental)||void 0===er?void 0:er.dynamicInset),ei=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];ei?(en.right=Z,en.left=et):(en.left=B,en.right=et),el?(en.bottom=z,en.top=et):(en.top=U,en.bottom=et)}var es={};return $&&($.includes("height")&&V?es.height=V:$.includes("minHeight")&&V&&(es.minHeight=V),$.includes("width")&&W?es.width=W:$.includes("minWidth")&&W&&(es.minWidth=W)),p||(es.pointerEvents="none"),h.createElement(P,{open:N||Y,getContainer:R&&function(){return R(u)},autoDestroy:_},h.createElement(S,{prefixCls:i,open:p,zIndex:M,mask:O,motion:I}),h.createElement(c.Z,{onResize:H,disabled:!p},function(e){return h.createElement(v.ZP,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=s()(i,c,a);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),es),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:D,onPointerEnter:j,onClick:x},k&&h.createElement(E,{prefixCls:i,arrow:k,arrowPos:C,align:T}),h.createElement(w,{cache:!p&&!g},q))})}))}),O=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),a=h.useCallback(function(e){(0,y.mH)(t,r?r(e):e)},[r]),i=(0,y.x1)(a,n.ref);return o?h.cloneElement(n,{ref:i}):n}),k=h.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(73193);function A(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return R(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=_(a),g=_(i),h=_(l),b=_(s),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),E=m*y,S=h*v,w=0,x=0;if("clip"===r){var O=_(o);w=O*v,x=O*y}var k=c.x+S-w,C=c.y+E-x,T=k+c.width+2*w-S-b*v-(p-f-h-b)*v,A=C+c.height+2*x-E-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A)}}),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function L(e,t){var n=(0,o.Z)(t||[],2),r=n[0],a=n[1];return[M(e.width,r),M(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var B=n(63787);n(53850);var U=n(19223),Z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z;return h.forwardRef(function(t,n){var i,l,b,v,y,E,S,w,_,M,z,H,G,$,W,V,q,Y=t.prefixCls,K=void 0===Y?"rc-trigger-popup":Y,X=t.children,Q=t.action,J=t.showAction,ee=t.hideAction,et=t.popupVisible,en=t.defaultPopupVisible,er=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,ei=t.mouseLeaveDelay,el=void 0===ei?.1:ei,es=t.focusDelay,ec=t.blurDelay,eu=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,ef=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,eh=t.popup,eb=t.popupClassName,ev=t.popupStyle,ey=t.popupPlacement,eE=t.builtinPlacements,eS=void 0===eE?{}:eE,ew=t.popupAlign,ex=t.zIndex,eO=t.stretch,ek=t.getPopupClassNameFromAlign,eC=t.fresh,eT=t.alignPoint,eA=t.onPopupClick,eI=t.onPopupAlign,eN=t.arrow,eR=t.popupMotion,e_=t.maskMotion,eP=t.popupTransitionName,eM=t.popupAnimation,eL=t.maskTransitionName,eD=t.maskAnimation,ej=t.className,eF=t.getTriggerDOMNode,eB=(0,a.Z)(t,Z),eU=h.useState(!1),eZ=(0,o.Z)(eU,2),ez=eZ[0],eH=eZ[1];(0,m.Z)(function(){eH((0,g.Z)())},[]);var eG=h.useRef({}),e$=h.useContext(k),eW=h.useMemo(function(){return{registerSubPopup:function(e,t){eG.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eV=(0,f.Z)(),eq=h.useState(null),eY=(0,o.Z)(eq,2),eK=eY[0],eX=eY[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&eX(e),null==e$||e$.registerSubPopup(eV,e)}),eJ=h.useState(null),e0=(0,o.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=h.useRef(null),e3=(0,p.Z)(function(e){(0,u.S)(e)&&e1!==e&&(e2(e),e4.current=e)}),e6=h.Children.only(X),e5=(null==e6?void 0:e6.props)||{},e8={},e9=(0,p.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,d.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eK?void 0:eK.contains(e))||(null===(n=(0,d.A)(eK))||void 0===n?void 0:n.host)===e||e===eK||Object.values(eG.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=A(K,eR,eM,eP),te=A(K,e_,eD,eL),tt=h.useState(en||!1),tn=(0,o.Z)(tt,2),tr=tn[0],to=tn[1],ta=null!=et?et:tr,ti=(0,p.Z)(function(e){void 0===et&&to(e)});(0,m.Z)(function(){to(et||!1)},[et]);var tl=h.useRef(ta);tl.current=ta;var ts=h.useRef([]);ts.current=[];var tc=(0,p.Z)(function(e){var t;ti(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ta)!==e&&(ts.current.push(e),null==er||er(e))}),tu=h.useRef(),td=function(){clearTimeout(tu.current)},tp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;td(),0===t?tc(e):tu.current=setTimeout(function(){tc(e)},1e3*t)};h.useEffect(function(){return td},[]);var tf=h.useState(!1),tm=(0,o.Z)(tf,2),tg=tm[0],th=tm[1];(0,m.Z)(function(e){(!e||ta)&&th(!0)},[ta]);var tb=h.useState(null),tv=(0,o.Z)(tb,2),ty=tv[0],tE=tv[1],tS=h.useState([0,0]),tw=(0,o.Z)(tS,2),tx=tw[0],tO=tw[1],tk=function(e){tO([e.clientX,e.clientY])},tC=(i=eT?tx:e1,l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eS[ey]||{}}),v=(b=(0,o.Z)(l,2))[0],y=b[1],E=h.useRef(0),S=h.useMemo(function(){return eK?N(eK):[]},[eK]),w=h.useRef({}),ta||(w.current={}),_=(0,p.Z)(function(){if(eK&&i&&ta){var e,t,n,a,l,s,c,d=eK.ownerDocument,p=I(eK).getComputedStyle(eK),f=p.width,m=p.height,g=p.position,h=eK.style.left,b=eK.style.top,v=eK.style.right,E=eK.style.bottom,x=eK.style.overflow,O=(0,r.Z)((0,r.Z)({},eS[ey]),ew),k=d.createElement("div");if(null===(e=eK.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(eK.offsetLeft,"px"),k.style.top="".concat(eK.offsetTop,"px"),k.style.position=g,k.style.height="".concat(eK.offsetHeight,"px"),k.style.width="".concat(eK.offsetWidth,"px"),eK.style.left="0",eK.style.top="0",eK.style.right="auto",eK.style.bottom="auto",eK.style.overflow="hidden",Array.isArray(i))n={x:i[0],y:i[1],width:0,height:0};else{var C=i.getBoundingClientRect();n={x:C.x,y:C.y,width:C.width,height:C.height}}var A=eK.getBoundingClientRect(),N=d.documentElement,_=N.clientWidth,M=N.clientHeight,B=N.scrollWidth,U=N.scrollHeight,Z=N.scrollTop,z=N.scrollLeft,H=A.height,G=A.width,$=n.height,W=n.width,V=O.htmlRegion,q="visible",Y="visibleFirst";"scroll"!==V&&V!==Y&&(V=q);var K=V===Y,X=P({left:-z,top:-Z,right:B-z,bottom:U-Z},S),Q=P({left:0,top:0,right:_,bottom:M},S),J=V===q?Q:X,ee=K?Q:J;eK.style.left="auto",eK.style.top="auto",eK.style.right="0",eK.style.bottom="0";var et=eK.getBoundingClientRect();eK.style.left=h,eK.style.top=b,eK.style.right=v,eK.style.bottom=E,eK.style.overflow=x,null===(t=eK.parentElement)||void 0===t||t.removeChild(k);var en=R(Math.round(G/parseFloat(f)*1e3)/1e3),er=R(Math.round(H/parseFloat(m)*1e3)/1e3);if(!(0===en||0===er||(0,u.S)(i)&&!(0,T.Z)(i))){var eo=O.offset,ea=O.targetOffset,ei=L(A,eo),el=(0,o.Z)(ei,2),es=el[0],ec=el[1],eu=L(n,ea),ed=(0,o.Z)(eu,2),ep=ed[0],ef=ed[1];n.x-=ep,n.y-=ef;var em=O.points||[],eg=(0,o.Z)(em,2),eh=eg[0],eb=D(eg[1]),ev=D(eh),eE=j(n,eb),ex=j(A,ev),eO=(0,r.Z)({},O),ek=eE.x-ex.x+es,eC=eE.y-ex.y+ec,eT=tt(ek,eC),eA=tt(ek,eC,Q),eN=j(n,["t","l"]),eR=j(A,["t","l"]),e_=j(n,["b","r"]),eP=j(A,["b","r"]),eM=O.overflow||{},eL=eM.adjustX,eD=eM.adjustY,ej=eM.shiftX,eF=eM.shiftY,eB=function(e){return"boolean"==typeof e?e:e>=0};tn();var eU=eB(eD),eZ=ev[0]===eb[0];if(eU&&"t"===ev[0]&&(l>ee.bottom||w.current.bt)){var ez=eC;eZ?ez-=H-$:ez=eN.y-eP.y-ec;var eH=tt(ek,ez),eG=tt(ek,ez,Q);eH>eT||eH===eT&&(!K||eG>=eA)?(w.current.bt=!0,eC=ez,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.bt=!1}if(eU&&"b"===ev[0]&&(aeT||eW===eT&&(!K||eV>=eA)?(w.current.tb=!0,eC=e$,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.tb=!1}var eq=eB(eL),eY=ev[1]===eb[1];if(eq&&"l"===ev[1]&&(c>ee.right||w.current.rl)){var eX=ek;eY?eX-=G-W:eX=eN.x-eP.x-es;var eQ=tt(eX,eC),eJ=tt(eX,eC,Q);eQ>eT||eQ===eT&&(!K||eJ>=eA)?(w.current.rl=!0,ek=eX,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.rl=!1}if(eq&&"r"===ev[1]&&(seT||e1===eT&&(!K||e2>=eA)?(w.current.lr=!0,ek=e0,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.lr=!1}tn();var e4=!0===ej?0:ej;"number"==typeof e4&&(sQ.right&&(ek-=c-Q.right-es,n.x>Q.right-e4&&(ek+=n.x-Q.right+e4)));var e3=!0===eF?0:eF;"number"==typeof e3&&(aQ.bottom&&(eC-=l-Q.bottom-ec,n.y>Q.bottom-e3&&(eC+=n.y-Q.bottom+e3)));var e6=A.x+ek,e5=A.y+eC,e8=n.x,e9=n.y;null==eI||eI(eK,eO);var e7=et.right-A.x-(ek+A.width),te=et.bottom-A.y-(eC+A.height);y({ready:!0,offsetX:ek/en,offsetY:eC/er,offsetR:e7/en,offsetB:te/er,arrowX:((Math.max(e6,e8)+Math.min(e6+G,e8+W))/2-e6)/en,arrowY:((Math.max(e5,e9)+Math.min(e5+H,e9+$))/2-e5)/er,scaleX:en,scaleY:er,align:eO})}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,o=A.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+G,n.right)-a)*(Math.min(o+H,n.bottom)-i))}function tn(){l=(a=A.y+eC)+H,c=(s=A.x+ek)+G}}}),M=function(){y(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,m.Z)(M,[ey]),(0,m.Z)(function(){ta||M()},[ta]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){E.current+=1;var e=E.current;Promise.resolve().then(function(){E.current===e&&_()})}]),tT=(0,o.Z)(tC,11),tA=tT[0],tI=tT[1],tN=tT[2],tR=tT[3],t_=tT[4],tP=tT[5],tM=tT[6],tL=tT[7],tD=tT[8],tj=tT[9],tF=tT[10],tB=(z=void 0===Q?"hover":Q,h.useMemo(function(){var e=C(null!=J?J:z),t=C(null!=ee?ee:z),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,z,J,ee])),tU=(0,o.Z)(tB,2),tZ=tU[0],tz=tU[1],tH=tZ.has("click"),tG=tz.has("click")||tz.has("contextMenu"),t$=(0,p.Z)(function(){tg||tF()});H=function(){tl.current&&eT&&tG&&tp(!1)},(0,m.Z)(function(){if(ta&&e1&&eK){var e=N(e1),t=N(eK),n=I(eK),r=new Set([n].concat((0,B.Z)(e),(0,B.Z)(t)));function o(){t$(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),t$(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[ta,e1,eK]),(0,m.Z)(function(){t$()},[tx,ey]),(0,m.Z)(function(){ta&&!(null!=eS&&eS[ey])&&t$()},[JSON.stringify(ew)]);var tW=h.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eS,K,tj,eT);return s()(e,null==ek?void 0:ek(tj))},[tj,ek,eS,K,eT]);h.useImperativeHandle(n,function(){return{nativeElement:e4.current,forceAlign:t$}});var tV=h.useState(0),tq=(0,o.Z)(tV,2),tY=tq[0],tK=tq[1],tX=h.useState(0),tQ=(0,o.Z)(tX,2),tJ=tQ[0],t0=tQ[1],t1=function(){if(eO&&e1){var e=e1.getBoundingClientRect();tK(e.width),t0(e.height)}};function t2(e,t,n,r){e8[e]=function(o){var a;null==r||r(o),tp(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))}},8903:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(69703),o=n(64090);let a=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}))}},9853:function(e,t,n){n.d(t,{Z:function(){return mv}});var r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E,S,w,x,O={};n.r(O),n.d(O,{scaleBand:function(){return ou},scaleDiverging:function(){return function e(){var t=a3(sp()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=io(sp()).domain([.1,1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleDivergingPow:function(){return sf},scaleDivergingSqrt:function(){return sm},scaleDivergingSymlog:function(){return function e(){var t=il(sp());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,aF),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,aF):[0,1],a3(r)}},scaleImplicit:function(){return os},scaleLinear:function(){return a6},scaleLog:function(){return function e(){let t=io(a$()).domain([1,10]);return t.copy=()=>aG(t,e()).base(t.base()),or.apply(t,arguments),t}},scaleOrdinal:function(){return oc},scalePoint:function(){return od},scalePow:function(){return ip},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e2&&void 0!==arguments[2]?arguments[2]:o4;if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[o6(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,r]).range(i).unknown(t)},or.apply(a3(l),arguments)}},scaleRadial:function(){return function e(){var t,n=aW(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(ig(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,aF)).map(ig)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},or.apply(a,arguments),a3(a)}},scaleSequential:function(){return function e(){var t=a3(ss()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=io(ss()).domain([1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleSequentialPow:function(){return su},scaleSequentialQuantile:function(){return function e(){var t=[],n=aU;function r(e){if(null!=e&&!isNaN(e=+e))return n((o6(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(oJ),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return ib(e);if(t>=1)return ih(e);var r,o=(r-1)*t,a=Math.floor(o),i=ih((function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?iv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ;if(e===oJ)return iv;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,l=n-r+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(l-i/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/i+u)),p=Math.min(o,Math.floor(n+(i-l)*c/i+u));e(t,n,d,p,a)}let i=t[n],l=r,s=o;for(iy(t,r,n),a(t[o],i)>0&&iy(t,r,o);la(t[l],i);)++l;for(;a(t[s],i)>0;)--s}0===a(t[r],i)?iy(t,r,s):iy(t,++s,o),s<=n&&(r=s+1),n<=s&&(o=s-1)}return t})(e,a).subarray(0,a+1));return i+(ib(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},oo.apply(r,arguments)}},scaleSequentialSqrt:function(){return sd},scaleSequentialSymlog:function(){return function e(){var t=il(ss());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleSqrt:function(){return im},scaleSymlog:function(){return function e(){var t=il(a$());return t.copy=function(){return aG(t,e()).constant(t.constant())},or.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[o6(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},or.apply(a,arguments)}},scaleTime:function(){return si},scaleUtc:function(){return sl},tickFormat:function(){return a4}});var k=n(69703),C=n(54942),T=n(2898),A=n(99250),I=n(65492),N=n(64090),R=function(){for(var e,t,n=0,r="",o=arguments.length;n0?1:-1},G=function(e){return D()(e)&&e.indexOf("%")===e.length-1},$=function(e){return z()(e)&&!F()(e)},W=function(e){return $(e)||D()(e)},V=0,q=function(e){var t=++V;return"".concat(e||"").concat(t)},Y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!$(e)&&!D()(e))return r;if(G(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return F()(n)&&(n=r),o&&n>t&&(n=t),n},K=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},X=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ey=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},eE=null,eS=null,ew=function e(t){if(t===eE&&Array.isArray(eS))return eS;var n=[];return N.Children.forEach(t,function(t){en()(t)||((0,M.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),eS=n,eE=t,n};function ex(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ey(e)}):[ey(t)],ew(e).forEach(function(e){var t=U()(e,"type.displayName")||U()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function eO(e,t){var n=ex(e,t);return n&&n[0]}var ek=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!$(n)&&!(n<=0)&&!!$(r)&&!(r<=0)},eC=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],eT=function(e,t,n,r){var o,a=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!eo()(e)&&(r&&a.includes(t)||ec.includes(t))||n&&ep.includes(t)},eA=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,N.isValidElement)(e)&&(r=e.props),!ei()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;eT(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},eI=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(0===r)return!0;if(1===r)return eN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=ey(e.type),i=t[a]||{},l=i.handler,s=i.once;if(l&&(!s||!r[a])){var c=l(e,a,o);n.push(c),r[a]=!0}}}),n},e_=function(e){var t=e&&e.type;return t&&ev[t]?ev[t]:null};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=P()(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect();return C(n.width,n.height),t.observe(S.current),function(){t.disconnect()}},[C,h]);var T=(0,N.useMemo)(function(){var e=O.containerWidth,t=O.containerHeight;if(e<0||t<0)return null;ee(G(l)||G(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,c),ee(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=G(l)?e:l,o=G(c)?t:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),f&&o>f&&(o=f)),ee(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,l,c,d,p,r);var a=!Array.isArray(m)&&(0,M.isElement)(m)&&ey(m.type).endsWith("Chart");return N.Children.map(m,function(e){return(0,M.isElement)(e)?(0,N.cloneElement)(e,eL({width:n,height:o},a?{style:eL({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e})},[r,m,c,f,p,d,O,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:R("recharts-responsive-container",v),style:eL(eL({},void 0===E?{}:E),{},{width:l,height:c,minWidth:d,minHeight:p,maxHeight:f}),ref:S},T)}),eF=n(1646),eB=n.n(eF),eU=n(97572),eZ=n.n(eU),ez=n(209),eH=n.n(ez),eG=n(72986),e$=n.n(eG);function eW(e,t){if(!e)throw Error("Invariant failed")}var eV=["children","width","height","viewBox","className","style","title","desc"];function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eV),u=o||{width:n,height:r,x:0,y:0},d=R("recharts-surface",a);return N.createElement("svg",eq({},eA(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),N.createElement("title",null,l),N.createElement("desc",null,s),t)}var eK=["children","className"];function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eK),a=R("recharts-layer",r);return N.createElement("g",eX({className:a},eA(o,!0),{ref:t}),n)});function eJ(e){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tc(e,t){return to(e.getTime(),t.getTime())}function tu(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),l=0;(r=i.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,p=d[0],f=d[1],m=o.value,g=m[0],h=m[1];!c&&!a[u]&&(c=n.equals(p,g,l,u,e,t,n)&&n.equals(f,h,p,g,e,t,n))&&(a[u]=!0),u++}if(!c)return!1;l++}return!0}function td(e,t,n){var r,o=tl(e),a=o.length;if(tl(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tp(e,t,n){var r,o,a,i=tn(e),l=i.length;if(tn(t).length!==l)return!1;for(;l-- >0;)if((r=i[l])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=ti(e,r),a=ti(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tf(e,t){return to(e.valueOf(),t.valueOf())}function tm(e,t){return e.source===t.source&&e.flags===t.flags}function tg(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)!s&&!a[c]&&(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[c]=!0),c++;if(!s)return!1}return!0}function th(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var tb=Array.isArray,tv="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ty=Object.assign,tE=Object.prototype.toString.call.bind(Object.prototype.toString),tS=tw();function tw(e){void 0===e&&(e={});var t,n,r,o,a,i,l,s,c,u=e.circular,d=e.createInternalComparator,p=e.createState,f=e.strict,m=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?tp:ts,areDatesEqual:tc,areMapsEqual:r?te(tu,tp):tu,areObjectsEqual:r?tp:td,arePrimitiveWrappersEqual:tf,areRegExpsEqual:tm,areSetsEqual:r?te(tg,tp):tg,areTypedArraysEqual:r?tp:th};if(n&&(o=ty({},o,n(o))),t){var a=tt(o.areArraysEqual),i=tt(o.areMapsEqual),l=tt(o.areObjectsEqual),s=tt(o.areSetsEqual);o=ty({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,c=t.areTypedArraysEqual,function(e,t,u){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var d=e.constructor;if(d!==t.constructor)return!1;if(d===Object)return a(e,t,u);if(tb(e))return n(e,t,u);if(null!=tv&&tv(e))return c(e,t,u);if(d===Date)return r(e,t,u);if(d===RegExp)return l(e,t,u);if(d===Map)return o(e,t,u);if(d===Set)return s(e,t,u);var p=tE(e);return"[object Date]"===p?r(e,t,u):"[object RegExp]"===p?l(e,t,u):"[object Map]"===p?o(e,t,u):"[object Set]"===p?s(e,t,u):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,u):"[object Arguments]"===p?a(e,t,u):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,u)}),g=d?d(m):function(e,t,n,r,o,a,i){return m(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var l=r(),s=l.cache;return n(e,i,{cache:void 0===s?t?new WeakMap:void 0:s,equals:o,meta:l.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==u&&u,comparator:m,createState:p,equals:g,strict:void 0!==f&&f})}function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tH(a,l),f=tH(i,s),m=(e=a,t=l,function(n){var r;return tz([].concat(function(e){if(Array.isArray(e))return tU(e)}(r=tZ(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||tB(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=m(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return f(n)};return g.isStepper=!1,g},t$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,l=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,l=r*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return l.isStepper=!0,l.dt=i,l},tW=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(t6(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:a,easing:l}),a]);var f=tj(p,a,l),m=t9(t9(t9({},d.style),s),{},{transition:f});return[].concat(t6(e),[m,a,u]).filter(tP)},[i,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){tx(e.bind(null,i),a);return}e(a),tx(e.bind(null,i));return}"object"===tO(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,s=e.easing,c=e.onAnimationStart,u=e.onAnimationEnd,d=e.steps,p=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof s||"function"==typeof p||"spring"===s){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?t7({},i,l):l,g=tj(Object.keys(m),a,s);f.start([c,o,t9(t9({},m),{},{transition:g}),a,u])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,t3)),a=N.Children.count(t),i=tD(this.state.style);if("function"==typeof t)return t(i);if(!r||0===a||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=t.className;return(0,N.cloneElement)(e,t9(t9({},o),{},{style:t9(t9({},void 0===n?{}:n),i),className:r}))};return 1===a?l(N.Children.only(t)):N.createElement("div",null,N.Children.map(t,function(e){return l(e)}))}}],ne(a.prototype,n),r&&ne(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);ni.displayName="Animate",ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ni.propTypes={from:e5().oneOfType([e5().object,e5().string]),to:e5().oneOfType([e5().object,e5().string]),attributeName:e5().string,duration:e5().number,begin:e5().number,easing:e5().oneOfType([e5().string,e5().func]),steps:e5().arrayOf(e5().shape({duration:e5().number.isRequired,style:e5().object.isRequired,easing:e5().oneOfType([e5().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),e5().func]),properties:e5().arrayOf("string"),onAnimationEnd:e5().func})),children:e5().oneOfType([e5().node,e5().func]),isActive:e5().bool,canBegin:e5().bool,onAnimationEnd:e5().func,shouldReAnimate:e5().bool,onAnimationStart:e5().func,onAnimationReStart:e5().func};var nl=n(42859),ns=["children","appearOptions","enterOptions","leaveOptions"];function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(){return(nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nh(a);if(t){var r=nh(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ng(e)}(this,e)});function a(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),nb(ng(e=o.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),nb(ng(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(np(np({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return ny(t)+ny(n)+ny(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ns));return N.createElement(nl.Transition,nu({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return N.createElement(ni,e.state,N.Children.only(n))})}}],nf(a.prototype,n),r&&nf(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function nS(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,a=e.leave;return N.createElement(nl.TransitionGroup,{component:t},N.Children.map(n,function(e,t){return N.createElement(nE,{appearOptions:r,enterOptions:o,leaveOptions:a,key:"child-".concat(t)},e)}))}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nx(e,t,n){var r;return(r=function(e,t){if("object"!==nw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nw(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===nw(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nE.propTypes={appearOptions:e5().object,enterOptions:e5().object,leaveOptions:e5().object,children:e5().element},nS.propTypes={appear:e5().object,enter:e5().object,leave:e5().object,children:e5().oneOfType([e5().array,e5().element]),component:e5().any},nS.defaultProps={component:"span"};var nO="recharts-tooltip-wrapper",nk={visibility:"hidden"};function nC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&$(a[r]))return a[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?us[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E=this,S=this.props,w=S.active,x=S.allowEscapeViewBox,O=S.animationDuration,k=S.animationEasing,C=S.children,T=S.coordinate,A=S.hasPayload,I=S.isAnimationActive,_=S.offset,P=S.position,M=S.reverseDirection,L=S.useTranslate3d,D=S.viewBox,j=S.wrapperStyle,F=(p=(e={allowEscapeViewBox:x,coordinate:T,offsetTopLeft:_,position:P,reverseDirection:M,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:L,viewBox:D}).allowEscapeViewBox,f=e.coordinate,m=e.offsetTopLeft,g=e.position,h=e.reverseDirection,b=e.tooltipBox,v=e.useTranslate3d,y=e.viewBox,b.height>0&&b.width>0&&f?(n=(t={translateX:u=nC({allowEscapeViewBox:p,coordinate:f,key:"x",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.width,viewBox:y,viewBoxDimension:y.width}),translateY:d=nC({allowEscapeViewBox:p,coordinate:f,key:"y",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.height,viewBox:y,viewBoxDimension:y.height}),useTranslate3d:v}).translateX,r=t.translateY,c=tD({transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})):c=nk,{cssProperties:c,cssClasses:(i=(o={translateX:u,translateY:d,coordinate:f}).coordinate,l=o.translateX,s=o.translateY,R(nO,(nx(a={},"".concat(nO,"-right"),$(l)&&i&&$(i.x)&&l>=i.x),nx(a,"".concat(nO,"-left"),$(l)&&i&&$(i.x)&&l=i.y),nx(a,"".concat(nO,"-top"),$(s)&&i&&$(i.y)&&s0;return N.createElement(nD,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:u,active:r,coordinate:s,hasPayload:E,offset:d,position:m,reverseDirection:g,useTranslate3d:h,viewBox:b,wrapperStyle:v},(e=nH(nH({},this.props),{},{payload:y}),N.isValidElement(l)?N.cloneElement(l,e):"function"==typeof l?N.createElement(l,e):N.createElement(e3,e)))}}],nG(a.prototype,n),r&&nG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);nV(nK,"displayName","Tooltip"),nV(nK,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var nX=n(9332),nQ=n.n(nX);let nJ=Math.cos,n0=Math.sin,n1=Math.sqrt,n2=Math.PI,n4=2*n2;var n3={draw(e,t){let n=n1(t/n2);e.moveTo(n,0),e.arc(0,0,n,0,n4)}};let n6=n1(1/3),n5=2*n6,n8=n0(n2/10)/n0(7*n2/10),n9=n0(n4/10)*n8,n7=-nJ(n4/10)*n8,re=n1(3),rt=n1(3)/2,rn=1/n1(12),rr=(rn/2+1)*3;function ro(e){return function(){return e}}function ra(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ri(){let e=ra(["M",",",""]);return ri=function(){return e},e}function rl(){let e=ra(["Z"]);return rl=function(){return e},e}function rs(){let e=ra(["L",",",""]);return rs=function(){return e},e}function rc(){let e=ra(["Q",",",",",",",""]);return rc=function(){return e},e}function ru(){let e=ra(["C",",",",",",",",",",",""]);return ru=function(){return e},e}function rd(){let e=ra(["M",",",""]);return rd=function(){return e},e}function rp(){let e=ra(["L",",",""]);return rp=function(){return e},e}function rf(){let e=ra(["L",",",""]);return rf=function(){return e},e}function rm(){let e=ra(["A",",",",0,0,",",",",",""]);return rm=function(){return e},e}function rg(){let e=ra(["M",",",""]);return rg=function(){return e},e}function rh(){let e=ra(["L",",",""]);return rh=function(){return e},e}function rb(){let e=ra(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]);return rb=function(){return e},e}function rv(){let e=ra(["A",",",",0,",",",",",",",""]);return rv=function(){return e},e}function ry(){let e=ra(["M",",","h","v","h","Z"]);return ry=function(){return e},e}let rE=Math.PI,rS=2*rE,rw=rS-1e-6;function rx(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(u*l-s*c)>1e-6&&o){let p=n-a,f=r-i,m=l*l+s*s,g=Math.sqrt(m),h=Math.sqrt(d),b=o*Math.tan((rE-Math.acos((m+d-(p*p+f*f))/(2*g*h)))/2),v=b/h,y=b/g;Math.abs(v-1)>1e-6&&this._append(rf(),e+v*c,t+v*u),this._append(rm(),o,o,+(u*p>c*f),this._x1=e+y*l,this._y1=t+y*s)}else this._append(rp(),this._x1=e,this._y1=t)}}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error("negative radius: ".concat(n));let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,c=t+l,u=1^a,d=a?r-o:o-r;null===this._x1?this._append(rg(),s,c):(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append(rh(),s,c),n&&(d<0&&(d=d%rS+rS),d>rw?this._append(rb(),n,n,u,e-i,t-l,n,n,u,this._x1=s,this._y1=c):d>1e-6&&this._append(rv(),n,n,+(d>=rE),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}rect(e,t,n,r){this._append(ry(),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?rx:function(e){let t=Math.floor(e);if(!(t>=0))throw Error("invalid digits: ".concat(e));if(t>15)return rx;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw RangeError("invalid digits: ".concat(n));t=e}return e},()=>new rO(t)}function rC(e){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rO.prototype,n1(3),n1(3);var rT=["type","size","sizeType"];function rA(){return(rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rT)),{},{type:r,size:a,sizeType:l}),c=s.className,u=s.cx,d=s.cy,p=eA(s,!0);return u===+u&&d===+d&&a===+a?N.createElement("path",rA({},p,{className:R("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:(t=rR["symbol".concat(nQ()(r))]||n3,(function(e,t){let n=null,r=rk(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ro(e||n3),t="function"==typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(rP(a,l,r))())})):null};function rL(e){return(rL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rD(){return(rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var f=t.inactive?i:t.color;return N.createElement("li",rD({className:d,style:s,key:"legend-item-".concat(n)},em(e.props,t,n)),N.createElement(eY,{width:r,height:r,viewBox:l,style:c},e.renderIcon(t)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},u?u(p,t,n):p))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?N.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],rF(a.prototype,n),r&&rF(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function rG(e){return(rG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rZ(rH,"displayName","Legend"),rZ(rH,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var r$=["ref"];function rW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rV({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),rV(rV({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,s=rV(rV({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return N.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if("function"==typeof e)return N.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,r$);return N.createElement(rH,n)}(n,rV(rV({},this.props),{},{payload:nU(l,i,r0)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&$(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&rq(a.prototype,n),r&&rq(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function r2(){return(r2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),a+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),a+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),a+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},oe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+l)&&r<=Math.max(a,a+l)},ot={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},on=function(e){var t,n=r9(r9({},ot),e),r=(0,N.useRef)(),o=function(e){if(Array.isArray(e))return e}(t=(0,N.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r5(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o[1];(0,N.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=n.x,s=n.y,c=n.width,u=n.height,d=n.radius,p=n.className,f=n.animationEasing,m=n.animationDuration,g=n.animationBegin,h=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var v=R("recharts-rectangle",p);return b?N.createElement(ni,{canBegin:a>0,from:{width:c,height:u,x:l,y:s},to:{width:c,height:u,x:l,y:s},duration:m,animationEasing:f,isActive:b},function(e){var t=e.width,o=e.height,i=e.x,l=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:h,easing:f},N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(i,l,t,o,d),ref:r})))}):N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(l,s,c,u,d)}))};function or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class oa extends Map{get(e){return super.get(oi(this,e))}has(e){return super.has(oi(this,e))}set(e,t){return super.set(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}(this,e),t)}delete(e){return super.delete(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}(this,e))}constructor(e,t=ol){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}}function oi(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):t}function ol(e){return null!==e&&"object"==typeof e?e.valueOf():e}let os=Symbol("implicit");function oc(){var e=new oa,t=[],n=[],r=os;function o(o){let a=e.get(o);if(void 0===a){if(r!==os)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new oa,n))e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oc(t,n).unknown(r)},or.apply(o,arguments),o}function ou(){var e,t,n=oc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||nj.isSsr)return{width:0,height:0};var r=(Object.keys(t=om({},n)).forEach(function(e){t[e]||delete t[e]}),t),o=JSON.stringify({text:e,copyStyle:r});if(og.widthCache[o])return og.widthCache[o];try{var a=document.getElementById(ob);a||((a=document.createElement("span")).setAttribute("id",ob),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=om(om({},oh),r);Object.assign(a.style,i),a.textContent="".concat(e);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return og.widthCache[o]=s,++og.cacheCount>2e3&&(og.cacheCount=0,og.widthCache={}),s}catch(e){return{width:0,height:0}}};function oy(e){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},m=0,g=l.length-1,h=0;m<=g&&h<=l.length-1;){var b=Math.floor((m+g)/2),v=oj(f(b-1),2),y=v[0],E=v[1],S=oj(f(b),1)[0];if(y||S||(m=b+1),y&&S&&(g=b-1),!y&&S){a=E;break}h++}return a||p},oz=function(e){return[{words:en()(e)?[]:e.toString().split(oB)}]},oH=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!nj.isSsr){var l=oU({breakAll:a,children:r,style:o});return l?oZ({breakAll:a,children:r,maxLines:i,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):oz(r)}return oz(r)},oG="#808080",o$=function(e){var t,n=e.x,r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,i=e.lineHeight,l=void 0===i?"1em":i,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,f=e.verticalAnchor,m=e.fill,g=void 0===m?oG:m,h=oD(e,oP),b=(0,N.useMemo)(function(){return oH({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:d,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,d,h.style,h.width]),v=h.dx,y=h.dy,E=h.angle,S=h.className,w=h.breakAll,x=oD(h,oM);if(!W(r)||!W(a))return null;var O=r+($(v)?v:0),k=a+($(y)?y:0);switch(void 0===f?"end":f){case"start":t=o_("calc(".concat(c,")"));break;case"middle":t=o_("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:t=o_("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(d){var T=b[0].width,A=h.width;C.push("scale(".concat(($(A)?A/T:1)/T,")"))}return E&&C.push("rotate(".concat(E,", ").concat(O,", ").concat(k,")")),C.length&&(x.transform=C.join(" ")),N.createElement("text",oL({},eA(x,!0),{x:O,y:k,className:R("recharts-text",S),textAnchor:void 0===p?"start":p,fill:g.includes("url")?oG:g}),b.map(function(e,n){var r=e.words.join(w?"":" ");return N.createElement("tspan",{x:O,dy:0===n?t:l,key:r},r)}))};let oW=Math.sqrt(50),oV=Math.sqrt(10),oq=Math.sqrt(2);function oY(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(i)),s=i/Math.pow(10,l),c=s>=oW?10:s>=oV?5:s>=oq?2:1;return(l<0?(r=Math.round(e*(a=Math.pow(10,-l)/c)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,l)*c)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=a-o+1,s=Array(l);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function o0(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o1(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ooJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===oJ||e===o0?e:o2,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?am(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?am(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ar.exec(e))?new ah(t[1],t[2],t[3],1):(t=ao.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aa.exec(e))?am(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?am(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=al.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=as.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ac.hasOwnProperty(e)?af(ac[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function af(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function am(e,t,n,r){return r<=0&&(e=t=n=NaN),new ah(e,t,n,r)}function ag(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof o9||(o=ap(o)),o)?new ah((o=o.rgb()).r,o.g,o.b,o.opacity):new ah:new ah(e,t,n,null==r?1:r)}function ah(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ab(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b))}function av(){let e=ay(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aE(this.r),", ").concat(aE(this.g),", ").concat(aE(this.b)).concat(1===e?")":", ".concat(e,")"))}function ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aS(e){return((e=aE(e))<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aO(e,t,n,r)}function ax(e){if(e instanceof aO)return new aO(e.h,e.s,e.l,e.opacity);if(e instanceof o9||(e=ap(e)),!e)return new aO;if(e instanceof aO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+(n0&&s<1?0:i,new aO(i,l,s,e.opacity)}function aO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ak(e){return(e=(e||0)%360)<0?e+360:e}function aC(e){return Math.max(0,Math.min(1,e||0))}function aT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function aA(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}o5(o9,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ax(this).formatHsl()},formatRgb:ad,toString:ad}),o5(ah,ag,o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(aE(this.r),aE(this.g),aE(this.b),ay(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ab,formatHex:ab,formatHex8:function(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b)).concat(aS((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:av,toString:av})),o5(aO,function(e,t,n,r){return 1==arguments.length?ax(e):new aO(e,t,n,null==r?1:r)},o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new aO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ah(aT(e>=240?e-240:e+120,o,r),aT(e,o,r),aT(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new aO(ak(this.h),aC(this.s),aC(this.l),ay(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ay(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ak(this.h),", ").concat(100*aC(this.s),"%, ").concat(100*aC(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var aI=e=>()=>e;function aN(e,t){var n=t-e;return n?function(t){return e+t*n}:aI(isNaN(e)?t:e)}var aR=function e(t){var n,r=1==(n=+(n=t))?aN:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):aI(isNaN(e)?t:e)};function o(e,t){var n=r((e=ag(e)).r,(t=ag(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=aN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function a_(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=rl&&(i=t.slice(l,i),c[s]?c[s]+=i:c[++s]=i),(o=o[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,u.push({i:s,x:aP(o,a)})),l=aL.lastIndex;return lt&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=s>2?aH:az,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(l,i.map(e),aP)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,aF),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=aj,u()},d.clamp=function(e){return arguments.length?(c=!!e||aU,u()):c!==aU},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function aW(){return a$()(aU,aU)}var aV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aq(e){var t;if(!(t=aV.exec(e)))throw Error("invalid format: "+e);return new aY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aY(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function aK(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aX(e){return(e=aK(Math.abs(e)))?e[1]:NaN}function aQ(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}aq.prototype=aY.prototype,aY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var aJ={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aQ(100*e,t),r:aQ,s:function(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(b=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+aK(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a0(e){return e}var a1=Array.prototype.map,a2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a4(e,t,n,r){var o,a,i=oQ(e,t,n);switch((r=aq(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aX(l)/3)))-aX(Math.abs(i))))||(r.precision=a),E(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,aX(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=i)))-aX(o))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-aX(Math.abs(i))))||(r.precision=a-("%"===r.type)*2)}return y(r)}function a3(e){var t=e.domain;return e.ticks=function(e){var n=t();return oK(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return a4(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],c=a[l],u=10;for(c0;){if((o=oX(s,c,n))===r)return a[i]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else if(o<0)s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function a6(){var e=aW();return e.copy=function(){return aG(e,a6())},or.apply(e,arguments),a3(e)}function a5(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function io(e){let t,n;let r=e(a8,a9),o=r.domain,a=10;function i(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?it:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=ir(t),n=ir(n),e(a7,ie)):e(a8,a9),r}return r.base=function(e){return arguments.length?(a=+e,i()):a},r.domain=function(e){return arguments.length?(o(e),i()):o()},r.ticks=e=>{let r,i;let l=o(),s=l[0],c=l[l.length-1],u=c0){for(;d<=p;++d)for(r=1;rc)break;m.push(i)}}else for(;d<=p;++d)for(r=a-1;r>=1;--r)if(!((i=d>0?r/n(-d):r*n(d))c)break;m.push(i)}2*m.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=aq(o)).precision||(o.trim=!0),o=y(o)),e===1/0)return o;let i=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(a5(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ia(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ii(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function il(e){var t=1,n=e(ia(1),ii(t));return n.constant=function(n){return arguments.length?e(ia(t=+n),ii(t)):t},a3(n)}function is(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ic(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iu(e){return e<0?-e*e:e*e}function id(e){var t=e(aU,aU),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(aU,aU):.5===n?e(ic,iu):e(is(n),is(1/n)):n},a3(t)}function ip(){var e=id(a$());return e.copy=function(){return aG(e,ip()).exponent(e.exponent())},or.apply(e,arguments),e}function im(){return ip.apply(null,arguments).exponent(.5)}function ig(e){return Math.sign(e)*e*e}function ih(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function ib(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function iv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function iy(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}y=(v=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?a0:(t=a1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?a0:(r=a1.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=aq(e)).fill,n=e.align,r=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,h=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):aJ[y]||(void 0===h&&(h=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",S="$"===p?i:/[%p]/.test(y)?c:"",w=aJ[y],x=/[defgprs%]/.test(y);function O(e){var a,i,c,p=E,O=S;if("c"===y)O=w(e)+O,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),h),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==r&&(k=!1),p=(k?"("===r?r:u:"-"===r||"("===r?"":r)+p,O=("s"===y?a2[8+b/3]:"")+O+(k&&"("===r?")":""),x){for(a=-1,i=e.length;++a(c=e.charCodeAt(a))||c>57){O=(46===c?l+e.slice(a+1):e.slice(a))+O,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+O.length,T=C>1)+p+e+O+T.slice(C);break;default:e=T+p+e+O}return s(e)}return h=void 0===h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),O.toString=function(){return e+""},O}return{format:p,formatPrefix:function(e,t){var n=p(((e=aq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(aX(t)/3))),o=Math.pow(10,-r),a=a2[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,E=v.formatPrefix;let iE=new Date,iS=new Date;function iw(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let l=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return l;do l.push(i=new Date(+n)),t(n,a),e(n);while(iiw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(iE.setTime(+t),iS.setTime(+r),e(iE),e(iS),Math.floor(n(iE,iS))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ix=iw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ix.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?iw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ix:null,ix.range;let iO=iw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());iO.range;let ik=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());ik.range;let iC=iw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());iC.range;let iT=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());iT.range;let iA=iw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());iA.range;let iI=iw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);iI.range;let iN=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);iN.range;let iR=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function i_(e){return iw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}iR.range;let iP=i_(0),iM=i_(1),iL=i_(2),iD=i_(3),ij=i_(4),iF=i_(5),iB=i_(6);function iU(e){return iw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}iP.range,iM.range,iL.range,iD.range,ij.range,iF.range,iB.range;let iZ=iU(0),iz=iU(1),iH=iU(2),iG=iU(3),i$=iU(4),iW=iU(5),iV=iU(6);iZ.range,iz.range,iH.range,iG.range,i$.range,iW.range,iV.range;let iq=iw(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iq.range;let iY=iw(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());iY.range;let iK=iw(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());iK.every=e=>isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,iK.range;let iX=iw(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function iQ(e,t,n,r,o,a){let i=[[iO,1,1e3],[iO,5,5e3],[iO,15,15e3],[iO,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,a=o1(e=>{let[,,t]=e;return t}).right(i,o);if(a===i.length)return e.every(oQ(t/31536e6,n/31536e6,r));if(0===a)return ix.every(Math.max(oQ(t,n,r),1));let[l,s]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,iX.range;let[iJ,i0]=iQ(iX,iY,iZ,iR,iA,iC),[i1,i2]=iQ(iK,iq,iP,iI,iT,ik);function i4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i6(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var i5={"-":"",_:" ",0:"0"},i8=/^\s*\d+/,i9=/^%/,i7=/[\\^$*+?|[\]().{}]/g;function le(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function lo(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function la(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function li(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lc(e,t,n){var r=i8.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ld(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lp(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lf(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lm(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lh(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=i8.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lS(e,t,n){var r=i9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lw(e,t,n){var r=i8.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=i8.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lO(e,t){return le(e.getDate(),t,2)}function lk(e,t){return le(e.getHours(),t,2)}function lC(e,t){return le(e.getHours()%12||12,t,2)}function lT(e,t){return le(1+iI.count(iK(e),e),t,3)}function lA(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return lA(e,t)+"000"}function lN(e,t){return le(e.getMonth()+1,t,2)}function lR(e,t){return le(e.getMinutes(),t,2)}function l_(e,t){return le(e.getSeconds(),t,2)}function lP(e){var t=e.getDay();return 0===t?7:t}function lM(e,t){return le(iP.count(iK(e)-1,e),t,2)}function lL(e){var t=e.getDay();return t>=4||0===t?ij(e):ij.ceil(e)}function lD(e,t){return e=lL(e),le(ij.count(iK(e),e)+(4===iK(e).getDay()),t,2)}function lj(e){return e.getDay()}function lF(e,t){return le(iM.count(iK(e)-1,e),t,2)}function lB(e,t){return le(e.getFullYear()%100,t,2)}function lU(e,t){return le((e=lL(e)).getFullYear()%100,t,2)}function lZ(e,t){return le(e.getFullYear()%1e4,t,4)}function lz(e,t){var n=e.getDay();return le((e=n>=4||0===n?ij(e):ij.ceil(e)).getFullYear()%1e4,t,4)}function lH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function lG(e,t){return le(e.getUTCDate(),t,2)}function l$(e,t){return le(e.getUTCHours(),t,2)}function lW(e,t){return le(e.getUTCHours()%12||12,t,2)}function lV(e,t){return le(1+iN.count(iX(e),e),t,3)}function lq(e,t){return le(e.getUTCMilliseconds(),t,3)}function lY(e,t){return lq(e,t)+"000"}function lK(e,t){return le(e.getUTCMonth()+1,t,2)}function lX(e,t){return le(e.getUTCMinutes(),t,2)}function lQ(e,t){return le(e.getUTCSeconds(),t,2)}function lJ(e){var t=e.getUTCDay();return 0===t?7:t}function l0(e,t){return le(iZ.count(iX(e)-1,e),t,2)}function l1(e){var t=e.getUTCDay();return t>=4||0===t?i$(e):i$.ceil(e)}function l2(e,t){return e=l1(e),le(i$.count(iX(e),e)+(4===iX(e).getUTCDay()),t,2)}function l4(e){return e.getUTCDay()}function l3(e,t){return le(iz.count(iX(e)-1,e),t,2)}function l6(e,t){return le(e.getUTCFullYear()%100,t,2)}function l5(e,t){return le((e=l1(e)).getUTCFullYear()%100,t,2)}function l8(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var n=e.getUTCDay();return le((e=n>=4||0===n?i$(e):i$.ceil(e)).getUTCFullYear()%1e4,t,4)}function l7(){return"+0000"}function se(){return"%"}function st(e){return+e}function sn(e){return Math.floor(+e/1e3)}function sr(e){return new Date(e)}function so(e){return e instanceof Date?+e:+new Date(+e)}function sa(e,t,n,r,o,a,i,l,s,c){var u=aW(),d=u.invert,p=u.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),E=c("%Y");function S(e){return(s(e)1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a=0;)n[t]=t;return n}function sv(e,t){return e[t]}function sy(e){let t=[];return t.key=e,t}w=(S=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,c=ln(o),u=lr(o),d=ln(a),p=lr(a),f=ln(i),m=lr(i),g=ln(l),h=lr(l),b=ln(s),v=lr(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:lO,e:lO,f:lI,g:lU,G:lz,H:lk,I:lC,j:lT,L:lA,m:lN,M:lR,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:st,s:sn,S:l_,u:lP,U:lM,V:lD,w:lj,W:lF,x:null,X:null,y:lB,Y:lZ,Z:lH,"%":se},E={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lG,e:lG,f:lY,g:l5,G:l9,H:l$,I:lW,j:lV,L:lq,m:lK,M:lX,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:st,s:sn,S:lQ,u:lJ,U:l0,V:l2,w:l4,W:l3,x:null,X:null,y:l6,Y:l8,Z:l7,"%":se},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:lm,e:lm,f:lE,g:lu,G:lc,H:lh,I:lh,j:lg,L:ly,m:lf,M:lb,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:lp,Q:lw,s:lx,S:lv,u:la,U:li,V:ll,w:lo,W:ls,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:lu,Y:lc,Z:ld,"%":lS};function w(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=i3(i6(a.y,0,1))).getUTCDay())>4||0===o?iz.ceil(r):iz(r),r=iN.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=i4(i6(a.y,0,1))).getDay())>4||0===o?iM.ceil(r):iM(r),r=iI.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?i3(i6(a.y,0,1)).getUTCDay():i4(i6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,i3(a)):i4(a)}}function O(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i=s)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=S[(o=t.charAt(i++))in i5?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),E.x=w(n,E),E.X=w(r,E),E.c=w(t,E),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,S.parse,x=S.utcFormat,S.utcParse,Array.prototype.slice;var sE=n(5037),sS=n.n(sE),sw=n(30264),sx=n.n(sw),sO=n(20734),sk=n.n(sO),sC=n(93574),sT=n.n(sC),sA=n(6122),sI=n.n(sA);function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,sM(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function sV(e,t,n){if(e.lte(0))return new(sI())(0);var r=sZ.getDigitCount(e.toNumber()),o=new(sI())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,l=new(sI())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?l:new(sI())(Math.ceil(l))}function sq(e,t,n){var r=1,o=new(sI())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(sI())(10).pow(sZ.getDigitCount(e)-1),o=new(sI())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(sI())(Math.floor(e)))}else 0===e?o=new(sI())(Math.floor((t-1)/2)):n||(o=new(sI())(Math.floor(e)));var i=Math.floor((t-1)/2);return sF(sj(function(e){return o.add(new(sI())(e-i).mul(r)).toNumber()}),sD)(0,t)}var sY=sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(sz(sD(0,o-1).map(function(){return 1/0}))):[].concat(sz(sD(0,o-1).map(function(){return-1/0})),[c]);return n>r?sB(u):u}if(s===c)return sq(s,o,a);var d=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(sI())(0),tickMin:new(sI())(0),tickMax:new(sI())(0)};var l=sV(new(sI())(n).sub(t).div(r-1),o,i),s=Math.ceil((a=t<=0&&n>=0?new(sI())(0):(a=new(sI())(t).add(n).div(2)).sub(new(sI())(a).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(sI())(n).sub(a).div(l).toNumber()),u=s+c+1;return u>r?e(t,n,r,o,i+1):(u0?c+(r-u):c,s=n>0?s:s+(r-u)),{step:l,tickMin:a.sub(new(sI())(s).mul(l)),tickMax:a.add(new(sI())(c).mul(l))})}(s,c,i,a),p=d.step,f=d.tickMin,m=d.tickMax,g=sZ.rangeStep(f,m.add(new(sI())(.1).mul(p)),p);return n>r?sB(g):g});sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[n,r];if(s===c)return sq(s,o,a);var u=sV(new(sI())(c).sub(s).div(i-1),a,0),d=sF(sj(function(e){return new(sI())(s).add(new(sI())(e).mul(u)).toNumber()}),sD)(0,i).filter(function(e){return e>=s&&e<=c});return n>r?sB(d):d});var sK=sU(function(e,t){var n=sH(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=sH(sW([r,o]),2),l=i[0],s=i[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=sV(new(sI())(s).sub(l).div(Math.max(t,2)-1),a,0),u=[].concat(sz(sZ.rangeStep(new(sI())(l),new(sI())(s).sub(new(sI())(.99).mul(c)),c)),[s]);return r>o?sB(u):u}),sX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sQ(){return(sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sX),!1);"x"===e.direction&&"number"!==l.type&&eW(!1);var u=a.map(function(e){var a,u,d=i(e,o),p=d.x,f=d.y,m=d.value,g=d.errorVal;if(!g)return null;var h=[];if(Array.isArray(g)){var b=function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(g,2)||function(e,t){if(e){if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=b[0],u=b[1]}else a=u=g;if("vertical"===n){var v=l.scale,y=f+t,E=y+r,S=y-r,w=v(m-a),x=v(m+u);h.push({x1:x,y1:E,x2:x,y2:S}),h.push({x1:w,y1:y,x2:x,y2:y}),h.push({x1:w,y1:E,x2:w,y2:S})}else if("horizontal"===n){var O=s.scale,k=p+t,C=k-r,T=k+r,A=O(m-a),I=O(m+u);h.push({x1:C,y1:I,x2:T,y2:I}),h.push({x1:k,y1:A,x2:k,y2:I}),h.push({x1:C,y1:A,x2:T,y2:A})}return N.createElement(eQ,sQ({className:"recharts-errorBar",key:"bar-".concat(h.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},c),h.map(function(e){return N.createElement("line",sQ({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return N.createElement(eQ,{className:"recharts-errorBars"},u)}function s1(e){return(s1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,s=0;s0?r[s-1].coordinate:r[i-1].coordinate,u=r[s].coordinate,d=s>=i-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(H(u-c)!==H(d-u)){var f=[];if(H(d-u)===H(l[1]-l[0])){p=d;var m=u+l[1]-l[0];f[0]=Math.min(m,(m+c)/2),f[1]=Math.max(m,(m+c)/2)}else{p=c;var g=d+l[1]-l[0];f[0]=Math.min(u,(g+u)/2),f[1]=Math.max(u,(g+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){a=r[s].index;break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){a=r[s].index;break}}}else for(var y=0;y0&&y(n[y].coordinate+n[y-1].coordinate)/2&&e<=(n[y].coordinate+n[y+1].coordinate)/2||y===i-1&&e>(n[y].coordinate+n[y-1].coordinate)/2){a=n[y].index;break}return a},co=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ca=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,l=a.length;i=0});if(g&&g.length){var h=g[0].props.barSize,b=g[0].props[m];o[b]||(o[b]=[]),o[b].push({item:g[0],stackList:g.slice(1),barSize:en()(h)?t:h})}}return o},ci=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,s=i.length;if(s<1)return null;var c=Y(n,o,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=o/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=o&&(f-=(s-1)*c,c=0),f>=o&&p>0&&(d=!0,p*=.9,f=s*p);var m={offset:((o-f)/2>>0)-c,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?p:t.barSize}},r=[].concat(s7(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var g=Y(r,o,0,!0);o-2*g-(s-1)*c<=0&&(c=0);var h=(o-2*g-(s-1)*c)/s;h>1&&(h>>=0);var b=l===+l?Math.min(h,l):h;t=i.reduce(function(e,t,n){var r=[].concat(s7(e),[{item:t.item,position:{offset:g+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return t},cl=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,l=s3({children:o,legendWidth:a-(i.left||0)-(i.right||0)});if(l){var s=r||{},c=s.width,u=s.height,d=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==d&&$(e[d]))return s8(s8({},e),{},s9({},d,e[d]+(c||0)));if(("horizontal"===f||"vertical"===f&&"center"===d)&&"middle"!==p&&$(e[p]))return s8(s8({},e),{},s9({},p,e[p]+(u||0)))}return e},cs=function(e,t,n,r,o){var a=ex(t.props.children,s0).filter(function(e){var t;return t=e.props.direction,!!en()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=ct(t,n,0),o=Array.isArray(r)?[sx()(r),sS()(r)]:[r,r],a=i.reduce(function(e,n){var r=ct(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},cc=function(e,t,n,r,o){var a=t.map(function(t){return cs(e,t,n,o,r)}).filter(function(e){return!en()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},cu=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&cs(e,t,a,r)||cn(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*H(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+s,value:e,offset:s}}).filter(function(e){return!F()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+s,value:e,offset:s}}):r.domain().map(function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}})},cm=new WeakMap,cg=function(e,t){if("function"!=typeof t)return e;cm.has(e)||cm.set(e,new WeakMap);var n=cm.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},ch=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:ou(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:a6(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:od(),realScaleType:"point"}:"category"===o?{scale:ou(),realScaleType:"band"}:{scale:a6(),realScaleType:"linear"};if(D()(r)){var l="scale".concat(nQ()(r));return{scale:(O[l]||od)(),realScaleType:O[l]?l:"point"}}return eo()(r)?{scale:r}:{scale:od(),realScaleType:"point"}},cb=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),l=e(t[n-1]);(ia||la)&&e.domain([t[0],t[n-1]])}},cv=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+l,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+l,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},cS=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=cE[n];return(function(){var e=ro([]),t=sb,n=sg,r=sv;function o(o){var a,i,l=Array.from(e.apply(this,arguments),sy),s=l.length,c=-1;for(let e of o)for(a=0,++c;a=0?0:o<0?o:r}return n[0]},cC=function(e,t){var n=e.props.stackId;if(W(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},cT=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[sx()(t.concat([e[0]]).filter($)),sS()(t.concat([e[1]]).filter($))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},cA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=function(e,t,n){if(eo()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if($(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cA.test(e[0])){var o=+cA.exec(e[0])[1];r[0]=t[0]-o}else eo()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if($(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cI.test(e[1])){var a=+cI.exec(e[1])[1];r[1]=t[1]+a}else eo()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cR=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=eZ()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;i0&&t.handleDrag(e.changedTouches[0])}),cq(cW(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),cq(cW(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),cq(cW(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),cq(cW(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),cq(cW(t),"handleSlideDragStart",function(e){var n=cX(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cW(t),"startX"),endX:t.handleTravellerDragStart.bind(cW(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,l=o.data.length-1,s=a.getIndexInRange(r,Math.min(t,n)),c=a.getIndexInRange(r,Math.max(t,n));return{startIndex:s-s%i,endIndex:c===l?l:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ct(n[e],o,e);return eo()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,s=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+l-s-o,i+l-s-r):p<0&&(p=Math.max(p,i-r,i-o));var f=this.getIndex({startX:r+p,endX:o+p});(f.startIndex!==c||f.endIndex!==u)&&d&&d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=cX(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,d=s.travellerWidth,p=s.onChange,f=s.gap,m=s.data,g={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,c+u-d-l):h<0&&(h=Math.max(h,c-l)),g[o]=l+h;var b=this.getIndex(g),v=b.startIndex,y=b.endIndex,E=function(){var e=m.length-1;return"startX"===o&&(a>i?v%f==0:y%f==0)||ai?y%f==0:v%f==0)||a>i&&y===e};this.setState((cq(t={},o,l+h),cq(t,"brushMoveStartX",e.pageX),t),function(){p&&E()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(-1!==c&&!(c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(cq({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return N.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,s=N.Children.only(i);return s?N.cloneElement(s,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,l=r.height,s=r.traveller,c=r.ariaLabel,u=r.data,d=r.startIndex,p=r.endIndex,f=Math.max(e,this.props.x),m=cH(cH({},eA(this.props,!1)),{},{x:f,y:o,width:i,height:l}),g=c||"Min value: ".concat(u[d].name,", Max value: ").concat(u[p].name);return N.createElement(eQ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(s,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,s=l.startX,c=l.endX,u={pointerEvents:"none",fill:i};return N.createElement(eQ,{className:"recharts-brush-texts"},N.createElement(o$,cZ({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},u),this.getTextOfTick(t)),N.createElement(o$,cZ({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,s=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,p=c.isTextActive,f=c.isSlideMoving,m=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!$(o)||!$(a)||!$(i)||!$(l)||i<=0||l<=0)return null;var h=R("recharts-brush",n),b=1===N.Children.count(r),v=cB("userSelect","none");return N.createElement(eQ,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(p||f||m||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),N.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return cH({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?cK({data:n,width:r,x:o,travellerWidth:a,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&cG(a.prototype,n),r&&cG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function cJ(e){return(cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c1(e){for(var t=1;ta&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},c5=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},c8=function(e,t){var n,r=c6({x:e.x,y:e.y},t),o=r.radius,a=r.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var s=c5(t),c=s.startAngle,u=s.endAngle,d=a;if(c<=u){for(;d>u;)d-=360;for(;d=c&&d<=u}else{for(;d>c;)d-=360;for(;d=u&&d<=c}return n?c1(c1({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null};function c9(e){return(c9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c7=["offset"];function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===a?(r=f+v*l,o=g):"insideEnd"===a?(r=m-v*l,o=!g):"end"===a&&(r=m+v*l,o=g),o=b<=0?o:!o;var y=c4(c,u,h,r),E=c4(c,u,h,r+(o?1:-1)*359),S="M".concat(y.x,",").concat(y.y,"\n A").concat(h,",").concat(h,",0,1,").concat(o?0:1,",\n ").concat(E.x,",").concat(E.y),w=en()(e.id)?q("recharts-radial-line-"):e.id;return N.createElement("text",ur({},n,{dominantBaseline:"central",className:R("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:w,d:S})),N.createElement("textPath",{xlinkHref:"#".concat(w)},t))},ui=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=c4(o,a,l+n,s),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=c4(o,a,(i+l)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},ul=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,l=t.width,s=t.height,c=s>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",f=l>=0?1:-1,m=f*r,g=f>0?"end":"start",h=f>0?"start":"end";if("top"===o)return un(un({},{x:a+l/2,y:i-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(i-n.y,0),width:l}:{});if("bottom"===o)return un(un({},{x:a+l/2,y:i+s+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(i+s),0),width:l}:{});if("left"===o){var b={x:a-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"};return un(un({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===o){var v={x:a+l+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"};return un(un({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:s}:{})}var y=n?{width:l,height:s}:{};return"insideLeft"===o?un({x:a+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"},y):"insideRight"===o?un({x:a+l-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"},y):"insideTop"===o?un({x:a+l/2,y:i+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===o?un({x:a+l/2,y:i+s-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===o?un({x:a+m,y:i+u,textAnchor:h,verticalAnchor:p},y):"insideTopRight"===o?un({x:a+l-m,y:i+u,textAnchor:g,verticalAnchor:p},y):"insideBottomLeft"===o?un({x:a+m,y:i+s-u,textAnchor:h,verticalAnchor:d},y):"insideBottomRight"===o?un({x:a+l-m,y:i+s-u,textAnchor:g,verticalAnchor:d},y):ei()(o)&&($(o.x)||G(o.x))&&($(o.y)||G(o.y))?un({x:a+Y(o.x,l),y:i+Y(o.y,s),textAnchor:"end",verticalAnchor:"end"},y):un({x:a+l/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"},y)};function us(e){var t,n=e.offset,r=un({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c7)),o=r.viewBox,a=r.position,i=r.value,l=r.children,s=r.content,c=r.className,u=r.textBreakAll;if(!o||en()(i)&&en()(l)&&!(0,N.isValidElement)(s)&&!eo()(s))return null;if((0,N.isValidElement)(s))return(0,N.cloneElement)(s,r);if(eo()(s)){if(t=(0,N.createElement)(s,r),(0,N.isValidElement)(t))return t}else t=uo(r);var d="cx"in o&&$(o.cx),p=eA(r,!0);if(d&&("insideStart"===a||"insideEnd"===a||"end"===a))return ua(r,t,p);var f=d?ui(r):ul(r);return N.createElement(o$,ur({className:R("recharts-label",void 0===c?"":c)},p,f,{breakAll:u}),t)}us.displayName="Label";var uc=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,m=e.width,g=e.height,h=e.clockWise,b=e.labelViewBox;if(b)return b;if($(m)&&$(g)){if($(u)&&$(d))return{x:u,y:d,width:m,height:g};if($(p)&&$(f))return{x:p,y:f,width:m,height:g}}return $(u)&&$(d)?{x:u,y:d,width:0,height:0}:$(t)&&$(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:s||0,outerRadius:c||l||i||0,clockWise:h}:e.viewBox?e.viewBox:{}};us.parseViewBox=uc,us.renderCallByParent=function(e,t){var n,r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=uc(e),l=ex(a,us).map(function(e,n){return(0,N.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return o?[(n=e.label,r=t||i,n?!0===n?N.createElement(us,{key:"label-implicit",viewBox:r}):W(n)?N.createElement(us,{key:"label-implicit",viewBox:r,value:n}):(0,N.isValidElement)(n)?n.type===us?(0,N.cloneElement)(n,{key:"label-implicit",viewBox:r}):N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):eo()(n)?N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):ei()(n)?N.createElement(us,ur({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return ue(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l};var uu=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},ud=n(50924),up=n.n(ud),uf=function(e){return null};uf.displayName="Cell";var um=n(36887),ug=n.n(um);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ub=["valueAccessor"],uv=["data","dataKey","clockWise","id","textBreakAll"];function uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uO=function(e){return Array.isArray(e.value)?ug()(e.value):e.value};function uk(e){var t=e.valueAccessor,n=void 0===t?uO:t,r=ux(e,ub),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,s=r.textBreakAll,c=ux(r,uv);return o&&o.length?N.createElement(eQ,{className:"recharts-label-list"},o.map(function(e,t){var r=en()(a)?n(e,t):ct(e&&e.payload,a),o=en()(l)?{}:{id:"".concat(l,"-").concat(t)};return N.createElement(us,uE({},eA(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:us.parseViewBox(en()(i)?e:uw(uw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}uk.displayName="LabelList",uk.renderCallByParent=function(e,t){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=ex(e.children,uk).map(function(e,n){return(0,N.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return r?[(n=e.label)?!0===n?N.createElement(uk,{key:"labelList-implicit",data:t}):N.isValidElement(n)||eo()(n)?N.createElement(uk,{key:"labelList-implicit",data:t,content:n}):ei()(n)?N.createElement(uk,uE({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return uy(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(e,t)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var uC=n(23393),uT=n.n(uC),uA=n(90849),uI=n.n(uA);function uN(e){return(uN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uR(){return(uR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:u,height:d,x:l,y:s},duration:m,animationEasing:f,isActive:h},function(e){var t=e.upperWidth,o=e.lowerWidth,i=e.height,l=e.x,s=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:f},N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,t,o,i),ref:r})))}):N.createElement("g",null,N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,c,u,d)})))};function uF(e){return(uF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uB(){return(uB=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(o>0){var p=c4(n,r,o,i),f=c4(n,r,o,s);d+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},uG=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=H(c-s),d=uz({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,f=d.lineTangency,m=d.theta,g=uz({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,v=g.theta,y=l?Math.abs(s-c):Math.abs(s-c)-m-v;if(y<0)return i?"M ".concat(f.x,",").concat(f.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):uH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var E="M ".concat(f.x,",").concat(f.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var S=uz({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=S.circleTangency,x=S.lineTangency,O=S.theta,k=uz({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=k.circleTangency,T=k.lineTangency,A=k.theta,I=l?Math.abs(s-c):Math.abs(s-c)-O-A;if(I<0&&0===a)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},u$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uW=function(e){var t,n=uZ(uZ({},u$),e),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,p=n.className;if(i0&&360>Math.abs(u-d)?uG({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):uH({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d}),N.createElement("path",uB({},eA(n,!0),{className:f,d:t,role:"img"}))},uV=["option","shapeType","propTransformer","activeClassName","isActive"];function uq(e){return(uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uV);if((0,N.isValidElement)(n))t=(0,N.cloneElement)(n,uK(uK({},l),(0,N.isValidElement)(n)?n.props:n));else if(eo()(n))t=n(l);else if(uT()(n)&&!uI()(n)){var s=(void 0===o?function(e,t){return uK(uK({},t),e)}:o)(n,l);t=N.createElement(uX,{shapeType:r,elementProps:s})}else t=N.createElement(uX,{shapeType:r,elementProps:l});return i?N.createElement(eQ,{className:void 0===a?"recharts-active-shape":a},t):t}function uJ(e,t){return null!=t&&"trapezoids"in e.props}function u0(e,t){return null!=t&&"sectors"in e.props}function u1(e,t){return null!=t&&"points"in e.props}function u2(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function u4(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function u3(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function u6(e){return(u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u5=["x","y"];function u8(){return(u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u5),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),s=parseInt("".concat(t.width||o.width),10);return u7(u7(u7(u7(u7({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:l,width:s,name:t.name,radius:t.radius})}function dt(e){return N.createElement(uQ,u8({shapeType:"rectangle",propTransformer:de,activeClassName:"recharts-active-bar"},e))}var dn=["value","background"];function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(){return(da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,dn);if(!i)return null;var s=dl(dl(dl(dl(dl({},l),{},{fill:"#eee"},i),a),em(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return N.createElement(dt,da({option:e.props.background,isActive:n===o},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ex(n.children,s0);if(!l)return null;var s="vertical"===i?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ct(e,t)}};return N.createElement(eQ,{clipPath:e?"url(#clipPath-".concat(t,")"):null},l.map(function(e){return N.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:s,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,s=e.width,c=e.height,u=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,m=R("recharts-bar",r),g=o&&o.allowDataOverflow,h=a&&a.allowDataOverflow,b=g||h,v=en()(p)?this.id:p;return N.createElement(eQ,{className:m},g||h?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(v)},N.createElement("rect",{x:g?i:i-s/2,y:h?l:l-c/2,width:g?s:2*s,height:h?c:2*c}))):null,N.createElement(eQ,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,v),(!u||f)&&uk.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&ds(a.prototype,n),r&&ds(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){for(var n=0;n0&&Math.abs(b)0&&Math.abs(g)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&dh(n.prototype,e),t&&dh(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();dy(dw,"EPS",1e-4);var dx=function(e){var t=Object.keys(e).reduce(function(t,n){return dv(dv({},t),{},dy({},n,dw.create(e[n])))},{});return dv(dv({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return up()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return e$()(e,function(e,n){return t[n].isInRange(e)})}})},dO=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=d;--p)l.point(b[p],v[p]);l.lineEnd(),l.areaEnd()}}h&&(b[u]=+e(f,u,c),v[u]=+t(f,u,c),l.point(r?+r(f,u,c):b[u],n?+n(f,u,c):v[u]))}if(m)return l=null,m+""||null}function u(){return pT().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?pk:ro(+e),t="function"==typeof t?t:void 0===t?ro(0):ro(+t),n="function"==typeof n?n:void 0===n?pC:ro(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ro(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ro(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:ro(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),c):a},c}function pI(e){return(pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pN(){return(pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var pP={curveBasisClosed:function(e){return new pu(e)},curveBasisOpen:function(e){return new pd(e)},curveBasis:function(e){return new pc(e)},curveBumpX:function(e){return new pp(e,!0)},curveBumpY:function(e){return new pp(e,!1)},curveLinearClosed:function(e){return new pf(e)},curveLinear:pg,curveMonotoneX:function(e){return new py(e)},curveMonotoneY:function(e){return new pE(e)},curveNatural:function(e){return new pw(e)},curveStep:function(e){return new pO(e,.5)},curveStepAfter:function(e){return new pO(e,1)},curveStepBefore:function(e){return new pO(e,0)}},pM=function(e){return e.x===+e.x&&e.y===+e.y},pL=function(e){return e.x},pD=function(e){return e.y},pj=function(e,t){if(eo()(e))return e;var n="curve".concat(nQ()(e));return("curveMonotone"===n||"curveBump"===n)&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||pg},pF=function(e){var t,n=e.type,r=e.points,o=void 0===r?[]:r,a=e.baseLine,i=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=pj(void 0===n?"linear":n,i),u=s?o.filter(function(e){return pM(e)}):o;if(Array.isArray(a)){var d=s?a.filter(function(e){return pM(e)}):a,p=u.map(function(e,t){return p_(p_({},e),{},{base:d[t]})});return(t="vertical"===i?pA().y(pD).x1(pL).x0(function(e){return e.base.x}):pA().x(pL).y1(pD).y0(function(e){return e.base.y})).defined(pM).curve(c),t(p)}return(t="vertical"===i&&$(a)?pA().y(pD).x1(pL).x0(a):$(a)?pA().x(pL).y1(pD).y0(a):pT().x(pL).y(pD)).defined(pM).curve(c),t(u)},pB=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?pF(e):r;return N.createElement("path",pN({},eA(e,!1),ef(e),{className:R("recharts-curve",t),d:a,ref:o}))};function pU(e){return(pU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pZ=["x","y","top","left","width","height","className"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pZ));return $(n)&&$(o)&&$(u)&&$(p)&&$(i)&&$(s)?N.createElement("path",pz({},eA(m,!0),{className:R("recharts-cross",f),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(s,",").concat(o,"h").concat(u)})):null};function p$(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[c4(t,n,r,o),c4(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function pW(e){return(pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p2(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&$(r)&&$(o)?e.slice(r,o+1):[]};function fc(e){return"number"===e?[0,"auto"]:void 0}var fu=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=fs(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;return(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?J(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(p5(o),[cP(l,c)]):o},[])},fd=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=cr(a,i,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=fu(e,t,c,u),p=fl(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},fp=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=cd(c,o);return n.reduce(function(t,n){var f=n.props,m=f.type,g=f.dataKey,h=f.allowDataOverflow,b=f.allowDuplicatedCategory,v=f.scale,y=f.ticks,E=f.includeHidden,S=n.props[a];if(t[S])return t;var w=fs(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===S}),dataStartIndex:l,dataEndIndex:s}),x=w.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&$(r)&&$(o))return!0}return!1})(n.props.domain,h,m)&&(C=cN(n.props.domain,null,h),p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category")));var O=fc(m);if(!C||0===C.length){var k,C,T,A,I,N=null!==(I=n.props.domain)&&void 0!==I?I:O;if(g){if(C=cn(w,g,m),"category"===m&&p){var R=X(C);b&&R?(T=C,C=eB()(0,x)):b||(C=c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(p5(e),[t])},[]))}else if("category"===m)C=b?C.filter(function(e){return""!==e&&!en()(e)}):c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||en()(t)?e:[].concat(p5(e),[t])},[]);else if("number"===m){var _=cc(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),g,o,c);_&&(C=_)}p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category"))}else C=p?eB()(0,x):i&&i[S]&&i[S].hasStack&&"number"===m?"expand"===d?[0,1]:cT(i[S].stackGroups,l,s):cu(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),m,c,!0);"number"===m?(C=d9(u,C,S,o,y),N&&(C=cN(N,C,h))):"category"===m&&N&&C.every(function(e){return N.indexOf(e)>=0})&&(C=N)}return fe(fe({},t),{},ft({},S,fe(fe({},n.props),{},{axisType:o,domain:C,categoricalDomain:A,duplicateDomain:T,originalDomain:null!==(k=n.props.domain)&&void 0!==k?k:O,isCategorical:p,layout:c})))},{})},ff=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=fs(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),p=d.length,f=cd(c,o),m=-1;return n.reduce(function(e,t){var g,h=t.props[a],b=fc("number");return e[h]?e:(m++,g=f?eB()(0,p):i&&i[h]&&i[h].hasStack?d9(u,g=cT(i[h].stackGroups,l,s),h,o):d9(u,g=cN(b,cu(d,n.filter(function(e){return e.props[a]===h&&!e.props.hide}),"number",c),r.defaultProps.allowDataOverflow),h,o),fe(fe({},e),{},ft({},h,fe(fe({axisType:o},r.defaultProps),{},{hide:!0,orientation:U()(fr,"".concat(o,".").concat(m%2),null),domain:g,originalDomain:b,isCategorical:f,layout:c}))))},{})},fm=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ex(c,o),p={};return d&&d.length?p=fp(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=ff(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s})),p},fg=function(e){var t=K(e),n=cf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eZ()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cR(t,n)}},fh=function(e){var t=e.children,n=e.defaultShowTooltip,r=eO(t,cQ),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},fb=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fv=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,d=n.margin||{},p=eO(u,cQ),f=eO(u,r1),m=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,e[r]+n.width))},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,U()(e,"".concat(r))+n.height))},{top:d.top||0,bottom:d.bottom||0}),h=fe(fe({},g),m),b=h.bottom;p&&(h.bottom+=p.props.height||cQ.defaultProps.height),f&&t&&(h=cl(h,r,n,t));var v=s-h.left-h.right,y=c-h.top-h.bottom;return fe(fe({brushBottom:b},h),{},{width:Math.max(v,0),height:Math.max(y,0)})};function fy(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t=2?H(c[1].coordinate-c[0].coordinate):1,S=(r="width"===b,o=u.x,a=u.y,i=u.width,l=u.height,1===E?{start:r?o:a,end:r?o+i:a+l}:{start:r?o+i:a+l,end:r?o:a});return"equidistantPreserveStart"===f?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l;u<=i.length;)if(a=function(){var t,a=null==r?void 0:r[c];if(void 0===a)return{v:fy(r,u)};var i=c,p=function(){return void 0===t&&(t=n(a,i)),t},f=a.coordinate,m=0===c||fE(e,f,p,d,s);m||(c=0,d=l,u+=1),m&&(d=f+e*(p()/2+o),c+=u)}())return a.v;return[]}(E,S,y,c,d):("preserveStart"===f||"preserveStartEnd"===f?function(e,t,n,r,o,a){var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end;if(a){var u=r[l-1],d=n(u,l-1),p=e*(u.coordinate+e*d/2-c);i[l-1]=u=fx(fx({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),fE(e,u.tickCoord,function(){return d},s,c)&&(c=u.tickCoord-e*(d/2+o),i[l-1]=fx(fx({},u),{},{isShow:!0}))}for(var f=a?l-1:l,m=function(t){var r,a=i[t],l=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*l()/2-s);i[t]=a=fx(fx({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=fx(fx({},a),{},{tickCoord:a.coordinate});fE(e,a.tickCoord,l,s,c)&&(s=a.tickCoord+e*(l()/2+o),i[t]=fx(fx({},a),{},{isShow:!0}))},g=0;g0?c.coordinate-d*e:c.coordinate})}else a[t]=c=fx(fx({},c),{},{tickCoord:c.coordinate});fE(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),a[t]=fx(fx({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(E,S,y,c,d)).filter(function(e){return e.isShow})}var fk=["viewBox"],fC=["viewBox"],fT=["ticks"];function fA(e){return(fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(){return(fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fP(e,t){for(var n=0;n0?this.props:c)),r<=0||o<=0||!u||!u.length)?null:N.createElement(eQ,{className:R("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),us.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):N.createElement(o$,fI({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&fP(a.prototype,n),r&&fP(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function fB(){return(fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(O=Math.min((e||0)-(k[t-1]||0),O))});var C=O/x,T="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var A=Y(e.barCategoryGap,C*T),I=C*T/2;s=I-A-(I-A)/T*A}}c="xAxis"===r?[n.left+(y.left||0)+(s||0),n.left+n.width-(y.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(s||0),n.top+n.height-(y.bottom||0)-(s||0)]:g.range,S&&(c=[c[1],c[0]]);var N=ch(g,o,d),R=N.scale,_=N.realScaleType;R.domain(b).range(c),cb(R);var P=cx(R,dv(dv({},g),{},{realScaleType:_}));"xAxis"===r?(m="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-m*g.height):"yAxis"===r&&(m="left"===h&&!E||"right"===h&&E,p=u[w]-m*g.width,f=n.top);var M=dv(dv(dv({},g),P),{},{realScaleType:_,x:p,y:f,scale:R,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return M.bandSize=cR(M,P),g.hide||"xAxis"!==r?g.hide||(u[w]+=(m?-1:1)*M.width):u[w]+=(m?-1:1)*M.height,dv(dv({},a),{},dy({},i,M))},{})}}).chartName,i=r.GraphicalChild,s=void 0===(l=r.defaultTooltipEventType)?"axis":l,u=void 0===(c=r.validateTooltipEventTypes)?["axis"]:c,d=r.axisComponents,p=r.legendContent,f=r.formatAxisMap,m=r.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,m=fb(c),g=m.numericAxisName,h=m.cateAxisName,b=!!n&&!!n.length&&n.some(function(e){var t=ey(e&&e.type);return t&&t.indexOf("Bar")>=0})&&ca({barSize:s,stackGroups:r}),v=[];return n.forEach(function(n,s){var m,y=fs(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:l}),E=n.props,S=E.dataKey,w=E.maxBarSize,x=n.props["".concat(g,"Id")],O=n.props["".concat(h,"Id")],k=d.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||eW(!1);var l=a[i];return fe(fe({},e),{},(ft(o={},r.axisType,l),ft(o,"".concat(r.axisType,"Ticks"),cf(l)),o))},{}),C=k[h],T=k["".concat(h,"Ticks")],A=r&&r[x]&&r[x].hasStack&&cC(n,r[x].stackGroups),I=ey(n.type).indexOf("Bar")>=0,N=cR(C,T),R=[];if(I){var _,P,M=en()(w)?f:w,L=null!==(_=null!==(P=cR(C,T,!0))&&void 0!==P?P:M)&&void 0!==_?_:0;R=ci({barGap:u,barCategoryGap:p,bandSize:L!==N?L:N,sizeList:b[O],maxBarSize:M}),L!==N&&(R=R.map(function(e){return fe(fe({},e),{},{position:fe(fe({},e.position),{},{offset:e.position.offset-L/2})})}))}var D=n&&n.type&&n.type.getComposedData;D&&v.push({props:fe(fe({},D(fe(fe({},k),{},{displayedData:y,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:o,stackedData:A,layout:c,dataStartIndex:i,dataEndIndex:l}))),{},(ft(m={key:n.key||"item-".concat(s)},g,k[g]),ft(m,h,k[h]),ft(m,"animationId",a),m)),childIndex:ew(e.children).indexOf(n),item:n})}),v},h=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,l=e.updateId;if(!ek({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,p=n.data,m=n.reverseStackOrder,h=fb(c),b=h.numericAxisName,v=h.cateAxisName,y=ex(s,i),E=cw(p,y,"".concat(b,"Id"),"".concat(v,"Id"),u,m),S=d.reduce(function(e,t){var a="".concat(t.axisType,"Map");return fe(fe({},e),{},ft({},a,fm(n,fe(fe({},t),{},{graphicalItems:y,stackGroups:t.axisType===b&&E,dataStartIndex:r,dataEndIndex:o}))))},{}),w=fv(fe(fe({},S),{},{props:n,graphicalItems:y}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),a)});var x=fg(S["".concat(v,"Map")]),O=g(n,fe(fe({},S),{},{dataStartIndex:r,dataEndIndex:o,updateId:l,graphicalItems:y,stackGroups:E,offset:w}));return fe(fe({formattedGraphicalItems:O,graphicalItems:y,offset:w,stackGroups:E},x),S)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p4(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p6(i);if(t){var r=p6(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===pQ(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p3(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),ft(p3(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(p3(r),"accessibilityManager",new pi),ft(p3(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(fe({legendBBox:e},h({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},fe(fe({},r.state),{},{legendBBox:e}))))}}),ft(p3(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),ft(p3(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return fe({dataStartIndex:t,dataEndIndex:n},h({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),ft(p3(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;eo()(o)&&o(n,e)}}),ft(p3(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?fe(fe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;eo()(o)&&o(n,e)}),ft(p3(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ft(p3(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),ft(p3(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),ft(p3(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;eo()(n)&&n(t,e)}),ft(p3(r),"handleOuterEvent",function(e){var t,n=e_(e),o=U()(r.props,"".concat(n));n&&eo()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),ft(p3(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;eo()(o)&&o(n,e)}}),ft(p3(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ft(p3(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),ft(p3(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),ft(p3(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&pe.emit(pt,r.props.syncId,e,r.eventEmitterSymbol)}),ft(p3(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(fe({dataStartIndex:i,dataEndIndex:l},h({props:r.props,dataStartIndex:i,dataEndIndex:l,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof o)u=o(f,e);else if("value"===o){u=-1;for(var m=0;m=0){if(s.dataKey&&!s.allowDuplicatedCategory){var x="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=J(f,x,u),C=m&&g&&J(g,x,u)}else k=null==f?void 0:f[c],C=m&&g&&g[c];if(E||y){var O=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,N.cloneElement)(e,fe(fe(fe({},o.props),S),{},{activeIndex:O})),null,null]}if(!en()(k))return[w].concat(p5(r.renderActivePoints({item:o,activePoint:k,basePoint:C,childIndex:c,isRange:m})))}else{var k,C,T,A=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:w}).graphicalItem,I=A.item,R=void 0===I?e:I,_=A.childIndex,P=fe(fe(fe({},o.props),S),{},{activeIndex:_});return[(0,N.cloneElement)(R,P),null,null]}}return m?[w,null,null]:[w,null]}),ft(p3(r),"renderCustomized",function(e,t,n){return(0,N.cloneElement)(e,fe(fe({key:"recharts-customized-".concat(n)},r.props),r.state))}),ft(p3(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fi},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fi},YAxis:{handler:fi},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:q("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=eO(t,nK);if(a){var i=a.props.defaultIndex;if("number"==typeof i&&!(i<0)&&!(i>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=fu(this.state,n,i,l),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=fe(fe({},d),p.props.points[i].tooltipPosition),s=p.props.points[i].tooltipPayload);var f={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(f),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){eI([eO(e.children,nK)],[eO(this.props.children,nK)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eO(this.props.children,nK);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var l=this.state,s=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=K(s).scale,d=K(c).scale,p=u&&u.invert?u.invert(o.chartX):null,f=d&&d.invert?d.invert(o.chartY):null;return fe(fe({},o),{},{xValue:p,yValue:f})}var m=fd(this.state,this.props.data,this.props.layout,i);return m?fe(fe({},o),m):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;return s&&c?c8({x:o,y:a},K(s)):null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=eO(e,nK),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),fe(fe({},ef(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pe.on(pt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pe.removeListener(pt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height;return N.createElement("rect",{x:r,y:o,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fQ(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(eo()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,s=eA(fK(t,fG),!1),c=(s.offset,fK(s,f$));n=N.createElement("line",fY({},c,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function fJ(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function f0(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function f1(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,l){var s=c[l+1]?c[l+1]-e:o+i-e;if(s<=0)return null;var u=l%t.length;return N.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:s,width:a,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function f2(e){var t=e.vertical,n=e.verticalFill,r=e.fillOpacity,o=e.x,a=e.y,i=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:o+i-e;if(s<=0)return null;var u=t%n.length;return N.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:n[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var f4=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},f3=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},f6={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f5(e){var t,n,r,o,a,i,l=d$(),s=dW(),c=(0,N.useContext)(dF),u=fq(fq({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:f6.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:f6.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:f6.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:f6.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:f6.vertical,verticalFill:null!==(i=e.verticalFill)&&void 0!==i?i:f6.verticalFill}),d=u.x,p=u.y,f=u.width,m=u.height,g=u.xAxis,h=u.yAxis,b=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues;if(!$(f)||f<=0||!$(m)||m<=0||!$(d)||d!==+d||!$(p)||p!==+p)return null;var E=u.verticalCoordinatesGenerator||f4,S=u.horizontalCoordinatesGenerator||f3,w=u.horizontalPoints,x=u.verticalPoints;if((!w||!w.length)&&eo()(S)){var O=v&&v.length,k=S({yAxis:h?fq(fq({},h),{},{ticks:O?v:h.ticks}):void 0,width:l,height:s,offset:c},!!O||b);ee(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fW(k),"]")),Array.isArray(k)&&(w=k)}if((!x||!x.length)&&eo()(E)){var C=y&&y.length,T=E({xAxis:g?fq(fq({},g),{},{ticks:C?y:g.ticks}):void 0,width:l,height:s,offset:c},!!C||b);ee(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fW(T),"]")),Array.isArray(T)&&(x=T)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(fX,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height}),N.createElement(fJ,fY({},u,{offset:c,horizontalPoints:w})),N.createElement(f0,fY({},u,{offset:c,verticalPoints:x})),N.createElement(f1,fY({},u,{horizontalPoints:w})),N.createElement(f2,fY({},u,{verticalPoints:x})))}f5.displayName="CartesianGrid";let f8=(e,t)=>{let[n,r]=(0,N.useState)(t);(0,N.useEffect)(()=>{let t=()=>{r(window.innerWidth),e()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n])},f9=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M8 12L14 6V18L8 12Z"}))},f7=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M16 12L10 18V6L16 12Z"}))},me=(0,I.fn)("Legend"),mt=e=>{let{name:t,color:n,onClick:r,activeLegend:o}=e,a=!!r;return N.createElement("li",{className:(0,A.q)(me("legendItem"),"group inline-flex items-center px-2 py-0.5 rounded-tremor-small transition whitespace-nowrap",a?"cursor-pointer":"cursor-default","text-tremor-content",a?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",a?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:e=>{e.stopPropagation(),null==r||r(t,n)}},N.createElement("svg",{className:(0,A.q)("flex-none h-2 w-2 mr-1.5",(0,I.bM)(n,T.K.text).textColor,o&&o!==t?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},N.createElement("circle",{cx:4,cy:4,r:4})),N.createElement("p",{className:(0,A.q)("whitespace-nowrap truncate text-tremor-default","text-tremor-content",a?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",o&&o!==t?"opacity-40":"opacity-100",a?"dark:group-hover:text-dark-tremor-content-emphasis":"")},t))},mn=e=>{let{icon:t,onClick:n,disabled:r}=e,[o,a]=N.useState(!1),i=N.useRef(null);return N.useEffect(()=>(o?i.current=setInterval(()=>{null==n||n()},300):clearInterval(i.current),()=>clearInterval(i.current)),[o,n]),(0,N.useEffect)(()=>{r&&(clearInterval(i.current),a(!1))},[r]),N.createElement("button",{type:"button",className:(0,A.q)(me("legendSliderButton"),"w-5 group inline-flex items-center truncate rounded-tremor-small transition",r?"cursor-not-allowed":"cursor-pointer",r?"text-tremor-content-subtle":"text-tremor-content hover:text-tremor-content-emphasis hover:bg-tremor-background-subtle",r?"dark:text-dark-tremor-subtle":"dark:text-dark-tremor dark:hover:text-tremor-content-emphasis dark:hover:bg-dark-tremor-background-subtle"),disabled:r,onClick:e=>{e.stopPropagation(),null==n||n()},onMouseDown:e=>{e.stopPropagation(),a(!0)},onMouseUp:e=>{e.stopPropagation(),a(!1)}},N.createElement(t,{className:"w-full"}))},mr=N.forwardRef((e,t)=>{var n,r;let{categories:o,colors:a=T.s,className:i,onClickLegendItem:l,activeLegend:s,enableLegendSlider:c=!1}=e,u=(0,k._T)(e,["categories","colors","className","onClickLegendItem","activeLegend","enableLegendSlider"]),d=N.useRef(null),[p,f]=N.useState(null),[m,g]=N.useState(null),h=N.useRef(null),b=(0,N.useCallback)(()=>{let e=null==d?void 0:d.current;e&&f({left:e.scrollLeft>0,right:e.scrollWidth-e.clientWidth>e.scrollLeft})},[f]),v=(0,N.useCallback)(e=>{var t;let n=null==d?void 0:d.current,r=null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0;n&&c&&(n.scrollTo({left:"left"===e?n.scrollLeft-r:n.scrollLeft+r,behavior:"smooth"}),setTimeout(()=>{b()},400))},[c,b]);N.useEffect(()=>{let e=e=>{"ArrowLeft"===e?v("left"):"ArrowRight"===e&&v("right")};return m?(e(m),h.current=setInterval(()=>{e(m)},300)):clearInterval(h.current),()=>clearInterval(h.current)},[m,v]);let y=e=>{e.stopPropagation(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),g(e.key))},E=e=>{e.stopPropagation(),g(null)};return N.useEffect(()=>{let e=null==d?void 0:d.current;return c&&(b(),null==e||e.addEventListener("keydown",y),null==e||e.addEventListener("keyup",E)),()=>{null==e||e.removeEventListener("keydown",y),null==e||e.removeEventListener("keyup",E)}},[b,c]),N.createElement("ol",Object.assign({ref:t,className:(0,A.q)(me("root"),"relative overflow-hidden",i)},u),N.createElement("div",{ref:d,tabIndex:0,className:(0,A.q)("h-full flex",c?(null==p?void 0:p.right)||(null==p?void 0:p.left)?"pl-4 pr-12 items-center overflow-auto snap-mandatory [&::-webkit-scrollbar]:hidden [scrollbar-width:none]":"":"flex-wrap")},o.map((e,t)=>N.createElement(mt,{key:"item-".concat(t),name:e,color:a[t],onClick:l,activeLegend:s}))),c&&((null==p?void 0:p.right)||(null==p?void 0:p.left))?N.createElement(N.Fragment,null,N.createElement("div",{className:(0,A.q)("from-tremor-background","dark:from-dark-tremor-background","absolute top-0 bottom-0 left-0 w-4 bg-gradient-to-r to-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("to-tremor-background","dark:to-dark-tremor-background","absolute top-0 bottom-0 right-10 w-4 bg-gradient-to-r from-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("bg-tremor-background","dark:bg-dark-tremor-background","absolute flex top-0 pr-1 bottom-0 right-0 items-center justify-center h-full")},N.createElement(mn,{icon:f9,onClick:()=>{g(null),v("left")},disabled:!(null==p?void 0:p.left)}),N.createElement(mn,{icon:f7,onClick:()=>{g(null),v("right")},disabled:!(null==p?void 0:p.right)}))):null)});mr.displayName="Legend";let mo=(e,t,n,r,o,a)=>{let{payload:i}=e,l=(0,N.useRef)(null);f8(()=>{var e,t;n((t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60)});let s=i.filter(e=>"none"!==e.type);return N.createElement("div",{ref:l,className:"flex items-center justify-end"},N.createElement(mr,{categories:s.map(e=>e.value),colors:s.map(e=>t.get(e.value)),onClickLegendItem:o,activeLegend:r,enableLegendSlider:a}))},ma=e=>{let{children:t}=e;return N.createElement("div",{className:(0,A.q)("rounded-tremor-default text-tremor-default border","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border")},t)},mi=e=>{let{value:t,name:n,color:r}=e;return N.createElement("div",{className:"flex items-center justify-between space-x-8"},N.createElement("div",{className:"flex items-center space-x-2"},N.createElement("span",{className:(0,A.q)("shrink-0 rounded-tremor-full border-2 h-3 w-3","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",(0,I.bM)(r,T.K.background).bgColor)}),N.createElement("p",{className:(0,A.q)("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},n)),N.createElement("p",{className:(0,A.q)("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},t))},ml=e=>{let{active:t,payload:n,label:r,categoryColors:o,valueFormatter:a}=e;if(t&&n){let e=n.filter(e=>"none"!==e.type);return N.createElement(ma,null,N.createElement("div",{className:(0,A.q)("border-tremor-border border-b px-4 py-2","dark:border-dark-tremor-border")},N.createElement("p",{className:(0,A.q)("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),N.createElement("div",{className:(0,A.q)("px-4 py-2 space-y-1")},e.map((e,t)=>{var n;let{value:r,name:i}=e;return N.createElement(mi,{key:"id-".concat(t),value:a(r),name:i,color:null!==(n=o.get(i))&&void 0!==n?n:C.fr.Blue})})))}return null},ms=(0,I.fn)("Flex"),mc={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},mu={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},mp=N.forwardRef((e,t)=>{let{flexDirection:n="row",justifyContent:r="between",alignItems:o="center",children:a,className:i}=e,l=(0,k._T)(e,["flexDirection","justifyContent","alignItems","children","className"]);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)(ms("root"),"flex w-full",md[n],mc[r],mu[o],i)},l),a)});mp.displayName="Flex";var mf=n(71801);let mm=e=>{let{noDataText:t="No data"}=e;return N.createElement(mp,{alignItems:"center",justifyContent:"center",className:(0,A.q)("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},N.createElement(mf.Z,{className:(0,A.q)("text-tremor-content","dark:text-dark-tremor-content")},t))},mg=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{n.set(e,t[r])}),n},mh=(e,t,n)=>[e?"auto":null!=t?t:0,null!=n?n:"auto"];function mb(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!mb(e[o],t[o]))return!1;return!0}let mv=N.forwardRef((e,t)=>{let{data:n=[],categories:r=[],index:o,colors:a=T.s,valueFormatter:i=I.Cj,layout:l="horizontal",stack:s=!1,relative:c=!1,startEndOnly:u=!1,animationDuration:d=900,showAnimation:p=!1,showXAxis:f=!0,showYAxis:m=!0,yAxisWidth:g=56,intervalType:h="equidistantPreserveStart",showTooltip:b=!0,showLegend:v=!0,showGridLines:y=!0,autoMinValue:E=!1,minValue:S,maxValue:w,allowDecimals:x=!0,noDataText:O,onValueChange:R,enableLegendSlider:_=!1,customTooltip:P,rotateLabelX:M,tickGap:L=5,className:D}=e,j=(0,k._T)(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","enableLegendSlider","customTooltip","rotateLabelX","tickGap","className"]),F=f||m?20:0,[B,U]=(0,N.useState)(60),Z=mg(r,a),[z,H]=N.useState(void 0),[G,$]=(0,N.useState)(void 0),W=!!R;function V(e,t,n){var r,o,a,i;n.stopPropagation(),R&&(mb(z,Object.assign(Object.assign({},e.payload),{value:e.value}))?($(void 0),H(void 0),null==R||R(null)):($(null===(o=null===(r=e.tooltipPayload)||void 0===r?void 0:r[0])||void 0===o?void 0:o.dataKey),H(Object.assign(Object.assign({},e.payload),{value:e.value})),null==R||R(Object.assign({eventType:"bar",categoryClicked:null===(i=null===(a=e.tooltipPayload)||void 0===a?void 0:a[0])||void 0===i?void 0:i.dataKey},e.payload))))}let q=mh(E,S,w);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)("w-full h-80",D)},j),N.createElement(ej,{className:"h-full w-full"},(null==n?void 0:n.length)?N.createElement(fH,{data:n,stackOffset:s?"sign":c?"expand":"none",layout:"vertical"===l?"vertical":"horizontal",onClick:W&&(G||z)?()=>{H(void 0),$(void 0),null==R||R(null)}:void 0},y?N.createElement(f5,{className:(0,A.q)("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==l,vertical:"vertical"===l}):null,"vertical"!==l?N.createElement(fU,{padding:{left:F,right:F},hide:!f,dataKey:o,interval:u?"preserveStartEnd":h,tick:{transform:"translate(0, 6)"},ticks:u?[n[0][o],n[n.length-1][o]]:void 0,fill:"",stroke:"",className:(0,A.q)("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight,minTickGap:L}):N.createElement(fU,{hide:!f,type:"number",tick:{transform:"translate(-3, 0)"},domain:q,fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:i,minTickGap:L,allowDecimals:x,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight}),"vertical"!==l?N.createElement(fz,{width:g,hide:!m,axisLine:!1,tickLine:!1,type:"number",domain:q,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:c?e=>"".concat((100*e).toString()," %"):i,allowDecimals:x}):N.createElement(fz,{width:g,hide:!m,dataKey:o,axisLine:!1,tickLine:!1,ticks:u?[n[0][o],n[n.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),N.createElement(nK,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?e=>{let{active:t,payload:n,label:r}=e;return P?N.createElement(P,{payload:null==n?void 0:n.map(e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=Z.get(e.dataKey))&&void 0!==t?t:C.fr.Gray})}),active:t,label:r}):N.createElement(ml,{active:t,payload:n,label:r,valueFormatter:i,categoryColors:Z})}:N.createElement(N.Fragment,null),position:{y:0}}),v?N.createElement(r1,{verticalAlign:"top",height:B,content:e=>{let{payload:t}=e;return mo({payload:t},Z,U,G,W?e=>{W&&(e!==G||z?($(e),null==R||R({eventType:"category",categoryClicked:e})):($(void 0),null==R||R(null)),H(void 0))}:void 0,_)}}):null,r.map(e=>{var t;return N.createElement(dm,{className:(0,A.q)((0,I.bM)(null!==(t=Z.get(e))&&void 0!==t?t:C.fr.Gray,T.K.background).fillColor,R?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:s||c?"a":void 0,dataKey:e,fill:"",isAnimationActive:p,animationDuration:d,shape:e=>((e,t,n,r)=>{let{fillOpacity:o,name:a,payload:i,value:l}=e,{x:s,width:c,y:u,height:d}=e;return"horizontal"===r&&d<0?(u+=d,d=Math.abs(d)):"vertical"===r&&c<0&&(s+=c,c=Math.abs(c)),N.createElement("rect",{x:s,y:u,width:c,height:d,opacity:t||n&&n!==a?mb(t,Object.assign(Object.assign({},i),{value:l}))?o:.3:o})})(e,z,G,l),onClick:V})})):N.createElement(mm,{noDataText:O})))});mv.displayName="BarChart"},5:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(2898),s=n(99250),c=n(65492);let u={xs:{paddingX:"px-2",paddingY:"py-0.5",fontSize:"text-xs"},sm:{paddingX:"px-2.5",paddingY:"py-0.5",fontSize:"text-sm"},md:{paddingX:"px-3",paddingY:"py-0.5",fontSize:"text-md"},lg:{paddingX:"px-3.5",paddingY:"py-0.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-1",fontSize:"text-xl"}},d={xs:{height:"h-4",width:"w-4"},sm:{height:"h-4",width:"w-4"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"}},p=(0,c.fn)("Badge"),f=o.forwardRef((e,t)=>{let{color:n,icon:f,size:m=i.u8.SM,tooltip:g,className:h,children:b}=e,v=(0,r._T)(e,["color","icon","size","tooltip","className","children"]),y=f||null,{tooltipProps:E,getReferenceProps:S}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,c.lq)([t,E.refs.setReference]),className:(0,s.q)(p("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",n?(0,s.q)((0,c.bM)(n,l.K.background).bgColor,(0,c.bM)(n,l.K.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):(0,s.q)("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),u[m].paddingX,u[m].paddingY,u[m].fontSize,h)},S,v),o.createElement(a.Z,Object.assign({text:g},E)),y?o.createElement(y,{className:(0,s.q)(p("icon"),"shrink-0 -ml-1 mr-1.5",d[m].height,d[m].width)}):null,o.createElement("p",{className:(0,s.q)(p("text"),"text-sm whitespace-nowrap")},b))});f.displayName="Badge"},61244:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(99250),s=n(65492),c=n(2898);let u={xs:{paddingX:"px-1.5",paddingY:"py-1.5"},sm:{paddingX:"px-1.5",paddingY:"py-1.5"},md:{paddingX:"px-2",paddingY:"py-2"},lg:{paddingX:"px-2",paddingY:"py-2"},xl:{paddingX:"px-2.5",paddingY:"py-2.5"}},d={xs:{height:"h-3",width:"w-3"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-7",width:"w-7"},xl:{height:"h-9",width:"w-9"}},p={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:"border",ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:"border-2",ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:"border",ring:"ring-2",shadow:""}},f=(e,t)=>{switch(e){case"simple":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:t?(0,s.bM)(t,c.K.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:t?(0,l.q)((0,s.bM)(t,c.K.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}},m=(0,s.fn)("Icon"),g=o.forwardRef((e,t)=>{let{icon:n,variant:c="simple",tooltip:g,size:h=i.u8.SM,color:b,className:v}=e,y=(0,r._T)(e,["icon","variant","tooltip","size","color","className"]),E=f(c,b),{tooltipProps:S,getReferenceProps:w}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,s.lq)([t,S.refs.setReference]),className:(0,l.q)(m("root"),"inline-flex flex-shrink-0 items-center",E.bgColor,E.textColor,E.borderColor,E.ringColor,p[c].rounded,p[c].border,p[c].shadow,p[c].ring,u[h].paddingX,u[h].paddingY,v)},w,y),o.createElement(a.Z,Object.assign({text:g},S)),o.createElement(n,{className:(0,l.q)(m("icon"),"shrink-0",d[h].height,d[h].width)}))});g.displayName="Icon"},2179:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(69703),o=n(58437),a=n(64090);let i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],l=e=>({_s:e,status:i[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),s=e=>e?6:5,c=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return s(t)}},u=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],d=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),p=(e,t,n,r,o)=>{clearTimeout(r.current);let a=l(e);t(a),n.current=a,o&&o({current:a})},f=function(){let{enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:f,unmountOnExit:m,onStateChange:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,b]=(0,a.useState)(()=>l(i?2:s(f))),v=(0,a.useRef)(h),y=(0,a.useRef)(),[E,S]=u(o),w=(0,a.useCallback)(()=>{let e=c(v.current._s,m);e&&p(e,b,v,y,g)},[g,m]),x=(0,a.useCallback)(o=>{let a=e=>{switch(p(e,b,v,y,g),e){case 1:E>=0&&(y.current=setTimeout(w,E));break;case 4:S>=0&&(y.current=setTimeout(w,S));break;case 0:case 3:y.current=d(a,e)}},i=v.current.isEnter;"boolean"!=typeof o&&(o=!i),o?i||a(e?n?0:1:2):i&&a(t?r?3:4:s(m))},[w,g,e,t,n,r,E,S,m]);return(0,a.useEffect)(()=>()=>clearTimeout(y.current),[]),[h,x,w]};var m=n(54942),g=n(99250),h=n(65492);let b=e=>{var t=(0,r._T)(e,[]);return a.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};var v=n(2898);let y={xs:{height:"h-4",width:"w-4"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-6",width:"w-6"},xl:{height:"h-6",width:"w-6"}},E=e=>"light"!==e?{xs:{paddingX:"px-2.5",paddingY:"py-1.5",fontSize:"text-xs"},sm:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-sm"},md:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-md"},lg:{paddingX:"px-4",paddingY:"py-2.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-3",fontSize:"text-xl"}}:{xs:{paddingX:"",paddingY:"",fontSize:"text-xs"},sm:{paddingX:"",paddingY:"",fontSize:"text-sm"},md:{paddingX:"",paddingY:"",fontSize:"text-md"},lg:{paddingX:"",paddingY:"",fontSize:"text-lg"},xl:{paddingX:"",paddingY:"",fontSize:"text-xl"}},S=(e,t)=>{switch(e){case"primary":return{textColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,h.bM)(t,v.K.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:t?(0,h.bM)(t,v.K.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:t?(0,h.bM)(t,v.K.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,hoverBgColor:t?(0,g.q)((0,h.bM)(t,v.K.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,borderColor:"",hoverBorderColor:""}}},w=(0,h.fn)("Button"),x=e=>{let{loading:t,iconSize:n,iconPosition:r,Icon:o,needMargin:i,transitionStatus:l}=e,s=i?r===m.zS.Left?(0,g.q)("-ml-1","mr-1.5"):(0,g.q)("-mr-1","ml-1.5"):"",c=(0,g.q)("w-0 h-0"),u={default:c,entering:c,entered:n,exiting:n,exited:c};return t?a.createElement(b,{className:(0,g.q)(w("icon"),"animate-spin shrink-0",s,u.default,u[l]),style:{transition:"width 150ms"}}):a.createElement(o,{className:(0,g.q)(w("icon"),"shrink-0",n,s)})},O=a.forwardRef((e,t)=>{let{icon:n,iconPosition:i=m.zS.Left,size:l=m.u8.SM,color:s,variant:c="primary",disabled:u,loading:d=!1,loadingText:p,children:b,tooltip:v,className:O}=e,k=(0,r._T)(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),C=d||u,T=void 0!==n||d,A=d&&p,I=!(!b&&!A),N=(0,g.q)(y[l].height,y[l].width),R="light"!==c?(0,g.q)("rounded-tremor-default border","shadow-tremor-input","dark:shadow-dark-tremor-input"):"",_=S(c,s),P=E(c)[l],{tooltipProps:M,getReferenceProps:L}=(0,o.l)(300),[D,j]=f({timeout:50});return(0,a.useEffect)(()=>{j(d)},[d]),a.createElement("button",Object.assign({ref:(0,h.lq)([t,M.refs.setReference]),className:(0,g.q)(w("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",R,P.paddingX,P.paddingY,P.fontSize,_.textColor,_.bgColor,_.borderColor,_.hoverBorderColor,C?"opacity-50 cursor-not-allowed":(0,g.q)(S(c,s).hoverTextColor,S(c,s).hoverBgColor,S(c,s).hoverBorderColor),O),disabled:C},L,k),a.createElement(o.Z,Object.assign({text:v},M)),T&&i!==m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null,A||b?a.createElement("span",{className:(0,g.q)(w("text"),"text-tremor-default whitespace-nowrap")},A?p:b):null,T&&i===m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null)});O.displayName="Button"},47047:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(69703),o=n(64090);n(50027),n(18174),n(21871);var a=n(41213),i=n(46457),l=n(54518);let s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))};var c=n(8903),u=n(63416),d=n(70129);let p=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};var f=n(99250),m=n(65492),g=n(91753);let h=(0,m.fn)("MultiSelect"),b=o.forwardRef((e,t)=>{let{defaultValue:n,value:m,onValueChange:b,placeholder:v="Select...",placeholderSearch:y="Search",disabled:E=!1,icon:S,children:w,className:x}=e,O=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),[k,C]=(0,i.Z)(n,m),{reactElementChildren:T,optionsAvailable:A}=(0,o.useMemo)(()=>{let e=o.Children.toArray(w).filter(o.isValidElement);return{reactElementChildren:e,optionsAvailable:(0,g.n0)("",e)}},[w]),[I,N]=(0,o.useState)(""),R=(null!=k?k:[]).length>0,_=(0,o.useMemo)(()=>I?(0,g.n0)(I,T):A,[I,T,A]),P=()=>{N("")};return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:k,value:k,onChange:e=>{null==b||b(e),C(e)},disabled:E,className:(0,f.q)("w-full min-w-[10rem] relative text-tremor-default",x)},O,{multiple:!0}),e=>{let{value:t}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,f.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",S?"pl-11 -ml-0.5":"pl-3",(0,g.um)(t.length>0,E))},S&&o.createElement("span",{className:(0,f.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(S,{className:(0,f.q)(h("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("div",{className:"h-6 flex items-center"},t.length>0?o.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},A.filter(e=>t.includes(e.props.value)).map((e,n)=>{var r;return o.createElement("div",{key:n,className:(0,f.q)("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},o.createElement("div",{className:"text-xs truncate "},null!==(r=e.props.children)&&void 0!==r?r:e.props.value),o.createElement("div",{onClick:n=>{n.preventDefault();let r=t.filter(t=>t!==e.props.value);null==b||b(r),C(r)}},o.createElement(p,{className:(0,f.q)(h("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))})):o.createElement("span",null,v)),o.createElement("span",{className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-2.5")},o.createElement(l.Z,{className:(0,f.q)(h("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),R&&!E?o.createElement("button",{type:"button",className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),C([]),null==b||b([])}},o.createElement(c.Z,{className:(0,f.q)(h("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,f.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},o.createElement("div",{className:(0,f.q)("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},o.createElement("span",null,o.createElement(s,{className:(0,f.q)("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:y,className:(0,f.q)("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation()},onChange:e=>N(e.target.value),value:I})),o.createElement(a.Z.Provider,Object.assign({},{onBlur:{handleResetSearch:P}},{value:{selectedValue:t}}),_))))})});b.displayName="MultiSelect"},76628:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027),n(18174),n(21871);var o=n(41213),a=n(64090),i=n(99250),l=n(65492),s=n(63416);let c=(0,l.fn)("MultiSelectItem"),u=a.forwardRef((e,t)=>{let{value:n,className:u,children:d}=e,p=(0,r._T)(e,["value","className","children"]),{selectedValue:f}=(0,a.useContext)(o.Z),m=(0,l.NZ)(n,f);return a.createElement(s.R.Option,Object.assign({className:(0,i.q)(c("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",u),ref:t,key:n,value:n},p),a.createElement("input",{type:"checkbox",className:(0,i.q)(c("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:m,readOnly:!0}),a.createElement("span",{className:"whitespace-nowrap truncate"},null!=d?d:n))});u.displayName="MultiSelectItem"},95093:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(69703),o=n(64090),a=n(54518),i=n(8903),l=n(99250),s=n(65492),c=n(91753),u=n(63416),d=n(70129),p=n(46457);let f=(0,s.fn)("Select"),m=o.forwardRef((e,t)=>{let{defaultValue:n,value:s,onValueChange:m,placeholder:g="Select...",disabled:h=!1,icon:b,enableClear:v=!0,children:y,className:E}=e,S=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[w,x]=(0,p.Z)(n,s),O=(0,o.useMemo)(()=>{let e=o.Children.toArray(y).filter(o.isValidElement);return(0,c.sl)(e)},[y]);return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:w,value:w,onChange:e=>{null==m||m(e),x(e)},disabled:h,className:(0,l.q)("w-full min-w-[10rem] relative text-tremor-default",E)},S),e=>{var t;let{value:n}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,l.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",b?"pl-10":"pl-3",(0,c.um)((0,c.Uh)(n),h))},b&&o.createElement("span",{className:(0,l.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(b,{className:(0,l.q)(f("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("span",{className:"w-[90%] block truncate"},n&&null!==(t=O.get(n))&&void 0!==t?t:g),o.createElement("span",{className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-3")},o.createElement(a.Z,{className:(0,l.q)(f("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),v&&w?o.createElement("button",{type:"button",className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),x(""),null==m||m("")}},o.createElement(i.Z,{className:(0,l.q)(f("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,l.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},y)))})});m.displayName="Select"},27166:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(63416),i=n(99250);let l=(0,n(65492).fn)("SelectItem"),s=o.forwardRef((e,t)=>{let{value:n,icon:s,className:c,children:u}=e,d=(0,r._T)(e,["value","icon","className","children"]);return o.createElement(a.R.Option,Object.assign({className:(0,i.q)(l("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",c),ref:t,key:n,value:n},d),s&&o.createElement(s,{className:(0,i.q)(l("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),o.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:n))});s.displayName="SelectItem"},92836:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(69703),o=n(80991),a=n(2898),i=n(99250),l=n(65492),s=n(64090),c=n(41608),u=n(50027);n(18174),n(21871),n(41213);let d=(0,l.fn)("Tab"),p=s.forwardRef((e,t)=>{let{icon:n,className:p,children:f}=e,m=(0,r._T)(e,["icon","className","children"]),g=(0,s.useContext)(c.O),h=(0,s.useContext)(u.Z);return s.createElement(o.O,Object.assign({ref:t,className:(0,i.q)(d("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",h?(0,l.bM)(h,a.K.text).selectTextColor:"solid"===g?"ui-selected:text-tremor-content-emphasis dark:ui-selected:text-dark-tremor-content-emphasis":"ui-selected:text-tremor-brand dark:ui-selected:text-dark-tremor-brand",function(e,t){switch(e){case"line":return(0,i.q)("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","hover:border-tremor-content hover:text-tremor-content-emphasis text-tremor-content","dark:hover:border-dark-tremor-content-emphasis dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",t?(0,l.bM)(t,a.K.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return(0,i.q)("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","dark:ui-selected:border-dark-tremor-border dark:ui-selected:bg-dark-tremor-background dark:ui-selected:shadow-dark-tremor-input dark:hover:text-dark-tremor-content-emphasis dark:ui-selected:text-dark-tremor-brand",t?(0,l.bM)(t,a.K.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}(g,h),p)},m),n?s.createElement(n,{className:(0,i.q)(d("icon"),"flex-none h-5 w-5",f?"mr-2":"")}):null,f?s.createElement("span",null,f):null)});p.displayName="Tab"},26734:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(80991),a=n(99250),i=n(65492),l=n(64090);let s=(0,i.fn)("TabGroup"),c=l.forwardRef((e,t)=>{let{defaultIndex:n,index:i,onIndexChange:c,children:u,className:d}=e,p=(0,r._T)(e,["defaultIndex","index","onIndexChange","children","className"]);return l.createElement(o.O.Group,Object.assign({as:"div",ref:t,defaultIndex:n,selectedIndex:i,onChange:c,className:(0,a.q)(s("root"),"w-full",d)},p),u)});c.displayName="TabGroup"},41608:function(e,t,n){n.d(t,{O:function(){return c},Z:function(){return d}});var r=n(69703),o=n(64090),a=n(50027);n(18174),n(21871),n(41213);var i=n(80991),l=n(99250);let s=(0,n(65492).fn)("TabList"),c=(0,o.createContext)("line"),u={line:(0,l.q)("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:(0,l.q)("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},d=o.forwardRef((e,t)=>{let{color:n,variant:d="line",children:p,className:f}=e,m=(0,r._T)(e,["color","variant","children","className"]);return o.createElement(i.O.List,Object.assign({ref:t,className:(0,l.q)(s("root"),"justify-start overflow-x-clip",u[d],f)},m),o.createElement(c.Provider,{value:d},o.createElement(a.Z.Provider,{value:n},p)))});d.displayName="TabList"},32126:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027);var o=n(18174);n(21871);var a=n(41213),i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("TabPanel"),u=s.forwardRef((e,t)=>{let{children:n,className:l}=e,u=(0,r._T)(e,["children","className"]),{selectedValue:d}=(0,s.useContext)(a.Z),p=d===(0,s.useContext)(o.Z);return s.createElement("div",Object.assign({ref:t,className:(0,i.q)(c("root"),"w-full mt-2",p?"":"hidden",l),"aria-selected":p?"true":"false"},u),n)});u.displayName="TabPanel"},23682:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(80991);n(50027);var a=n(18174);n(21871);var i=n(41213),l=n(99250),s=n(65492),c=n(64090);let u=(0,s.fn)("TabPanels"),d=c.forwardRef((e,t)=>{let{children:n,className:s}=e,d=(0,r._T)(e,["children","className"]);return c.createElement(o.O.Panels,Object.assign({as:"div",ref:t,className:(0,l.q)(u("root"),"w-full",s)},d),e=>{let{selectedIndex:t}=e;return c.createElement(i.Z.Provider,{value:{selectedValue:t}},c.Children.map(n,(e,t)=>c.createElement(a.Z.Provider,{value:t},e)))})});d.displayName="TabPanels"},52273:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(99250),i=n(65492);let l=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}))},s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12ZM12.0003 17C14.7617 17 17.0003 14.7614 17.0003 12C17.0003 9.23858 14.7617 7 12.0003 7C9.23884 7 7.00026 9.23858 7.00026 12C7.00026 14.7614 9.23884 17 12.0003 17ZM12.0003 15C10.3434 15 9.00026 13.6569 9.00026 12C9.00026 10.3431 10.3434 9 12.0003 9C13.6571 9 15.0003 10.3431 15.0003 12C15.0003 13.6569 13.6571 15 12.0003 15Z"}))},c=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457ZM14.7577 16.1718L13.2937 14.7078C12.902 14.8952 12.4634 15.0002 12.0003 15.0002C10.3434 15.0002 9.00026 13.657 9.00026 12.0002C9.00026 11.537 9.10522 11.0984 9.29263 10.7067L7.82866 9.24277C7.30514 10.0332 7.00026 10.9811 7.00026 12.0002C7.00026 14.7616 9.23884 17.0002 12.0003 17.0002C13.0193 17.0002 13.9672 16.6953 14.7577 16.1718ZM7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925L16.947 12.7327C16.9821 12.4936 17.0003 12.249 17.0003 12.0002C17.0003 9.23873 14.7617 7.00016 12.0003 7.00016C11.7514 7.00016 11.5068 7.01833 11.2677 7.05343L7.97446 3.76015Z"}))};var u=n(91753);let d=o.forwardRef((e,t)=>{let{value:n,defaultValue:d,type:p,placeholder:f="Type...",icon:m,error:g=!1,errorMessage:h,disabled:b=!1,stepper:v,makeInputClassName:y,className:E,onChange:S,onValueChange:w,autoFocus:x}=e,O=(0,r._T)(e,["value","defaultValue","type","placeholder","icon","error","errorMessage","disabled","stepper","makeInputClassName","className","onChange","onValueChange","autoFocus"]),[k,C]=(0,o.useState)(x||!1),[T,A]=(0,o.useState)(!1),I=(0,o.useCallback)(()=>A(!T),[T,A]),N=(0,o.useRef)(null),R=(0,u.Uh)(n||d);return o.useEffect(()=>{let e=()=>C(!0),t=()=>C(!1),n=N.current;return n&&(n.addEventListener("focus",e),n.addEventListener("blur",t),x&&n.focus()),()=>{n&&(n.removeEventListener("focus",e),n.removeEventListener("blur",t))}},[x]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,a.q)(y("root"),"relative w-full flex items-center min-w-[10rem] outline-none rounded-tremor-default transition duration-100 border","shadow-tremor-input","dark:shadow-dark-tremor-input",(0,u.um)(R,b,g),k&&(0,a.q)("ring-2","border-tremor-brand-subtle ring-tremor-brand-muted","dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted"),E)},m?o.createElement(m,{className:(0,a.q)(y("icon"),"shrink-0 h-5 w-5 ml-2.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}):null,o.createElement("input",Object.assign({ref:(0,i.lq)([N,t]),defaultValue:d,value:n,type:T?"text":p,className:(0,a.q)(y("input"),"w-full focus:outline-none focus:ring-0 border-none bg-transparent text-tremor-default rounded-tremor-default transition duration-100 py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",m?"pl-2":"pl-3",g?"pr-3":"pr-4",b?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content"),placeholder:f,disabled:b,"data-testid":"base-input",onChange:e=>{null==S||S(e),null==w||w(e.target.value)}},O)),"password"!==p||b?null:o.createElement("button",{className:(0,a.q)(y("toggleButton"),"mr-2"),type:"button",onClick:()=>I(),"aria-label":T?"Hide password":"Show Password"},T?o.createElement(c,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0}):o.createElement(s,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0})),g?o.createElement(l,{className:(0,a.q)(y("errorIcon"),"text-red-500 shrink-0 w-5 h-5 mr-2.5")}):null,null!=v?v:null),g&&h?o.createElement("p",{className:(0,a.q)(y("errorMessage"),"text-sm text-red-500 mt-1")},h):null)});d.displayName="BaseInput";let p=(0,i.fn)("TextInput"),f=o.forwardRef((e,t)=>{let{type:n="text"}=e,a=(0,r._T)(e,["type"]);return o.createElement(d,Object.assign({ref:t,type:n,makeInputClassName:p},a))});f.displayName="TextInput"},91753:function(e,t,n){n.d(t,{Uh:function(){return c},n0:function(){return l},sl:function(){return i},um:function(){return s}});var r=n(99250),o=n(64090);let a=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(a).join(""):"object"==typeof e&&e?a(e.props.children):void 0;function i(e){let t=new Map;return o.Children.map(e,e=>{var n;t.set(e.props.value,null!==(n=a(e))&&void 0!==n?n:e.props.value)}),t}function l(e,t){return o.Children.map(t,t=>{var n;if((null!==(n=a(t))&&void 0!==n?n:t.props.value).toLowerCase().includes(e.toLowerCase()))return t})}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.q)(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",n&&"text-red-500",n?"border-red-500":"border-tremor-border dark:border-dark-tremor-border")};function c(e){return null!=e&&""!==e}},26780:function(e,t,n){n.d(t,{Z:function(){return d},r:function(){return u}});var r=n(69703),o=n(11754);n(50027),n(18174);var a=n(21871);n(41213);var i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("Accordion"),u=(0,s.createContext)({isOpen:!1}),d=s.forwardRef((e,t)=>{var n;let{defaultOpen:l=!1,children:d,className:p}=e,f=(0,r._T)(e,["defaultOpen","children","className"]),m=null!==(n=(0,s.useContext)(a.Z))&&void 0!==n?n:(0,i.q)("rounded-tremor-default border");return s.createElement(o.p,Object.assign({as:"div",ref:t,className:(0,i.q)(c("root"),"overflow-hidden","bg-tremor-background border-tremor-border","dark:bg-dark-tremor-background dark:border-dark-tremor-border",m,p),defaultOpen:l},f),e=>{let{open:t}=e;return s.createElement(u.Provider,{value:{isOpen:t}},d)})});d.displayName="Accordion"},15595:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(11754),i=n(99250);let l=(0,n(65492).fn)("AccordionBody"),s=o.forwardRef((e,t)=>{let{children:n,className:s}=e,c=(0,r._T)(e,["children","className"]);return o.createElement(a.p.Panel,Object.assign({ref:t,className:(0,i.q)(l("root"),"w-full text-tremor-default px-4 pb-3","text-tremor-content","dark:text-dark-tremor-content",s)},c),n)});s.displayName="AccordionBody"},6698:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(64090),a=n(11754);let i=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"}))};var l=n(26780),s=n(99250);let c=(0,n(65492).fn)("AccordionHeader"),u=o.forwardRef((e,t)=>{let{children:n,className:u}=e,d=(0,r._T)(e,["children","className"]),{isOpen:p}=(0,o.useContext)(l.r);return o.createElement(a.p.Button,Object.assign({ref:t,className:(0,s.q)(c("root"),"w-full flex items-center justify-between px-4 py-3","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",u)},d),o.createElement("div",{className:(0,s.q)(c("children"),"flex flex-1 text-inherit mr-4")},n),o.createElement("div",null,o.createElement(i,{className:(0,s.q)(c("arrowIcon"),"h-5 w-5 -mr-1","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",p?"transition-all":"transition-all -rotate-180")})))});u.displayName="AccordionHeader"},13810:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(54942),i=n(2898),l=n(99250),s=n(65492);let c=(0,s.fn)("Card"),u=e=>{if(!e)return"";switch(e){case a.zS.Left:return"border-l-4";case a.m.Top:return"border-t-4";case a.zS.Right:return"border-r-4";case a.m.Bottom:return"border-b-4";default:return""}},d=o.forwardRef((e,t)=>{let{decoration:n="",decorationColor:a,children:d,className:p}=e,f=(0,r._T)(e,["decoration","decorationColor","children","className"]);return o.createElement("div",Object.assign({ref:t,className:(0,l.q)(c("root"),"relative w-full text-left ring-1 rounded-tremor-default p-6","bg-tremor-background ring-tremor-ring shadow-tremor-card","dark:bg-dark-tremor-background dark:ring-dark-tremor-ring dark:shadow-dark-tremor-card",a?(0,s.bM)(a,i.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",u(n),p)},f),d)});d.displayName="Card"},39290:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250);let s=(0,n(65492).fn)("dialog"),c=o.forwardRef((e,t)=>{let{children:n,className:c}=e,u=(0,r._T)(e,["children","className"]);return o.createElement(a.u,{as:o.Fragment,appear:!0,show:e.open},o.createElement(i.V,Object.assign({as:"div",ref:t},u,{className:(0,l.q)(s("root"),"relative z-50",c)}),o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},o.createElement("div",{className:(0,l.q)("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),o.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},o.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},n))))});c.displayName="Dialog"},66952:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250),s=n(65492);n(50027),n(18174);var c=n(21871);n(41213);let u=(0,s.fn)("dialog"),d=o.forwardRef((e,t)=>{var n;let{children:s,className:d}=e,p=(0,r._T)(e,["children","className"]),f=null!==(n=o.useContext(c.Z))&&void 0!==n?n:(0,l.q)("rounded-tremor-default p-6");return o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},o.createElement(i.V.Panel,Object.assign({ref:t,className:(0,l.q)(u("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),s))});d.displayName="DialogPanel"},10384:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Col"),c=i.forwardRef((e,t)=>{let{numColSpan:n=1,numColSpanSm:a,numColSpanMd:c,numColSpanLg:u,children:d,className:p}=e,f=(0,r._T)(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),m=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"";return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),(()=>{let e=m(n,l.PT),t=m(a,l.SP),r=m(c,l.VS),i=m(u,l._w);return(0,o.q)(e,t,r,i)})(),p)},f),d)});c.displayName="Col"},46453:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Grid"),c=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"",u=i.forwardRef((e,t)=>{let{numItems:n=1,numItemsSm:a,numItemsMd:u,numItemsLg:d,children:p,className:f}=e,m=(0,r._T)(e,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),g=c(n,l._m),h=c(a,l.LH),b=c(u,l.l5),v=c(d,l.N4),y=(0,o.q)(g,h,b,v);return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),"grid",y,f)},m),p)});u.displayName="Grid"},50217:function(e,t,n){n.d(t,{LH:function(){return o},N4:function(){return i},PT:function(){return l},SP:function(){return s},VS:function(){return c},_m:function(){return r},_w:function(){return u},l5:function(){return a}});let r={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},o={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},a={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},i={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},l={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},s={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},c={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},u={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"}},10827:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("Table"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement("div",{className:(0,a.q)(i("root"),"overflow-auto",l)},o.createElement("table",Object.assign({ref:t,className:(0,a.q)(i("table"),"w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content")},s),n))});l.displayName="Table"},3851:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableBody"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tbody",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-top divide-y","divide-tremor-border","dark:divide-dark-tremor-border",l)},s),n))});l.displayName="TableBody"},2044:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("td",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-middle whitespace-nowrap text-left p-4",l)},s),n))});l.displayName="TableCell"},64167:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHead"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("thead",Object.assign({ref:t,className:(0,a.q)(i("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHead"},74480:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHeaderCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("th",Object.assign({ref:t,className:(0,a.q)(i("root"),"whitespace-nowrap text-left font-semibold top-0 px-4 py-3.5","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHeaderCell"},7178:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableRow"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tr",Object.assign({ref:t,className:(0,a.q)(i("row"),l)},s),n))});l.displayName="TableRow"},18190:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("Callout"),c=o.forwardRef((e,t)=>{let{title:n,icon:c,color:u,className:d,children:p}=e,f=(0,r._T)(e,["title","icon","color","className","children"]);return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default border-l-4 py-3 pr-3 pl-4",u?(0,i.q)((0,l.bM)(u,a.K.background).bgColor,(0,l.bM)(u,a.K.darkBorder).borderColor,(0,l.bM)(u,a.K.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):(0,i.q)("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),d)},f),o.createElement("div",{className:(0,i.q)(s("header"),"flex items-start")},c?o.createElement(c,{className:(0,i.q)(s("icon"),"flex-none h-5 w-5 mr-1.5")}):null,o.createElement("h4",{className:(0,i.q)(s("title"),"font-semibold")},n)),o.createElement("p",{className:(0,i.q)(s("body"),"overflow-y-auto",p?"mt-2":"")},p))});c.displayName="Callout"},71801:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2898),o=n(99250),a=n(65492),i=n(64090);let l=i.forwardRef((e,t)=>{let{color:n,className:l,children:s}=e;return i.createElement("p",{ref:t,className:(0,o.q)("text-tremor-default",n?(0,a.bM)(n,r.K.text).textColor:(0,o.q)("text-tremor-content","dark:text-dark-tremor-content"),l)},s)});l.displayName="Text"},42440:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(2898),a=n(99250),i=n(65492),l=n(64090);let s=l.forwardRef((e,t)=>{let{color:n,children:s,className:c}=e,u=(0,r._T)(e,["color","children","className"]);return l.createElement("p",Object.assign({ref:t,className:(0,a.q)("font-medium text-tremor-title",n?(0,i.bM)(n,o.K.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},u),s)});s.displayName="Title"},58437:function(e,t,n){n.d(t,{Z:function(){return eU},l:function(){return eB}});var r=n(64090),o=n.t(r,2),a=n(89542);function i(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return e instanceof Node||e instanceof l(e).Node}function u(e){return e instanceof Element||e instanceof l(e).Element}function d(e){return e instanceof HTMLElement||e instanceof l(e).HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function m(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=E(e);for(;d(t)&&!b(t);){if(m(t))return t;t=E(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function b(e){return["html","body","#document"].includes(i(e))}function v(e){return l(e).getComputedStyle(e)}function y(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function E(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||s(e);return p(t)?t.host:t}function S(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=E(t);return b(n)?t.ownerDocument?t.ownerDocument.body:t.body:d(n)&&f(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=l(o);return a?t.concat(i,i.visualViewport||[],f(o)?o:[],i.frameElement&&n?S(i.frameElement):[]):t.concat(o,S(o,[],n))}let w=Math.min,x=Math.max,O=Math.round,k=Math.floor,C=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}function M(e){return["top","bottom"].includes(N(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>A[e])}function D(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F(e,t,n){let r,{reference:o,floating:a}=e,i=M(t),l=_(M(t)),s=P(l),c=N(t),u="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-a.width,y:p};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[l]-=f*(n&&u?-1:1);break;case"end":r[l]+=f*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=F(c,r,s),p=r,f={},m=0;for(let n=0;n{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)});let o=g(e);if(t&&o){let e=o.getBoundingClientRect();n=e.x,r=e.y}return[t,n,r]}function K(e){return V(s(e)).left+y(e).scrollLeft}function X(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=l(e),r=s(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;let e=h();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:c,y:u}}(e,n);else if("document"===t)r=function(e){let t=s(e),n=y(e),r=e.ownerDocument.body,o=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+K(e),l=-n.scrollTop;return"rtl"===v(r).direction&&(i+=x(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(u(t))r=function(e,t){let n=V(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=d(e)?G(e):C(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{let n=W(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return j(r)}function Q(e,t){return d(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function J(e,t){let n=l(e);if(!d(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(i(r))&&"static"===v(r).position;)r=Q(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===v(r).position&&!m(r))?n:r||g(e)||n}let ee=async function(e){let t=this.getOffsetParent||J,n=this.getDimensions;return{reference:function(e,t,n,r){let o=d(t),a=s(t),l="fixed"===n,c=V(e,!0,l,t),u={scrollLeft:0,scrollTop:0},p=C(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(u=y(t)),o){let e=V(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=K(a))}let m=c.left+u.scrollLeft-p.x,g=c.top+u.scrollTop-p.y,[h,b,v]=Y(r);return h&&(m+=b,g+=v,o&&(m+=t.clientLeft,g+=t.clientTop)),{x:m,y:g,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a=s(r),[l]=t?Y(t.floating):[!1];if(r===a||l)return n;let c={scrollLeft:0,scrollTop:0},u=C(1),p=C(0),m=d(r);if((m||!m&&"fixed"!==o)&&(("body"!==i(r)||f(a))&&(c=y(r)),d(r))){let e=V(r);u=G(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=S(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===v(e).position,l=a?E(e):e;for(;u(l)&&!b(l);){let t=v(l),n=m(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(l)&&!n&&function e(t,n){let r=E(t);return!(r===n||!u(r)||b(r))&&("fixed"===v(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=E(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((e,n)=>{let r=X(t,n,o);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},X(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:J,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:G,isElement:u,isRTL:function(e){return"rtl"===v(e).direction}};function en(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=H(e),p=a||i?[...d?S(d):[],...S(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=d&&c?function(e,t){let n,r=null,o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let f=k(u),m=k(o.clientWidth-(c+d)),g={rootMargin:-f+"px "+-m+"px "+-k(o.clientHeight-(u+p))+"px "+-k(c)+"px",threshold:x(0,w(1,s))||1},h=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),a}(d,n):null,m=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let h=u?V(e):null;return u&&function t(){let r=V(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(o)}}let er=(e,t,n)=>{let r=new Map,o={platform:et,...n},a={...o.platform,_c:r};return B(e,t,{...o,platform:a})};var eo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ea(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ei(e){let t=r.useRef(e);return eo(()=>{t.current=e}),t}var el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let es=!1,ec=0,eu=()=>"floating-ui-"+ec++,ed=o["useId".toString()]||function(){let[e,t]=r.useState(()=>es?eu():void 0);return el(()=>{null==e&&t(eu())},[]),r.useEffect(()=>{es||(es=!0)},[]),e},ep=r.createContext(null),ef=r.createContext(null),em=()=>{var e;return(null==(e=r.useContext(ep))?void 0:e.id)||null},eg=()=>r.useContext(ef);function eh(e){return(null==e?void 0:e.ownerDocument)||document}function eb(e){return eh(e).defaultView||window}function ev(e){return!!e&&e instanceof eb(e).Element}function ey(e){return!!e&&e instanceof eb(e).HTMLElement}function eE(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eS(e){let t=(0,r.useRef)(e);return el(()=>{t.current=e}),t}let ew="data-floating-ui-safe-polygon";function ex(e,t,n){return n&&!eE(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let eO=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:a=null,mouseOnly:i=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t,{open:c,onOpenChange:u,dataRef:d,events:p,elements:{domReference:f,floating:m},refs:g}=e,h=eg(),b=em(),v=eS(a),y=eS(o),E=r.useRef(),S=r.useRef(),w=r.useRef(),x=r.useRef(),O=r.useRef(!0),k=r.useRef(!1),C=r.useRef(()=>{}),T=r.useCallback(()=>{var e;let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);r.useEffect(()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(S.current),clearTimeout(x.current),O.current=!0}},[n,p]),r.useEffect(()=>{if(!n||!v.current||!c)return;function e(){T()&&u(!1)}let t=eh(m).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[m,c,u,n,v,d,T]);let A=r.useCallback(function(e){void 0===e&&(e=!0);let t=ex(y.current,"close",E.current);t&&!w.current?(clearTimeout(S.current),S.current=setTimeout(()=>u(!1),t)):e&&(clearTimeout(S.current),u(!1))},[y,u]),I=r.useCallback(()=>{C.current(),w.current=void 0},[]),N=r.useCallback(()=>{if(k.current){let e=eh(g.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ew),k.current=!1}},[g]);return r.useEffect(()=>{if(n&&ev(f))return c&&f.addEventListener("mouseleave",a),null==m||m.addEventListener("mouseleave",a),s&&f.addEventListener("mousemove",r,{once:!0}),f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",o),()=>{c&&f.removeEventListener("mouseleave",a),null==m||m.removeEventListener("mouseleave",a),s&&f.removeEventListener("mousemove",r),f.removeEventListener("mouseenter",r),f.removeEventListener("mouseleave",o)};function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(S.current),O.current=!1,i&&!eE(E.current)||l>0&&0===ex(y.current,"open"))return;d.current.openEvent=e;let t=ex(y.current,"open",E.current);t?S.current=setTimeout(()=>{u(!0)},t):u(!0)}function o(n){if(t())return;C.current();let r=eh(m);if(clearTimeout(x.current),v.current){c||clearTimeout(S.current),w.current=v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}});let t=w.current;r.addEventListener("mousemove",t),C.current=()=>{r.removeEventListener("mousemove",t)};return}A()}function a(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}})(n)}},[f,m,n,e,i,l,s,A,I,N,u,c,h,y,v,d]),el(()=>{var e,t,r;if(n&&c&&null!=(e=v.current)&&e.__options.blockPointerEvents&&T()){let e=eh(m).body;if(e.setAttribute(ew,""),e.style.pointerEvents="none",k.current=!0,ev(f)&&m){let e=null==h?void 0:null==(t=h.nodesRef.current.find(e=>e.id===b))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),f.style.pointerEvents="auto",m.style.pointerEvents="auto",()=>{f.style.pointerEvents="",m.style.pointerEvents=""}}}},[n,c,b,m,f,h,v,d,T]),el(()=>{c||(E.current=void 0,I(),N())},[c,I,N]),r.useEffect(()=>()=>{I(),clearTimeout(S.current),clearTimeout(x.current),N()},[n,I,N]),r.useMemo(()=>{if(!n)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===l||(clearTimeout(x.current),x.current=setTimeout(()=>{O.current||u(!0)},l))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[p,n,l,c,u,A])};function ek(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=eb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function eC(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})||[],r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})})||[],n=n.concat(r);return n}let eT=o["useInsertionEffect".toString()]||(e=>e());function eA(e){let t=r.useRef(()=>{});return eT(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r!1),x="function"==typeof f?w:f,O=r.useRef(!1),{escapeKeyBubbles:k,outsidePressBubbles:C}=e_(v);return r.useEffect(()=>{if(!n||!d)return;function e(e){if("Escape"===e.key){let e=y?eC(y.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if(null!=(n=e.context)&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1)}}function t(e){var t;let n=O.current;if(O.current=!1,n||"function"==typeof x&&!x(e))return;let r="composedPath"in e?e.composedPath()[0]:e.target;if(ey(r)&&c){let t=c.ownerDocument.defaultView||window,n=r.scrollWidth>r.clientWidth,o=r.scrollHeight>r.clientHeight,a=o&&e.offsetX>r.clientWidth;if(o&&"rtl"===t.getComputedStyle(r).direction&&(a=e.offsetX<=r.offsetWidth-r.clientWidth),a||n&&e.offsetY>r.clientHeight)return}let l=y&&eC(y.nodesRef.current,i).some(t=>{var n;return eI(e,null==(n=t.context)?void 0:n.elements.floating)});if(eI(e,c)||eI(e,s)||l)return;let u=y?eC(y.nodesRef.current,i):[];if(u.length>0){let e=!0;if(u.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:E?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(e)||0===(t=e).width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"!==t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail}}),o(!1)}function r(){o(!1)}u.current.__escapeKeyBubbles=k,u.current.__outsidePressBubbles=C;let f=eh(c);p&&f.addEventListener("keydown",e),x&&f.addEventListener(m,t);let g=[];return b&&(ev(s)&&(g=S(s)),ev(c)&&(g=g.concat(S(c))),!ev(l)&&l&&l.contextElement&&(g=g.concat(S(l.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",r,{passive:!0})}),()=>{p&&f.removeEventListener("keydown",e),x&&f.removeEventListener(m,t),g.forEach(e=>{e.removeEventListener("scroll",r)})}},[u,c,s,l,p,x,m,a,y,i,n,o,b,d,k,C,E]),r.useEffect(()=>{O.current=!1},[x,m]),r.useMemo(()=>d?{reference:{[eN[h]]:()=>{g&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1))}},floating:{[eR[m]]:()=>{O.current=!0}}}:{},[d,a,g,m,h,o])},eM=function(e,t){let{open:n,onOpenChange:o,dataRef:a,events:i,refs:l,elements:{floating:s,domReference:c}}=e,{enabled:u=!0,keyboardOnly:d=!0}=void 0===t?{}:t,p=r.useRef(""),f=r.useRef(!1),m=r.useRef();return r.useEffect(()=>{if(!u)return;let e=eh(s).defaultView||window;function t(){!n&&ey(c)&&c===function(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}(eh(c))&&(f.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[s,c,n,u]),r.useEffect(()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(f.current=!0)}},[i,u]),r.useEffect(()=>()=>{clearTimeout(m.current)},[]),r.useMemo(()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;p.current=t,f.current=!!(t&&d)},onMouseLeave(){f.current=!1},onFocus(e){var t;f.current||"focus"===e.type&&(null==(t=a.current.openEvent)?void 0:t.type)==="mousedown"&&a.current.openEvent&&eI(a.current.openEvent,c)||(a.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){f.current=!1;let t=e.relatedTarget,n=ev(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");m.current=setTimeout(()=>{ek(l.floating.current,t)||ek(c,t)||n||o(!1)})}}}:{},[u,d,c,l,a,o])},eL=function(e,t){let{open:n}=e,{enabled:o=!0,role:a="dialog"}=void 0===t?{}:t,i=ed(),l=ed();return r.useMemo(()=>{let e={id:i,role:a};return o?"tooltip"===a?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":n?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}:{}},[o,a,n,i,l])};function eD(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),a=0;ae(...o))}}}else e[n]=o}),e),{})}}let ej=function(e){void 0===e&&(e=[]);let t=e,n=r.useCallback(t=>eD(t,e,"reference"),t),o=r.useCallback(t=>eD(t,e,"floating"),t),a=r.useCallback(t=>eD(t,e,"item"),e.map(e=>null==e?void 0:e.item));return r.useMemo(()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a}),[n,o,a])};var eF=n(99250);let eB=e=>{var t,n;let[o,i]=(0,r.useState)(!1),[l,s]=(0,r.useState)(),{x:c,y:u,refs:d,strategy:p,context:f}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:o}=e,i=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,whileElementsMounted:l,open:s}=e,[c,u]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=r.useState(o);ea(d,o)||p(o);let f=r.useRef(null),m=r.useRef(null),g=r.useRef(c),h=ei(l),b=ei(i),[v,y]=r.useState(null),[E,S]=r.useState(null),w=r.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),x=r.useCallback(e=>{m.current!==e&&(m.current=e,S(e))},[]),O=r.useCallback(()=>{if(!f.current||!m.current)return;let e={placement:t,strategy:n,middleware:d};b.current&&(e.platform=b.current),er(f.current,m.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!ea(g.current,t)&&(g.current=t,a.flushSync(()=>{u(t)}))})},[d,t,n,b]);eo(()=>{!1===s&&g.current.isPositioned&&(g.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let k=r.useRef(!1);eo(()=>(k.current=!0,()=>{k.current=!1}),[]),eo(()=>{if(v&&E){if(h.current)return h.current(v,E,O);O()}},[v,E,O,h]);let C=r.useMemo(()=>({reference:f,floating:m,setReference:w,setFloating:x}),[w,x]),T=r.useMemo(()=>({reference:v,floating:E}),[v,E]);return r.useMemo(()=>({...c,update:O,refs:C,elements:T,reference:w,floating:x}),[c,O,C,T,w,x])}(e),l=eg(),s=r.useRef(null),c=r.useRef({}),u=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],[d,p]=r.useState(null),f=r.useCallback(e=>{let t=ev(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),m=r.useCallback(e=>{(ev(e)||null===e)&&(s.current=e,p(e)),(ev(i.refs.reference.current)||null===i.refs.reference.current||null!==e&&!ev(e))&&i.refs.setReference(e)},[i.refs]),g=r.useMemo(()=>({...i.refs,setReference:m,setPositionReference:f,domReference:s}),[i.refs,m,f]),h=r.useMemo(()=>({...i.elements,domReference:d}),[i.elements,d]),b=eA(n),v=r.useMemo(()=>({...i,refs:g,elements:h,dataRef:c,nodeId:o,events:u,open:t,onOpenChange:b}),[i,o,u,t,b,g,h]);return el(()=>{let e=null==l?void 0:l.nodesRef.current.find(e=>e.id===o);e&&(e.context=v)}),r.useMemo(()=>({...i,context:v,refs:g,reference:m,positionReference:f}),[i,g,v,m,f])}({open:o,onOpenChange:t=>{t&&e?s(setTimeout(()=>{i(t)},e)):(clearTimeout(l),i(t))},placement:"top",whileElementsMounted:en,middleware:[{name:"offset",options:5,async fn(e){var t,n;let{x:r,y:o,placement:a,middlewareData:i}=e,l=await Z(e,5);return a===(null==(t=i.offset)?void 0:t.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}},{name:"flip",options:t={fallbackAxisSideDirection:"start"},async fn(e){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=I(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=N(l),S=N(u)===u,w=await (null==d.isRTL?void 0:d.isRTL(p.floating)),x=g||(S||!v?[D(u)]:function(e){let t=D(e);return[L(e),t,L(t)]}(u));g||"none"===b||x.push(...function(e,t,n,r){let o=R(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(N(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(L)))),a}(u,v,b,w));let O=[u,...x],k=await U(e,y),C=[],T=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&C.push(k[E]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=_(M(e)),a=P(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=D(i)),[i,D(i)]}(l,c,w);C.push(k[e[0]],k[e[1]])}if(T=[...T,{placement:l,overflows:C}],!C.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(a=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=T.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}},(void 0===n&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=I(n,e),c={x:t,y:r},u=await U(e,s),d=M(N(o)),p=_(d),f=c[p],m=c[d];if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+u[e],r=f-u[t];f=x(n,w(f,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+u[e],r=m-u[t];m=x(n,w(m,r))}let g=l.fn({...e,[p]:f,[d]:m});return{...g,data:{x:g.x-t,y:g.y-r}}}})]}),m=eO(f,{move:!1}),{getReferenceProps:g,getFloatingProps:h}=ej([m,eM(f),eP(f),eL(f,{role:"tooltip"})]);return{tooltipProps:{open:o,x:c,y:u,refs:d,strategy:p,getFloatingProps:h},getReferenceProps:g}},eU=e=>{let{text:t,open:n,x:o,y:a,refs:i,strategy:l,getFloatingProps:s}=e;return n&&t?r.createElement("div",Object.assign({className:(0,eF.q)("max-w-xs text-sm z-20 rounded-tremor-default opacity-100 px-2.5 py-1","text-white bg-tremor-background-emphasis","text-white dark:bg-dark-tremor-background-subtle"),ref:i.setFloating,style:{position:l,top:null!=a?a:0,left:null!=o?o:0}},s()),t):null};eU.displayName="Tooltip"},67989:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("BarList"),c=o.forwardRef((e,t)=>{var n;let c;let{data:u=[],color:d,valueFormatter:p=l.Cj,showAnimation:f=!1,className:m}=e,g=(0,r._T)(e,["data","color","valueFormatter","showAnimation","className"]),h=(n=u.map(e=>e.value),c=-1/0,n.forEach(e=>{c=Math.max(c,e)}),n.map(e=>0===e?0:Math.max(e/c*100,1)));return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex justify-between space-x-6",m)},g),o.createElement("div",{className:(0,i.q)(s("bars"),"relative w-full")},u.map((e,t)=>{var n,r,c;let p=e.icon;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("bar"),"flex items-center rounded-tremor-small bg-opacity-30","h-9",e.color||d?(0,l.bM)(null!==(r=e.color)&&void 0!==r?r:d,a.K.background).bgColor:"bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle dark:bg-opacity-30",t===u.length-1?"mb-0":"mb-2"),style:{width:"".concat(h[t],"%"),transition:f?"all 1s":""}},o.createElement("div",{className:(0,i.q)("absolute max-w-full flex left-2")},p?o.createElement(p,{className:(0,i.q)(s("barIcon"),"flex-none h-5 w-5 mr-2","text-tremor-content","dark:text-dark-tremor-content")}):null,e.href?o.createElement("a",{href:e.href,target:null!==(c=e.target)&&void 0!==c?c:"_blank",rel:"noreferrer",className:(0,i.q)(s("barLink"),"whitespace-nowrap hover:underline truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name):o.createElement("p",{className:(0,i.q)(s("barText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name)))})),o.createElement("div",{className:"text-right min-w-min"},u.map((e,t)=>{var n;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("labelWrapper"),"flex justify-end items-center","h-9",t===u.length-1?"mb-0":"mb-2")},o.createElement("p",{className:(0,i.q)(s("labelText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},p(e.value)))})))});c.displayName="BarList"},50027:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(64090),o=n(54942);n(99250);let a=(0,r.createContext)(o.fr.Blue)},18174:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(0)},21871:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(void 0)},41213:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)({selectedValue:void 0,handleValueChange:void 0})},46457:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);let o=(e,t)=>{let n=void 0!==t,[o,a]=(0,r.useState)(e);return[n?t:o,e=>{n||a(e)}]}},54942:function(e,t,n){n.d(t,{fr:function(){return r},m:function(){return i},u8:function(){return o},zS:function(){return a}});let r={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},o={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},a={Left:"left",Right:"right"},i={Top:"top",Bottom:"bottom"}},2898:function(e,t,n){n.d(t,{K:function(){return o},s:function(){return a}});var r=n(54942);let o={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},a=[r.fr.Blue,r.fr.Cyan,r.fr.Sky,r.fr.Indigo,r.fr.Violet,r.fr.Purple,r.fr.Fuchsia,r.fr.Slate,r.fr.Gray,r.fr.Zinc,r.fr.Neutral,r.fr.Stone,r.fr.Red,r.fr.Orange,r.fr.Amber,r.fr.Yellow,r.fr.Lime,r.fr.Green,r.fr.Emerald,r.fr.Teal,r.fr.Pink,r.fr.Rose]},99250:function(e,t,n){n.d(t,{q:function(){return j}});var r=/^\[(.+)\]$/;function o(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var a=/\s+/;function i(){for(var e,t,n=0,r="";ne&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,a=t[0],i=t.length,function(e){for(var r,o=[],l=0,s=0,c=0;cs?r-s:void 0}}),...(u=e.theme,d=e.prefix,p={nextPart:new Map,validators:[]},(f=Object.entries(e.classGroups),d?f.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):f).forEach(function(e){var t=e[0];(function e(t,n,r,a){t.forEach(function(t){if("string"==typeof t){(""===t?n:o(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(a),n,r,a);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],o(n,i),r,a)})})})(e[1],p,t,u)}),l=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r,o=t[0],a=n.nextPart.get(o),i=a?e(t.slice(1),a):void 0;if(i)return i;if(0!==n.validators.length){var l=t.join("-");return null===(r=n.validators.find(function(e){return(0,e.validator)(l)}))||void 0===r?void 0:r.classGroupId}}(t,p)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=l[e]||[];return t&&c[e]?[].concat(n,c[e]):n}})}}(s.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,n=e.cache.set,u=d,d(a)};function d(r){var o,i,l,s,c,u=t(r);if(u)return u;var d=(i=(o=e).splitModifiers,l=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,r.trim().split(a).map(function(e){var t=i(e),n=t.modifiers,r=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,s=l(a?o.substring(0,a):o),c=!!a;if(!s){if(!a||!(s=l(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,o=t+n;return!c.has(o)&&(c.add(o),s(n,r).forEach(function(e){return c.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return u(i.apply(null,arguments))}}function s(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(e){return S(e)||d.has(e)||u.test(e)||h(e)}function h(e){return A(e,"length",I)}function b(e){return A(e,"size",N)}function v(e){return A(e,"position",N)}function y(e){return A(e,"url",R)}function E(e){return A(e,"number",S)}function S(e){return!Number.isNaN(Number(e))}function w(e){return e.endsWith("%")&&S(e.slice(0,-1))}function x(e){return _(e)||A(e,"number",_)}function O(e){return c.test(e)}function k(){return!0}function C(e){return p.test(e)}function T(e){return A(e,"",P)}function A(e,t,n){var r=c.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return f.test(e)}function N(){return!1}function R(e){return e.startsWith("url(")}function _(e){return Number.isInteger(Number(e))}function P(e){return m.test(e)}function M(){var e=s("colors"),t=s("spacing"),n=s("blur"),r=s("brightness"),o=s("borderColor"),a=s("borderRadius"),i=s("borderSpacing"),l=s("borderWidth"),c=s("contrast"),u=s("grayscale"),d=s("hueRotate"),p=s("invert"),f=s("gap"),m=s("gradientColorStops"),A=s("gradientColorStopPositions"),I=s("inset"),N=s("margin"),R=s("opacity"),_=s("padding"),P=s("saturate"),M=s("scale"),L=s("sepia"),D=s("skew"),j=s("space"),F=s("translate"),B=function(){return["auto","contain","none"]},U=function(){return["auto","hidden","clip","visible","scroll"]},Z=function(){return["auto",O,t]},z=function(){return[O,t]},H=function(){return["",g]},G=function(){return["auto",S,O]},$=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",O]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[S,E]},Q=function(){return[S,O]};return{cacheSize:500,theme:{colors:[k],spacing:[g],blur:["none","",C,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",C,O],borderSpacing:z(),borderWidth:H(),contrast:X(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,h],inset:Z(),margin:Z(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Y(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat($(),[O])}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",x]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",x]},O]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[x]},O]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",O,t]}],"min-w":[{"min-w":["min","max","fit",O,g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,O]}],h:[{h:[O,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",O,g]}],"max-h":[{"max-h":[O,t,"min","max","fit"]}],"font-size":[{text:["base",C,h]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",S,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,g]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",O,g]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat($(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[O,g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,O]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[x,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,E]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var L=Object.prototype.hasOwnProperty,D=new Set(["string","number","boolean"]);let j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rr.includes(e),a=e=>e.toString(),i=(e,t)=>{for(let n=0;n{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function s(e){return t=>"tremor-".concat(e,"-").concat(t)}function c(e,t){let n=o(e);if("white"===e||"black"===e||"transparent"===e||!t||!n){let t=e.includes("#")||e.includes("--")||e.includes("rgb")?"[".concat(e,"]"):e;return{bgColor:"bg-".concat(t),hoverBgColor:"hover:bg-".concat(t),selectBgColor:"ui-selected:bg-".concat(t),textColor:"text-".concat(t),selectTextColor:"ui-selected:text-".concat(t),hoverTextColor:"hover:text-".concat(t),borderColor:"border-".concat(t),selectBorderColor:"ui-selected:border-".concat(t),hoverBorderColor:"hover:border-".concat(t),ringColor:"ring-".concat(t),strokeColor:"stroke-".concat(t),fillColor:"fill-".concat(t)}}return{bgColor:"bg-".concat(e,"-").concat(t),selectBgColor:"ui-selected:bg-".concat(e,"-").concat(t),hoverBgColor:"hover:bg-".concat(e,"-").concat(t),textColor:"text-".concat(e,"-").concat(t),selectTextColor:"ui-selected:text-".concat(e,"-").concat(t),hoverTextColor:"hover:text-".concat(e,"-").concat(t),borderColor:"border-".concat(e,"-").concat(t),selectBorderColor:"ui-selected:border-".concat(e,"-").concat(t),hoverBorderColor:"hover:border-".concat(e,"-").concat(t),ringColor:"ring-".concat(e,"-").concat(t),strokeColor:"stroke-".concat(e,"-").concat(t),fillColor:"fill-".concat(e,"-").concat(t)}}},21467:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(64090),o=n(44329),a=n(54165),i=n(57499);function l(e){return t=>r.createElement(a.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,a)=>l(l=>{let{prefixCls:s,style:c}=l,u=r.useRef(null),[d,p]=r.useState(0),[f,m]=r.useState(0),[g,h]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:b}=r.useContext(i.E_),v=b(t||"select",s);r.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?".".concat(n(v)):".".concat(v,"-dropdown"),a=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return a&&(y=a(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:f}},r.createElement(e,Object.assign({},y)))})},51761:function(e,t,n){n.d(t,{Cn:function(){return c},u6:function(){return i}});var r=n(64090),o=n(24750),a=n(86718);let i=1e3,l={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e,t){let[,n]=(0,o.ZP)(),c=r.useContext(a.Z);if(void 0!==t)return[t,t];let u=null!=c?c:0;return e in l?(u+=(c?0:n.zIndexPopupBase)+l[e],u=Math.min(u,n.zIndexPopupBase+i)):u+=s[e],[void 0===c?t:u,u]}},47387:function(e,t,n){n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},67966:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(89869);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},i=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach(e=>{let f=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(p[e]=f,i.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=d+s}let m=(0,r.wZ)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-d;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+d}f.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(f.htmlRegion="visibleFirst")}),p}},65823:function(e,t,n){n.d(t,{M2:function(){return i},Tm:function(){return l},l$:function(){return a}});var r,o=n(64090);let{isValidElement:a}=r||(r=n.t(o,2));function i(e){return e&&a(e)&&e.type===o.Fragment}function l(e,t){return a(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},47794:function(e,t,n){n.d(t,{F:function(){return i},Z:function(){return a}});var r=n(16480),o=n.n(r);function a(e,t,n){return o()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}let i=(e,t)=>t||e},76564:function(e,t,n){n.d(t,{G8:function(){return a},ln:function(){return i}});var r=n(64090);function o(){}n(53850);let a=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e}},86718:function(e,t,n){let r=n(64090).createContext(void 0);t.Z=r},51350:function(e,t,n){n.d(t,{Te:function(){return c},aG:function(){return i},hU:function(){return u},nx:function(){return l}});var r=n(64090),o=n(65823);let a=/^[\u4e00-\u9fa5]{2}$/,i=a.test.bind(a);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1,a=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=a.length-1,n=a[t];a[t]="".concat(n).concat(e)}else a.push(e);n=r}),r.Children.map(a,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&i(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?i(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e})(e,t))}},1861:function(e,t,n){n.d(t,{ZP:function(){return eb}});var r=n(64090),o=n(16480),a=n.n(o),i=n(35704),l=n(74084),s=n(73193),c=n(57499),u=n(65823),d=n(76585);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var f=(0,d.ZP)("Wave",e=>[p(e)]),m=n(48563),g=n(19223),h=n(49367),b=n(37274);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let y="ant-wave-target";function E(e){return Number.isNaN(e)?0:e}let S=e=>{let{className:t,target:n,component:o}=e,i=r.useRef(null),[l,s]=r.useState(null),[c,u]=r.useState([]),[d,p]=r.useState(0),[f,m]=r.useState(0),[S,w]=r.useState(0),[x,O]=r.useState(0),[k,C]=r.useState(!1),T={left:d,top:f,width:S,height:x,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function A(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:E(-parseFloat(r))),m(t?n.offsetTop:E(-parseFloat(o))),w(n.offsetWidth),O(n.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([a,i,c,l].map(e=>E(parseFloat(e))))}if(l&&(T["--wave-color"]=l),r.useEffect(()=>{if(n){let e;let t=(0,g.Z)(()=>{A(),C(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(A)).observe(n),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(h.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,b.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return r.createElement("div",{ref:i,className:a()(t,{"wave-quick":I},n),style:T})})};var w=(e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",null==e||e.insertBefore(a,null==e?void 0:e.firstChild),(0,b.s)(r.createElement(S,Object.assign({},t,{target:e})),a)},x=n(24750),O=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),p=i("wave"),[,h]=f(p),b=function(e,t,n){let{wave:o}=r.useContext(c.E_),[,a,i]=(0,x.ZP)(),l=(0,m.zX)(r=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(".".concat(y))||l,{showEffect:c}=o||{};(c||w)(s,{className:t,token:a,component:n,event:r,hashId:i})}),s=r.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(d,a()(p,h),o);if(r.useEffect(()=>{let e=d.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let v=(0,l.Yr)(t)?(0,l.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:v})},k=n(17094),C=n(10693),T=n(92801),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I=r.createContext(void 0);var N=n(51350);let R=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:i,prefixCls:l}=e,s=a()("".concat(l,"-icon"),n);return r.createElement("span",{ref:t,className:s,style:o},i)});var _=n(66155);let P=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:i,iconClassName:l}=e,s=a()("".concat(n,"-loading-icon"),o);return r.createElement(R,{prefixCls:n,className:s,style:i,ref:t},r.createElement(_.Z,{className:l}))}),M=()=>({width:0,opacity:0,transform:"scale(0)"}),L=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var D=e=>{let{prefixCls:t,loading:n,existIcon:o,className:a,style:i}=e,l=!!n;return o?r.createElement(P,{prefixCls:t,className:a,style:i}):r.createElement(h.ZP,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:M,onAppearActive:L,onEnterStart:M,onEnterActive:L,onLeaveStart:L,onLeaveActive:M},(e,n)=>{let{className:o,style:l}=e;return r.createElement(P,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:o})})},j=n(8985),F=n(11303),B=n(80316);let U=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Z=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},U("".concat(t,"-primary"),o),U("".concat(t,"-danger"),a)]}},z=n(49202);let H=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,B.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},G=e=>{var t,n,r,o,a,i;let l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,z.D)(l),d=null!==(a=e.contentLineHeightSM)&&void 0!==a?a:(0,z.D)(s),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,z.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},$=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,j.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,F.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},W=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Y=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),K=(e,t,n,r,o,a,i,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},W(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),X=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Y(e))}),Q=e=>Object.assign({},X(e)),J=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),W(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},W(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),X(e))}),et=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),W(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},W(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),X(e))}),en=e=>Object.assign(Object.assign({},ee(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},W(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},W(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),J(e))}),eo=e=>Object.assign(Object.assign(Object.assign({},W(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},J(e)),W(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ea=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:ee(e),["".concat(t,"-primary")]:et(e),["".concat(t,"-dashed")]:en(e),["".concat(t,"-link")]:er(e),["".concat(t,"-text")]:eo(e),["".concat(t,"-ghost")]:K(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(n).concat(t)]:{fontSize:o,lineHeight:a,height:r,padding:"".concat((0,j.bf)(c)," ").concat((0,j.bf)(l)),borderRadius:i,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:V(e)},{["".concat(n).concat(n,"-round").concat(t)]:q(e)}]},el=e=>ei((0,B.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),es=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),ec=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),eu=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var ed=(0,d.I$)("Button",e=>{let t=H(e);return[$(t),es(t),el(t),ec(t),eu(t),ea(t),Z(t)]},G,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ep=n(12288);let ef=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var em=(0,d.bk)(["Button","compact"],e=>{let t=H(e);return[(0,ep.c)(t),function(e){var t;let n="".concat(e.componentCls,"-compact-vertical");return{[n]:Object.assign(Object.assign({},{["&-item:not(".concat(n,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{["&-item:not(".concat(n,"-first-item):not(").concat(n,"-last-item)")]:{borderRadius:0},["&-item".concat(n,"-first-item:not(").concat(n,"-last-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(n,"-last-item:not(").concat(n,"-first-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),ef(t)]},G),eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eh=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:s=!1,prefixCls:u,type:d="default",danger:p,shape:f="default",size:m,styles:g,disabled:h,className:b,rootClassName:v,children:y,icon:E,ghost:S=!1,block:w=!1,htmlType:x="button",classNames:A,style:_={}}=e,P=eg(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:L,direction:j,button:F}=(0,r.useContext)(c.E_),B=M("btn",u),[U,Z,z]=ed(B),H=(0,r.useContext)(k.Z),G=null!=h?h:H,$=(0,r.useContext)(I),W=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(s),[s]),[V,q]=(0,r.useState)(W.loading),[Y,K]=(0,r.useState)(!1),X=(0,r.createRef)(),Q=(0,l.sQ)(t,X),J=1===r.Children.count(y)&&!E&&!(0,N.Te)(d);(0,r.useEffect)(()=>{let e=null;return W.delay>0?e=setTimeout(()=>{e=null,q(!0)},W.delay):q(W.loading),function(){e&&(clearTimeout(e),e=null)}},[W]),(0,r.useEffect)(()=>{if(!Q||!Q.current||!1===L)return;let e=Q.current.textContent;J&&(0,N.aG)(e)?Y||K(!0):Y&&K(!1)},[Q]);let ee=t=>{let{onClick:n}=e;if(V||G){t.preventDefault();return}null==n||n(t)},et=!1!==L,{compactSize:en,compactItemClassnames:er}=(0,T.ri)(B,j),eo=(0,C.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=m?m:en)&&void 0!==t?t:$)&&void 0!==n?n:e}),ea=eo&&({large:"lg",small:"sm",middle:void 0})[eo]||"",ei=V?"loading":E,el=(0,i.Z)(P,["navigate"]),es=a()(B,Z,z,{["".concat(B,"-").concat(f)]:"default"!==f&&f,["".concat(B,"-").concat(d)]:d,["".concat(B,"-").concat(ea)]:ea,["".concat(B,"-icon-only")]:!y&&0!==y&&!!ei,["".concat(B,"-background-ghost")]:S&&!(0,N.Te)(d),["".concat(B,"-loading")]:V,["".concat(B,"-two-chinese-chars")]:Y&&et&&!V,["".concat(B,"-block")]:w,["".concat(B,"-dangerous")]:!!p,["".concat(B,"-rtl")]:"rtl"===j},er,b,v,null==F?void 0:F.className),ec=Object.assign(Object.assign({},null==F?void 0:F.style),_),eu=a()(null==A?void 0:A.icon,null===(n=null==F?void 0:F.classNames)||void 0===n?void 0:n.icon),ep=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==F?void 0:F.styles)||void 0===o?void 0:o.icon)||{}),ef=E&&!V?r.createElement(R,{prefixCls:B,className:eu,style:ep},E):r.createElement(D,{existIcon:!!E,prefixCls:B,loading:!!V}),eh=y||0===y?(0,N.hU)(y,J&&et):null;if(void 0!==el.href)return U(r.createElement("a",Object.assign({},el,{className:a()(es,{["".concat(B,"-disabled")]:G}),href:G?void 0:el.href,style:ec,onClick:ee,ref:Q,tabIndex:G?-1:0}),ef,eh));let eb=r.createElement("button",Object.assign({},P,{type:x,className:es,style:ec,onClick:ee,disabled:G,ref:Q}),ef,eh,!!er&&r.createElement(em,{key:"compact",prefixCls:B}));return(0,N.Te)(d)||(eb=r.createElement(O,{component:"Button",disabled:!!V},eb)),U(eb)});eh.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:i,className:l}=e,s=A(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,x.ZP)(),p="";switch(i){case"large":p="lg";break;case"small":p="sm"}let f=a()(u,{["".concat(u,"-").concat(p)]:p,["".concat(u,"-rtl")]:"rtl"===n},l,d);return r.createElement(I.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:f})))},eh.__ANT_BUTTON=!0;var eb=eh},28683:function(e,t,n){var r=n(90791);t.Z=r.Z},17094:function(e,t,n){n.d(t,{n:function(){return a}});var r=n(64090);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},97303:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(64090);let o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:n||a},t)};t.Z=o},57499:function(e,t,n){n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(64090);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?"ant-".concat(e):"ant"),iconPrefixCls:o}),{Consumer:i}=a},92935:function(e,t,n){var r=n(24750);t.Z=e=>{let[,,,,t]=(0,r.ZP)();return t?"".concat(e,"-css-var"):""}},10693:function(e,t,n){var r=n(64090),o=n(97303);t.Z=e=>{let t=r.useContext(o.Z);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])}},54165:function(e,t,n){let r,o,a,i;n.d(t,{ZP:function(){return G},w6:function(){return Z}});var l=n(64090),s=n.t(l,2),c=n(8985),u=n(67689),d=n(61475),p=n(36597),f=n(76564),m=n(12519),g=n(4678),h=n(33302),b=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>(0,g.f)(t&&t.Modal),[t]);let o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(h.Z.Provider,{value:o},n)},v=n(79474),y=n(43345),E=n(46864),S=n(57499),w=n(12215),x=n(6336),O=n(22127),k=n(24050);let C="-ant-".concat(Date.now(),"-").concat(Math.random());var T=n(17094),A=n(97303),I=n(92536);let{useId:N}=Object.assign({},s);var R=void 0===N?()=>"":N,_=n(49367),P=n(24750);function M(e){let{children:t}=e,[,n]=(0,P.ZP)(),{motion:r}=n,o=l.useRef(!1);return(o.current=o.current||!1===r,o.current)?l.createElement(_.zt,{motion:r},t):t}var L=()=>null,D=n(28030),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function B(){return r||"ant"}function U(){return o||S.oR}let Z=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(B(),"-").concat(e):B()),getIconPrefixCls:U,getRootPrefixCls:()=>r||B(),getTheme:()=>a,holderRender:i}),z=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:g,direction:h,space:w,virtual:x,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:C,legacyLocale:N,parentContext:_,iconPrefixCls:P,theme:B,componentDisabled:U,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,input:ep,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD}=e,ej=l.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[_.getPrefixCls,e.prefixCls]),eF=P||_.iconPrefixCls||S.oR,eB=n||_.csp;(0,D.Z)(eF,eB);let eU=function(e,t){(0,f.ln)("ConfigProvider");let n=e||{},r=!1!==n.inherit&&t?t:y.u_,o=R();return(0,d.Z)(()=>{var a,i;if(!e)return t;let l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});let s="css-var-".concat(o.replace(/:/g,"")),c=(null!==(a=n.cssVar)&&void 0!==a?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,I.Z)(e,r,!0)}))}(B,_.theme),eZ={csp:eB,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||N,direction:h,space:w,virtual:x,popupMatchSelectWidth:null!=k?k:O,popupOverflow:C,getPrefixCls:ej,iconPrefixCls:eF,theme:eU,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,input:ep,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD},ez=Object.assign({},_);Object.keys(eZ).forEach(e=>{void 0!==eZ[e]&&(ez[e]=eZ[e])}),F.forEach(t=>{let n=e[t];n&&(ez[t]=n)});let eH=(0,d.Z)(()=>ez,ez,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eG=l.useMemo(()=>({prefixCls:eF,csp:eB}),[eF,eB]),e$=l.createElement(l.Fragment,null,l.createElement(L,{dropdownMatchSelectWidth:O}),t),eW=l.useMemo(()=>{var e,t,n,r;return(0,p.T)((null===(e=v.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eH.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eH.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})},[eH,null==i?void 0:i.validateMessages]);Object.keys(eW).length>0&&(e$=l.createElement(m.Z.Provider,{value:eW},e$)),s&&(e$=l.createElement(b,{locale:s,_ANT_MARK__:"internalMark"},e$)),(eF||eB)&&(e$=l.createElement(u.Z.Provider,{value:eG},e$)),g&&(e$=l.createElement(A.q,{size:g},e$)),e$=l.createElement(M,null,e$);let eV=l.useMemo(()=>{let e=eU||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=j(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,c.jG)(t):y.uH,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,c.jG)(r.algorithm)),delete r.algorithm),l[t]=r});let s=Object.assign(Object.assign({},E.Z),n);return Object.assign(Object.assign({},a),{theme:i,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[eU]);return B&&(e$=l.createElement(y.Mj.Provider,{value:eV},e$)),eH.warning&&(e$=l.createElement(f.G8.Provider,{value:eH.warning},e$)),void 0!==U&&(e$=l.createElement(T.n,{disabled:U},e$)),l.createElement(S.E_.Provider,{value:eH},e$)},H=e=>{let t=l.useContext(S.E_),n=l.useContext(h.Z);return l.createElement(z,Object.assign({parentContext:t,legacyLocale:n},e))};H.ConfigContext=S.E_,H.SizeContext=A.Z,H.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:s}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=s),l&&(Object.keys(l).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,w.R_)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=a[1],n["".concat(t,"-color-hover")]=a[4],n["".concat(t,"-color-active")]=a[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=a[0],n["".concat(t,"-color-deprecated-border")]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,w.R_)(e.toRgbString());a.forEach((e,t)=>{n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";"));return"\n :root {\n ".concat(a.join("\n"),"\n }\n ").trim()}(e,t);(0,O.Z)()&&(0,k.hq)(n,"".concat(C,"-dynamic-theme"))}(B(),l):a=l)},H.useConfig=function(){return{componentDisabled:(0,l.useContext)(T.Z),componentSize:(0,l.useContext)(A.Z)}},Object.defineProperty(H,"SizeContext",{get:()=>A.Z});var G=H},40491:function(e,t,n){n.d(t,{Z:function(){return er}});var r=n(64090),o=n(50459),a=n(16480),i=n.n(a),l=n(14749),s=n(50833),c=n(80406),u=n(6787),d=n(44101),p=n(74084),f=n(4295),m=n(19223),g=f.Z.ESC,h=f.Z.TAB,b=(0,r.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,i=(0,r.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,p.sQ)(t,null==i?void 0:i.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(a,"-arrow")}),r.cloneElement(i,{ref:(0,p.Yr)(i)?l:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],E={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},S=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=r.forwardRef(function(e,t){var n,o,a,f,v,y,w,x,O,k,C,T,A,I,N=e.arrow,R=void 0!==N&&N,_=e.prefixCls,P=void 0===_?"rc-dropdown":_,M=e.transitionName,L=e.animation,D=e.align,j=e.placement,F=e.placements,B=e.getPopupContainer,U=e.showAction,Z=e.hideAction,z=e.overlayClassName,H=e.overlayStyle,G=e.visible,$=e.trigger,W=void 0===$?["hover"]:$,V=e.autoFocus,q=e.overlay,Y=e.children,K=e.onVisibleChange,X=(0,u.Z)(e,S),Q=r.useState(),J=(0,c.Z)(Q,2),ee=J[0],et=J[1],en="visible"in e?G:ee,er=r.useRef(null),eo=r.useRef(null),ea=r.useRef(null);r.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==K||K(e)};o=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:V,overlayRef:eo}).visible,a=n.triggerRef,f=n.onVisibleChange,v=n.autoFocus,y=n.overlayRef,w=r.useRef(!1),x=function(){if(o){var e,t;null===(e=a.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==f||f(!1)}},O=function(){var e;return null!==(e=y.current)&&void 0!==e&&!!e.focus&&(y.current.focus(),w.current=!0,!0)},k=function(e){switch(e.keyCode){case g:x();break;case h:var t=!1;w.current||(t=O()),t?e.preventDefault():x()}},r.useEffect(function(){return o?(window.addEventListener("keydown",k),v&&(0,m.Z)(O,3),function(){window.removeEventListener("keydown",k),w.current=!1}):function(){w.current=!1}},[o]);var el=function(){return r.createElement(b,{ref:eo,overlay:q,prefixCls:P,arrow:R})},es=r.cloneElement(Y,{className:i()(null===(I=Y.props)||void 0===I?void 0:I.className,en&&(void 0!==(C=e.openClassName)?C:"".concat(P,"-open"))),ref:(0,p.Yr)(Y)?(0,p.sQ)(ea,Y.ref):void 0}),ec=Z;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),r.createElement(d.Z,(0,l.Z)({builtinPlacements:void 0===F?E:F},X,{prefixCls:P,ref:er,popupClassName:i()(z,(0,s.Z)({},"".concat(P,"-show-arrow"),R)),popupStyle:H,action:W,showAction:U,hideAction:ec,popupPlacement:void 0===j?"bottomLeft":j,popupAlign:D,popupTransitionName:M,popupAnimation:L,popupVisible:en,stretch:(T=e.minOverlayWidthMatchTrigger,A=e.alignPoint,"minOverlayWidthMatchTrigger"in e?T:!A)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),es)}),x=n(48563),O=n(44329),k=n(35704),C=n(51761),T=n(67966),A=n(21467),I=n(65823),N=n(76564),R=n(86718),_=n(57499),P=n(95781),M=n(81642),L=n(24750),D=n(11303),j=n(202),F=n(25926),B=n(58854),U=n(89869),Z=n(76585),z=n(80316),H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(a)]:{["&".concat(a,"-danger:not(").concat(a,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},G=n(2638),$=n(8985);let W=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(i,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(i,"-btn-icon > ").concat(l,"-down")]:{fontSize:f}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(l,"-down")]:{fontSize:f},["".concat(l,"-down::before")]:{transition:"transform ".concat(s)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:j.fJ},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:j.Qt},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:j.Uw},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:j.ly}})},(0,U.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,D.Qy)(e)),{["".concat(n,"-item-group-title")]:{padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorTextDescription,transition:"all ".concat(s)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(s),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(s),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,D.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat((0,$.bf)(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat((0,$.bf)(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:p,backgroundColor:g,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})}},[(0,j.oN)(e,"slide-up"),(0,j.oN)(e,"slide-down"),(0,F.Fm)(e,"move-up"),(0,F.Fm)(e,"move-down"),(0,B._y)(e,"zoom-big")]]};var V=(0,Z.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=(0,z.TS)(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[W(a),H(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,U.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,G.w)(e))),q=n(92935);let Y=e=>{let t;let{menu:n,arrow:a,prefixCls:l,children:s,trigger:c,disabled:u,dropdownRender:d,getPopupContainer:p,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:E=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:A=!0,placement:D="",overlay:j,transitionName:F}=e,{getPopupContainer:B,getPrefixCls:U,direction:Z,dropdown:z}=r.useContext(_.E_);(0,N.ln)("Dropdown");let H=r.useMemo(()=>{let e=U();return void 0!==F?F:D.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")},[U,D,F]),G=r.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===Z?"bottomRight":"bottomLeft",[D,Z]),$=U("dropdown",l),W=(0,q.Z)($),[Y,K,X]=V($,W),[,Q]=(0,L.ZP)(),J=r.Children.only(s),ee=(0,I.Tm)(J,{className:i()("".concat($,"-trigger"),{["".concat($,"-rtl")]:"rtl"===Z},J.props.className),disabled:u}),et=u?[]:c;et&&et.includes("contextMenu")&&(t=!0);let[en,er]=(0,O.Z)(!1,{value:null!=h?h:v}),eo=(0,x.zX)(e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),er(e)}),ea=i()(f,m,K,X,W,null==z?void 0:z.className,{["".concat($,"-rtl")]:"rtl"===Z}),ei=(0,T.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:A,offset:Q.marginXXS,arrowWidth:a?Q.sizePopupArrow:0,borderRadius:Q.borderRadius}),el=r.useCallback(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==b||b(!1,{source:"menu"}),er(!1))},[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[es,ec]=(0,C.Cn)("Dropdown",null==g?void 0:g.zIndex),eu=r.createElement(w,Object.assign({alignPoint:t},(0,k.Z)(e,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:S,visible:en,builtinPlacements:ei,arrow:!!a,overlayClassName:ea,prefixCls:$,getPopupContainer:p||B,transitionName:H,trigger:et,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(P.Z,Object.assign({},n)):"function"==typeof j?j():j,d&&(e=d(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(M.J,{prefixCls:"".concat($,"-menu"),rootClassName:i()(X,W),expandIcon:r.createElement("span",{className:"".concat($,"-menu-submenu-arrow")},r.createElement(o.Z,{className:"".concat($,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:el,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:eo,overlayStyle:Object.assign(Object.assign(Object.assign({},null==z?void 0:z.style),g),{zIndex:es})}),ee);return es&&(eu=r.createElement(R.Z.Provider,{value:ec},eu)),Y(eu)},K=(0,A.Z)(Y,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});Y._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(K,Object.assign({},e),r.createElement("span",null));var X=n(31413),Q=n(1861),J=n(65270),ee=n(92801),et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let en=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(_.E_),{prefixCls:a,type:l="default",danger:s,disabled:c,loading:u,onClick:d,htmlType:p,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:v,trigger:y,align:E,open:S,onOpenChange:w,placement:x,getPopupContainer:O,href:k,icon:C=r.createElement(X.Z,null),title:T,buttonsRender:A=e=>e,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L}=e,D=et(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",a),F={menu:g,arrow:h,autoFocus:b,align:E,disabled:c,trigger:c?[]:y,onOpenChange:w,getPopupContainer:O||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L},{compactSize:B,compactItemClassnames:U}=(0,ee.ri)(j,o),Z=i()("".concat(j,"-button"),U,m);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement="rtl"===o?"bottomLeft":"bottomRight";let[z,H]=A([r.createElement(Q.ZP,{type:l,danger:s,disabled:c,loading:u,onClick:d,htmlType:p,href:k,title:T},f),r.createElement(Q.ZP,{type:l,danger:s,icon:C})]);return r.createElement(J.Z.Compact,Object.assign({className:Z,size:B,block:!0},D),z,r.createElement(Y,Object.assign({},F),H))};en.__ANT_BUTTON=!0,Y.Button=en;var er=Y},47137:function(e,t,n){n.d(t,{RV:function(){return s},Rk:function(){return c},Ux:function(){return d},aM:function(){return u},pg:function(){return p},q3:function(){return i},qI:function(){return l}});var r=n(64090),o=n(76570),a=n(35704);let i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),s=e=>{let t=(0,a.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},c=r.createContext({prefixCls:""}),u=r.createContext({}),d=e=>{let{children:t,status:n,override:o}=e,a=(0,r.useContext)(u),i=(0,r.useMemo)(()=>{let e=Object.assign({},a);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,a]);return r.createElement(u.Provider,{value:i},t)},p=(0,r.createContext)(void 0)},8443:function(e,t,n){var r=n(64090),o=n(47137);let a=["outlined","borderless","filled"];t.Z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=(0,r.useContext)(o.pg);t=void 0!==e?e:!1===n?"borderless":null!=i?i:"outlined";let l=a.includes(t);return[t,l]}},81583:function(e,t,n){n.d(t,{Z:function(){return eD}});var r=n(63787),o=n(16480),a=n.n(o),i=n(49367),l=n(64090),s=n(47387),c=n(47137);function u(e){let[t,n]=l.useState(e);return l.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var d=n(8985),p=n(11303),f=n(58854),m=n(46154),g=n(80316),h=n(76585),b=e=>{let{componentCls:t}=e,n="".concat(t,"-show-help"),r="".concat(t,"-show-help-item");return{[n]:{transition:"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:"height ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n transform ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut," !important"),["&".concat(r,"-appear, &").concat(r,"-enter")]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},["&".concat(r,"-leave-active")]:{transform:"translateY(-5px)"}}}}};let v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:"".concat((0,d.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:"0 0 0 ".concat((0,d.bf)(e.controlOutlineWidth)," ").concat(e.controlOutline)},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{let{formItemCls:n}=e;return{[n]:{["".concat(n,"-label > label")]:{height:t},["".concat(n,"-control-input")]:{minHeight:t}}}},E=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),v(e)),{["".concat(t,"-text")]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},S=e=>{let{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},["&-hidden,\n &-hidden.".concat(o,"-row")]:{display:"none"},"&-has-warning":{["".concat(t,"-split")]:{color:e.colorError}},"&-has-error":{["".concat(t,"-split")]:{color:e.colorWarning}},["".concat(t,"-label")]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,["> ".concat(n)]:{fontSize:e.fontSize,verticalAlign:"top"},["&".concat(t,"-required:not(").concat(t,"-required-mark-optional)::before")]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-optional")]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-tooltip")]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},["&".concat(t,"-no-colon::after")]:{content:'"\\a0"'}}},["".concat(t,"-control")]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,["&:first-child:not([class^=\"'".concat(o,"-col-'\"]):not([class*=\"' ").concat(o,"-col-'\"])")]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:"color ".concat(e.motionDurationMid," ").concat(e.motionEaseOut)},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},["&-with-help ".concat(t,"-explain")]:{height:"auto",opacity:1},["".concat(t,"-feedback-icon")]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-horizontal")]:{["".concat(n,"-label")]:{flexGrow:0},["".concat(n,"-control")]:{flex:"1 1 0",minWidth:0},["".concat(n,"-label[class$='-24'], ").concat(n,"-label[class*='-24 ']")]:{["& + ".concat(n,"-control")]:{minWidth:"unset"}}}}},x=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-inline")]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},["> ".concat(n,"-label,\n > ").concat(n,"-control")]:{display:"inline-block",verticalAlign:"top"},["> ".concat(n,"-label")]:{flex:"none"},["".concat(t,"-text")]:{display:"inline-block"},["".concat(n,"-has-feedback")]:{display:"inline-block"}}}}},O=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(n," ").concat(n,"-label")]:O(e),["".concat(t,":not(").concat(t,"-inline)")]:{[n]:{flexWrap:"wrap",["".concat(n,"-label, ").concat(n,"-control")]:{['&:not([class*=" '.concat(r,'-col-xs"])')]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},C=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(t,"-vertical")]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},["".concat(t,"-item-control")]:{width:"100%"}}},["".concat(t,"-vertical ").concat(n,"-label,\n .").concat(r,"-col-24").concat(n,"-label,\n .").concat(r,"-col-xl-24").concat(n,"-label")]:O(e),["@media (max-width: ".concat((0,d.bf)(e.screenXSMax),")")]:[k(e),{[t]:{[".".concat(r,"-col-xs-24").concat(n,"-label")]:O(e)}}],["@media (max-width: ".concat((0,d.bf)(e.screenSMMax),")")]:{[t]:{[".".concat(r,"-col-sm-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenMDMax),")")]:{[t]:{[".".concat(r,"-col-md-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenLGMax),")")]:{[t]:{[".".concat(r,"-col-lg-24").concat(n,"-label")]:O(e)}}}},T=(e,t)=>(0,g.TS)(e,{formItemCls:"".concat(e.componentCls,"-item"),rootPrefixCls:t});var A=(0,h.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t,r=T(e,n);return[E(r),S(r),b(r),w(r),x(r),C(r),(0,m.Z)(r),f.kr]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:"0 0 ".concat(e.paddingXS,"px"),verticalLabelMargin:0}),{order:-1e3}),I=n(92935);let N=[];function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:"".concat(t,"-").concat(r),error:e,errorStatus:n}}var _=e=>{let{help:t,helpStatus:n,errors:o=N,warnings:d=N,className:p,fieldId:f,onVisibleChanged:m}=e,{prefixCls:g}=l.useContext(c.Rk),h="".concat(g,"-item-explain"),b=(0,I.Z)(g),[v,y,E]=A(g,b),S=(0,l.useMemo)(()=>(0,s.Z)(g),[g]),w=u(o),x=u(d),O=l.useMemo(()=>null!=t?[R(t,"help",n)]:[].concat((0,r.Z)(w.map((e,t)=>R(e,"error","error",t))),(0,r.Z)(x.map((e,t)=>R(e,"warning","warning",t)))),[t,n,w,x]),k={};return f&&(k.id="".concat(f,"_help")),v(l.createElement(i.ZP,{motionDeadline:S.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!O.length,onVisibleChanged:m},e=>{let{className:t,style:n}=e;return l.createElement("div",Object.assign({},k,{className:a()(h,t,E,b,p,y),style:n,role:"alert"}),l.createElement(i.V4,Object.assign({keys:O},(0,s.Z)(g),{motionName:"".concat(g,"-show-help-item"),component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:i}=e;return l.createElement("div",{key:t,className:a()(o,{["".concat(h,"-").concat(r)]:r}),style:i},n)}))}))},P=n(76570),M=n(57499),L=n(17094),D=n(10693),j=n(97303);let F=e=>"object"==typeof e&&null!=e&&1===e.nodeType,B=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,U=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,z=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},H=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];let{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!F(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,f=[],m=e;for(;F(m)&&d(m);){if((m=z(m))===p){f.push(m);break}null!=m&&m===document.body&&U(m)&&!U(document.documentElement)||null!=m&&U(m,u)&&f.push(m)}let g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:E,top:S,right:w,bottom:x,left:O}=e.getBoundingClientRect(),{top:k,right:C,bottom:T,left:A}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===l||"nearest"===l?S-k:"end"===l?x+T:S+y/2-k+T,N="center"===s?O+E/2-A+C:"end"===s?w+C:O-A,R=[];for(let e=0;e=0&&O>=0&&x<=h&&w<=g&&S>=o&&x<=c&&O>=u&&w<=a)break;let d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),A=0,_=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-T:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===l?I:"end"===l?I-h:"nearest"===l?Z(v,v+h,h,k,T,v+I,v+I+y,y):I-h/2,_="start"===s?N:"center"===s?N-g/2:"end"===s?N-g:Z(b,b+g,g,m,C,b+N,b+N+E,E),A=Math.max(0,A+v),_=Math.max(0,_+b);else{A="start"===l?I-o-k:"end"===l?I-c+T+M:"nearest"===l?Z(o,c,n,k,T+M,I,I+y,y):I-(o+n/2)+M/2,_="start"===s?N-u-m:"center"===s?N-(u+r/2)+P/2:"end"===s?N-a+C+P:Z(u,a,r,m,C+P,N,N+E,E);let{scrollLeft:e,scrollTop:i}=t;A=0===D?0:Math.max(0,Math.min(i+A/D,t.scrollHeight-n/D+M)),_=0===L?0:Math.max(0,Math.min(e+_/L,t.scrollWidth-r/L+P)),I+=i-A,N+=e-_}R.push({el:t,top:A,left:_})}return R},G=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"},$=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function V(e,t){if(!e.length)return;let n=e.join("_");return t?"".concat(t,"_").concat(n):$.includes(n)?"".concat("form_item","_").concat(n):n}function q(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function Y(e){return W(e).join("_")}function K(e){let[t]=(0,P.cI)(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let r=Y(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=V(W(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(H(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:a,left:i}of H(e,G(t))){let e=a-n.top+n.bottom,t=i-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{let t=Y(e);return n.current[t]}}),[e,t]);return[r]}var X=n(12519),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=l.forwardRef((e,t)=>{let n=l.useContext(L.Z),{getPrefixCls:r,direction:o,form:i}=l.useContext(M.E_),{prefixCls:s,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:b,labelCol:v,wrapperCol:y,hideRequiredMark:E,layout:S="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:O,name:k,style:C,feedbackIcons:T,variant:N}=e,R=Q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=(0,D.Z)(p),F=l.useContext(X.Z),B=(0,l.useMemo)(()=>void 0!==x?x:!E&&(!i||void 0===i.requiredMark||i.requiredMark),[E,x,i]),U=null!=g?g:null==i?void 0:i.colon,Z=r("form",s),z=(0,I.Z)(Z),[H,G,$]=A(Z,z),W=a()(Z,"".concat(Z,"-").concat(S),{["".concat(Z,"-hide-required-mark")]:!1===B,["".concat(Z,"-rtl")]:"rtl"===o,["".concat(Z,"-").concat(_)]:_},$,z,G,null==i?void 0:i.className,u,d),[V]=K(m),{__INTERNAL__:q}=V;q.name=k;let Y=(0,l.useMemo)(()=>({name:k,labelAlign:h,labelCol:v,labelWrap:b,wrapperCol:y,vertical:"vertical"===S,colon:U,requiredMark:B,itemRef:q.itemRef,form:V,feedbackIcons:T}),[k,h,v,y,S,U,B,V,T]);l.useImperativeHandle(t,()=>V);let J=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),V.scrollToField(t,n)}};return H(l.createElement(c.pg.Provider,{value:N},l.createElement(L.n,{disabled:f},l.createElement(j.Z.Provider,{value:_},l.createElement(c.RV,{validateMessages:F},l.createElement(c.q3.Provider,{value:Y},l.createElement(P.ZP,Object.assign({id:k},R,{name:k,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==w){J(w,t);return}i&&void 0!==i.scrollToFirstError&&J(i.scrollToFirstError,t)}},form:V,style:Object.assign(Object.assign({},null==i?void 0:i.style),C),className:W}))))))))});var ee=n(89211),et=n(74084),en=n(65823),er=n(76564),eo=n(33054);let ea=()=>{let{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(c.aM);return{status:e,errors:t,warnings:n}};ea.Context=c.aM;var ei=n(19223),el=n(73193),es=n(24800),ec=n(35704),eu=n(5056),ed=n(90791);let ep=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{["".concat(t,"-control")]:{display:"flex"}}}};var ef=(0,h.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;return[ep(T(e,n))]}),em=e=>{let{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:s,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h="".concat(t,"-item"),b=l.useContext(c.q3),v=r||b.wrapperCol||{},y=a()("".concat(h,"-control"),v.className),E=l.useMemo(()=>Object.assign({},b),[b]);delete E.labelCol,delete E.wrapperCol;let S=l.createElement("div",{className:"".concat(h,"-control-input")},l.createElement("div",{className:"".concat(h,"-control-input-content")},o)),w=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=null!==m||i.length||s.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(c.Rk.Provider,{value:w},l.createElement(_,{fieldId:f,errors:i,warnings:s,help:p,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,O={};f&&(O.id="".concat(f,"_extra"));let k=d?l.createElement("div",Object.assign({},O,{className:"".concat(h,"-extra")}),d):null,C=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:S,errorList:x,extra:k}):l.createElement(l.Fragment,null,S,x,k);return l.createElement(c.q3.Provider,{value:E},l.createElement(ed.Z,Object.assign({},v,{className:y}),C),l.createElement(ef,{prefixCls:t}))},eg=n(14749),eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},eb=n(60688),ev=l.forwardRef(function(e,t){return l.createElement(eb.Z,(0,eg.Z)({},e,{ref:t,icon:eh}))}),ey=n(79474),eE=n(70595),eS=n(1460),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ex=e=>{var t;let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:s,colon:u,required:d,requiredMark:p,tooltip:f}=e,[m]=(0,eE.Z)("Form"),{vertical:g,labelAlign:h,labelCol:b,labelWrap:v,colon:y}=l.useContext(c.q3);if(!r)return null;let E=i||b||{},S="".concat(n,"-item-label"),w=a()(S,"left"===(s||h)&&"".concat(S,"-left"),E.className,{["".concat(S,"-wrap")]:!!v}),x=r,O=!0===u||!1!==y&&!1!==u;O&&!g&&"string"==typeof r&&""!==r.trim()&&(x=r.replace(/[:|:]\s*$/,""));let k=f?"object"!=typeof f||l.isValidElement(f)?{title:f}:f:null;if(k){let{icon:e=l.createElement(ev,null)}=k,t=ew(k,["icon"]),r=l.createElement(eS.Z,Object.assign({},t),l.cloneElement(e,{className:"".concat(n,"-item-tooltip"),title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,r)}let C="optional"===p,T="function"==typeof p;T?x=p(x,{required:!!d}):C&&!d&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:"".concat(n,"-item-optional"),title:""},(null==m?void 0:m.optional)||(null===(t=ey.Z.Form)||void 0===t?void 0:t.optional))));let A=a()({["".concat(n,"-item-required")]:d,["".concat(n,"-item-required-mark-optional")]:C||T,["".concat(n,"-item-no-colon")]:!O});return l.createElement(ed.Z,Object.assign({},E,{className:w}),l.createElement("label",{htmlFor:o,className:A,title:"string"==typeof r?r:""},x))},eO=n(99537),ek=n(77136),eC=n(20653),eT=n(66155);let eA={success:eO.Z,warning:eC.Z,error:ek.Z,validating:eT.Z};function eI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:s,meta:u,noStyle:d}=e,p="".concat(s,"-item"),{feedbackIcons:f}=l.useContext(c.q3),m=q(n,r,u,null,!!o,i),{isFormItemInput:g,status:h,hasFeedback:b,feedbackIcon:v}=l.useContext(c.aM),y=l.useMemo(()=>{var e;let t;if(o){let i=!0!==o&&o.icons||f,s=m&&(null===(e=null==i?void 0:i({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),c=m&&eA[m];t=!1!==s&&c?l.createElement("span",{className:a()("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(m))},s||l.createElement(c,null)):null}let i={status:m||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return d&&(i.status=(null!=m?m:h)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=o?o:b),i.feedbackIcon=void 0!==o?i.feedbackIcon:v),i},[m,o,d,g,h]);return l.createElement(c.aM.Provider,{value:y},t)}var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eR(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:s,warnings:d,validateStatus:p,meta:f,hasFeedback:m,hidden:g,children:h,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:E}=e,S=eN(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),w="".concat(t,"-item"),{requiredMark:x}=l.useContext(c.q3),O=l.useRef(null),k=u(s),C=u(d),T=null!=i,A=!!(T||s.length||d.length),I=!!O.current&&(0,el.Z)(O.current),[N,R]=l.useState(null);(0,es.Z)(()=>{A&&O.current&&R(parseInt(getComputedStyle(O.current).marginBottom,10))},[A,I]);let _=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return q(e?k:f.errors,e?C:f.warnings,f,"",!!m,p)}(),P=a()(w,n,r,{["".concat(w,"-with-help")]:T||k.length||C.length,["".concat(w,"-has-feedback")]:_&&m,["".concat(w,"-has-success")]:"success"===_,["".concat(w,"-has-warning")]:"warning"===_,["".concat(w,"-has-error")]:"error"===_,["".concat(w,"-is-validating")]:"validating"===_,["".concat(w,"-hidden")]:g});return l.createElement("div",{className:P,style:o,ref:O},l.createElement(eu.Z,Object.assign({className:"".concat(w,"-row")},(0,ec.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(ex,Object.assign({htmlFor:b},e,{requiredMark:x,required:null!=v?v:y,prefixCls:t})),l.createElement(em,Object.assign({},e,f,{errors:k,warnings:C,prefixCls:t,status:_,help:i,marginBottom:N,onErrorVisibleChanged:e=>{e||R(null)}}),l.createElement(c.qI.Provider,{value:E},l.createElement(eI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:_},h)))),!!N&&l.createElement("div",{className:"".concat(w,"-margin-offset"),style:{marginBottom:-N}}))}let e_=l.memo(e=>{let{children:t}=e;return t},(e,t)=>(function(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function eP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eM=function(e){let{name:t,noStyle:n,className:o,dependencies:i,prefixCls:s,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:b,hidden:v,help:y}=e,{getPrefixCls:E}=l.useContext(M.E_),{name:S}=l.useContext(c.q3),w=function(e){if("function"==typeof e)return e;let t=(0,eo.Z)(e);return t.length<=1?t[0]:t}(p),x="function"==typeof w,O=l.useContext(c.qI),{validateTrigger:k}=l.useContext(P.zb),C=void 0!==b?b:k,T=null!=t,N=E("form",s),R=(0,I.Z)(N),[_,L,D]=A(N,R);(0,er.ln)("Form.Item");let j=l.useContext(P.ZM),F=l.useRef(),[B,U]=function(e){let[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),a=(0,l.useRef)(!1);return l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ei.Z.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=(0,ei.Z)(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[Z,z]=(0,ee.Z)(()=>eP()),H=(e,t)=>{U(n=>{let o=Object.assign({},n),a=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[a]:o[a]=e,o})},[G,$]=l.useMemo(()=>{let e=(0,r.Z)(Z.errors),t=(0,r.Z)(Z.warnings);return Object.values(B).forEach(n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))}),[e,t]},[B,Z.errors,Z.warnings]),q=function(){let{itemRef:e}=l.useContext(c.q3),t=l.useRef({});return function(n,r){let o=r&&"object"==typeof r&&r.ref,a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=(0,et.sQ)(e(n),o)),t.current.ref}}();function Y(t,r,i){return n&&!v?l.createElement(eI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:Z,errors:G,warnings:$,noStyle:!0},t):l.createElement(eR,Object.assign({key:"row"},e,{className:a()(o,D,R,L),prefixCls:N,fieldId:r,isRequired:i,errors:G,warnings:$,meta:Z,onSubItemMetaChange:H}),t)}if(!T&&!x&&!i)return _(Y(w));let K={};return"string"==typeof m?K.label=m:t&&(K.label=String(t)),g&&(K=Object.assign(Object.assign({},K),g)),_(l.createElement(P.gN,Object.assign({},e,{messageVariables:K,trigger:h,validateTrigger:C,onMetaChange:e=>{let t=null==j?void 0:j.getKey(e.name);if(z(e.destroy?eP():e,!0),n&&!1!==y&&O){let n=e.name;if(e.destroy)n=F.current||n;else if(void 0!==t){let[e,o]=t;n=[e].concat((0,r.Z)(o)),F.current=n}O(e,n)}}}),(n,o,a)=>{let s=W(t).length&&o?o.name:[],c=V(s,S),p=void 0!==f?f:!!(d&&d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return t&&t.required&&!t.warningOnly}return!1})),m=Object.assign({},n),g=null;if(Array.isArray(w)&&T)g=w;else if(x&&(!(u||i)||T));else if(!i||x||T){if((0,en.l$)(w)){let t=Object.assign(Object.assign({},w.props),m);if(t.id||(t.id=c),y||G.length>0||$.length>0||e.extra){let n=[];(y||G.length>0)&&n.push("".concat(c,"_help")),e.extra&&n.push("".concat(c,"_extra")),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,et.Yr)(w)&&(t.ref=q(s,w)),new Set([].concat((0,r.Z)(W(h)),(0,r.Z)(W(C)))).forEach(e=>{t[e]=function(){for(var t,n,r,o=arguments.length,a=Array(o),i=0;it.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};J.Item=eM,J.List=e=>{var{prefixCls:t,children:n}=e,r=eL(e,["prefixCls","children"]);let{getPrefixCls:o}=l.useContext(M.E_),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(P.aV,Object.assign({},r),(e,t,r)=>l.createElement(c.Rk.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},J.ErrorList=_,J.useForm=K,J.useFormInstance=function(){let{form:e}=(0,l.useContext)(c.q3);return e},J.useWatch=P.qo,J.Provider=c.RV,J.create=()=>{};var eD=J},12519:function(e,t,n){var r=n(64090);t.Z=(0,r.createContext)(void 0)},24305:function(e,t,n){let r=(0,n(64090).createContext)({});t.Z=r},90791:function(e,t,n){var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(24305),s=n(37148),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let u=["xs","sm","md","lg","xl","xxl"],d=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o}=r.useContext(i.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:b,pull:v,className:y,children:E,flex:S,style:w}=e,x=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=n("col",f),[k,C,T]=(0,s.cG)(O),A={};u.forEach(t=>{let n={},r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete x[t],A=Object.assign(Object.assign({},A),{["".concat(O,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(O,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(O,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(O,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(O,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(O,"-").concat(t,"-flex-").concat(n.flex)]:n.flex||"auto"===n.flex,["".concat(O,"-rtl")]:"rtl"===o})});let I=a()(O,{["".concat(O,"-").concat(m)]:void 0!==m,["".concat(O,"-order-").concat(g)]:g,["".concat(O,"-offset-").concat(h)]:h,["".concat(O,"-push-").concat(b)]:b,["".concat(O,"-pull-").concat(v)]:v},y,A,C,T),N={};if(d&&d[0]>0){let e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return S&&(N.flex="number"==typeof S?"".concat(S," ").concat(S," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(S)?"0 0 ".concat(S):S,!1!==p||N.minWidth||(N.minWidth=0)),k(r.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},N),w),className:I,ref:t}),E))});t.Z=d},5056:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(64090),o=n(16480),a=n.n(o),i=n(24750);let l=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),c=e=>{let t=[].concat(l).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),a="screen".concat(o,"Min"),i="screen".concat(o);if(!(e[a]<=e[i]))throw Error("".concat(a,"<=").concat(i," fails : !(").concat(e[a],"<=").concat(e[i],")"));if(rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m(e,t){let[n,o]=r.useState("string"==typeof e?e:""),a=()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{a()},[JSON.stringify(e),t]),n}var g=r.forwardRef((e,t)=>{let{prefixCls:n,justify:o,align:g,className:h,style:b,children:v,gutter:y=0,wrap:E}=e,S=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=r.useContext(u.E_),[O,k]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,T]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=m(g,C),I=m(o,C),N=r.useRef(y),R=function(){let[,e]=(0,i.ZP)(),t=s(c(e));return r.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}();r.useEffect(()=>{let e=R.subscribe(e=>{T(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&k(e)});return()=>R.unsubscribe(e)},[]);let _=w("row",n),[P,M,L]=(0,p.VM)(_),D=(()=>{let e=[void 0,void 0];return(Array.isArray(y)?y:[y,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(D[0]/2):void 0;B&&(F.marginLeft=B,F.marginRight=B),[,F.rowGap]=D;let[U,Z]=D,z=r.useMemo(()=>({gutter:[U,Z],wrap:E}),[U,Z,E]);return P(r.createElement(d.Z.Provider,{value:z},r.createElement("div",Object.assign({},S,{className:j,style:Object.assign(Object.assign({},F),b),ref:t}),v)))})},37148:function(e,t,n){n.d(t,{VM:function(){return u},cG:function(){return d}});var r=n(8985),o=n(76585),a=n(80316);let i=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{let{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o["".concat(n).concat(t,"-").concat(e)]={display:"none"},o["".concat(n,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:0},o["".concat(n).concat(t,"-order-").concat(e)]={order:0}):(o["".concat(n).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/r*100,"%"),maxWidth:"".concat(e/r*100,"%")}],o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-order-").concat(e)]={order:e});return o},s=(e,t)=>l(e,t),c=(e,t,n)=>({["@media (min-width: ".concat((0,r.bf)(t),")")]:Object.assign({},s(e,n))}),u=(0,o.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),d=(0,o.I$)("Grid",e=>{let t=(0,a.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>c(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},88707:function(e,t,n){n.d(t,{Z:function(){return em}});var r=n(64090),o=n(20383),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c=n(16480),u=n.n(c),d=n(50833),p=n(6976),f=n(80406),m=n(6787),g=n(47365),h=n(65127);function b(){return"function"==typeof BigInt}function v(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function y(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function E(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function S(e){var t=String(e);if(E(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(E(e)){if(e>Number.MAX_SAFE_INTEGER)return String(b()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":y("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),k=function(){function e(t){if((0,g.Z)(this,e),(0,d.Z)(this,"origin",""),(0,d.Z)(this,"number",void 0),(0,d.Z)(this,"empty",void 0),v(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,h.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}();function C(e){return b()?new O(e):new k(e)}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=y(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?T(C(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var A=n(90089),I=n(24800),N=n(74084),R=n(53850),_=n(76158),P=function(){var e=(0,r.useState)(!1),t=(0,f.Z)(e,2),n=t[0],o=t[1];return(0,I.Z)(function(){o((0,_.Z)())},[]),n},M=n(19223);function L(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,l=e.downDisabled,s=e.onStep,c=r.useRef(),p=r.useRef([]),f=r.useRef();f.current=s;var m=function(){clearTimeout(c.current)},g=function(e,t){e.preventDefault(),m(),f.current(t),c.current=setTimeout(function e(){f.current(t),c.current=setTimeout(e,200)},600)};if(r.useEffect(function(){return function(){m(),p.current.forEach(function(e){return M.Z.cancel(e)})}},[]),P())return null;var h="".concat(t,"-handler"),b=u()(h,"".concat(h,"-up"),(0,d.Z)({},"".concat(h,"-up-disabled"),i)),v=u()(h,"".concat(h,"-down"),(0,d.Z)({},"".concat(h,"-down-disabled"),l)),y=function(){return p.current.push((0,M.Z)(m))},E={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:b}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:v}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function D(e){var t="number"==typeof e?w(e):y(e).fullStr;return t.includes(".")?y(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var j=n(8002),F=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],B=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],U=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Z=function(e){var t=C(e);return t.isInvalidate()?null:t},z=r.forwardRef(function(e,t){var n,o,i,l,s,c=e.prefixCls,g=void 0===c?"rc-input-number":c,h=e.className,b=e.style,v=e.min,y=e.max,E=e.step,O=void 0===E?1:E,k=e.defaultValue,A=e.value,_=e.disabled,P=e.readOnly,j=e.upHandler,B=e.downHandler,z=e.keyboard,H=e.wheel,G=e.controls,$=(e.classNames,e.stringMode),W=e.parser,V=e.formatter,q=e.precision,Y=e.decimalSeparator,K=e.onChange,X=e.onInput,Q=e.onPressEnter,J=e.onStep,ee=e.changeOnBlur,et=void 0===ee||ee,en=(0,m.Z)(e,F),er="".concat(g,"-input"),eo=r.useRef(null),ea=r.useState(!1),ei=(0,f.Z)(ea,2),el=ei[0],es=ei[1],ec=r.useRef(!1),eu=r.useRef(!1),ed=r.useRef(!1),ep=r.useState(function(){return C(null!=A?A:k)}),ef=(0,f.Z)(ep,2),em=ef[0],eg=ef[1],eh=r.useCallback(function(e,t){return t?void 0:q>=0?q:Math.max(S(e),S(O))},[q,O]),eb=r.useCallback(function(e){var t=String(e);if(W)return W(t);var n=t;return Y&&(n=n.replace(Y,".")),n.replace(/[^\w.-]+/g,"")},[W,Y]),ev=r.useRef(""),ey=r.useCallback(function(e,t){if(V)return V(e,{userTyping:t,input:String(ev.current)});var n="number"==typeof e?w(e):e;if(!t){var r=eh(n,t);x(n)&&(Y||r>=0)&&(n=T(n,Y||".",r))}return n},[V,eh,Y]),eE=r.useState(function(){var e=null!=k?k:A;return em.isInvalidate()&&["string","number"].includes((0,p.Z)(e))?Number.isNaN(e)?"":e:ey(em.toString(),!1)}),eS=(0,f.Z)(eE,2),ew=eS[0],ex=eS[1];function eO(e,t){ex(ey(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ev.current=ew;var ek=r.useMemo(function(){return Z(y)},[y,q]),eC=r.useMemo(function(){return Z(v)},[v,q]),eT=r.useMemo(function(){return!(!ek||!em||em.isInvalidate())&&ek.lessEquals(em)},[ek,em]),eA=r.useMemo(function(){return!(!eC||!em||em.isInvalidate())&&em.lessEquals(eC)},[eC,em]),eI=(n=eo.current,o=(0,r.useRef)(null),[function(){try{var e=n.selectionStart,t=n.selectionEnd,r=n.value,a=r.substring(0,e),i=r.substring(t);o.current={start:e,end:t,value:r,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(n&&o.current&&el)try{var e=n.value,t=o.current,r=t.beforeTxt,a=t.afterTxt,i=t.start,l=e.length;if(e.endsWith(a))l=e.length-o.current.afterTxt.length;else if(e.startsWith(r))l=r.length;else{var s=r[i-1],c=e.indexOf(s,i-1);-1!==c&&(l=c+1)}n.setSelectionRange(l,l)}catch(e){(0,R.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),eN=(0,f.Z)(eI,2),eR=eN[0],e_=eN[1],eP=function(e){return ek&&!e.lessEquals(ek)?ek:eC&&!eC.lessEquals(e)?eC:null},eM=function(e){return!eP(e)},eL=function(e,t){var n=e,r=eM(n)||n.isEmpty();if(n.isEmpty()||t||(n=eP(n)||n,r=!0),!P&&!_&&r){var o,a=n.toString(),i=eh(a,t);return i>=0&&!eM(n=C(T(a,".",i)))&&(n=C(T(a,".",i,!0))),n.equals(em)||(o=n,void 0===A&&eg(o),null==K||K(n.isEmpty()?null:U($,n)),void 0===A&&eO(n,t)),n}return em},eD=(i=(0,r.useRef)(0),l=function(){M.Z.cancel(i.current)},(0,r.useEffect)(function(){return l},[]),function(e){l(),i.current=(0,M.Z)(function(){e()})}),ej=function e(t){if(eR(),ev.current=t,ex(t),!eu.current){var n=C(eb(t));n.isNaN()||eL(n,!0)}null==X||X(t),eD(function(){var n=t;W||(n=t.replace(/。/g,".")),n!==t&&e(n)})},eF=function(e){if((!e||!eT)&&(e||!eA)){ec.current=!1;var t,n=C(ed.current?D(O):O);e||(n=n.negate());var r=eL((em||C(0)).add(n.toString()),!1);null==J||J(U($,r),{offset:ed.current?D(O):O,type:e?"up":"down"}),null===(t=eo.current)||void 0===t||t.focus()}},eB=function(e){var t=C(eb(ew)),n=t;n=t.isNaN()?eL(em,e):eL(t,e),void 0!==A?eO(em,!1):n.isNaN()||eO(n,!1)};return r.useEffect(function(){var e=function(e){!1!==H&&(eF(e.deltaY<0),e.preventDefault())},t=eo.current;if(t)return t.addEventListener("wheel",e),function(){return t.removeEventListener("wheel",e)}},[eF]),(0,I.o)(function(){em.isInvalidate()||eO(em,!1)},[q,V]),(0,I.o)(function(){var e=C(A);eg(e);var t=C(eb(ew));e.equals(t)&&ec.current&&!V||eO(e,ec.current)},[A]),(0,I.o)(function(){V&&e_()},[ew]),r.createElement("div",{className:u()(g,h,(s={},(0,d.Z)(s,"".concat(g,"-focused"),el),(0,d.Z)(s,"".concat(g,"-disabled"),_),(0,d.Z)(s,"".concat(g,"-readonly"),P),(0,d.Z)(s,"".concat(g,"-not-a-number"),em.isNaN()),(0,d.Z)(s,"".concat(g,"-out-of-range"),!em.isInvalidate()&&!eM(em)),s)),style:b,onFocus:function(){es(!0)},onBlur:function(){et&&eB(!1),es(!1),ec.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;ec.current=!0,ed.current=n,"Enter"===t&&(eu.current||(ec.current=!1),eB(!1),null==Q||Q(e)),!1!==z&&!eu.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eF("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){ec.current=!1,ed.current=!1},onCompositionStart:function(){eu.current=!0},onCompositionEnd:function(){eu.current=!1,ej(eo.current.value)},onBeforeInput:function(){ec.current=!0}},(void 0===G||G)&&r.createElement(L,{prefixCls:g,upNode:j,downNode:B,upDisabled:eT,downDisabled:eA,onStep:eF}),r.createElement("div",{className:"".concat(er,"-wrap")},r.createElement("input",(0,a.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":em.isInvalidate()?null:em.toString(),step:O},en,{ref:(0,N.sQ)(eo,t),className:er,value:ew,onChange:function(e){ej(e.target.value)},disabled:_,readOnly:P}))))}),H=r.forwardRef(function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,f=e.classNames,g=(0,m.Z)(e,B),h=r.useRef(null);return r.createElement(A.Q,{className:p,triggerFocus:function(e){h.current&&(0,j.nH)(h.current,e)},prefixCls:i,value:l,disabled:n,style:o,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},r.createElement(z,(0,a.Z)({prefixCls:i,disabled:n,ref:(0,N.sQ)(h,t),className:null==f?void 0:f.input},g)))});H.displayName="InputNumber";var G=n(47794),$=n(57499),W=n(54165),V=n(17094),q=n(92935),Y=n(10693),K=n(47137),X=n(8443),Q=n(92801),J=n(8985),ee=n(94759),et=n(85980),en=n(61892),er=n(11303),eo=n(12288),ea=n(76585),ei=n(80316),el=n(6336);let es=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e,a="lg"===t?o:r;return{["&-".concat(t)]:{["".concat(n,"-handler-wrap")]:{borderStartEndRadius:a,borderEndEndRadius:a},["".concat(n,"-handler-up")]:{borderStartEndRadius:a},["".concat(n,"-handler-down")]:{borderEndEndRadius:a}}}},ec=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:b,handleBg:v,handleActiveBg:y,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:w,controlWidth:x,handleOpacity:O,handleBorderColor:k,filledHandleBg:C,lineHeightLG:T,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.ik)(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:o}),(0,en.qG)(e,{["".concat(t,"-handler-wrap")]:{background:v,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}}})),(0,en.H8)(e,{["".concat(t,"-handler-wrap")]:{background:C,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}},"&:focus-within":{["".concat(t,"-handler-wrap")]:{background:v}}})),(0,en.Mu)(e)),{"&-rtl":{direction:"rtl",["".concat(t,"-input")]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:w,["input".concat(t,"-input")]:{height:A(i).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(d)," ").concat((0,J.bf)(p))}},"&-sm":{padding:0,borderRadius:S,["input".concat(t,"-input")]:{height:A(l).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(u)," ").concat((0,J.bf)(c))}},"&-out-of-range":{["".concat(t,"-input-wrap")]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",["".concat(t,"-affix-wrapper")]:{width:"100%"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:S}}},(0,en.ir)(e)),(0,en.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled ".concat(t,"-input")]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),{width:"100%",padding:"".concat((0,J.bf)(b)," ").concat((0,J.bf)(h)),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:"all ".concat(m," linear"),appearance:"textfield",fontSize:"inherit"}),(0,ee.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({["&:hover ".concat(t,"-handler-wrap, &-focused ").concat(t,"-handler-wrap")]:{opacity:1},["".concat(t,"-handler-wrap")]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity ".concat(m," linear ").concat(m),["".concat(t,"-handler")]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},["".concat(t,"-handler")]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k),transition:"all ".concat(m," linear"),"&:active":{background:y},"&:hover":{height:"60%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,er.Ro)()),{color:f,transition:"all ".concat(m," linear"),userSelect:"none"})},["".concat(t,"-handler-up")]:{borderStartEndRadius:o},["".concat(t,"-handler-down")]:{borderEndEndRadius:o}},es(e,"lg")),es(e,"sm")),{"&-disabled, &-readonly":{["".concat(t,"-handler-wrap")]:{display:"none"},["".concat(t,"-input")]:{color:"inherit"}},["\n ".concat(t,"-handler-up-disabled,\n ").concat(t,"-handler-down-disabled\n ")]:{cursor:"not-allowed"},["\n ".concat(t,"-handler-up-disabled:hover &-handler-up-inner,\n ").concat(t,"-handler-down-disabled:hover &-handler-down-inner\n ")]:{color:E}})}]},eu=e=>{let{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign({["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(n)," 0")}},(0,ee.ik)(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(u)," 0")}},"&-sm":{borderRadius:l,paddingInlineStart:c,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(d)," 0")}},["&:not(".concat(t,"-disabled):hover")]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > ".concat(t,"-disabled")]:{background:"transparent"},["> div".concat(t)]:{width:"100%",border:"none",outline:"none",["&".concat(t,"-focused")]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t,"-handler-wrap")]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}};var ed=(0,ea.I$)("InputNumber",e=>{let t=(0,ei.TS)(e,(0,et.e)(e));return[ec(t),eu(t),(0,eo.c)(t)]},e=>{var t;let n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,et.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new el.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})},{unitless:{handleOpacity:!0}}),ep=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ef=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:a}=r.useContext($.E_),i=r.useRef(null);r.useImperativeHandle(t,()=>i.current);let{className:l,rootClassName:c,size:d,disabled:p,prefixCls:f,addonBefore:m,addonAfter:g,prefix:h,bordered:b,readOnly:v,status:y,controls:E,variant:S}=e,w=ep(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),x=n("input-number",f),O=(0,q.Z)(x),[k,C,T]=ed(x,O),{compactSize:A,compactItemClassnames:I}=(0,Q.ri)(x,a),N=r.createElement(s,{className:"".concat(x,"-handler-up-inner")}),R=r.createElement(o.Z,{className:"".concat(x,"-handler-down-inner")});"object"==typeof E&&(N=void 0===E.upIcon?N:r.createElement("span",{className:"".concat(x,"-handler-up-inner")},E.upIcon),R=void 0===E.downIcon?R:r.createElement("span",{className:"".concat(x,"-handler-down-inner")},E.downIcon));let{hasFeedback:_,status:P,isFormItemInput:M,feedbackIcon:L}=r.useContext(K.aM),D=(0,G.F)(P,y),j=(0,Y.Z)(e=>{var t;return null!==(t=null!=d?d:A)&&void 0!==t?t:e}),F=r.useContext(V.Z),[B,U]=(0,X.Z)(S,b),Z=_&&r.createElement(r.Fragment,null,L),z=u()({["".concat(x,"-lg")]:"large"===j,["".concat(x,"-sm")]:"small"===j,["".concat(x,"-rtl")]:"rtl"===a,["".concat(x,"-in-form-item")]:M},C),W="".concat(x,"-group");return k(r.createElement(H,Object.assign({ref:i,disabled:null!=p?p:F,className:u()(T,O,l,c,I),upHandler:N,downHandler:R,prefixCls:x,readOnly:v,controls:"boolean"==typeof E?E:void 0,prefix:h,suffix:Z,addonAfter:g&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},g)),addonBefore:m&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},m)),classNames:{input:z,variant:u()({["".concat(x,"-").concat(B)]:U},(0,G.Z)(x,D,_)),affixWrapper:u()({["".concat(x,"-affix-wrapper-sm")]:"small"===j,["".concat(x,"-affix-wrapper-lg")]:"large"===j,["".concat(x,"-affix-wrapper-rtl")]:"rtl"===a},C),wrapper:u()({["".concat(W,"-rtl")]:"rtl"===a},C),groupWrapper:u()({["".concat(x,"-group-wrapper-sm")]:"small"===j,["".concat(x,"-group-wrapper-lg")]:"large"===j,["".concat(x,"-group-wrapper-rtl")]:"rtl"===a,["".concat(x,"-group-wrapper-").concat(B)]:U},(0,G.Z)("".concat(x,"-group-wrapper"),D,_),C)}},w)))});ef._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(W.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(ef,Object.assign({},e)));var em=ef},88921:function(e,t,n){n.d(t,{Z:function(){return w},n:function(){return S}});var r=n(64090),o=n(16480),a=n.n(o),i=n(90089),l=n(74084),s=n(47794),c=n(57499),u=n(17094),d=n(10693),p=n(47137),f=n(92801),m=n(52274),g=n(94759),h=n(92935),b=n(8443),v=n(77136),y=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(v.Z,null)}),t},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function S(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var w=(0,r.forwardRef)((e,t)=>{var n;let{prefixCls:o,bordered:v=!0,status:S,size:w,disabled:x,onBlur:O,onFocus:k,suffix:C,allowClear:T,addonAfter:A,addonBefore:I,className:N,style:R,styles:_,rootClassName:P,onChange:M,classNames:L,variant:D}=e,j=E(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:F,direction:B,input:U}=r.useContext(c.E_),Z=F("input",o),z=(0,r.useRef)(null),H=(0,h.Z)(Z),[G,$,W]=(0,g.ZP)(Z,H),{compactSize:V,compactItemClassnames:q}=(0,f.ri)(Z,B),Y=(0,d.Z)(e=>{var t;return null!==(t=null!=w?w:V)&&void 0!==t?t:e}),K=r.useContext(u.Z),{status:X,hasFeedback:Q,feedbackIcon:J}=(0,r.useContext)(p.aM),ee=(0,s.F)(X,S),et=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!Q;(0,r.useRef)(et);let en=(0,m.Z)(z,!0),er=(Q||C)&&r.createElement(r.Fragment,null,C,Q&&J),eo=y(T),[ea,ei]=(0,b.Z)(D,v);return G(r.createElement(i.Z,Object.assign({ref:(0,l.sQ)(t,z),prefixCls:Z,autoComplete:null==U?void 0:U.autoComplete},j,{disabled:null!=x?x:K,onBlur:e=>{en(),null==O||O(e)},onFocus:e=>{en(),null==k||k(e)},style:Object.assign(Object.assign({},null==U?void 0:U.style),R),styles:Object.assign(Object.assign({},null==U?void 0:U.styles),_),suffix:er,allowClear:eo,className:a()(N,P,W,H,q,null==U?void 0:U.className),onChange:e=>{en(),null==M||M(e)},addonAfter:A&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},A)),addonBefore:I&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},L),null==U?void 0:U.classNames),{input:a()({["".concat(Z,"-sm")]:"small"===Y,["".concat(Z,"-lg")]:"large"===Y,["".concat(Z,"-rtl")]:"rtl"===B},null==L?void 0:L.input,null===(n=null==U?void 0:U.classNames)||void 0===n?void 0:n.input,$),variant:a()({["".concat(Z,"-").concat(ea)]:ei},(0,s.Z)(Z,ee)),affixWrapper:a()({["".concat(Z,"-affix-wrapper-sm")]:"small"===Y,["".concat(Z,"-affix-wrapper-lg")]:"large"===Y,["".concat(Z,"-affix-wrapper-rtl")]:"rtl"===B},$),wrapper:a()({["".concat(Z,"-group-rtl")]:"rtl"===B},$),groupWrapper:a()({["".concat(Z,"-group-wrapper-sm")]:"small"===Y,["".concat(Z,"-group-wrapper-lg")]:"large"===Y,["".concat(Z,"-group-wrapper-rtl")]:"rtl"===B,["".concat(Z,"-group-wrapper-").concat(ea)]:ei},(0,s.Z)("".concat(Z,"-group-wrapper"),ee,Q),$)})})))})},78578:function(e,t,n){n.d(t,{Z:function(){return F}});var r,o=n(64090),a=n(77136),i=n(16480),l=n.n(i),s=n(14749),c=n(50833),u=n(5239),d=n(63787),p=n(80406),f=n(6787),m=n(90089),g=n(44607),h=n(8002),b=n(44329),v=n(6976),y=n(46505),E=n(24800),S=n(19223),w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={},O=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=o.forwardRef(function(e,t){var n=e.prefixCls,a=(e.onPressEnter,e.defaultValue),i=e.value,d=e.autoSize,m=e.onResize,g=e.className,h=e.style,k=e.disabled,C=e.onChange,T=(e.onInternalAutoSize,(0,f.Z)(e,O)),A=(0,b.Z)(a,{value:i,postState:function(e){return null!=e?e:""}}),I=(0,p.Z)(A,2),N=I[0],R=I[1],_=o.useRef();o.useImperativeHandle(t,function(){return{textArea:_.current}});var P=o.useMemo(function(){return d&&"object"===(0,v.Z)(d)?[d.minRows,d.maxRows]:[]},[d]),M=(0,p.Z)(P,2),L=M[0],D=M[1],j=!!d,F=function(){try{if(document.activeElement===_.current){var e=_.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;_.current.setSelectionRange(t,n),_.current.scrollTop=r}}catch(e){}},B=o.useState(2),U=(0,p.Z)(B,2),Z=U[0],z=U[1],H=o.useState(),G=(0,p.Z)(H,2),$=G[0],W=G[1],V=function(){z(0)};(0,E.Z)(function(){j&&V()},[i,L,D,j]),(0,E.Z)(function(){if(0===Z)z(1);else if(1===Z){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:w.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(x[n]=l),l}(e,n),l=i.paddingSize,s=i.borderSize,c=i.boxSizing,u=i.sizingStyle;r.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=l),null!==o||null!==a){r.value=" ";var m=r.scrollHeight-l;null!==o&&(d=m*o,"border-box"===c&&(d=d+l+s),f=Math.max(d,f)),null!==a&&(p=m*a,"border-box"===c&&(p=p+l+s),t=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:t,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(_.current,!1,L,D);z(2),W(e)}else F()},[Z]);var q=o.useRef(),Y=function(){S.Z.cancel(q.current)};o.useEffect(function(){return Y},[]);var K=(0,u.Z)((0,u.Z)({},h),j?$:null);return(0===Z||1===Z)&&(K.overflowY="hidden",K.overflowX="hidden"),o.createElement(y.Z,{onResize:function(e){2===Z&&(null==m||m(e),d&&(Y(),q.current=(0,S.Z)(function(){V()})))},disabled:!(d||m)},o.createElement("textarea",(0,s.Z)({},T,{ref:_,style:K,className:l()(n,g,(0,c.Z)({},"".concat(n,"-disabled"),k)),disabled:k,value:N,onChange:function(e){R(e.target.value),null==C||C(e)}})))}),C=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],T=o.forwardRef(function(e,t){var n,r,a,i=e.defaultValue,v=e.value,y=e.onFocus,E=e.onBlur,S=e.onChange,w=e.allowClear,x=e.maxLength,O=e.onCompositionStart,T=e.onCompositionEnd,A=e.suffix,I=e.prefixCls,N=void 0===I?"rc-textarea":I,R=e.showCount,_=e.count,P=e.className,M=e.style,L=e.disabled,D=e.hidden,j=e.classNames,F=e.styles,B=e.onResize,U=(0,f.Z)(e,C),Z=(0,b.Z)(i,{value:v,defaultValue:i}),z=(0,p.Z)(Z,2),H=z[0],G=z[1],$=null==H?"":String(H),W=o.useState(!1),V=(0,p.Z)(W,2),q=V[0],Y=V[1],K=o.useRef(!1),X=o.useState(null),Q=(0,p.Z)(X,2),J=Q[0],ee=Q[1],et=(0,o.useRef)(null),en=function(){var e;return null===(e=et.current)||void 0===e?void 0:e.textArea},er=function(){en().focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:et.current,focus:er,blur:function(){en().blur()}}}),(0,o.useEffect)(function(){Y(function(e){return!L&&e})},[L]);var eo=o.useState(null),ea=(0,p.Z)(eo,2),ei=ea[0],el=ea[1];o.useEffect(function(){if(ei){var e;(e=en()).setSelectionRange.apply(e,(0,d.Z)(ei))}},[ei]);var es=(0,g.Z)(_,R),ec=null!==(n=es.max)&&void 0!==n?n:x,eu=Number(ec)>0,ed=es.strategy($),ep=!!ec&&ed>ec,ef=function(e,t){var n=t;!K.current&&es.exceedFormatter&&es.max&&es.strategy(t)>es.max&&(n=es.exceedFormatter(t,{max:es.max}),t!==n&&el([en().selectionStart||0,en().selectionEnd||0])),G(n),(0,h.rJ)(e.currentTarget,e,S,n)},em=A;es.show&&(a=es.showFormatter?es.showFormatter({value:$,count:ed,maxLength:ec}):"".concat(ed).concat(eu?" / ".concat(ec):""),em=o.createElement(o.Fragment,null,em,o.createElement("span",{className:l()("".concat(N,"-data-count"),null==j?void 0:j.count),style:null==F?void 0:F.count},a)));var eg=!U.autoSize&&!R&&!w;return o.createElement(m.Q,{value:$,allowClear:w,handleReset:function(e){G(""),er(),(0,h.rJ)(en(),e,S)},suffix:em,prefixCls:N,classNames:(0,u.Z)((0,u.Z)({},j),{},{affixWrapper:l()(null==j?void 0:j.affixWrapper,(r={},(0,c.Z)(r,"".concat(N,"-show-count"),R),(0,c.Z)(r,"".concat(N,"-textarea-allow-clear"),w),r))}),disabled:L,focused:q,className:l()(P,ep&&"".concat(N,"-out-of-range")),style:(0,u.Z)((0,u.Z)({},M),J&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof a?a:void 0}},hidden:D},o.createElement(k,(0,s.Z)({},U,{maxLength:x,onKeyDown:function(e){var t=U.onPressEnter,n=U.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){ef(e,e.target.value)},onFocus:function(e){Y(!0),null==y||y(e)},onBlur:function(e){Y(!1),null==E||E(e)},onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:function(e){K.current=!1,ef(e,e.currentTarget.value),null==T||T(e)},className:l()(null==j?void 0:j.textarea),style:(0,u.Z)((0,u.Z)({},null==F?void 0:F.textarea),{},{resize:null==M?void 0:M.resize}),disabled:L,prefixCls:N,onResize:function(e){var t;null==B||B(e),null!==(t=en())&&void 0!==t&&t.style.height&&ee(!0)},ref:et})))}),A=n(47794),I=n(57499),N=n(17094),R=n(10693),_=n(47137),P=n(88921),M=n(94759),L=n(92935),D=n(8443),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},F=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:i,bordered:s=!0,size:c,disabled:u,status:d,allowClear:p,classNames:f,rootClassName:m,className:g,variant:h}=e,b=j(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:v,direction:y}=o.useContext(I.E_),E=(0,R.Z)(c),S=o.useContext(N.Z),{status:w,hasFeedback:x,feedbackIcon:O}=o.useContext(_.aM),k=(0,A.F)(w,d),C=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,P.n)(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}});let F=v("input",i);"object"==typeof p&&(null==p?void 0:p.clearIcon)?r=p:p&&(r={clearIcon:o.createElement(a.Z,null)});let B=(0,L.Z)(F),[U,Z,z]=(0,M.ZP)(F,B),[H,G]=(0,D.Z)(h,s);return U(o.createElement(T,Object.assign({},b,{disabled:null!=u?u:S,allowClear:r,className:l()(z,B,g,m),classNames:Object.assign(Object.assign({},f),{textarea:l()({["".concat(F,"-sm")]:"small"===E,["".concat(F,"-lg")]:"large"===E},Z,null==f?void 0:f.textarea),variant:l()({["".concat(F,"-").concat(H)]:G},(0,A.Z)(F,k)),affixWrapper:l()("".concat(F,"-textarea-affix-wrapper"),{["".concat(F,"-affix-wrapper-rtl")]:"rtl"===y,["".concat(F,"-affix-wrapper-sm")]:"small"===E,["".concat(F,"-affix-wrapper-lg")]:"large"===E,["".concat(F,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},Z)}),prefixCls:F,suffix:x&&o.createElement("span",{className:"".concat(F,"-textarea-suffix")},O),ref:C})))})},52274:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);function o(e,t){let n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}},44839:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(47137),s=n(94759),c=n(88921),u=n(14749),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=n(60688),f=r.forwardRef(function(e,t){return r.createElement(p.Z,(0,u.Z)({},e,{ref:t,icon:d}))}),m=n(41311),g=n(35704),h=n(74084),b=n(52274),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=e=>e?r.createElement(m.Z,null):r.createElement(f,null),E={click:"onClick",hover:"onMouseOver"},S=r.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[l,s]=(0,r.useState)(()=>!!o&&n.visible),u=(0,r.useRef)(null);r.useEffect(()=>{o&&s(n.visible)},[o,n]);let d=(0,b.Z)(u),p=()=>{let{disabled:t}=e;t||(l&&d(),s(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:f,prefixCls:m,inputPrefixCls:S,size:w}=e,x=v(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=r.useContext(i.E_),k=O("input",S),C=O("input-password",m),T=n&&(t=>{let{action:n="click",iconRender:o=y}=e,a=E[n]||"",i=o(l);return r.cloneElement(r.isValidElement(i)?i:r.createElement("span",null,i),{[a]:p,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}})})(C),A=a()(C,f,{["".concat(C,"-").concat(w)]:!!w}),I=Object.assign(Object.assign({},(0,g.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:A,prefixCls:k,suffix:T});return w&&(I.size=w),r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(t,u)},I))});var w=n(96871),x=n(65823),O=n(1861),k=n(10693),C=n(92801),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=r.forwardRef((e,t)=>{let n;let{prefixCls:o,inputPrefixCls:l,className:s,size:u,suffix:d,enterButton:p=!1,addonAfter:f,loading:m,disabled:g,onSearch:b,onChange:v,onCompositionStart:y,onCompositionEnd:E}=e,S=T(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:A,direction:I}=r.useContext(i.E_),N=r.useRef(!1),R=A("input-search",o),_=A("input",l),{compactSize:P}=(0,C.ri)(R,I),M=(0,k.Z)(e=>{var t;return null!==(t=null!=u?u:P)&&void 0!==t?t:e}),L=r.useRef(null),D=e=>{var t;document.activeElement===(null===(t=L.current)||void 0===t?void 0:t.input)&&e.preventDefault()},j=e=>{var t,n;b&&b(null===(n=null===(t=L.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},F="boolean"==typeof p?r.createElement(w.Z,null):null,B="".concat(R,"-button"),U=p||{},Z=U.type&&!0===U.type.__ANT_BUTTON;n=Z||"button"===U.type?(0,x.Tm)(U,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==U?void 0:U.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),j(e)},key:"enterButton"},Z?{className:B,size:M}:{})):r.createElement(O.ZP,{className:B,type:p?"primary":void 0,size:M,disabled:g,key:"enterButton",onMouseDown:D,onClick:j,loading:m,icon:F},p),f&&(n=[n,(0,x.Tm)(f,{key:"addonAfter"})]);let z=a()(R,{["".concat(R,"-rtl")]:"rtl"===I,["".concat(R,"-").concat(M)]:!!M,["".concat(R,"-with-button")]:!!p},s);return r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(L,t),onPressEnter:e=>{N.current||m||j(e)}},S,{size:M,onCompositionStart:e=>{N.current=!0,null==y||y(e)},onCompositionEnd:e=>{N.current=!1,null==E||E(e)},prefixCls:_,addonAfter:n,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),v&&v(e)},className:z,disabled:g}))});var I=n(78578);let N=c.Z;N.Group=e=>{let{getPrefixCls:t,direction:n}=(0,r.useContext)(i.E_),{prefixCls:o,className:c}=e,u=t("input-group",o),d=t("input"),[p,f]=(0,s.ZP)(d),m=a()(u,{["".concat(u,"-lg")]:"large"===e.size,["".concat(u,"-sm")]:"small"===e.size,["".concat(u,"-compact")]:e.compact,["".concat(u,"-rtl")]:"rtl"===n},f,c),g=(0,r.useContext)(l.aM),h=(0,r.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return p(r.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(l.aM.Provider,{value:h},e.children)))},N.Search=A,N.TextArea=I.Z,N.Password=S;var R=N},94759:function(e,t,n){n.d(t,{ik:function(){return f},nz:function(){return u},s7:function(){return m}});var r=n(8985),o=n(11303),a=n(12288),i=n(76585),l=n(80316),s=n(85980),c=n(61892);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:"".concat((0,r.bf)(t)," ").concat((0,r.bf)(a)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},p=e=>({padding:"".concat((0,r.bf)(e.paddingBlockSM)," ").concat((0,r.bf)(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat((0,r.bf)(e.paddingBlock)," ").concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},u(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},d(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},p(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat((0,r.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),f(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat((0,r.bf)(e.inputAffixPadding))}}}},b=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},f(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{["".concat(l).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:i}}})}},v=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},(0,c.ir)(e)),(0,c.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{let{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover,&:focus,&:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},E=e=>{let{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{["> ".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(r,"-has-feedback")]:{["".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},S=e=>{let{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}};t.ZP=(0,i.I$)("Input",e=>{let t=(0,l.TS)(e,(0,s.e)(e));return[g(t),E(t),b(t),v(t),y(t),S(t),(0,a.c)(t)]},s.T)},85980:function(e,t,n){n.d(t,{T:function(){return a},e:function(){return o}});var r=n(80316);function o(e){return(0,r.TS)(e,{inputAffixPadding:e.paddingXXS})}let a=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:"0 0 0 ".concat(g,"px ").concat(h),errorActiveShadow:"0 0 0 ".concat(g,"px ").concat(b),warningActiveShadow:"0 0 0 ".concat(g,"px ").concat(v),hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}}},61892:function(e,t,n){n.d(t,{H8:function(){return g},Mu:function(){return p},S5:function(){return b},ir:function(){return d},qG:function(){return c}});var r=n(8985),o=n(80316);let a=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},a((0,o.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},l(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},i(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),f=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},f(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})})},8407:function(e,t,n){let r;n.d(t,{D:function(){return E},Z:function(){return w}});var o=n(64090),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},l=n(60688),s=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},u=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(50459),p=n(16480),f=n.n(p),m=n(35704),g=e=>!isNaN(parseFloat(e))&&isFinite(e),h=n(57499),b=n(31747),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=o.createContext({}),S=(r=0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r+=1,"".concat(e).concat(r)});var w=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:l=!1,theme:c="dark",style:p={},collapsible:w=!1,reverseArrow:x=!1,width:O=200,collapsedWidth:k=80,zeroWidthTriggerStyle:C,breakpoint:T,onCollapse:A,onBreakpoint:I}=e,N=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:R}=(0,o.useContext)(b.V),[_,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[M,L]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);let D=(t,n)=>{"collapsed"in e||P(t),null==A||A(t,n)},j=(0,o.useRef)();j.current=e=>{L(e.matches),null==I||I(e.matches),_!==e.matches&&D(e.matches,"responsive")},(0,o.useEffect)(()=>{let e;function t(e){return j.current(e)}{let{matchMedia:n}=window;if(n&&T&&T in y){e=n("screen and (max-width: ".concat(y[T],")"));try{e.addEventListener("change",t)}catch(n){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(n){null==e||e.removeListener(t)}}},[T]),(0,o.useEffect)(()=>{let e=S("ant-sider-");return R.addSider(e),()=>R.removeSider(e)},[]);let F=()=>{D(!_,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(h.E_),U=o.useMemo(()=>({siderCollapsed:_}),[_]);return o.createElement(E.Provider,{value:U},(()=>{let e=B("layout-sider",n),l=(0,m.Z)(N,["collapsed"]),h=_?k:O,b=g(h)?"".concat(h,"px"):String(h),v=0===parseFloat(String(k||0))?o.createElement("span",{onClick:F,className:f()("".concat(e,"-zero-width-trigger"),"".concat(e,"-zero-width-trigger-").concat(x?"right":"left")),style:C},a||o.createElement(s,null)):null,y={expanded:x?o.createElement(d.Z,null):o.createElement(u,null),collapsed:x?o.createElement(u,null):o.createElement(d.Z,null)}[_?"collapsed":"expanded"],E=null!==a?v||o.createElement("div",{className:"".concat(e,"-trigger"),onClick:F,style:{width:b}},a||y):null,S=Object.assign(Object.assign({},p),{flex:"0 0 ".concat(b),maxWidth:b,minWidth:b,width:b}),T=f()(e,"".concat(e,"-").concat(c),{["".concat(e,"-collapsed")]:!!_,["".concat(e,"-has-trigger")]:w&&null!==a&&!v,["".concat(e,"-below")]:!!M,["".concat(e,"-zero-width")]:0===parseFloat(b)},r);return o.createElement("aside",Object.assign({className:T},l,{style:S,ref:t}),o.createElement("div",{className:"".concat(e,"-children")},i),w||M&&v?E:null)})())})},31747:function(e,t,n){n.d(t,{V:function(){return r}});let r=n(64090).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},33509:function(e,t,n){n.d(t,{default:function(){return k}});var r=n(63787),o=n(64090),a=n(16480),i=n.n(a),l=n(35704),s=n(57499),c=n(31747),u=n(33054),d=n(8407),p=n(8985),f=n(76585),m=e=>{let{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{["".concat(t,"-sider-light")]:{background:r,["".concat(t,"-sider-trigger")]:{color:a,background:o},["".concat(t,"-sider-zero-width-trigger")]:{color:a,background:o,border:"1px solid ".concat(n),borderInlineStart:0}}}};let g=e=>{let{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:v,borderRadius:y,bodyBg:E,headerBg:S,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(h,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:(0,p.bf)(d),textAlign:"center",background:i,cursor:"pointer",transition:"all ".concat(h)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(b," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(b),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},m(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:l,padding:s,color:c,lineHeight:(0,p.bf)(l),background:S,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:r,fontSize:v,background:a},["".concat(n,"-content")]:{flex:"auto",minHeight:0}}};var h=(0,f.I$)("Layout",e=>[g(e)],e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(c,"px"),headerColor:o,footerPadding:"".concat(a,"px ").concat(c,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef((r,a)=>o.createElement(e,Object.assign({ref:a,suffixCls:t,tagName:n},r)))}let y=o.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=b(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=o.useContext(s.E_),d=u("layout",n),[p,f,m]=h(d),g=r?"".concat(d,"-").concat(r):d;return p(o.createElement(l,Object.assign({className:i()(n||g,a,f,m),ref:t},c)))}),E=o.forwardRef((e,t)=>{let{direction:n}=o.useContext(s.E_),[a,p]=o.useState([]),{prefixCls:f,className:m,rootClassName:g,children:v,hasSider:y,tagName:E,style:S}=e,w=b(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,l.Z)(w,["suffixCls"]),{getPrefixCls:O,layout:k}=o.useContext(s.E_),C=O("layout",f),T="boolean"==typeof y?y:!!a.length||(0,u.Z)(v).some(e=>e.type===d.Z),[A,I,N]=h(C),R=i()(C,{["".concat(C,"-has-sider")]:T,["".concat(C,"-rtl")]:"rtl"===n},null==k?void 0:k.className,m,g,I,N),_=o.useMemo(()=>({siderHook:{addSider:e=>{p(t=>[].concat((0,r.Z)(t),[e]))},removeSider:e=>{p(t=>t.filter(t=>t!==e))}}}),[]);return A(o.createElement(c.V.Provider,{value:_},o.createElement(E,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},null==k?void 0:k.style),S)},x),v)))}),S=v({tagName:"div",displayName:"Layout"})(E),w=v({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=v({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),O=v({suffixCls:"content",tagName:"main",displayName:"Content"})(y);S.Header=w,S.Footer=x,S.Content=O,S.Sider=d.Z,S._InternalSiderContext=d.D;var k=S},33302:function(e,t,n){let r=(0,n(64090).createContext)(void 0);t.Z=r},79474:function(e,t,n){n.d(t,{Z:function(){return i}});var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let o={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},r)},a="${label} is not a valid ${type}";var i={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:o,TimePicker:r,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},70595:function(e,t,n){var r=n(64090),o=n(33302),a=n(79474);t.Z=(e,t)=>{let n=r.useContext(o.Z);return[r.useMemo(()=>{var r;let o=t||a.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?a.Z.locale:e},[n])]}},81642:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(64090),o=n(48563),a=n(92801),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let l=r.createContext(null),s=r.forwardRef((e,t)=>{let{children:n}=e,s=i(e,["children"]),c=r.useContext(l),u=r.useMemo(()=>Object.assign(Object.assign({},c),s),[c,s.prefixCls,s.mode,s.selectable,s.rootClassName]),d=(0,o.t4)(n),p=(0,o.x1)(t,d?n.ref:null);return r.createElement(l.Provider,{value:u},r.createElement(a.BR,null,d?r.cloneElement(n,{ref:p}):n))});t.Z=l},95781:function(e,t,n){n.d(t,{Z:function(){return tg}});var r=n(64090),o=n(14749),a=n(50833),i=n(5239),l=n(63787),s=n(80406),c=n(6787),u=n(16480),d=n.n(u),p=n(54739),f=n(44329),m=n(92536),g=n(53850),h=n(89542),b=r.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(r.useContext(b),e)}var E=n(61475),S=["children","locked"],w=r.createContext(null);function x(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,S),a=r.useContext(w),l=(0,E.Z)(function(){var e;return e=(0,i.Z)({},a),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[a,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,m.Z)(e[1],t[1],!0))});return r.createElement(w.Provider,{value:l},t)}var O=r.createContext(null);function k(){return r.useContext(O)}var C=r.createContext([]);function T(e){var t=r.useContext(C);return r.useMemo(function(){return void 0!==e?[].concat((0,l.Z)(t),[e]):t},[t,e])}var A=r.createContext(null),I=r.createContext({}),N=n(73193);function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var _=n(4295),P=n(19223),M=_.Z.LEFT,L=_.Z.RIGHT,D=_.Z.UP,j=_.Z.DOWN,F=_.Z.ENTER,B=_.Z.ESC,U=_.Z.HOME,Z=_.Z.END,z=[D,j,M,L];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,l.Z)(e.querySelectorAll("*")).filter(function(e){return R(e,t)});return R(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var $=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(v(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},W="__RC_UTIL_PATH_SPLIT__",V=function(e){return e.join(W)},q="rc-menu-more";function Y(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(O.motionAppear=!1);var k=O.onVisibleChanged;return(O.onVisibleChanged=function(e){return h.current||e||E(!0),null==k?void 0:k(e)},y)?null:r.createElement(x,{mode:c,locked:!h.current},r.createElement(eC.ZP,(0,o.Z)({visible:S},O,{forceRender:p,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(e){var n=e.className,o=e.style;return r.createElement(eh,{id:t,className:n,style:o},l)}))}var eA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eI=["active"],eN=function(e){var t,n=e.style,l=e.className,u=e.title,f=e.eventKey,m=(e.warnKey,e.disabled),g=e.internalPopupClose,h=e.children,b=e.itemIcon,v=e.expandIcon,E=e.popupClassName,S=e.popupOffset,O=e.popupStyle,k=e.onClick,C=e.onMouseEnter,N=e.onMouseLeave,R=e.onTitleClick,_=e.onTitleMouseEnter,P=e.onTitleMouseLeave,M=(0,c.Z)(e,eA),L=y(f),D=r.useContext(w),j=D.prefixCls,F=D.mode,B=D.openKeys,U=D.disabled,Z=D.overflowDisabled,z=D.activeKey,H=D.selectedKeys,G=D.itemIcon,$=D.expandIcon,W=D.onItemClick,V=D.onOpenChange,q=D.onActive,K=r.useContext(I)._internalRenderSubMenuItem,X=r.useContext(A).isSubPathKey,Q=T(),J="".concat(j,"-submenu"),ee=U||m,et=r.useRef(),en=r.useRef(),er=null!=v?v:$,el=B.includes(f),ec=!Z&&el,eu=X(H,f),ed=eo(f,ee,_,P),ep=ed.active,ef=(0,c.Z)(ed,eI),em=r.useState(!1),eg=(0,s.Z)(em,2),eb=eg[0],ev=eg[1],ey=function(e){ee||ev(e)},eE=r.useMemo(function(){return ep||"inline"!==F&&(eb||X([z],f))},[F,ep,z,eb,f,X]),eS=ea(Q.length),ew=Y(function(e){null==k||k(es(e)),W(e)}),ex=L&&"".concat(L,"-popup"),eO=r.createElement("div",(0,o.Z)({role:"menuitem",style:eS,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":Z&&L?null:L,"aria-expanded":ec,"aria-haspopup":!0,"aria-controls":ex,"aria-disabled":ee,onClick:function(e){ee||(null==R||R({key:f,domEvent:e}),"inline"===F&&V(f,!el))},onFocus:function(){q(f)}},ef),u,r.createElement(ei,{icon:"horizontal"!==F?er:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ec,isSubMenu:!0})},r.createElement("i",{className:"".concat(J,"-arrow")}))),eC=r.useRef(F);if("inline"!==F&&Q.length>1?eC.current="vertical":eC.current=F,!Z){var eN=eC.current;eO=r.createElement(ek,{mode:eN,prefixCls:J,visible:!g&&ec&&"inline"!==F,popupClassName:E,popupOffset:S,popupStyle:O,popup:r.createElement(x,{mode:"horizontal"===eN?"vertical":eN},r.createElement(eh,{id:ex,ref:en},h)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(f,e)}},eO)}var eR=r.createElement(p.Z.Item,(0,o.Z)({role:"none"},M,{component:"li",style:n,className:d()(J,"".concat(J,"-").concat(F),l,(t={},(0,a.Z)(t,"".concat(J,"-open"),ec),(0,a.Z)(t,"".concat(J,"-active"),eE),(0,a.Z)(t,"".concat(J,"-selected"),eu),(0,a.Z)(t,"".concat(J,"-disabled"),ee),t)),onMouseEnter:function(e){ey(!0),null==C||C({key:f,domEvent:e})},onMouseLeave:function(e){ey(!1),null==N||N({key:f,domEvent:e})}}),eO,!Z&&r.createElement(eT,{id:ex,open:ec,keyPath:Q},h));return K&&(eR=K(eR,e,{selected:eu,active:eE,open:ec,disabled:ee})),r.createElement(x,{onItemClick:ew,mode:"horizontal"===F?"vertical":F,itemIcon:null!=b?b:G,expandIcon:er},eR)};function eR(e){var t,n=e.eventKey,o=e.children,a=T(n),i=ev(o,a),l=k();return r.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]),t=l?i:r.createElement(eN,e,i),r.createElement(C.Provider,{value:a},t)}var e_=n(6976),eP=["className","title","eventKey","children"],eM=["children"],eL=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=(0,c.Z)(e,eP),l=r.useContext(w).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},a))};function eD(e){var t=e.children,n=(0,c.Z)(e,eM),o=ev(t,T(n.eventKey));return k()?o:r.createElement(eL,(0,en.Z)(n,["warnKey"]),o)}function ej(e){var t=e.className,n=e.style,o=r.useContext(w).prefixCls;return k()?null:r.createElement("li",{role:"separator",className:d()("".concat(o,"-item-divider"),t),style:n})}var eF=["label","children","key","type"],eB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eU=[],eZ=r.forwardRef(function(e,t){var n,u,g,v,y,E,S,w,k,C,T,N,R,_,Q,J,ee,et,en,er,eo,ea,ei,el,ec,eu,ed,ep=e.prefixCls,ef=void 0===ep?"rc-menu":ep,eg=e.rootClassName,eh=e.style,eb=e.className,ey=e.tabIndex,eE=e.items,eS=e.children,ew=e.direction,ex=e.id,eO=e.mode,ek=void 0===eO?"vertical":eO,eC=e.inlineCollapsed,eT=e.disabled,eA=e.disabledOverflow,eI=e.subMenuOpenDelay,eN=e.subMenuCloseDelay,eP=e.forceSubMenuRender,eM=e.defaultOpenKeys,eL=e.openKeys,eZ=e.activeKey,ez=e.defaultActiveFirst,eH=e.selectable,eG=void 0===eH||eH,e$=e.multiple,eW=void 0!==e$&&e$,eV=e.defaultSelectedKeys,eq=e.selectedKeys,eY=e.onSelect,eK=e.onDeselect,eX=e.inlineIndent,eQ=e.motion,eJ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e4=e.expandIcon,e3=e.overflowedIndicator,e6=void 0===e3?"...":e3,e5=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e9=e.onClick,e7=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,c.Z)(e,eB),to=r.useMemo(function(){var e;return e=eS,eE&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,e_.Z)(t)){var a=t.label,i=t.children,l=t.key,s=t.type,u=(0,c.Z)(t,eF),d=null!=l?l:"tmp-".concat(n);return i||"group"===s?"group"===s?r.createElement(eD,(0,o.Z)({key:d},u,{title:a}),e(i)):r.createElement(eR,(0,o.Z)({key:d},u,{title:a}),e(i)):"divider"===s?r.createElement(ej,(0,o.Z)({key:d},u)):r.createElement(em,(0,o.Z)({key:d},u),a)}return null}).filter(function(e){return e})}(eE)),ev(e,eU)},[eS,eE]),ta=r.useState(!1),ti=(0,s.Z)(ta,2),tl=ti[0],ts=ti[1],tc=r.useRef(),tu=(n=(0,f.Z)(ex,{value:ex}),g=(u=(0,s.Z)(n,2))[0],v=u[1],r.useEffect(function(){X+=1;var e="".concat(K,"-").concat(X);v("rc-menu-uuid-".concat(e))},[]),g),td="rtl"===ew,tp=(0,f.Z)(eM,{value:eL,postState:function(e){return e||eU}}),tf=(0,s.Z)(tp,2),tm=tf[0],tg=tf[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tg(e),null==e7||e7(e)}t?(0,h.flushSync)(n):n()},tb=r.useState(tm),tv=(0,s.Z)(tb,2),ty=tv[0],tE=tv[1],tS=r.useRef(!1),tw=r.useMemo(function(){return("inline"===ek||"vertical"===ek)&&eC?["vertical",eC]:[ek,!1]},[ek,eC]),tx=(0,s.Z)(tw,2),tO=tx[0],tk=tx[1],tC="inline"===tO,tT=r.useState(tO),tA=(0,s.Z)(tT,2),tI=tA[0],tN=tA[1],tR=r.useState(tk),t_=(0,s.Z)(tR,2),tP=t_[0],tM=t_[1];r.useEffect(function(){tN(tO),tM(tk),tS.current&&(tC?tg(ty):th(eU))},[tO,tk]);var tL=r.useState(0),tD=(0,s.Z)(tL,2),tj=tD[0],tF=tD[1],tB=tj>=to.length-1||"horizontal"!==tI||eA;r.useEffect(function(){tC&&tE(tm)},[tm]),r.useEffect(function(){return tS.current=!0,function(){tS.current=!1}},[]);var tU=(y=r.useState({}),E=(0,s.Z)(y,2)[1],S=(0,r.useRef)(new Map),w=(0,r.useRef)(new Map),k=r.useState([]),T=(C=(0,s.Z)(k,2))[0],N=C[1],R=(0,r.useRef)(0),_=(0,r.useRef)(!1),Q=function(){_.current||E({})},J=(0,r.useCallback)(function(e,t){var n=V(t);w.current.set(n,e),S.current.set(e,n),R.current+=1;var r=R.current;Promise.resolve().then(function(){r===R.current&&Q()})},[]),ee=(0,r.useCallback)(function(e,t){var n=V(t);w.current.delete(n),S.current.delete(e)},[]),et=(0,r.useCallback)(function(e){N(e)},[]),en=(0,r.useCallback)(function(e,t){var n=(S.current.get(e)||"").split(W);return t&&T.includes(n[0])&&n.unshift(q),n},[T]),er=(0,r.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,r.useCallback)(function(e){var t="".concat(S.current.get(e)).concat(W),n=new Set;return(0,l.Z)(w.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(w.current.get(e))}),n},[]),r.useEffect(function(){return function(){_.current=!0}},[]),{registerPath:J,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,l.Z)(S.current.keys());return T.length&&e.push(q),e},getSubPathKeys:eo}),tZ=tU.registerPath,tz=tU.unregisterPath,tH=tU.refreshOverflowKeys,tG=tU.isSubPathKey,t$=tU.getKeyPath,tW=tU.getKeys,tV=tU.getSubPathKeys,tq=r.useMemo(function(){return{registerPath:tZ,unregisterPath:tz}},[tZ,tz]),tY=r.useMemo(function(){return{isSubPathKey:tG}},[tG]);r.useEffect(function(){tH(tB?eU:to.slice(tj+1).map(function(e){return e.key}))},[tj,tB]);var tK=(0,f.Z)(eZ||ez&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:eZ}),tX=(0,s.Z)(tK,2),tQ=tX[0],tJ=tX[1],t0=Y(function(e){tJ(e)}),t1=Y(function(){tJ(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r=$(tW(),tu),o=r.elements,a=r.key2element,i=r.element2key,l=H(tc.current,o),s=null!=tQ?tQ:l[0]?i.get(l[0]):null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,c=a.get(s);s&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}});var t2=(0,f.Z)(eV||[],{value:eq,postState:function(e){return Array.isArray(e)?e:null==e?eU:[e]}}),t4=(0,s.Z)(t2,2),t3=t4[0],t6=t4[1],t5=function(e){if(eG){var t,n=e.key,r=t3.includes(n);t6(t=eW?r?t3.filter(function(e){return e!==n}):[].concat((0,l.Z)(t3),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eK||eK(o):null==eY||eY(o)}!eW&&tm.length&&"inline"!==tI&&th(eU)},t8=Y(function(e){null==e9||e9(es(e)),t5(e)}),t9=Y(function(e,t){var n=tm.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tI){var r=tV(e);n=n.filter(function(e){return!r.has(e)})}(0,m.Z)(tm,n,!0)||th(n,!0)}),t7=(ea=function(e,t){var n=null!=t?t:!tm.includes(e);t9(e,n)},ei=r.useRef(),(el=r.useRef()).current=tQ,ec=function(){P.Z.cancel(ei.current)},r.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(z,[F,B,U,Z]).includes(t)){var n=tW(),r=$(n,tu),o=r,i=o.elements,l=o.key2element,s=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(tQ),i),u=s.get(c),d=function(e,t,n,r){var o,i,l,s,c="prev",u="next",d="children",p="parent";if("inline"===e&&r===F)return{inlineTrigger:!0};var f=(o={},(0,a.Z)(o,D,c),(0,a.Z)(o,j,u),o),m=(i={},(0,a.Z)(i,M,n?u:c),(0,a.Z)(i,L,n?c:u),(0,a.Z)(i,j,d),(0,a.Z)(i,F,d),i),g=(l={},(0,a.Z)(l,D,c),(0,a.Z)(l,j,u),(0,a.Z)(l,F,d),(0,a.Z)(l,B,p),(0,a.Z)(l,M,n?d:p),(0,a.Z)(l,L,n?p:d),l);switch(null===(s=({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(tI,1===t$(u,!0).length,td,t);if(!d&&t!==U&&t!==Z)return;(z.includes(t)||[U,Z].includes(t))&&e.preventDefault();var p=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=s.get(e);tJ(r),ec(),ei.current=(0,P.Z)(function(){el.current===r&&t.focus()})}};if([U,Z].includes(t)||d.sibling||!c){var f,m=H(f=c&&"inline"!==tI?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):tc.current,i);p(t===U?m[0]:t===Z?m[m.length-1]:G(f,i,c,d.offset))}else if(d.inlineTrigger)ea(u);else if(d.offset>0)ea(u,!0),ec(),ei.current=(0,P.Z)(function(){r=$(n,tu);var e=c.getAttribute("aria-controls");p(G(document.getElementById(e),r.elements))},5);else if(d.offset<0){var g=t$(u,!0),h=g[g.length-2],b=l.get(h);ea(h,!1),p(b)}}null==te||te(e)});r.useEffect(function(){ts(!0)},[]);var ne=r.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tI||eA?to:to.map(function(e,t){return r.createElement(x,{key:e.key,overflowDisabled:t>tj},e)}),nn=r.createElement(p.Z,(0,o.Z)({id:ex,ref:tc,prefixCls:"".concat(ef,"-overflow"),component:"ul",itemComponent:em,className:d()(ef,"".concat(ef,"-root"),"".concat(ef,"-").concat(tI),eb,(ed={},(0,a.Z)(ed,"".concat(ef,"-inline-collapsed"),tP),(0,a.Z)(ed,"".concat(ef,"-rtl"),td),ed),eg),dir:ew,style:eh,role:"menu",tabIndex:void 0===ey?0:ey,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return r.createElement(eR,{eventKey:q,title:e6,disabled:tB,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tI||eA?p.Z.INVALIDATE:p.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tF(e)},onKeyDown:t7},tr));return r.createElement(I.Provider,{value:ne},r.createElement(b.Provider,{value:tu},r.createElement(x,{prefixCls:ef,rootClassName:eg,mode:tI,openKeys:tm,rtl:td,disabled:eT,motion:tl?eQ:null,defaultMotions:tl?eJ:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t3,inlineIndent:void 0===eX?24:eX,subMenuOpenDelay:void 0===eI?.1:eI,subMenuCloseDelay:void 0===eN?.1:eN,forceSubMenuRender:eP,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e4,onItemClick:t8,onOpenChange:t9},r.createElement(A.Provider,{value:tY},nn),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(O.Provider,{value:tq},to)))))});eZ.Item=em,eZ.SubMenu=eR,eZ.ItemGroup=eD,eZ.Divider=ej;var ez=n(8407),eH=n(31413),eG=n(48563),e$=n(47387),eW=n(65823),eV=n(57499),eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eY=e=>{let{prefixCls:t,className:n,dashed:o}=e,a=eq(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=r.useContext(eV.E_),l=i("menu",t),s=d()({["".concat(l,"-item-divider-dashed")]:!!o},n);return r.createElement(ej,Object.assign({className:s},a))},eK=n(1460);let eX=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var eQ=e=>{var t;let{className:n,children:o,icon:a,title:i,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(eX),{siderCollapsed:m}=r.useContext(ez.D),g=i;void 0===i?g=c?o:"":!1===i&&(g="");let h={title:g};m||f||(h.title=null,h.open=!1);let b=(0,eb.Z)(o).length,v=r.createElement(em,Object.assign({},(0,en.Z)(e,["title","icon","danger"]),{className:d()({["".concat(s,"-item-danger")]:l,["".concat(s,"-item-only-child")]:(a?b+1:b)===1},n),title:"string"==typeof i?i:void 0}),(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),(e=>{let t=r.createElement("span",{className:"".concat(s,"-title-content")},o);return(!a||(0,eW.l$)(o)&&"span"===o.type)&&o&&e&&c&&"string"==typeof o?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},o.charAt(0)):t})(f));return p||(v=r.createElement(eK.Z,Object.assign({},h,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),v)),v},eJ=n(51761),e0=e=>{var t;let n;let{popupClassName:o,icon:a,title:i,theme:l}=e,s=r.useContext(eX),{prefixCls:c,inlineCollapsed:u,theme:p}=s,f=T();if(a){let e=(0,eW.l$)(i)&&"span"===i.type;n=r.createElement(r.Fragment,null,(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),e?i:r.createElement("span",{className:"".concat(c,"-title-content")},i))}else n=u&&!f.length&&i&&"string"==typeof i?r.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},i.charAt(0)):r.createElement("span",{className:"".concat(c,"-title-content")},i);let m=r.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=(0,eJ.Cn)("Menu");return r.createElement(eX.Provider,{value:m},r.createElement(eR,Object.assign({},(0,en.Z)(e,["icon"]),{title:n,popupClassName:d()(c,o,"".concat(c,"-").concat(l||p)),popupStyle:{zIndex:g}})))},e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},e2=n(81642),e4=n(8985),e3=n(6336),e6=n(11303),e5=n(46154),e8=n(202),e9=n(58854),e7=n(76585),te=n(80316),tt=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat((0,e4.bf)(a)," ").concat(i," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},tn=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(n),")")}}}}};let tr=e=>Object.assign({},(0,e6.oN)(e));var to=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:O,dangerItemSelectedBg:k,popupBg:C,itemHoverBg:T,itemActiveBg:A,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:P}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:i,["&".concat(n,"-root:focus-visible")]:Object.assign({},tr(e)),["".concat(n,"-item-group-title")]:{color:a},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(E," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:b}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}}},["".concat(n,"-item-danger")]:{color:S,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:w}},["&".concat(n,"-item:active")]:{background:O}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:x},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:s,["&".concat(n,"-item-danger")]:{backgroundColor:k}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},tr(e))},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:I},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:"".concat((0,e4.bf)(c)," solid transparent"),transition:"border-color ".concat(p," ").concat(f),content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat((0,e4.bf)(d)," ").concat(v," ").concat(y)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat((0,e4.bf)(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(h," ").concat(m),"opacity ".concat(h," ").concat(m)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:x}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(h," ").concat(f),"opacity ".concat(h," ").concat(f)].join(",")}}}}}};let ta=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(a).add(o).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:c}}};var ti=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:(0,e4.bf)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ta(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ta(e)),{boxShadow:m})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:a,maxHeight:"calc(100vh - ".concat((0,e4.bf)(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(p),"background ".concat(p),"padding ".concat(l," ").concat(s)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:b,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:b}},{["".concat(t,"-inline-collapsed")]:{width:g,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat((0,e4.bf)(e.calc(d).div(2).equal())," - ").concat((0,e4.bf)(u),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:h,lineHeight:(0,e4.bf)(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},e6.vS),{paddingInline:f})}}]};let tl=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(r," ").concat(a),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},(0,e6.Ro)()),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},ts=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(i),")")}}}}},tc=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},(0,e6.dF)()),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,e6.Wf)(e)),(0,e6.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat((0,e4.bf)(l)," ").concat((0,e4.bf)(s)),fontSize:y,lineHeight:v,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(i),"padding ".concat(o," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(o),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tl(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat((0,e4.bf)(e.calc(r).mul(2).equal())," ").concat((0,e4.bf)(s))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:"".concat((0,e4.bf)(b)," 0 0"),zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:p},tl(e)),ts(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:f},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(i)}})}}),ts(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(g),")")},"&::after":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat((0,e4.bf)(e.calc(m).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(g),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},tu=e=>{var t,n,r;let{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:E,padding:S,fontSize:w,controlHeightSM:x,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:C}=e,T=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new e3.C(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:"".concat(1.15*b,"px"),iconSize:w,iconMarginInlineEnd:x-w,collapsedIconSize:O,groupTitleFontSize:w,darkItemDisabledColor:new e3.C(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:a,itemWidth:T?"calc(100% + ".concat(A,"px)"):"calc(100% - ".concat(2*I,"px)")}};var td=n(92935),tp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tf=(0,r.forwardRef)((e,t)=>{var n,o;let a;let i=r.useContext(e2.Z),l=i||{},{getPrefixCls:s,getPopupContainer:c,direction:u,menu:p}=r.useContext(eV.E_),f=s(),{prefixCls:m,className:g,style:h,theme:b="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:E,siderCollapsed:S,items:w,children:x,rootClassName:O,mode:k,selectable:C,onClick:T,overflowedIndicatorPopupClassName:A}=e,I=tp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=(0,en.Z)(I,["collapsedWidth"]),R=r.useMemo(()=>w?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:o,children:a,key:i,type:l}=t,s=e1(t,["label","children","key","type"]),c=null!=i?i:"tmp-".concat(n);return a||"group"===l?"group"===l?r.createElement(eD,Object.assign({key:c},s,{title:o}),e(a)):r.createElement(e0,Object.assign({key:c},s,{title:o}),e(a)):"divider"===l?r.createElement(eY,Object.assign({key:c},s)):r.createElement(eQ,Object.assign({key:c},s),o)}return null}).filter(e=>e)}(w):w,[w])||x;null===(n=l.validator)||void 0===n||n.call(l,{mode:k});let _=(0,eG.zX)(function(){var e;null==T||T.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)}),P=l.mode||k,M=null!=C?C:l.selectable,L=r.useMemo(()=>void 0!==S?S:E,[E,S]),D={horizontal:{motionName:"".concat(f,"-slide-up")},inline:(0,e$.Z)(f),other:{motionName:"".concat(f,"-zoom-big")}},j=s("menu",m||l.prefixCls),F=(0,td.Z)(j),[B,U,Z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,e7.I$)("Menu",e=>{let{colorBgElevated:t,colorPrimary:n,colorTextLightSolid:r,controlHeightLG:o,fontSize:a,darkItemColor:i,darkDangerItemColor:l,darkItemBg:s,darkSubMenuItemBg:c,darkItemSelectedColor:u,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:f,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:h,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:y,popupBg:E,darkPopupBg:S}=e,w=e.calc(a).div(7).mul(5).equal(),x=(0,te.TS)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:t,calc:e.calc,popupBg:E}),O=(0,te.TS)(x,{itemColor:i,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:u,itemBg:s,popupBg:S,subMenuItemBg:c,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:h,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:v,dangerItemActiveBg:y,dangerItemSelectedBg:p,menuSubMenuBg:c,horizontalItemSelectedColor:r,horizontalItemSelectedBg:n});return[tc(x),tt(x),ti(x),to(x,"light"),to(O,"dark"),tn(x),(0,e5.Z)(x),(0,e8.oN)(x,"slide-up"),(0,e8.oN)(x,"slide-down"),(0,e9._y)(x,"zoom-big")]},tu,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}(j,F,!i),z=d()("".concat(j,"-").concat(b),null==p?void 0:p.className,g);if("function"==typeof v)a=v;else if(null===v||!1===v)a=null;else if(null===l.expandIcon||!1===l.expandIcon)a=null;else{let e=null!=v?v:l.expandIcon;a=(0,eW.Tm)(e,{className:d()("".concat(j,"-submenu-expand-icon"),(0,eW.l$)(e)?null===(o=e.props)||void 0===o?void 0:o.className:"")})}let H=r.useMemo(()=>({prefixCls:j,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:y}),[j,L,u,y,b]);return B(r.createElement(e2.Z.Provider,{value:null},r.createElement(eX.Provider,{value:H},r.createElement(eZ,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(eH.Z,null),overflowedIndicatorPopupClassName:d()(j,"".concat(j,"-").concat(b),A),mode:P,selectable:M,onClick:_},N,{inlineCollapsed:L,style:Object.assign(Object.assign({},null==p?void 0:p.style),h),className:z,prefixCls:j,direction:u,defaultMotions:D,expandIcon:a,ref:t,rootClassName:d()(O,U,l.rootClassName,Z,F)}),R))))}),tm=(0,r.forwardRef)((e,t)=>{let n=(0,r.useRef)(null),o=r.useContext(ez.D);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),r.createElement(tf,Object.assign({ref:n},e,o))});tm.Item=eQ,tm.SubMenu=e0,tm.Divider=eY,tm.ItemGroup=eD;var tg=tm},80588:function(e,t,n){n.d(t,{ZP:function(){return eu}});var r=n(63787),o=n(64090),a=n(37274);let i=o.createContext({});var l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(66155),m=n(16480),g=n.n(m),h=n(80406),b=n(6787),v=n(5239),y=n(89542),E=n(14749),S=n(50833),w=n(49367),x=n(4295),O=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,l=void 0===i?4.5:i,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=e.props,f=e.onClick,m=e.onNoticeClose,b=e.times,v=e.hovering,y=o.useState(!1),w=(0,h.Z)(y,2),O=w[0],k=w[1],C=v||O,T=function(){m(s)};o.useEffect(function(){if(!C&&l>0){var e=setTimeout(function(){T()},1e3*l);return function(){clearTimeout(e)}}},[l,C,b]);var A="".concat(n,"-notice");return o.createElement("div",(0,E.Z)({},p,{ref:t,className:g()(A,a,(0,S.Z)({},"".concat(A,"-closable"),u)),style:r,onMouseEnter:function(e){var t;k(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;k(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:f}),o.createElement("div",{className:"".concat(A,"-content")},c),u&&o.createElement("a",{tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===x.Z.ENTER)&&T()},onClick:function(e){e.preventDefault(),e.stopPropagation(),T()}},void 0===d?"x":d))}),k=o.createContext({}),C=function(e){var t=e.children,n=e.classNames;return o.createElement(k.Provider,{value:{classNames:n}},t)},T=n(6976),A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,T.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},I=["className","style","classNames","styles"],N=function(e){var t,n=e.configList,a=e.placement,i=e.prefixCls,l=e.className,s=e.style,c=e.motion,u=e.onAllNoticeRemoved,d=e.onNoticeClose,p=e.stack,f=(0,o.useContext)(k).classNames,m=(0,o.useRef)({}),y=(0,o.useState)(null),x=(0,h.Z)(y,2),C=x[0],T=x[1],N=(0,o.useState)([]),R=(0,h.Z)(N,2),_=R[0],P=R[1],M=n.map(function(e){return{config:e,key:String(e.key)}}),L=A(p),D=(0,h.Z)(L,2),j=D[0],F=D[1],B=F.offset,U=F.threshold,Z=F.gap,z=j&&(_.length>0||M.length<=U),H="function"==typeof c?c(a):c;return(0,o.useEffect)(function(){j&&_.length>1&&P(function(e){return e.filter(function(e){return M.some(function(t){return e===t.key})})})},[_,M,j]),(0,o.useEffect)(function(){var e,t;j&&m.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&T(m.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])},[M,j]),o.createElement(w.V4,(0,E.Z)({key:a,className:g()(i,"".concat(i,"-").concat(a),null==f?void 0:f.list,l,(t={},(0,S.Z)(t,"".concat(i,"-stack"),!!j),(0,S.Z)(t,"".concat(i,"-stack-expanded"),z),t)),style:s,keys:M,motionAppear:!0},H,{onAllRemoved:function(){u(a)}}),function(e,t){var n=e.config,l=e.className,s=e.style,c=e.index,u=n.key,p=n.times,h=String(u),y=n.className,S=n.style,w=n.classNames,x=n.styles,k=(0,b.Z)(n,I),T=M.findIndex(function(e){return e.key===h}),A={};if(j){var N=M.length-1-(T>-1?T:c-1),R="top"===a||"bottom"===a?"-50%":"0";if(N>0){A.height=z?null===(L=m.current[h])||void 0===L?void 0:L.offsetHeight:null==C?void 0:C.offsetHeight;for(var L,D,F,U,H=0,G=0;G-1?m.current[h]=e:delete m.current[h]},prefixCls:i,classNames:w,styles:x,className:g()(y,null==f?void 0:f.notice),style:S,times:p,key:u,eventKey:u,onNoticeClose:d,hovering:j&&_.length>0})))})},R=o.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,i=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,p=e.stack,f=e.renderNotifications,m=o.useState([]),g=(0,h.Z)(m,2),b=g[0],E=g[1],S=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),E(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){E(function(t){var n,o=(0,r.Z)(t),a=o.findIndex(function(t){return t.key===e.key}),i=(0,v.Z)({},e);return a>=0?(i.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,o[a]=i):(i.times=0,o.push(i)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){E([])}}});var w=o.useState({}),x=(0,h.Z)(w,2),O=x[0],k=x[1];o.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(O).forEach(function(t){e[t]=e[t]||[]}),k(e)},[b]);var C=function(e){k(function(t){var n=(0,v.Z)({},t);return(n[e]||[]).length||delete n[e],n})},T=o.useRef(!1);if(o.useEffect(function(){Object.keys(O).length>0?T.current=!0:T.current&&(null==d||d(),T.current=!1)},[O]),!i)return null;var A=Object.keys(O);return(0,y.createPortal)(o.createElement(o.Fragment,null,A.map(function(e){var t=O[e],n=o.createElement(N,{key:e,configList:t,placement:e,prefixCls:a,className:null==c?void 0:c(e),style:null==u?void 0:u(e),motion:l,onNoticeClose:S,onAllNoticeRemoved:C,stack:p});return f?f(n,{prefixCls:a,key:e}):n})),i)}),_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],P=function(){return document.body},M=0,L=n(8985),D=n(51761),j=n(11303),F=n(76585),B=n(80316);let U=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,v="".concat(t,"-notice"),y=new L.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),E=new L.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:f,textAlign:"center",["".concat(t,"-custom-content > ").concat(n)]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},["".concat(v,"-content")]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:a},["".concat(t,"-error > ").concat(n)]:{color:i},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(v,"-wrapper")]:Object.assign({},S)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var Z=(0,F.I$)("Message",e=>[U((0,B.TS)(e,{height:150}))],e=>({zIndexPopup:e.zIndexPopupBase+D.u6+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})),z=n(92935),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let G={info:o.createElement(p.Z,null),success:o.createElement(c.Z,null),error:o.createElement(u.Z,null),warning:o.createElement(d.Z,null),loading:o.createElement(f.Z,null)},$=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return o.createElement("div",{className:g()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||G[n],o.createElement("span",null,a))};var W=n(81303),V=n(76564);function q(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let K=e=>{let{children:t,prefixCls:n}=e,r=(0,z.Z)(n),[a,i,l]=Z(n,r);return a(o.createElement(C,{classNames:{list:g()(i,l,r)}},t))},X=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(K,{prefixCls:n,key:r},e)},Q=o.forwardRef((e,t)=>{let{top:n,prefixCls:a,getContainer:i,maxCount:s,duration:c=3,rtl:u,transitionName:d,onAllRemoved:p}=e,{getPrefixCls:f,getPopupContainer:m,message:v,direction:y}=o.useContext(l.E_),E=a||f("message"),S=o.createElement("span",{className:"".concat(E,"-close-x")},o.createElement(W.Z,{className:"".concat(E,"-close-icon")})),[w,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?P:t,a=e.motion,i=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,f=(0,b.Z)(e,_),m=o.useState(),g=(0,h.Z)(m,2),v=g[0],y=g[1],E=o.useRef(),S=o.createElement(R,{container:v,ref:E,prefixCls:i,motion:a,maxCount:l,className:s,style:c,onAllRemoved:u,stack:d,renderNotifications:p}),w=o.useState([]),x=(0,h.Z)(w,2),O=x[0],k=x[1],C=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>g()({["".concat(E,"-rtl")]:null!=u?u:"rtl"===y}),motion:()=>({motionName:null!=d?d:"".concat(E,"-move-up")}),closable:!1,closeIcon:S,duration:c,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:p,renderNotifications:X});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:E,message:v})),x}),J=0;function ee(e){let t=o.useRef(null);return(0,V.ln)("Message"),[o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:a,message:i}=t.current,l="".concat(a,"-notice"),{content:s,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,h=Y(n,["content","icon","type","key","className","style","onClose"]),b=d;return null==b&&(J+=1,b="antd-message-".concat(J)),q(t=>(r(Object.assign(Object.assign({},h),{key:b,content:o.createElement($,{prefixCls:a,type:u,icon:c},s),placement:"top",className:g()(u&&"".concat(l,"-").concat(u),p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(b)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i;return"function"==typeof r?i=r:(a=r,i=o),n(Object.assign(Object.assign({onClose:i,duration:a},t&&"object"==typeof t&&"content"in t?t:{content:t}),{type:e}))}}),r},[]),o.createElement(Q,Object.assign({key:"message-holder"},e,{ref:t}))]}let et=null,en=e=>e(),er=[],eo={};function ea(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=eo,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}let ei=o.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:a}=(0,o.useContext)(l.E_),s=eo.prefixCls||a("message"),c=(0,o.useContext)(i),[u,d]=ee(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),c.message));return o.useImperativeHandle(t,()=>{let e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}}),{instance:e,sync:r}}),d}),el=o.forwardRef((e,t)=>{let[n,r]=o.useState(ea),a=()=>{r(ea)};o.useEffect(a,[]);let i=(0,s.w6)(),l=i.getRootPrefixCls(),c=i.getIconPrefixCls(),u=i.getTheme(),d=o.createElement(ei,{ref:t,sync:a,messageConfig:n});return o.createElement(s.ZP,{prefixCls:l,iconPrefixCls:c,theme:u},i.holderRender?i.holderRender(d):d)});function es(){if(!et){let e=document.createDocumentFragment(),t={fragment:e};et=t,en(()=>{(0,a.s)(o.createElement(el,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,es())})}}),e)});return}et.instance&&(er.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":en(()=>{let t=et.instance.open(Object.assign(Object.assign({},eo),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":en(()=>{null==et||et.instance.destroy(e.key)});break;default:en(()=>{var n;let o=(n=et.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),er=[])}let ec={open:function(e){let t=q(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return er.push(r),()=>{n?en(()=>{n()}):r.skipped=!0}});return es(),t},destroy:function(e){er.push({type:"destroy",key:e}),es()},config:function(e){eo=Object.assign(Object.assign({},eo),e),en(()=>{var e;null===(e=null==et?void 0:et.sync)||void 0===e||e.call(et)})},useMessage:function(e){return ee(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:a,content:i}=e,s=H(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=o.useContext(l.E_),u=t||c("message"),d=(0,z.Z)(u),[p,f,m]=Z(u,d);return p(o.createElement(O,Object.assign({},s,{prefixCls:u,className:g()(n,f,"".concat(u,"-notice-pure-panel"),m,d),eventKey:"pure",duration:null,content:o.createElement($,{prefixCls:u,type:r,icon:a},i)})))}};["success","info","warning","error","loading"].forEach(e=>{ec[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return er.push(o),()=>{r?en(()=>{r()}):o.skipped=!0}});return es(),n}(e,n)}});var eu=ec},99129:function(e,t,n){let r;n.d(t,{Z:function(){return eq}});var o=n(63787),a=n(64090),i=n(37274),l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(16480),m=n.n(f),g=n(51761),h=n(47387),b=n(70595),v=n(24750),y=n(89211),E=n(1861),S=n(51350),w=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=a.useRef(!1),f=a.useRef(null),[m,g]=(0,y.Z)(!1),h=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(g(!0),e.then(function(){g(!1,!0),h.apply(void 0,arguments),p.current=!1},e=>{if(g(!1,!0),p.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(E.ZP,Object.assign({},(0,S.nx)(t),{onClick:e=>{let t;if(!p.current){if(p.current=!0,!d){h();return}if(s){var n;if(t=d(e),u&&!((n=t)&&n.then)){p.current=!1,h(e);return}}else if(d.length)t=d(i),p.current=!1;else if(!(t=d())){h();return}b(t)}},loading:m,prefixCls:r},o,{ref:f}),n)};let x=a.createContext({}),{Provider:O}=x;var k=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=(0,a.useContext)(x);return o?a.createElement(w,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(i,"-btn")},n):null},C=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=(0,a.useContext)(x);return a.createElement(w,{isSilent:n,type:l||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:"".concat(o,"-btn")},i)},T=n(81303),A=n(14749),I=n(80406),N=n(88804),R=a.createContext({}),_=n(5239),P=n(31506),M=n(91010),L=n(4295),D=n(72480);function j(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function F(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var B=n(49367),U=n(74084),Z=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),z={width:0,height:0,overflow:"hidden",outline:"none"},H=a.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,d=e.footer,p=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,v=e.bodyProps,y=e.modalRender,E=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,x=e.visible,O=e.forceRender,k=e.width,C=e.height,T=e.classNames,I=e.styles,N=a.useContext(R).panel,P=(0,U.x1)(w,N),M=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?M.current.focus():e||t!==M.current||L.current.focus()}}});var D={};void 0!==k&&(D.width=k),void 0!==C&&(D.height=C),d&&(n=a.createElement("div",{className:m()("".concat(i,"-footer"),null==T?void 0:T.footer),style:(0,_.Z)({},null==I?void 0:I.footer)},d)),c&&(r=a.createElement("div",{className:m()("".concat(i,"-header"),null==T?void 0:T.header),style:(0,_.Z)({},null==I?void 0:I.header)},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),p&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},f||a.createElement("span",{className:"".concat(i,"-close-x")})));var j=a.createElement("div",{className:m()("".concat(i,"-content"),null==T?void 0:T.content),style:null==I?void 0:I.content},o,r,a.createElement("div",(0,A.Z)({className:m()("".concat(i,"-body"),null==T?void 0:T.body),style:(0,_.Z)((0,_.Z)({},b),null==I?void 0:I.body)},v),h),n);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:P,style:(0,_.Z)((0,_.Z)({},s),D),className:m()(i,l),onMouseDown:E,onMouseUp:S},a.createElement("div",{tabIndex:0,ref:M,style:z,"aria-hidden":"true"}),a.createElement(Z,{shouldUpdate:x||O},y?y(j):j),a.createElement("div",{tabIndex:0,ref:L,style:z,"aria-hidden":"true"}))}),G=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,g=(0,a.useRef)(),h=a.useState(),b=(0,I.Z)(h,2),v=b[0],y=b[1],E={};function S(){var e,t,n,r,o,a=(n={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=F(o),n.top+=F(o,!0),n);y(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return v&&(E.transformOrigin=v),a.createElement(B.ZP,{visible:l,onVisibleChanged:p,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(H,(0,A.Z)({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:s,style:(0,_.Z)((0,_.Z)((0,_.Z)({},u),o),E),className:m()(i,c)}))})});function $(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,l=e.className;return a.createElement(B.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,s=e.style;return a.createElement("div",(0,A.Z)({ref:r,style:(0,_.Z)((0,_.Z)({},s),n),className:m()("".concat(t,"-mask"),i,l)},o))})}function W(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,g=e.onClose,h=e.afterOpenChange,b=e.afterClose,v=e.transitionName,y=e.animation,E=e.closable,S=e.mask,w=void 0===S||S,x=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,C=e.maskStyle,T=e.maskProps,N=e.rootClassName,R=e.classNames,F=e.styles,B=(0,a.useRef)(),U=(0,a.useRef)(),Z=(0,a.useRef)(),z=a.useState(i),H=(0,I.Z)(z,2),W=H[0],V=H[1],q=(0,M.Z)();function Y(e){null==g||g(e)}var K=(0,a.useRef)(!1),X=(0,a.useRef)(),Q=null;return(void 0===k||k)&&(Q=function(e){K.current?K.current=!1:U.current===e.target&&Y(e)}),(0,a.useEffect)(function(){i&&(V(!0),(0,P.Z)(U.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(X.current)}},[]),a.createElement("div",(0,A.Z)({className:m()("".concat(n,"-root"),N)},(0,D.Z)(e,{data:!0})),a.createElement($,{prefixCls:n,visible:w&&i,motionName:j(n,x,O),style:(0,_.Z)((0,_.Z)({zIndex:r},C),null==F?void 0:F.mask),maskProps:T,className:null==R?void 0:R.mask}),a.createElement("div",(0,A.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===L.Z.ESC){e.stopPropagation(),Y(e);return}i&&e.keyCode===L.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:m()("".concat(n,"-wrap"),p,null==R?void 0:R.wrapper),ref:U,onClick:Q,style:(0,_.Z)((0,_.Z)((0,_.Z)({zIndex:r},d),null==F?void 0:F.wrapper),{},{display:W?null:"none"})},f),a.createElement(G,(0,A.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),K.current=!0},onMouseUp:function(){X.current=setTimeout(function(){K.current=!1})},ref:Z,closable:void 0===E||E,ariaId:q,prefixCls:n,visible:i&&W,onClose:Y,onVisibleChanged:function(e){if(e)!function(){if(!(0,P.Z)(U.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(V(!1),w&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==b||b())}null==h||h(e)},motionName:j(n,v,y)}))))}G.displayName="Content",n(53850);var V=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=e.panelRef,c=a.useState(t),u=(0,I.Z)(c,2),d=u[0],p=u[1],f=a.useMemo(function(){return{panel:s}},[s]);return(a.useEffect(function(){t&&p(!0)},[t]),r||!i||d)?a.createElement(R.Provider,{value:f},a.createElement(N.Z,{open:t||r||d,autoDestroy:!1,getContainer:n,autoLock:t||d},a.createElement(W,(0,A.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),p(!1)}})))):null};V.displayName="Dialog";var q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.createElement(T.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("boolean"==typeof e?!e:void 0===t?!o:!1===t||null===t)return[!1,null];let i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]},Y=n(22127),K=n(86718),X=n(47137),Q=n(92801),J=n(48563);function ee(){}let et=a.createContext({add:ee,remove:ee});var en=n(17094),er=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({onClick:n},e),t)},eo=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({},(0,S.nx)(n),{loading:e,onClick:o},t),r)},ea=n(4678);function ei(e,t){return a.createElement("span",{className:"".concat(e,"-close-x")},t||a.createElement(T.Z,{className:"".concat(e,"-close-icon")}))}let el=e=>{let t;let{okText:n,okType:r="primary",cancelText:i,confirmLoading:l,onOk:s,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:p}=e,[f]=(0,b.Z)("Modal",(0,ea.A)()),m={confirmLoading:l,okButtonProps:u,cancelButtonProps:d,okTextLocale:n||(null==f?void 0:f.okText),cancelTextLocale:i||(null==f?void 0:f.cancelText),okType:r,onOk:s,onCancel:c},g=a.useMemo(()=>m,(0,o.Z)(Object.values(m)));return"function"==typeof p||void 0===p?(t=a.createElement(a.Fragment,null,a.createElement(er,null),a.createElement(eo,null)),"function"==typeof p&&(t=p(t,{OkBtn:eo,CancelBtn:er})),t=a.createElement(O,{value:g},t)):t=p,a.createElement(en.n,{disabled:!1},t)};var es=n(11303),ec=n(13703),eu=n(58854),ed=n(80316),ep=n(76585),ef=n(8985);function em(e){return{position:e,inset:0}}let eg=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",["&:has(".concat(t).concat(n,"-zoom-enter), &:has(").concat(t).concat(n,"-zoom-appear)")]:{pointerEvents:"none"}})}},{["".concat(t,"-root")]:(0,ec.J$)(e)}]},eh=e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,ef.bf)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,es.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,ef.bf)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:"".concat((0,ef.bf)(e.modalCloseBtnSize)),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,es.Qy)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},eb=e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},ev=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ed.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ey=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:"".concat((0,ef.bf)(e.paddingMD)," ").concat((0,ef.bf)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,ef.bf)(e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,ef.bf)(e.paddingXS)," ").concat((0,ef.bf)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var eE=(0,ep.I$)("Modal",e=>{let t=ev(e);return[eh(t),eb(t),eg(t),(0,eu._y)(t,"zoom")]},ey,{unitless:{titleLineHeight:!0}}),eS=n(92935),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,Y.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var ex=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:s}=a.useContext(l.E_),c=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:u,className:d,rootClassName:p,open:f,wrapClassName:b,centered:v,getContainer:y,closeIcon:E,closable:S,focusTriggerAfterClose:w=!0,style:x,visible:O,width:k=520,footer:C,classNames:A,styles:I}=e,N=ew(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),R=o("modal",u),_=o(),P=(0,eS.Z)(R),[M,L,D]=eE(R,P),j=m()(b,{["".concat(R,"-centered")]:!!v,["".concat(R,"-wrap-rtl")]:"rtl"===i}),F=null!==C&&a.createElement(el,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:c})),[B,U]=q(S,E,e=>ei(R,e),a.createElement(T.Z,{className:"".concat(R,"-close-icon")}),!0),Z=function(e){let t=a.useContext(et),n=a.useRef();return(0,J.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(".".concat(R,"-content")),[z,H]=(0,g.Cn)("Modal",N.zIndex);return M(a.createElement(Q.BR,null,a.createElement(X.Ux,{status:!0,override:!0},a.createElement(K.Z.Provider,{value:H},a.createElement(V,Object.assign({width:k},N,{zIndex:z,getContainer:void 0===y?n:y,prefixCls:R,rootClassName:m()(L,p,D,P),footer:F,visible:null!=f?f:O,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:c,closable:B,closeIcon:U,focusTriggerAfterClose:w,transitionName:(0,h.m)(_,"zoom",e.transitionName),maskTransitionName:(0,h.m)(_,"fade",e.maskTransitionName),className:m()(L,d,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),x),classNames:Object.assign(Object.assign({wrapper:j},null==s?void 0:s.classNames),A),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),I),panelRef:Z}))))))};let eO=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,es.dF)()),["&".concat(t," ").concat(t,"-body")]:{padding:c},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:"calc(100% - ".concat((0,ef.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:a,lineHeight:i},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}};var ek=(0,ep.bk)(["Modal","confirm"],e=>[eO(ev(e))],ey,{order:-1e3}),eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eT(e){let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:s,okCancel:f,footer:g,locale:h}=e,v=eC(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),y=n;if(!n&&null!==n)switch(s){case"info":y=a.createElement(p.Z,null);break;case"success":y=a.createElement(c.Z,null);break;case"error":y=a.createElement(u.Z,null);break;default:y=a.createElement(d.Z,null)}let E=null!=f?f:"confirm"===s,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[w]=(0,b.Z)("Modal"),x=h||w,T=r||(E?null==x?void 0:x.okText:null==x?void 0:x.justOkText),A=Object.assign({autoFocusButton:S,cancelTextLocale:i||(null==x?void 0:x.cancelText),okTextLocale:T,mergedOkCancel:E},v),I=a.useMemo(()=>A,(0,o.Z)(Object.values(A))),N=a.createElement(a.Fragment,null,a.createElement(k,null),a.createElement(C,null)),R=void 0!==e.title&&null!==e.title,_="".concat(l,"-body");return a.createElement("div",{className:"".concat(l,"-body-wrapper")},a.createElement("div",{className:m()(_,{["".concat(_,"-has-title")]:R})},y,a.createElement("div",{className:"".concat(l,"-paragraph")},R&&a.createElement("span",{className:"".concat(l,"-title")},e.title),a.createElement("div",{className:"".concat(l,"-content")},e.content))),void 0===g||"function"==typeof g?a.createElement(O,{value:I},a.createElement("div",{className:"".concat(l,"-btns")},"function"==typeof g?g(N,{OkBtn:C,CancelBtn:k}):N)):g,a.createElement(ek,{prefixCls:t}))}let eA=e=>{let{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:l,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:b,closable:y=!1,closeIcon:E,modalRender:S,focusTriggerAfterClose:w,onConfirm:x,styles:O}=e,k="".concat(d,"-confirm"),C=e.width||416,T=e.style||{},A=void 0===e.mask||e.mask,I=void 0!==e.maskClosable&&e.maskClosable,N=m()(k,"".concat(k,"-").concat(e.type),{["".concat(k,"-rtl")]:"rtl"===u},e.className),[,R]=(0,v.ZP)(),_=a.useMemo(()=>void 0!==n?n:R.zIndexPopupBase+g.u6,[n,R]);return a.createElement(ex,{prefixCls:d,className:N,wrapClassName:m()({["".concat(k,"-centered")]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:o,title:"",footer:null,transitionName:(0,h.m)(f||"","zoom",e.transitionName),maskTransitionName:(0,h.m)(f||"","fade",e.maskTransitionName),mask:A,maskClosable:I,style:T,styles:Object.assign({body:b,mask:c},O),width:C,zIndex:_,afterClose:r,keyboard:i,centered:l,getContainer:s,closable:y,closeIcon:E,modalRender:S,focusTriggerAfterClose:w},a.createElement(eT,Object.assign({},e,{confirmPrefixCls:k})))};var eI=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(eA,Object.assign({},e)))},eN=[];let eR="",e_=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:i}=e,s=(0,ea.A)(),c=(0,a.useContext)(l.E_),u=eR||c.getPrefixCls(),d=r||"".concat(u,"-modal"),p=o;return!1===p&&(p=void 0),a.createElement(eI,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=i?i:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:p}))};function eP(e){let t;let n=(0,s.w6)(),r=document.createDocumentFragment(),l=Object.assign(Object.assign({},e),{close:d,open:!0});function c(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let t=n.getPrefixCls(void 0,eR),o=n.getIconPrefixCls(),l=n.getTheme(),c=a.createElement(e_,Object.assign({},e));(0,i.s)(a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:o,theme:l},n.holderRender?n.holderRender(c):c),r)})}function d(){for(var t=arguments.length,n=Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,n)}})).visible&&delete l.visible,u(l)}return u(l),eN.push(d),{destroy:d,update:function(e){u(l="function"==typeof e?e(l):Object.assign(Object.assign({},l),e))}}}function eM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eL(e){return Object.assign(Object.assign({},e),{type:"info"})}function eD(e){return Object.assign(Object.assign({},e),{type:"success"})}function ej(e){return Object.assign(Object.assign({},e),{type:"error"})}function eF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eB=n(21467),eU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eZ=(0,eB.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:c,footer:u}=e,d=eU(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(l.E_),f=p(),g=t||p("modal"),h=(0,eS.Z)(f),[b,v,y]=eE(g,h),E="".concat(g,"-confirm"),S={};return S=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(eT,Object.assign({},e,{prefixCls:g,confirmPrefixCls:E,rootPrefixCls:f,content:c}))}:{closable:null==o||o,title:s,footer:null!==u&&a.createElement(el,Object.assign({},e)),children:c},b(a.createElement(H,Object.assign({prefixCls:g,className:m()(v,"".concat(g,"-pure-panel"),i&&E,i&&"".concat(E,"-").concat(i),n,y,h)},d,{closeIcon:ei(g,r),closable:o},S)))}),ez=n(79474),eH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eG=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,s=eH(e,["afterClose","config"]);let[c,u]=a.useState(!0),[d,p]=a.useState(i),{direction:f,getPrefixCls:m}=a.useContext(l.E_),g=m("modal"),h=m(),v=function(){u(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);d.onCancel&&r&&d.onCancel.apply(d,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:v,update:e=>{p(t=>Object.assign(Object.assign({},t),e))}}));let y=null!==(n=d.okCancel)&&void 0!==n?n:"confirm"===d.type,[E]=(0,b.Z)("Modal",ez.Z.Modal);return a.createElement(eI,Object.assign({prefixCls:g,rootPrefixCls:h},d,{close:v,open:c,afterClose:()=>{var e;r(),null===(e=d.afterClose)||void 0===e||e.call(d)},okText:d.okText||(y?null==E?void 0:E.okText:null==E?void 0:E.justOkText),direction:d.direction||f,cancelText:d.cancelText||(null==E?void 0:E.cancelText)},s))});let e$=0,eW=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function eV(e){return eP(eM(e))}ex.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&((0,o.Z)(t).forEach(e=>{e()}),n([]))},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;e$+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),d=!1,p=a.createElement(eG,{key:"modal-".concat(e$),config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(p))&&eN.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,u.then(e))}},[]);return[a.useMemo(()=>({info:r(eL),success:r(eD),error:r(ej),warning:r(eM),confirm:r(eF)}),[]),a.createElement(eW,{key:"modal-holder",ref:e})]},ex.info=function(e){return eP(eL(e))},ex.success=function(e){return eP(eD(e))},ex.error=function(e){return eP(ej(e))},ex.warning=eV,ex.warn=eV,ex.confirm=function(e){return eP(eF(e))},ex.destroyAll=function(){for(;eN.length;){let e=eN.pop();e&&e()}},ex.config=function(e){let{rootPrefixCls:t}=e;eR=t},ex._InternalPanelDoNotUseOrYouWillBeFired=eZ;var eq=ex},4678:function(e,t,n){n.d(t,{A:function(){return s},f:function(){return l}});var r=n(79474);let o=Object.assign({},r.Z.Modal),a=[],i=()=>a.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},38302:function(e,t,n){var r=n(5056);t.Z=r.Z},50670:function(e,t,n){n.d(t,{default:function(){return tT}});var r=n(64090),o=n(16480),a=n.n(o),i=n(14749),l=n(63787),s=n(50833),c=n(5239),u=n(80406),d=n(6787),p=n(6976),f=n(44329),m=n(53850),g=n(24800),h=n(76158),b=n(4295),v=n(74084),y=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,l=e.onMouseDown,s=e.onClick,c="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:r.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))},E=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=r.useMemo(function(){return"object"===(0,p.Z)(o)?o.clearIcon:a||void 0},[o,a]);return{allowClear:r.useMemo(function(){return!i&&!!o&&(!!n.length||!!l)&&!("combobox"===s&&""===l)},[o,i,n.length,l,s]),clearIcon:r.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},S=r.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var x=n(72480),O=n(54739),k=r.forwardRef(function(e,t){var n,o=e.prefixCls,i=e.id,l=e.inputElement,s=e.disabled,u=e.tabIndex,d=e.autoFocus,p=e.autoComplete,f=e.editable,g=e.activeDescendantId,h=e.value,b=e.maxLength,y=e.onKeyDown,E=e.onMouseDown,S=e.onChange,w=e.onPaste,x=e.onCompositionStart,O=e.onCompositionEnd,k=e.open,C=e.attrs,T=l||r.createElement("input",null),A=T,I=A.ref,N=A.props,R=N.onKeyDown,_=N.onChange,P=N.onMouseDown,M=N.onCompositionStart,L=N.onCompositionEnd,D=N.style;return(0,m.Kp)(!("maxLength"in T.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),T=r.cloneElement(T,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},N),{},{id:i,ref:(0,v.sQ)(t,I),disabled:s,tabIndex:u,autoComplete:p||"off",autoFocus:d,className:a()("".concat(o,"-selection-search-input"),null===(n=T)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?g:void 0},C),{},{value:f?h:"",maxLength:b,readOnly:!f,unselectable:f?null:"on",style:(0,c.Z)((0,c.Z)({},D),{},{opacity:f?null:0}),onKeyDown:function(e){y(e),R&&R(e)},onMouseDown:function(e){E(e),P&&P(e)},onChange:function(e){S(e),_&&_(e)},onCompositionStart:function(e){x(e),M&&M(e)},onCompositionEnd:function(e){O(e),L&&L(e)},onPaste:w}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T=window.document&&window.document.documentElement;function A(e){return["string","number"].includes((0,p.Z)(e))}function I(e){var t=void 0;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var R=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,c=e.open,d=e.searchValue,p=e.autoClearSearchValue,f=e.inputRef,m=e.placeholder,g=e.disabled,h=e.mode,b=e.showSearch,v=e.autoFocus,E=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,C=e.removeIcon,A=e.maxTagCount,_=e.maxTagTextLength,P=e.maxTagPlaceholder,M=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,L=e.tagRender,D=e.onToggleOpen,j=e.onRemove,F=e.onInputChange,B=e.onInputPaste,U=e.onInputKeyDown,Z=e.onInputMouseDown,z=e.onInputCompositionStart,H=e.onInputCompositionEnd,G=r.useRef(null),$=(0,r.useState)(0),W=(0,u.Z)($,2),V=W[0],q=W[1],Y=(0,r.useState)(!1),K=(0,u.Z)(Y,2),X=K[0],Q=K[1],J="".concat(i,"-selection"),ee=c||"multiple"===h&&!1===p||"tags"===h?d:"",et="tags"===h||"multiple"===h&&!1===p||b&&(c||X);t=function(){q(G.current.scrollWidth)},n=[ee],T?r.useLayoutEffect(t,n):r.useEffect(t,n);var en=function(e,t,n,o,i){return r.createElement("span",{title:I(e),className:a()("".concat(J,"-item"),(0,s.Z)({},"".concat(J,"-item-disabled"),n))},r.createElement("span",{className:"".concat(J,"-item-content")},t),o&&r.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:R,onClick:i,customizeIcon:C},"\xd7"))},er=r.createElement("div",{className:"".concat(J,"-search"),style:{width:V},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},r.createElement(k,{ref:f,open:c,prefixCls:i,id:o,inputElement:null,disabled:g,autoFocus:v,autoComplete:E,editable:et,activeDescendantId:S,value:ee,onKeyDown:U,onMouseDown:Z,onChange:F,onPaste:B,onCompositionStart:z,onCompositionEnd:H,tabIndex:w,attrs:(0,x.Z)(e,!0)}),r.createElement("span",{ref:G,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),eo=r.createElement(O.Z,{prefixCls:"".concat(J,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,o=e.label,a=e.value,i=!g&&!n,l=o;if("number"==typeof _&&("string"==typeof o||"number"==typeof o)){var s=String(l);s.length>_&&(l="".concat(s.slice(0,_),"..."))}var u=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof L?(t=l,r.createElement("span",{onMouseDown:function(e){R(e),D(!c)}},L({label:t,value:a,disabled:n,closable:i,onClose:u}))):en(e,l,n,i,u)},renderRest:function(e){var t="function"==typeof M?M(e):M;return en({title:t},t,!1)},suffix:er,itemKey:N,maxCount:A});return r.createElement(r.Fragment,null,eo,!l.length&&!ee&&r.createElement("span",{className:"".concat(J,"-placeholder")},m))},P=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,d=e.mode,p=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,E=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,O=e.onInputPaste,C=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=e.title,N=r.useState(!1),R=(0,u.Z)(N,2),_=R[0],P=R[1],M="combobox"===d,L=M||h,D=f[0],j=b||"";M&&v&&!_&&(j=v),r.useEffect(function(){M&&P(!1)},[M,v]);var F=("combobox"===d||!!p||!!h)&&!!j,B=void 0===A?I(D):A,U=r.useMemo(function(){return D?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},m)},[D,F,m,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(k,{ref:a,prefixCls:n,id:o,open:p,inputElement:t,disabled:i,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:c,value:j,onKeyDown:E,onMouseDown:S,onChange:function(e){P(!0),w(e)},onPaste:O,onCompositionStart:C,onCompositionEnd:T,tabIndex:g,attrs:(0,x.Z)(e,!0),maxLength:M?y:void 0})),!M&&D?r.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:F?{visibility:"hidden"}:void 0},D.label):null,U)},M=r.forwardRef(function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=e.prefixCls,l=e.open,s=e.mode,c=e.showSearch,d=e.tokenWithEnter,p=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=w(0),E=(0,u.Z)(y,2),S=E[0],x=E[1],O=(0,r.useRef)(null),k=function(e){!1!==f(e,!0,o.current)&&g(!0)},C={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===b.Z.UP||t===b.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==b.Z.ENTER||"tags"!==s||o.current||l||null==m||m(e.target.value),[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(d&&O.current&&/[\r\n]/.test(O.current)){var n=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,O.current)}O.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");O.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},T="multiple"===s||"tags"===s?r.createElement(_,(0,i.Z)({},e,C)):r.createElement(P,(0,i.Z)({},e,C));return r.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||c&&t)&&l||(l&&!1!==p&&f("",!0,!1),g())}},T)}),L=n(44101),D=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},F=r.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,u=e.popupElement,p=e.animation,f=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,b=e.placement,v=e.builtinPlacements,y=e.dropdownMatchSelectWidth,E=e.dropdownRender,S=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,O=e.getTriggerDOMNode,k=e.onPopupVisibleChange,C=e.onPopupMouseEnter,T=(0,d.Z)(e,D),A="".concat(n,"-dropdown"),I=u;E&&(I=E(u));var N=r.useMemo(function(){return v||j(y)},[v,y]),R=p?"".concat(A,"-").concat(p):f,_="number"==typeof y,P=r.useMemo(function(){return _?null:!1===y?"minWidth":"width"},[y,_]),M=m;_&&(M=(0,c.Z)((0,c.Z)({},M),{},{width:y}));var F=r.useRef(null);return r.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current}}}),r.createElement(L.Z,(0,i.Z)({},T,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===(void 0===h?"ltr":h)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:A,popupTransitionName:R,popup:r.createElement("div",{ref:F,onMouseEnter:C},I),stretch:P,popupAlign:S,popupVisible:o,getPopupContainer:w,popupClassName:a()(g,(0,s.Z)({},"".concat(A,"-empty"),x)),popupStyle:M,getTriggerDOMNode:O,onPopupVisibleChange:k}),l)}),B=n(56721);function U(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function Z(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function z(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var H=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,B.Z)(n),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},G=r.createContext(null),$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],V=function(e){return"tags"===e||"multiple"===e},q=r.forwardRef(function(e,t){var n,o,m,x,O,k,C,T,A=e.id,I=e.prefixCls,N=e.className,R=e.showSearch,_=e.tagRender,P=e.direction,L=e.omitDomProps,D=e.displayValues,j=e.onDisplayValuesChange,B=e.emptyOptions,U=e.notFoundContent,Z=void 0===U?"Not Found":U,z=e.onClear,q=e.mode,Y=e.disabled,K=e.loading,X=e.getInputElement,Q=e.getRawInputElement,J=e.open,ee=e.defaultOpen,et=e.onDropdownVisibleChange,en=e.activeValue,er=e.onActiveValueChange,eo=e.activeDescendantId,ea=e.searchValue,ei=e.autoClearSearchValue,el=e.onSearch,es=e.onSearchSplit,ec=e.tokenSeparators,eu=e.allowClear,ed=e.suffixIcon,ep=e.clearIcon,ef=e.OptionList,em=e.animation,eg=e.transitionName,eh=e.dropdownStyle,eb=e.dropdownClassName,ev=e.dropdownMatchSelectWidth,ey=e.dropdownRender,eE=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,ex=e.getPopupContainer,eO=e.showAction,ek=void 0===eO?[]:eO,eC=e.onFocus,eT=e.onBlur,eA=e.onKeyUp,eI=e.onKeyDown,eN=e.onMouseDown,eR=(0,d.Z)(e,$),e_=V(q),eP=(void 0!==R?R:e_)||"combobox"===q,eM=(0,c.Z)({},eR);W.forEach(function(e){delete eM[e]}),null==L||L.forEach(function(e){delete eM[e]});var eL=r.useState(!1),eD=(0,u.Z)(eL,2),ej=eD[0],eF=eD[1];r.useEffect(function(){eF((0,h.Z)())},[]);var eB=r.useRef(null),eU=r.useRef(null),eZ=r.useRef(null),ez=r.useRef(null),eH=r.useRef(null),eG=r.useRef(!1),e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,u.Z)(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};return r.useEffect(function(){return l},[]),[o,function(t,n){l(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},l]}(),eW=(0,u.Z)(e$,3),eV=eW[0],eq=eW[1],eY=eW[2];r.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ez.current)||void 0===e?void 0:e.focus,blur:null===(t=ez.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eH.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=r.useMemo(function(){if("combobox"!==q)return ea;var e,t=null===(e=D[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[ea,q,D]),eX="combobox"===q&&"function"==typeof X&&X()||null,eQ="function"==typeof Q&&Q(),eJ=(0,v.x1)(eU,null==eQ||null===(x=eQ.props)||void 0===x?void 0:x.ref),e0=r.useState(!1),e1=(0,u.Z)(e0,2),e2=e1[0],e4=e1[1];(0,g.Z)(function(){e4(!0)},[]);var e3=(0,f.Z)(!1,{defaultValue:ee,value:J}),e6=(0,u.Z)(e3,2),e5=e6[0],e8=e6[1],e9=!!e2&&e5,e7=!Z&&B;(Y||e7&&e9&&"combobox"===q)&&(e9=!1);var te=!e7&&e9,tt=r.useCallback(function(e){var t=void 0!==e?e:!e9;Y||(e8(t),e9!==t&&(null==et||et(t)))},[Y,e9,e8,et]),tn=r.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),tr=r.useContext(G)||{},to=tr.maxCount,ta=tr.rawValues,ti=function(e,t,n){if(!((null==ta?void 0:ta.size)>=to)){var r=!0,o=e;null==er||er(null);var a=H(e,ec,to&&to-ta.size),i=n?null:a;return"combobox"!==q&&i&&(o="",null==es||es(i),tt(!1),r=!1),el&&eK!==o&&el(o,{source:t?"typing":"effect"}),r}};r.useEffect(function(){e9||e_||"combobox"===q||ti("",!1,!1)},[e9]),r.useEffect(function(){e5&&Y&&e8(!1),Y&&!eG.current&&eq(!1)},[Y]);var tl=w(),ts=(0,u.Z)(tl,2),tc=ts[0],tu=ts[1],td=r.useRef(!1),tp=[];r.useEffect(function(){return function(){tp.forEach(function(e){return clearTimeout(e)}),tp.splice(0,tp.length)}},[]);var tf=r.useState({}),tm=(0,u.Z)(tf,2)[1];eQ&&(k=function(e){tt(e)}),n=function(){var e;return[eB.current,null===(e=eZ.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eQ,(m=r.useRef(null)).current={open:te,triggerOpen:tt,customizedTrigger:o},r.useEffect(function(){function e(e){if(null===(t=m.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),m.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&m.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=r.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:Z,open:e9,triggerOpen:te,id:A,showSearch:eP,multiple:e_,toggleOpen:tt})},[e,Z,te,e9,A,eP,e_,tt]),th=!!ed||K;th&&(C=r.createElement(y,{className:a()("".concat(I,"-arrow"),(0,s.Z)({},"".concat(I,"-arrow-loading"),K)),customizeIcon:ed,customizeIconProps:{loading:K,searchValue:eK,open:e9,focused:eV,showSearch:eP}}));var tb=E(I,function(){var e;null==z||z(),null===(e=ez.current)||void 0===e||e.focus(),j([],{type:"clear",values:D}),ti("",!1,!1)},D,eu,ep,Y,eK,q),tv=tb.allowClear,ty=tb.clearIcon,tE=r.createElement(ef,{ref:eH}),tS=a()(I,N,(O={},(0,s.Z)(O,"".concat(I,"-focused"),eV),(0,s.Z)(O,"".concat(I,"-multiple"),e_),(0,s.Z)(O,"".concat(I,"-single"),!e_),(0,s.Z)(O,"".concat(I,"-allow-clear"),eu),(0,s.Z)(O,"".concat(I,"-show-arrow"),th),(0,s.Z)(O,"".concat(I,"-disabled"),Y),(0,s.Z)(O,"".concat(I,"-loading"),K),(0,s.Z)(O,"".concat(I,"-open"),e9),(0,s.Z)(O,"".concat(I,"-customize-input"),eX),(0,s.Z)(O,"".concat(I,"-show-search"),eP),O)),tw=r.createElement(F,{ref:eZ,disabled:Y,prefixCls:I,visible:te,popupElement:tE,animation:em,transitionName:eg,dropdownStyle:eh,dropdownClassName:eb,direction:P,dropdownMatchSelectWidth:ev,dropdownRender:ey,dropdownAlign:eE,placement:eS,builtinPlacements:ew,getPopupContainer:ex,empty:B,getTriggerDOMNode:function(){return eU.current},onPopupVisibleChange:k,onPopupMouseEnter:function(){tm({})}},eQ?r.cloneElement(eQ,{ref:eJ}):r.createElement(M,(0,i.Z)({},e,{domRef:eU,prefixCls:I,inputElement:eX,ref:ez,id:A,showSearch:eP,autoClearSearchValue:ei,mode:q,activeDescendantId:eo,tagRender:_,values:D,open:e9,onToggleOpen:tt,activeValue:en,searchValue:eK,onSearch:ti,onSearchSubmit:function(e){e&&e.trim()&&el(e,{source:"submit"})},onRemove:function(e){j(D.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tn})));return T=eQ?tw:r.createElement("div",(0,i.Z)({className:tS},eM,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eZ.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tp.indexOf(o);-1!==t&&tp.splice(t,1),eY(),ej||r.contains(document.activeElement)||null===(e=ez.current)||void 0===e||e.focus()});tp.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&j(o,{type:"remove",values:[a]})}for(var c=arguments.length,u=Array(c>1?c-1:0),d=1;d1?n-1:0),o=1;o0?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,K.height="100%",K.width=h,_?K.left=H:K.right=H):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,K.width="100%",K.height=h,K.top=H),r.createElement("div",{ref:P,className:a()(q,(n={},(0,s.Z)(n,"".concat(q,"-horizontal"),g),(0,s.Z)(n,"".concat(q,"-vertical"),!g),(0,s.Z)(n,"".concat(q,"-visible"),j),n)),style:(0,c.Z)((0,c.Z)({},Y),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:U},r.createElement("div",{ref:M,className:a()("".concat(q,"-thumb"),(0,s.Z)({},"".concat(q,"-thumb-moving"),w)),style:(0,c.Z)((0,c.Z)({},K),y),onMouseDown:$}))});function ea(e){var t=e.children,n=e.setRef,o=r.useCallback(function(e){n(e)},[]);return r.cloneElement(t,{ref:o})}var ei=n(97472),el=n(47365),es=n(65127),ec=function(){function e(){(0,el.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,es.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eu=n(48563),ed=("undefined"==typeof navigator?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);function ep(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(null),a=(0,r.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&a.current.top||e>0&&a.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):(!r||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&r}}var ef=14/15;function em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var eg=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],eh=[],eb={overflowY:"auto",overflowAnchor:"none"},ev=r.forwardRef(function(e,t){var n,o,l,f,m,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W=e.prefixCls,V=void 0===W?"rc-virtual-list":W,q=e.className,Y=e.height,K=e.itemHeight,X=e.fullHeight,Q=e.style,er=e.data,el=e.children,es=e.itemKey,ev=e.virtual,ey=e.direction,eE=e.scrollWidth,eS=e.component,ew=e.onScroll,ex=e.onVirtualScroll,eO=e.onVisibleChange,ek=e.innerProps,eC=e.extraRender,eT=e.styles,eA=(0,d.Z)(e,eg),eI=!!(!1!==ev&&Y&&K),eN=eI&&er&&(K*er.length>Y||!!eE),eR="rtl"===ey,e_=a()(V,(0,s.Z)({},"".concat(V,"-rtl"),eR),q),eP=er||eh,eM=(0,r.useRef)(),eL=(0,r.useRef)(),eD=(0,r.useState)(0),ej=(0,u.Z)(eD,2),eF=ej[0],eB=ej[1],eU=(0,r.useState)(0),eZ=(0,u.Z)(eU,2),ez=eZ[0],eH=eZ[1],eG=(0,r.useState)(!1),e$=(0,u.Z)(eG,2),eW=e$[0],eV=e$[1],eq=function(){eV(!0)},eY=function(){eV(!1)},eK=r.useCallback(function(e){return"function"==typeof es?es(e):null==e?void 0:e[es]},[es]);function eX(e){eB(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tp.current)||(n=Math.min(n,tp.current)),n=Math.max(n,0));return eM.current.scrollTop=r,r})}var eQ=(0,r.useRef)({start:0,end:eP.length}),eJ=(0,r.useRef)(),e0=(o=r.useState(eP),f=(l=(0,u.Z)(o,2))[0],m=l[1],h=r.useState(null),v=(b=(0,u.Z)(h,2))[0],y=b[1],r.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a0&&void 0!==arguments[0]&&arguments[0];p();var t=function(){s.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,ei.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}}),l(function(e){return e+1})};e?t():d.current=(0,en.Z)(t)}return(0,r.useEffect)(function(){return p},[]),[function(r,o){var a=e(r),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,i]}(eK,null,null),e4=(0,u.Z)(e2,4),e3=e4[0],e6=e4[1],e5=e4[2],e8=e4[3],e9=r.useMemo(function(){if(!eI)return{scrollHeight:void 0,start:0,end:eP.length-1,offset:void 0};if(!eN)return{scrollHeight:(null===(e=eL.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eP.length-1,offset:void 0};for(var e,t,n,r,o=0,a=eP.length,i=0;i=eF&&void 0===t&&(t=i,n=o),c>eF+Y&&void 0===r&&(r=i),o=c}return void 0===t&&(t=0,n=0,r=Math.ceil(Y/K)),void 0===r&&(r=eP.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,eP.length-1),offset:n}},[eN,eI,eF,eP,e8,Y]),e7=e9.scrollHeight,te=e9.start,tt=e9.end,tn=e9.offset;eQ.current.start=te,eQ.current.end=tt;var tr=r.useState({width:0,height:Y}),to=(0,u.Z)(tr,2),ta=to[0],ti=to[1],tl=(0,r.useRef)(),ts=(0,r.useRef)(),tc=r.useMemo(function(){return em(ta.width,eE)},[ta.width,eE]),tu=r.useMemo(function(){return em(ta.height,e7)},[ta.height,e7]),td=e7-Y,tp=(0,r.useRef)(td);tp.current=td;var tf=eF<=0,tm=eF>=td,tg=ep(tf,tm),th=function(){return{x:eR?-ez:ez,y:eF}},tb=(0,r.useRef)(th()),tv=(0,eu.zX)(function(){if(ex){var e=th();(tb.current.x!==e.x||tb.current.y!==e.y)&&(ex(e),tb.current=e)}});function ty(e,t){t?((0,J.flushSync)(function(){eH(e)}),tv()):eX(e)}var tE=function(e){var t=e,n=eE-ta.width;return Math.min(t=Math.max(t,0),n)},tS=(0,eu.zX)(function(e,t){t?((0,J.flushSync)(function(){eH(function(t){return tE(t+(eR?-e:e))})}),tv()):eX(function(t){return t+e})}),tw=(E=!!eE,S=(0,r.useRef)(0),w=(0,r.useRef)(null),x=(0,r.useRef)(null),O=(0,r.useRef)(!1),k=ep(tf,tm),C=(0,r.useRef)(null),T=(0,r.useRef)(null),[function(e){if(eI){en.Z.cancel(T.current),T.current=(0,en.Z)(function(){C.current=null},2);var t,n=e.deltaX,r=e.deltaY,o=e.shiftKey,a=n,i=r;("sx"===C.current||!C.current&&o&&r&&!n)&&(a=r,i=0,C.current="sx");var l=Math.abs(a),s=Math.abs(i);(null===C.current&&(C.current=E&&l>s?"x":"y"),"y"===C.current)?(t=i,en.Z.cancel(w.current),S.current+=t,x.current=t,k(t)||(ed||e.preventDefault(),w.current=(0,en.Z)(function(){var e=O.current?10:1;tS(S.current*e),S.current=0}))):(tS(a,!0),ed||e.preventDefault())}},function(e){eI&&(O.current=e.detail===x.current)}]),tx=(0,u.Z)(tw,2),tO=tx[0],tk=tx[1];A=function(e,t){return!tg(e,t)&&(tO({preventDefault:function(){},deltaY:e}),!0)},N=(0,r.useRef)(!1),R=(0,r.useRef)(0),_=(0,r.useRef)(null),P=(0,r.useRef)(null),M=function(e){if(N.current){var t=Math.ceil(e.touches[0].pageY),n=R.current-t;R.current=t,A(n)&&e.preventDefault(),clearInterval(P.current),P.current=setInterval(function(){(!A(n*=ef,!0)||.1>=Math.abs(n))&&clearInterval(P.current)},16)}},L=function(){N.current=!1,I()},D=function(e){I(),1!==e.touches.length||N.current||(N.current=!0,R.current=Math.ceil(e.touches[0].pageY),_.current=e.target,_.current.addEventListener("touchmove",M),_.current.addEventListener("touchend",L))},I=function(){_.current&&(_.current.removeEventListener("touchmove",M),_.current.removeEventListener("touchend",L))},(0,g.Z)(function(){return eI&&eM.current.addEventListener("touchstart",D),function(){var e;null===(e=eM.current)||void 0===e||e.removeEventListener("touchstart",D),I(),clearInterval(P.current)}},[eI]),(0,g.Z)(function(){function e(e){eI&&e.preventDefault()}var t=eM.current;return t.addEventListener("wheel",tO),t.addEventListener("DOMMouseScroll",tk),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tO),t.removeEventListener("DOMMouseScroll",tk),t.removeEventListener("MozMousePixelScroll",e)}},[eI]),(0,g.Z)(function(){eE&&eH(function(e){return tE(e)})},[ta.width,eE]);var tC=function(){var e,t;null===(e=tl.current)||void 0===e||e.delayHidden(),null===(t=ts.current)||void 0===t||t.delayHidden()},tT=(j=r.useRef(),F=r.useState(null),U=(B=(0,u.Z)(F,2))[0],Z=B[1],(0,g.Z)(function(){if(U&&U.times<10){if(!eM.current){Z(function(e){return(0,c.Z)({},e)});return}e6(!0);var e=U.targetAlign,t=U.originAlign,n=U.index,r=U.offset,o=eM.current.clientHeight,a=!1,i=e,l=null;if(o){for(var s=e||t,u=0,d=0,p=0,f=Math.min(eP.length-1,n),m=0;m<=f;m+=1){var g=eK(eP[m]);d=u;var h=e5.get(g);u=p=d+(void 0===h?K:h)}for(var b="top"===s?r:o-r,v=f;v>=0;v-=1){var y=eK(eP[v]),E=e5.get(y);if(void 0===E){a=!0;break}if((b-=E)<=0)break}switch(s){case"top":l=d-r;break;case"bottom":l=p-o+r;break;default:var S=eM.current.scrollTop;dS+o&&(i="bottom")}null!==l&&eX(l),l!==U.lastTop&&(a=!0)}a&&Z((0,c.Z)((0,c.Z)({},U),{},{times:U.times+1,targetAlign:i,lastTop:l}))}},[U,eM.current]),function(e){if(null==e){tC();return}if(en.Z.cancel(j.current),"number"==typeof e)eX(e);else if(e&&"object"===(0,p.Z)(e)){var t,n=e.align;t="index"in e?e.index:eP.findIndex(function(t){return eK(t)===e.key});var r=e.offset;Z({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});r.useImperativeHandle(t,function(){return{getScrollInfo:th,scrollTo:function(e){e&&"object"===(0,p.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tE(e.left)),tT(e.top)):tT(e)}}}),(0,g.Z)(function(){eO&&eO(eP.slice(te,tt+1),eP)},[te,tt,eP]);var tA=(z=r.useMemo(function(){return[new Map,[]]},[eP,e5.id,K]),G=(H=(0,u.Z)(z,2))[0],$=H[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=G.get(e),r=G.get(t);if(void 0===n||void 0===r)for(var o=eP.length,a=$.length;aY&&r.createElement(eo,{ref:tl,prefixCls:V,scrollOffset:eF,scrollRange:e7,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tu,containerSize:ta.height,style:null==eT?void 0:eT.verticalScrollBar,thumbStyle:null==eT?void 0:eT.verticalScrollBarThumb}),eN&&eE&&r.createElement(eo,{ref:ts,prefixCls:V,scrollOffset:ez,scrollRange:eE,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tc,containerSize:ta.width,horizontal:!0,style:null==eT?void 0:eT.horizontalScrollBar,thumbStyle:null==eT?void 0:eT.horizontalScrollBarThumb}))});ev.displayName="List";var ey=["disabled","title","children","style","className"];function eE(e){return"string"==typeof e||"number"==typeof e}var eS=r.forwardRef(function(e,t){var n=r.useContext(S),o=n.prefixCls,c=n.id,p=n.open,f=n.multiple,m=n.mode,g=n.searchValue,h=n.toggleOpen,v=n.notFoundContent,E=n.onPopupScroll,w=r.useContext(G),O=w.maxCount,k=w.flattenOptions,C=w.onActiveValue,T=w.defaultActiveFirstOption,A=w.onSelect,I=w.menuItemSelectedIcon,N=w.rawValues,R=w.fieldNames,_=w.virtual,P=w.direction,M=w.listHeight,L=w.listItemHeight,D=w.optionRender,j="".concat(o,"-item"),F=(0,X.Z)(function(){return k},[p,k],function(e,t){return t[0]&&e[1]!==t[1]}),B=r.useRef(null),U=r.useMemo(function(){return f&&void 0!==O&&(null==N?void 0:N.size)>=O},[f,O,null==N?void 0:N.size]),Z=function(e){e.preventDefault()},z=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=F[e];if(!r){C(null,-1,n);return}C(r.value,e,n)};(0,r.useEffect)(function(){Y(!1!==T?H(0):-1)},[F.length,g]);var K=r.useCallback(function(e){return N.has(e)&&"combobox"!==m},[m,(0,l.Z)(N).toString(),N.size]);(0,r.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&p&&1===N.size){var e=Array.from(N)[0],t=F.findIndex(function(t){return t.data.value===e});-1!==t&&(Y(t),z(t))}});return p&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[p,g]);var J=function(e){void 0!==e&&A(e,{selected:!N.has(e)}),f||h(!1)};if(r.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var r=0;if(t===b.Z.UP?r=-1:t===b.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?r=1:t===b.Z.P&&(r=-1)),0!==r){var o=H(V+r,r);z(o),Y(o,!0)}break;case b.Z.ENTER:var a,i=F[V];!i||null!=i&&null!==(a=i.data)&&void 0!==a&&a.disabled||U?J(void 0):J(i.value),p&&e.preventDefault();break;case b.Z.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===F.length)return r.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(j,"-empty"),onMouseDown:Z},v);var ee=Object.keys(R).map(function(e){return R[e]}),et=function(e){return e.label};function en(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var er=function(e){var t=F[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,l=(0,x.Z)(n,!0),s=et(t);return t?r.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof s||a?null:s},l,{key:e},en(t,e),{"aria-selected":K(o)}),o):null},eo={role:"listbox",id:"".concat(c,"_list")};return r.createElement(r.Fragment,null,_&&r.createElement("div",(0,i.Z)({},eo,{style:{height:0,width:0,overflow:"hidden"}}),er(V-1),er(V),er(V+1)),r.createElement(ev,{itemKey:"key",ref:B,data:F,height:M,itemHeight:L,fullHeight:!1,onMouseDown:Z,onScroll:E,virtual:_,direction:P,innerProps:_?null:eo},function(e,t){var n=e.group,o=e.groupOption,l=e.data,c=e.label,u=e.value,p=l.key;if(n){var f,m,g=null!==(m=l.title)&&void 0!==m?m:eE(c)?c.toString():void 0;return r.createElement("div",{className:a()(j,"".concat(j,"-group")),title:g},void 0!==c?c:p)}var h=l.disabled,b=l.title,v=(l.children,l.style),E=l.className,S=(0,d.Z)(l,ey),w=(0,Q.Z)(S,ee),O=K(u),k=h||!O&&U,C="".concat(j,"-option"),T=a()(j,C,E,(f={},(0,s.Z)(f,"".concat(C,"-grouped"),o),(0,s.Z)(f,"".concat(C,"-active"),V===t&&!k),(0,s.Z)(f,"".concat(C,"-disabled"),k),(0,s.Z)(f,"".concat(C,"-selected"),O),f)),A=et(e),N=!I||"function"==typeof I||O,R="number"==typeof A?A:A||u,P=eE(R)?R.toString():void 0;return void 0!==b&&(P=b),r.createElement("div",(0,i.Z)({},(0,x.Z)(w),_?{}:en(e,t),{"aria-selected":O,className:T,title:P,onMouseMove:function(){V===t||k||Y(t)},onClick:function(){k||J(u)},style:v}),r.createElement("div",{className:"".concat(C,"-content")},"function"==typeof D?D(e,{index:t}):R),r.isValidElement(I)||O,N&&r.createElement(y,{className:"".concat(j,"-option-state"),customizeIcon:I,customizeIconProps:{value:u,disabled:k,isSelected:O}},O?"✓":null))}))});function ew(e,t){return C(e).join("").toUpperCase().includes(t)}var ex=n(22127),eO=0,ek=(0,ex.Z)(),eC=n(33054),eT=["children","value"],eA=["children"];function eI(e){var t=r.useRef();return t.current=e,r.useCallback(function(){return t.current.apply(t,arguments)},[])}var eN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],eR=["inputValue"],e_=r.forwardRef(function(e,t){var n,o,a,m,g,h,b,v=e.id,y=e.mode,E=e.prefixCls,S=e.backfill,w=e.fieldNames,x=e.inputValue,O=e.searchValue,k=e.onSearch,T=e.autoClearSearchValue,A=void 0===T||T,I=e.onSelect,N=e.onDeselect,R=e.dropdownMatchSelectWidth,_=void 0===R||R,P=e.filterOption,M=e.filterSort,L=e.optionFilterProp,D=e.optionLabelProp,j=e.options,F=e.optionRender,B=e.children,H=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,W=e.virtual,Y=e.direction,K=e.listHeight,X=void 0===K?200:K,Q=e.listItemHeight,J=void 0===Q?20:Q,ee=e.value,et=e.defaultValue,en=e.labelInValue,er=e.onChange,eo=e.maxCount,ea=(0,d.Z)(e,eN),ei=(n=r.useState(),a=(o=(0,u.Z)(n,2))[0],m=o[1],r.useEffect(function(){var e;m("rc_select_".concat((ek?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),v||a),el=V(y),es=!!(!j&&B),ec=r.useMemo(function(){return(void 0!==P||"combobox"!==y)&&P},[P,y]),eu=r.useMemo(function(){return Z(w,es)},[JSON.stringify(w),es]),ed=(0,f.Z)("",{value:void 0!==O?O:x,postState:function(e){return e||""}}),ep=(0,u.Z)(ed,2),ef=ep[0],em=ep[1],eg=r.useMemo(function(){var e=j;j||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eC.Z)(t).map(function(t,o){if(!r.isValidElement(t)||!t.type)return null;var a,i,l,s,u,p=t.type.isSelectOptGroup,f=t.key,m=t.props,g=m.children,h=(0,d.Z)(m,eA);return n||!p?(a=t.key,l=(i=t.props).children,s=i.value,u=(0,d.Z)(i,eT),(0,c.Z)({key:a,value:void 0!==s?s:a,children:l},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===f?o:f,"__"),label:f},h),{},{options:e(g)})}).filter(function(e){return e})}(B));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Z(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&s in t){var a=t[c];void 0===a&&r&&(a=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:a}),e(t[s],!0)}else{var u=t[l];o.push({key:U(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(eH,{fieldNames:eu,childrenAsData:es})},[eH,eu,es]),e$=function(e){var t=ey(e);if(eP(t),er&&(t.length!==eD.length||t.some(function(e,t){var n;return(null===(n=eD[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=en?t:t.map(function(e){return e.value}),r=t.map(function(e){return z(ej(e.value))});er(el?n:n[0],el?r:r[0])}},eW=r.useState(null),eV=(0,u.Z)(eW,2),eq=eV[0],eY=eV[1],eK=r.useState(0),eX=(0,u.Z)(eK,2),eQ=eX[0],eJ=eX[1],e0=void 0!==H?H:"combobox"!==y,e1=r.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eJ(t),S&&"combobox"===y&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eY(String(e))},[S,y]),e2=function(e,t,n){var r=function(){var t,n=ej(e);return[en?{label:null==n?void 0:n[eu.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,z(n)]};if(t&&I){var o=r(),a=(0,u.Z)(o,2);I(a[0],a[1])}else if(!t&&N&&"clear"!==n){var i=r(),l=(0,u.Z)(i,2);N(l[0],l[1])}},e4=eI(function(e,t){var n=!el||t.selected;e$(n?el?[].concat((0,l.Z)(eD),[e]):[e]:eD.filter(function(t){return t.value!==e})),e2(e,n),"combobox"===y?eY(""):(!V||A)&&(em(""),eY(""))}),e3=r.useMemo(function(){var e=!1!==W&&!1!==_;return(0,c.Z)((0,c.Z)({},eg),{},{flattenOptions:eG,onActiveValue:e1,defaultActiveFirstOption:e0,onSelect:e4,menuItemSelectedIcon:$,rawValues:eB,fieldNames:eu,virtual:e,direction:Y,listHeight:X,listItemHeight:J,childrenAsData:es,maxCount:eo,optionRender:F})},[eo,eg,eG,e1,e0,e4,$,eB,eu,W,_,Y,X,J,es,F]);return r.createElement(G.Provider,{value:e3},r.createElement(q,(0,i.Z)({},ea,{id:ei,prefixCls:void 0===E?"rc-select":E,ref:t,omitDomProps:eR,mode:y,displayValues:eF,onDisplayValuesChange:function(e,t){e$(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){e2(e.value,!1,n)})},direction:Y,searchValue:ef,onSearch:function(e,t){if(em(e),eY(null),"submit"===t.source){var n=(e||"").trim();n&&(e$(Array.from(new Set([].concat((0,l.Z)(eB),[n])))),e2(n,!0),em(""));return}"blur"!==t.source&&("combobox"===y&&e$(e),null==k||k(e))},autoClearSearchValue:A,onSearchSplit:function(e){var t=e;"tags"!==y&&(t=e.map(function(e){var t=eb.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(eB),(0,l.Z)(t))));e$(n),n.forEach(function(e){e2(e,!0)})},dropdownMatchSelectWidth:_,OptionList:eS,emptyOptions:!eG.length,activeValue:eq,activeDescendantId:"".concat(ei,"_list_").concat(eQ)})))});e_.Option=K,e_.OptGroup=Y;var eP=n(51761),eM=n(47387),eL=n(21467),eD=n(47794),ej=n(57499),eF=n(70595),eB=n(6336),eU=n(24750),eZ=n(76585),ez=n(80316);let eH=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,["".concat(t,"-description")]:{color:e.colorTextDisabled},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}};var eG=(0,eZ.I$)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return[eH((0,ez.TS)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))]}),e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eW=r.createElement(()=>{let[,e]=(0,eU.ZP)(),t=new eB.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),eV=r.createElement(()=>{let[,e]=(0,eU.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=(0,r.useMemo)(()=>({borderColor:new eB.C(t).onBackground(a).toHexShortString(),shadowColor:new eB.C(n).onBackground(a).toHexShortString(),contentColor:new eB.C(o).onBackground(a).toHexShortString()}),[t,n,o,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:i},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),eq=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=eW,description:l,children:s,imageStyle:c,style:u}=e,d=e$(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:p,direction:f,empty:m}=r.useContext(ej.E_),g=p("empty",o),[h,b,v]=eG(g),[y]=(0,eF.Z)("Empty"),E=void 0!==l?l:null==y?void 0:y.description,S=null;return S="string"==typeof i?r.createElement("img",{alt:"string"==typeof E?E:"empty",src:i}):i,h(r.createElement("div",Object.assign({className:a()(b,v,g,null==m?void 0:m.className,{["".concat(g,"-normal")]:i===eV,["".concat(g,"-rtl")]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==m?void 0:m.style),u)},d),r.createElement("div",{className:"".concat(g,"-image"),style:c},S),E&&r.createElement("div",{className:"".concat(g,"-description")},E),s&&r.createElement("div",{className:"".concat(g,"-footer")},s)))};eq.PRESENTED_IMAGE_DEFAULT=eW,eq.PRESENTED_IMAGE_SIMPLE=eV;var eY=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(ej.E_),o=n("empty");switch(t){case"Table":case"List":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});default:return r.createElement(eq,null)}},eK=n(17094),eX=n(92935),eQ=n(10693),eJ=n(47137),e0=n(8443),e1=n(92801);let e2=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var e4=n(11303),e3=n(12288),e6=n(202),e5=n(25926);let e8=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var e9=e=>{let{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n ".concat(o).concat(l,"bottomLeft,\n ").concat(a).concat(l,"bottomLeft\n ")]:{animationName:e6.fJ},["\n ".concat(o).concat(l,"topLeft,\n ").concat(a).concat(l,"topLeft,\n ").concat(o).concat(l,"topRight,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:e6.Qt},["".concat(i).concat(l,"bottomLeft")]:{animationName:e6.Uw},["\n ".concat(i).concat(l,"topLeft,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:e6.ly},"&-hidden":{display:"none"},["".concat(r)]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e4.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,e6.oN)(e,"slide-up"),(0,e6.oN)(e,"slide-down"),(0,e5.Fm)(e,"move-up"),(0,e5.Fm)(e,"move-down")]},e7=n(8985);let te=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function tt(e,t){let{componentCls:n,iconCls:r}=e,o="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=te(e),l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(i).sub(2).equal(),borderRadius:e.borderRadius,["".concat(n,"-show-search&")]:{cursor:"text"},["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,e7.bf)(2)," 0"),lineHeight:(0,e7.bf)(a),visibility:"hidden",content:'"\\a0"'}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:(0,e7.bf)(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,e4.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(r)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}}var tn=e=>{let{componentCls:t}=e,n=(0,ez.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,ez.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tt(e),tt(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},tt(r,"lg")]};function tr(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,e4.Wf)(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat((0,e7.bf)(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:(0,e7.bf)(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,e7.bf)(r)),"&:after":{display:"none"}}}}}}}let to=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,e7.bf)(o)," ").concat(t.activeShadowColor),outline:0}}}},ta=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},to(e,t))}),ti=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},to(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ta(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ta(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),tl=(e,t)=>{let{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ts=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},tl(e,t))}),tc=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tl(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ts(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ts(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),tu=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}});var td=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ti(e)),tc(e)),tu(e))});let tp=e=>{let{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tf=e=>{let{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tm=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},tp(e)),tf(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e4.vS),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},e4.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,e4.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},tg=e=>{let{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},tm(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tr(e),tr((0,ez.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat((0,e7.bf)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tr((0,ez.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tn(e),e9(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,e3.c)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]};var th=(0,eZ.I$)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,ez.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tg(r),td(r)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:"".concat((r-t*n)/2,"px ").concat(o,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),tb=n(90507),tv=n(77136),ty=n(81303),tE=n(20383),tS=n(66155),tw=n(96871),tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tO="SECRET_COMBOBOX_MODE_DO_NOT_USE",tk=r.forwardRef((e,t)=>{var n,o,i;let l;let{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:p,popupClassName:f,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:b,size:v,disabled:y,notFoundContent:E,status:S,builtinPlacements:w,dropdownMatchSelectWidth:x,popupMatchSelectWidth:O,direction:k,style:C,allowClear:T,variant:A,dropdownStyle:I,transitionName:N,tagRender:R,maxCount:_}=e,P=tx(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:L,renderEmpty:D,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:U,select:Z}=r.useContext(ej.E_),[,z]=(0,eU.ZP)(),H=null!=b?b:null==z?void 0:z.controlHeight,G=L("select",s),$=L(),W=null!=k?k:j,{compactSize:V,compactItemClassnames:q}=(0,e1.ri)(G,W),[Y,K]=(0,e0.Z)(A,c),X=(0,eX.Z)(G),[J,ee,et]=th(G,X),en=r.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===tO?"combobox":t},[e.mode]),er="multiple"===en||"tags"===en,eo=(o=e.suffixIcon,void 0!==(i=e.showArrow)?i:null!==o),ea=null!==(n=null!=O?O:x)&&void 0!==n?n:B,{status:ei,hasFeedback:el,isFormItemInput:es,feedbackIcon:ec}=r.useContext(eJ.aM),eu=(0,eD.F)(ei,S);l=void 0!==E?E:"combobox"===en?null:(null==D?void 0:D("Select"))||r.createElement(eY,{componentName:"Select"});let{suffixIcon:ed,itemIcon:ep,removeIcon:ef,clearIcon:em}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e,m=null!=n?n:r.createElement(tv.Z,null),g=e=>null!==t||s||p?r.createElement(r.Fragment,null,!1!==u&&e,s&&d):null,h=null;if(void 0!==t)h=g(t);else if(i)h=g(r.createElement(tS.Z,{spin:!0}));else{let e="".concat(c,"-suffix");h=t=>{let{open:n,showSearch:o}=t;return n&&o?g(r.createElement(tw.Z,{className:e})):g(r.createElement(tE.Z,{className:e}))}}let b=null;return b=void 0!==o?o:l?r.createElement(tb.Z,null):null,{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:void 0!==a?a:r.createElement(ty.Z,null)}}(Object.assign(Object.assign({},P),{multiple:er,hasFeedback:el,feedbackIcon:ec,showSuffixIcon:eo,prefixCls:G,componentName:"Select"})),eg=(0,Q.Z)(P,["suffixIcon","itemIcon"]),eh=a()(f||m,{["".concat(G,"-dropdown-").concat(W)]:"rtl"===W},d,et,X,ee),eb=(0,eQ.Z)(e=>{var t;return null!==(t=null!=v?v:V)&&void 0!==t?t:e}),ev=r.useContext(eK.Z),ey=a()({["".concat(G,"-lg")]:"large"===eb,["".concat(G,"-sm")]:"small"===eb,["".concat(G,"-rtl")]:"rtl"===W,["".concat(G,"-").concat(Y)]:K,["".concat(G,"-in-form-item")]:es},(0,eD.Z)(G,eu,el),q,null==Z?void 0:Z.className,u,d,et,X,ee),eE=r.useMemo(()=>void 0!==h?h:"rtl"===W?"bottomRight":"bottomLeft",[h,W]),[eS]=(0,eP.Cn)("SelectLike",null==I?void 0:I.zIndex);return J(r.createElement(e_,Object.assign({ref:t,virtual:F,showSearch:null==Z?void 0:Z.showSearch},eg,{style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),dropdownMatchSelectWidth:ea,transitionName:(0,eM.m)($,"slide-up",N),builtinPlacements:w||e2(U),listHeight:g,listItemHeight:H,mode:en,prefixCls:G,placement:eE,direction:W,suffixIcon:ed,menuItemSelectedIcon:ep,removeIcon:ef,allowClear:!0===T?{clearIcon:em}:T,notFoundContent:l,className:ey,getPopupContainer:p||M,dropdownClassName:eh,disabled:null!=y?y:ev,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:eS}),maxCount:er?_:void 0,tagRender:er?R:void 0})))}),tC=(0,eL.Z)(tk);tk.SECRET_COMBOBOX_MODE_DO_NOT_USE=tO,tk.Option=K,tk.OptGroup=Y,tk._InternalPanelDoNotUseOrYouWillBeFired=tC;var tT=tk},92801:function(e,t,n){n.d(t,{BR:function(){return f},ri:function(){return p}});var r=n(16480),o=n.n(r),a=n(33054),i=n(64090),l=n(57499),s=n(10693),c=n(86682),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=i.createContext(null),p=(e,t)=>{let n=i.useContext(d),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:a,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(l,"item"),{["".concat(e,"-compact").concat(l,"first-item")]:a,["".concat(e,"-compact").concat(l,"last-item")]:i,["".concat(e,"-compact").concat(l,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},f=e=>{let{children:t}=e;return i.createElement(d.Provider,{value:null},t)},m=e=>{var{children:t}=e,n=u(e,["children"]);return i.createElement(d.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=i.useContext(l.E_),{size:r,direction:p,block:f,prefixCls:g,className:h,rootClassName:b,children:v}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),E=(0,s.Z)(e=>null!=r?r:e),S=t("space-compact",g),[w,x]=(0,c.Z)(S),O=o()(S,x,{["".concat(S,"-rtl")]:"rtl"===n,["".concat(S,"-block")]:f,["".concat(S,"-vertical")]:"vertical"===p},h,b),k=i.useContext(d),C=(0,a.Z)(v),T=i.useMemo(()=>C.map((e,t)=>{let n=e&&e.key||"".concat(S,"-item-").concat(t);return i.createElement(m,{key:n,compactSize:E,compactDirection:p,isFirstItem:0===t&&(!k||(null==k?void 0:k.isFirstItem)),isLastItem:t===C.length-1&&(!k||(null==k?void 0:k.isLastItem))},e)}),[r,C,k]);return 0===C.length?null:w(i.createElement("div",Object.assign({className:O},y),T))}},65270:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(64090),o=n(16480),a=n.n(o),i=n(33054);function l(e){return["small","middle","large"].includes(e)}function s(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}var c=n(57499),u=n(92801);let d=r.createContext({latestIndex:0}),p=d.Provider;var f=e=>{let{className:t,index:n,children:o,split:a,style:i}=e,{latestIndex:l}=r.useContext(d);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:i},o),nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=r.forwardRef((e,t)=>{var n,o;let{getPrefixCls:u,space:d,direction:h}=r.useContext(c.E_),{size:b=(null==d?void 0:d.size)||"small",align:v,className:y,rootClassName:E,children:S,direction:w="horizontal",prefixCls:x,split:O,style:k,wrap:C=!1,classNames:T,styles:A}=e,I=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,R]=Array.isArray(b)?b:[b,b],_=l(R),P=l(N),M=s(R),L=s(N),D=(0,i.Z)(S,{keepEmpty:!0}),j=void 0===v&&"horizontal"===w?"center":v,F=u("space",x),[B,U,Z]=(0,m.Z)(F),z=a()(F,null==d?void 0:d.className,U,"".concat(F,"-").concat(w),{["".concat(F,"-rtl")]:"rtl"===h,["".concat(F,"-align-").concat(j)]:j,["".concat(F,"-gap-row-").concat(R)]:_,["".concat(F,"-gap-col-").concat(N)]:P},y,E,Z),H=a()("".concat(F,"-item"),null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==d?void 0:d.classNames)||void 0===o?void 0:o.item),G=0,$=D.map((e,t)=>{var n,o;null!=e&&(G=t);let a=e&&e.key||"".concat(H,"-").concat(t);return r.createElement(f,{className:H,key:a,index:t,split:O,style:null!==(n=null==A?void 0:A.item)&&void 0!==n?n:null===(o=null==d?void 0:d.styles)||void 0===o?void 0:o.item},e)}),W=r.useMemo(()=>({latestIndex:G}),[G]);if(0===D.length)return null;let V={};return C&&(V.flexWrap="wrap"),!P&&L&&(V.columnGap=N),!_&&M&&(V.rowGap=R),B(r.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),null==d?void 0:d.style),k)},I),r.createElement(p,{value:W},$)))});h.Compact=u.ZP;var b=h},86682:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(76585),o=n(80316),a=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var s=(0,r.I$)("Space",e=>{let t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),l(t),a(t)]},()=>({}),{resetStyle:!1})},12288:function(e,t,n){n.d(t,{c:function(){return r}});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(i)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(i)]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}},11303:function(e,t,n){n.d(t,{Lx:function(){return s},Qy:function(){return d},Ro:function(){return i},Wf:function(){return a},dF:function(){return l},du:function(){return c},oN:function(){return u},vS:function(){return o}});var r=n(8985);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},46154:function(e,t){t.Z=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}})},13703:function(e,t,n){n.d(t,{J$:function(){return l}});var r=n(8985),o=n(59353);let a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r="".concat(n,"-fade"),l=t?"&":"";return[(0,o.R)(r,a,i,e.motionDurationMid,t),{["\n ".concat(l).concat(r,"-enter,\n ").concat(l).concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(l).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]}},59353:function(e,t,n){n.d(t,{R:function(){return a}});let r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=i?"&":"";return{["\n ".concat(l).concat(e,"-enter,\n ").concat(l).concat(e,"-appear\n ")]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),["".concat(l).concat(e,"-leave")]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),["\n ".concat(l).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(l).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(l).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},25926:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(8985),o=n(59353);let a=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:a,outKeyframes:i},"move-left":{inKeyframes:l,outKeyframes:s},"move-right":{inKeyframes:c,outKeyframes:u}},p=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},202:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return i},fJ:function(){return a},ly:function(){return s},oN:function(){return d}});var r=n(8985),o=n(59353);let a=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},d=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=u[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},58854:function(e,t,n){n.d(t,{_y:function(){return g},kr:function(){return a}});var r=n(8985),o=n(59353);let a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:d,outKeyframes:p},"zoom-right":{inKeyframes:f,outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},g=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=m[t];return[(0,o.R)(r,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},89869:function(e,t,n){n.d(t,{ZP:function(){return i},qN:function(){return o},wZ:function(){return a}});var r=n(2638);let o=8;function a(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o:r}}function i(e,t,n){var o,a,i,l,s,c,u,d;let{componentCls:p,boxShadowPopoverArrow:f,arrowOffsetVertical:m,arrowOffsetHorizontal:g}=e,{arrowDistance:h=0,arrowPlacement:b={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(p,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,f)),{"&:before":{background:t}})]},(o=!!b.top,a={[["&-placement-top > ".concat(p,"-arrow"),"&-placement-topLeft > ".concat(p,"-arrow"),"&-placement-topRight > ".concat(p,"-arrow")].join(",")]:{bottom:h,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-topRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},o?a:{})),(i=!!b.bottom,l={[["&-placement-bottom > ".concat(p,"-arrow"),"&-placement-bottomLeft > ".concat(p,"-arrow"),"&-placement-bottomRight > ".concat(p,"-arrow")].join(",")]:{top:h,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-bottomRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},i?l:{})),(s=!!b.left,c={[["&-placement-left > ".concat(p,"-arrow"),"&-placement-leftTop > ".concat(p,"-arrow"),"&-placement-leftBottom > ".concat(p,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:h},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(p,"-arrow")]:{top:m},["&-placement-leftBottom > ".concat(p,"-arrow")]:{bottom:m}},s?c:{})),(u=!!b.right,d={[["&-placement-right > ".concat(p,"-arrow"),"&-placement-rightTop > ".concat(p,"-arrow"),"&-placement-rightBottom > ".concat(p,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:h},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(p,"-arrow")]:{top:m},["&-placement-rightBottom > ".concat(p,"-arrow")]:{bottom:m}},u?d:{}))}}},2638:function(e,t,n){n.d(t,{W:function(){return a},w:function(){return o}});var r=n(8985);function o(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=1*r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,s=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,c=2*o-l,u=2*o-a,d=2*o-0,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m="polygon(".concat(f,"px 100%, 50% ").concat(f,"px, ").concat(2*o-f,"px 100%, ").concat(f,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(a," ").concat(i," L ").concat(l," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(c," ").concat(s," L ").concat(u," ").concat(i," A ").concat(r," ").concat(r," 0 0 0 ").concat(d," ").concat(o," Z')"),arrowPolygon:m}}let a=(e,t,n)=>{let{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,r.bf)(s)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},43345:function(e,t,n){n.d(t,{Mj:function(){return v},u_:function(){return b},uH:function(){return h}});var r=n(64090),o=n(8985),a=n(12215),i=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},l=n(46864),s=n(6336),c=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};let u=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),d=(e,t)=>new s.C(e).darken(t).toHexString(),p=e=>{let t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgLayout:d(n,4),colorBgContainer:d(n,0),colorBgElevated:d(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:d(n,15),colorBorderSecondary:d(n,6)}};var m=n(49202),g=e=>{let t=(0,m.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};let h=(0,o.jG)(function(e){let t=Object.keys(l.M).map(t=>{let n=(0,a.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t,{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),f=n(o),m=n(a),g=n(i),h=n(l),b=r(u,d),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},b),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new s.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:p,generateNeutralColorPalettes:f})),g(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),i(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},c(r))}(e))}),b={token:l.Z,override:{override:l.Z},hashed:!0},v=r.createContext(b)},46864:function(e,t,n){n.d(t,{M:function(){return r}});let r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},49202:function(e,t,n){function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},24750:function(e,t,n){n.d(t,{ZP:function(){return b},ID:function(){return m},NJ:function(){return f}});var r=n(64090),o=n(8985),a=n(43345),i=n(46864),l=n(6336);function s(e){return e>=0&&e<=255}var c=function(e,t){let{r:n,g:r,b:o,a:a}=new l.C(e).toRgb();if(a<1)return e;let{r:i,g:c,b:u}=new l.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-c*(1-e))/e),d=Math.round((o-u*(1-e))/e);if(s(t)&&s(a)&&s(d))return new l.C({r:t,g:a,b:d,a:Math.round(100*e)/100}).toRgbString()}return new l.C({r:n,g:r,b:o,a:1}).toRgbString()},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d(e){let{override:t}=e,n=u(e,["override"]),r=Object.assign({},t);Object.keys(i.Z).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:c(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:c(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:c(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:c(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new l.C("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new l.C("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new l.C("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},m={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,a=p(t,["override"]),i=Object.assign(Object.assign({},r),{override:o});return i=d(i),a&&Object.entries(a).forEach(e=>{let[t,n]=e,{theme:r}=n,o=p(n,["theme"]),a=o;r&&(a=h(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a}),i};function b(){let{token:e,hashed:t,theme:n,override:l,cssVar:s}=r.useContext(a.Mj),c="".concat("5.13.2","-").concat(t||""),u=n||a.uH,[p,b,v]=(0,o.fp)(u,[i.Z,e],{salt:c,override:l,getComputedToken:h,formatToken:d,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:f,ignore:m,preserve:g}});return[u,v,t?b:"",p,s]}},76585:function(e,t,n){n.d(t,{ZP:function(){return k},I$:function(){return A},bk:function(){return C}});var r=n(64090),o=n(8985);n(48563);var a=n(57499),i=n(11303),l=n(24750),s=n(47365),c=n(65127),u=n(72784),d=n(29676),p=n(68605),f=n(27478);let m=(0,c.Z)(function e(){(0,s.Z)(this,e)}),g=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(m),h="CALC_UNIT";function b(e){return"number"==typeof e?"".concat(e).concat(h):e}let v=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(h),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(m);var y=e=>{let t="css"===e?v:g;return e=>new t(e)},E=n(80316),S=n(28030);let w=(e,t,n)=>{var r;return"function"==typeof n?n((0,E.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},x=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(e=>{a[e]===t[e]&&delete a[e]}),a},O=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function k(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{let[c,p,f,m,g]=(0,l.ZP)(),{getPrefixCls:h,iconPrefixCls:b,csp:v}=(0,r.useContext)(a.E_),k=h(),C=g?"css":"js",T=y(C),{max:A,min:I}="js"===C?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}},N={theme:c,token:m,hashId:f,nonce:()=>null==v?void 0:v.nonce,clientOnly:s.clientOnly,order:s.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",k]}),()=>[{"&":(0,i.Lx)(m)}]),(0,S.Z)(b,v),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,b]}),()=>{if(!1===s.injectStyle)return[];let{token:r,flush:a}=(0,E.ZP)(m),l=w(u,p,n),c=".".concat(e),d=x(u,p,l,{deprecatedTokens:s.deprecatedTokens});g&&Object.keys(l).forEach(e=>{l[e]="var(".concat((0,o.ks)(e,O(u,g.prefix)),")")});let h=(0,E.TS)(r,{componentCls:c,prefixCls:e,iconCls:".".concat(b),antCls:".".concat(k),calc:T,max:A,min:I},g?l:d),v=t(h,{hashId:f,prefixCls:e,rootPrefixCls:k,iconPrefixCls:b});return a(u,d),[!1===s.resetStyle?null:(0,i.du)(h,e),v]}),f]}}let C=(e,t,n,r)=>{let o=k(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n)=>{function a(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:i={},injectStyle:s=!0}=null!=n?n:{},c={[a("zIndexPopup")]:!0};Object.keys(i).forEach(e=>{c[a(e)]=i[e]});let u=r=>{let{rootCls:i,cssVar:s}=r,[,u]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},l.NJ),c),ignore:l.ID,token:u,scope:i},()=>{let r=w(e,u,t),o=x(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[a(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,l.ZP)();return[o=>s&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},A=(e,t,n,r)=>{let o=k(e,t,n,r),a=T(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e),[r,i]=a(t);return[r,n,i]}}},80316:function(e,t,n){n.d(t,{TS:function(){return a}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}t.ZP=e=>{let t;let n=e,a=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{var r;i[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=i[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:a}}},28030:function(e,t,n){var r=n(8985),o=n(11303),a=n(24750);t.Z=(e,t)=>{let[n,i]=(0,a.ZP)();return(0,r.xy)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,o.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])}},1460:function(e,t,n){n.d(t,{Z:function(){return H}});var r=n(64090),o=n(16480),a=n.n(o);function i(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return r.createElement("div",{className:a()("".concat(n,"-content"),l),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}var l=n(14749),s=n(5239),c=n(6787),u=n(44101),d={shiftX:64,adjustY:1},p={adjustX:1,shiftY:!0},f=[0,0],m={left:{points:["cr","cl"],overflow:p,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:p,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:p,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:p,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:p,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:p,offset:[-4,0],targetOffset:f}},g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=(0,r.forwardRef)(function(e,t){var n=e.overlayClassName,o=e.trigger,a=e.mouseEnterDelay,d=e.mouseLeaveDelay,p=e.overlayStyle,f=e.prefixCls,h=void 0===f?"rc-tooltip":f,b=e.children,v=e.onVisibleChange,y=e.afterVisibleChange,E=e.transitionName,S=e.animation,w=e.motion,x=e.placement,O=e.align,k=e.destroyTooltipOnHide,C=e.defaultVisible,T=e.getTooltipContainer,A=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),N=e.id,R=e.showArrow,_=(0,c.Z)(e,g),P=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,function(){return P.current});var M=(0,s.Z)({},_);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(u.Z,(0,l.Z)({popupClassName:n,prefixCls:h,popup:function(){return r.createElement(i,{key:"content",prefixCls:h,id:N,overlayInnerStyle:A},I)},action:void 0===o?["hover"]:o,builtinPlacements:m,popupPlacement:void 0===x?"right":x,ref:P,popupAlign:void 0===O?{}:O,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:E,popupAnimation:S,popupMotion:w,defaultPopupVisible:C,autoDestroy:void 0!==k&&k,mouseLeaveDelay:void 0===d?.1:d,popupStyle:p,mouseEnterDelay:void 0===a?0:a,arrow:void 0===R||R},M),b)}),b=n(44329),v=n(51761),y=n(47387),E=n(67966),S=n(65823),w=n(76564),x=n(86718),O=n(57499),k=n(92801),C=n(24750),T=n(11303),A=n(58854),I=n(89869);let N=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var R=n(80316),_=n(76585),P=n(8985),M=n(2638);let L=e=>{var t;let{componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,P.bf)(e.calc(u).div(2).equal())," ").concat((0,P.bf)(d)),color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:e.min(i,I.qN)}},["".concat(n,"-content")]:{position:"relative"}}),(t=(e,t)=>{let{darkColor:r}=t;return{["&".concat(n,"-").concat(e)]:{["".concat(n,"-inner")]:{backgroundColor:r},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":r}}}},N.reduce((n,r)=>{let o=e["".concat(r,"1")],a=e["".concat(r,"3")],i=e["".concat(r,"6")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{}))),{"&-rtl":{direction:"rtl"}})},(0,I.ZP)(e,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},D=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,I.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,M.w)((0,R.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));function j(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,_.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[L((0,R.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),(0,A._y)(e,"zoom-big-fast")]},D,{resetStyle:!1,injectStyle:t})(e)}var F=n(63787);let B=N.map(e=>"".concat(e,"-inverse"));function U(e,t){let n=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,F.Z)(B),(0,F.Z)(N)).includes(e):N.includes(e)}(t),r=a()({["".concat(e,"-").concat(t)]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=r.forwardRef((e,t)=>{var n,o;let{prefixCls:i,openClassName:l,getTooltipContainer:s,overlayClassName:c,color:u,overlayInnerStyle:d,children:p,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:T=!0,title:A,overlay:I,builtinPlacements:N,arrowPointAtCenter:R=!1,autoAdjustOverflow:_=!0}=e,P=!!T,[,M]=(0,C.ZP)(),{getPopupContainer:L,getPrefixCls:D,direction:F}=r.useContext(O.E_),B=(0,w.ln)("Tooltip"),z=r.useRef(null),H=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>({forceAlign:H,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),H()}}));let[G,$]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),W=!A&&!I&&0!==A,V=r.useMemo(()=>{var e,t;let n=R;return"object"==typeof T&&(n=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:R),N||(0,E.Z)({arrowPointAtCenter:n,autoAdjustOverflow:_,arrowWidth:P?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[R,T,N,M]),q=r.useMemo(()=>0===A?A:I||A||"",[I,A]),Y=r.createElement(k.BR,null,"function"==typeof q?q():q),{getPopupContainer:K,placement:X="top",mouseEnterDelay:Q=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:et}=e,en=Z(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=D("tooltip",i),eo=D(),ea=e["data-popover-inject"],ei=G;"open"in e||"visible"in e||!W||(ei=!1);let el=(0,S.l$)(p)&&!(0,S.M2)(p)?p:r.createElement("span",null,p),es=el.props,ec=es.className&&"string"!=typeof es.className?es.className:a()(es.className,l||"".concat(er,"-open")),[eu,ed,ep]=j(er,!ea),ef=U(er,u),em=ef.arrowStyle,eg=Object.assign(Object.assign({},d),ef.overlayStyle),eh=a()(c,{["".concat(er,"-rtl")]:"rtl"===F},ef.className,et,ed,ep),[eb,ev]=(0,v.Cn)("Tooltip",en.zIndex),ey=r.createElement(h,Object.assign({},en,{zIndex:eb,showArrow:P,placement:X,mouseEnterDelay:Q,mouseLeaveDelay:J,prefixCls:er,overlayClassName:eh,overlayStyle:Object.assign(Object.assign({},em),ee),getTooltipContainer:K||s||L,ref:z,builtinPlacements:V,overlay:Y,visible:ei,onVisibleChange:t=>{var n,r;$(!W&&t),W||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:eg,arrowContent:r.createElement("span",{className:"".concat(er,"-arrow-content")}),motion:{motionName:(0,y.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ei?(0,S.Tm)(el,{className:ec}):el);return eu(r.createElement(x.Z.Provider,{value:ev},ey))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:l,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=r.useContext(O.E_),d=u("tooltip",t),[p,f,m]=j(d),g=U(d,s),h=g.arrowStyle,b=Object.assign(Object.assign({},c),g.overlayStyle),v=a()(f,m,d,"".concat(d,"-pure"),"".concat(d,"-placement-").concat(o),n,g.className);return p(r.createElement("div",{className:v,style:h},r.createElement("div",{className:"".concat(d,"-arrow")}),r.createElement(i,Object.assign({},e,{className:f,prefixCls:d,overlayInnerStyle:b}),l)))};var H=z},36083:function(e,t,n){n.d(t,{default:function(){return eh}});var r=n(64090),o=n(90507),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},u=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(16480),p=n.n(d),f=n(81441),m=n.n(f),g=n(46505),h=n(33054),b=n(24800),v=n(44329),y=n(35704),E=n(74084),S=n(22127),w=function(e){if((0,S.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},x=function(e,t){if(!w(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function O(e,t){return Array.isArray(e)||void 0===t?w(e):x(e,t)}var k=n(4295),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let T={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},A=r.forwardRef((e,t)=>{let{style:n,noStyle:o,disabled:a}=e,i=C(e,["style","noStyle","disabled"]),l={};return o||(l=Object.assign({},T)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),r.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{let{keyCode:t}=e;t===k.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{let{keyCode:n}=t,{onClick:r}=e;n===k.Z.ENTER&&r&&r()},style:l}))});var I=n(57499),N=n(70595),R=n(1460),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},P=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:_}))}),M=n(65823),L=n(78578);let D=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var j=n(76585),F=n(12215),B=n(8985);let U=(e,t,n,r)=>{let{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Z=e=>{let t={};return[1,2,3,4,5].forEach(n=>{t["\n h".concat(n,"&,\n div&-h").concat(n,",\n div&-h").concat(n," > textarea,\n h").concat(n,"\n ")]=U(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)}),t},z=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},D(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:F.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),G=e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:"calc(1em - ".concat((0,B.bf)(n),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),W=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),V=e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Z(e)),{["\n & + h1".concat(t,",\n & + h2").concat(t,",\n & + h3").concat(t,",\n & + h4").concat(t,",\n & + h5").concat(t,"\n ")]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),z(e)),{["\n ".concat(t,"-expand,\n ").concat(t,"-edit,\n ").concat(t,"-copy\n ")]:Object.assign(Object.assign({},D(e)),{marginInlineStart:e.marginXXS})}),G(e)),$(e)),W()),{"&-rtl":{direction:"rtl"}})}};var q=(0,j.I$)("Typography",e=>[V(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Y=e=>{let{prefixCls:t,"aria-label":n,className:o,style:a,direction:i,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=r.createElement(P,null)}=e,h=r.useRef(null),b=r.useRef(!1),v=r.useRef(),[y,E]=r.useState(c);r.useEffect(()=>{E(c)},[c]),r.useEffect(()=>{if(h.current&&h.current.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=()=>{u(y.trim())},w=m?"".concat(t,"-").concat(m):"",[x,O,C]=q(t),T=p()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===i},o,w,O,C);return x(r.createElement("div",{className:T,style:a},r.createElement(L.Z,{ref:h,maxLength:l,value:y,onChange:e=>{let{target:t}=e;E(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;b.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:a}=e;v.current!==t||b.current||n||r||o||a||(t===k.Z.ENTER?(S(),null==f||f()):t===k.Z.ESC&&d())},onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onBlur:()=>{S()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,M.Tm)(g,{className:"".concat(t,"-edit-content-confirm")}):null))};function K(e,t){return r.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var X=(e,t)=>{let n=r.useRef(!1);r.useEffect(()=>{n.current?e():n.current=!0},t)},Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=r.forwardRef((e,t)=>{let{prefixCls:n,component:o="article",className:a,rootClassName:i,setContentRef:l,children:s,direction:c,style:u}=e,d=Q(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=r.useContext(I.E_),h=t;l&&(h=(0,E.sQ)(t,l));let b=f("typography",n),[v,y,S]=q(b),w=p()(b,null==g?void 0:g.className,{["".concat(b,"-rtl")]:"rtl"===(null!=c?c:m)},a,i,y,S),x=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(o,Object.assign({className:w,style:x,ref:h},d),s))});function ee(e){let t=typeof e;return"string"===t||"number"===t}function et(e,t){let n=0,r=[];for(let o=0;ot){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=i}return e}var en=e=>{let{enabledMeasure:t,children:n,text:o,width:a,fontSize:i,rows:l,onEllipsis:s}=e,[[c,u,d],p]=r.useState([0,0,0]),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,E]=r.useState(0),S=r.useRef(null),w=r.useRef(null),x=r.useMemo(()=>(0,h.Z)(o),[o]),O=r.useMemo(()=>{let e;return e=0,x.forEach(t=>{ee(t)?e+=String(t).length:e+=1}),e},[x]),k=r.useMemo(()=>t&&3===g?n(et(x,u),u{t&&a&&i&&O&&(v(1),p([0,Math.ceil(O/2),O]))},[t,a,i,o,O,l]),(0,b.Z)(()=>{var e;1===g&&E((null===(e=S.current)||void 0===e?void 0:e.offsetHeight)||0)},[g]),(0,b.Z)(()=>{var e,t;if(y){if(1===g)((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=l*y?(v(4),s(!1)):v(2);else if(2===g){if(c!==d){let e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0,n=l*y,r=c,o=d;c===d-1?o=c:e<=n?r=u:o=u;let a=Math.ceil((r+o)/2);p([r,a,o])}else v(3),m(u),s(!0)}}},[g,c,d,l,y]);let C=(e,t,n)=>r.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return r.createElement(r.Fragment,null,k,t&&3!==g&&4!==g&&r.createElement(r.Fragment,null,C("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),C(1===g?n(x,!1):n(et(x,u),!0),w,{width:a,whiteSpace:"normal",margin:0,padding:0})))},er=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:a}=e;return(null==a?void 0:a.title)&&t?r.createElement(R.Z,Object.assign({open:!!n&&void 0},a),o):o},eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ea(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ei(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}let el=r.forwardRef((e,t)=>{var n,a,i;let{prefixCls:l,className:c,style:d,type:f,disabled:S,children:w,ellipsis:x,editable:k,copyable:C,component:T,title:_}=e,P=eo(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:L}=r.useContext(I.E_),[D]=(0,N.Z)("Text"),j=r.useRef(null),F=r.useRef(null),B=M("typography",l),U=(0,y.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[Z,z]=K(k),[H,G]=(0,v.Z)(!1,{value:z.editing}),{triggerType:$=["icon"]}=z,W=e=>{var t;e&&(null===(t=z.onStart)||void 0===t||t.call(z)),G(e)};X(()=>{var e;H||null===(e=F.current)||void 0===e||e.focus()},[H]);let V=e=>{null==e||e.preventDefault(),W(!0)},[q,Q]=K(C),[ee,et]=r.useState(!1),el=r.useRef(null),es={};Q.format&&(es.format=Q.format);let ec=()=>{el.current&&clearTimeout(el.current)},eu=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),m()(Q.text||String(w)||"",es),et(!0),ec(),el.current=setTimeout(()=>{et(!1)},3e3),null===(t=Q.onCopy)||void 0===t||t.call(Q,e)};r.useEffect(()=>ec,[]);let[ed,ep]=r.useState(!1),[ef,em]=r.useState(!1),[eg,eh]=r.useState(!1),[eb,ev]=r.useState(!1),[ey,eE]=r.useState(!1),[eS,ew]=r.useState(!0),[ex,eO]=K(x,{expandable:!1}),ek=ex&&!eg,{rows:eC=1}=eO,eT=r.useMemo(()=>!ek||void 0!==eO.suffix||eO.onEllipsis||eO.expandable||Z||q,[ek,eO,Z,q]);(0,b.Z)(()=>{ex&&!eT&&(ep(O("webkitLineClamp")),em(O("textOverflow")))},[eT,ex]);let eA=r.useMemo(()=>!eT&&(1===eC?ef:ed),[eT,ef,ed]),eI=ek&&(eA?ey:eb),eN=ek&&1===eC&&eA,eR=ek&&eC>1&&eA,e_=e=>{var t;eh(!0),null===(t=eO.onExpand)||void 0===t||t.call(eO,e)},[eP,eM]=r.useState(0),[eL,eD]=r.useState(0),ej=e=>{var t;ev(e),eb!==e&&(null===(t=eO.onEllipsis)||void 0===t||t.call(eO,e))};r.useEffect(()=>{let e=j.current;if(ex&&eA&&e){let t=eR?e.offsetHeight{let e=j.current;if("undefined"==typeof IntersectionObserver||!e||!eA||!ek)return;let t=new IntersectionObserver(()=>{ew(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eA,ek]);let eF={};eF=!0===eO.tooltip?{title:null!==(n=z.text)&&void 0!==n?n:w}:r.isValidElement(eO.tooltip)?{title:eO.tooltip}:"object"==typeof eO.tooltip?Object.assign({title:null!==(a=z.text)&&void 0!==a?a:w},eO.tooltip):{title:eO.tooltip};let eB=r.useMemo(()=>{let e=e=>["string","number"].includes(typeof e);return!ex||eA?void 0:e(z.text)?z.text:e(w)?w:e(_)?_:e(eF.title)?eF.title:void 0},[ex,eA,_,eF.title,eI]);if(H)return r.createElement(Y,{value:null!==(i=z.text)&&void 0!==i?i:"string"==typeof w?w:"",onSave:e=>{var t;null===(t=z.onChange)||void 0===t||t.call(z,e),W(!1)},onCancel:()=>{var e;null===(e=z.onCancel)||void 0===e||e.call(z),W(!1)},onEnd:z.onEnd,prefixCls:B,className:c,style:d,direction:L,component:T,maxLength:z.maxLength,autoSize:z.autoSize,enterIcon:z.enterIcon});let eU=()=>{let e;let{expandable:t,symbol:n}=eO;return t?(e=n||(null==D?void 0:D.expand),r.createElement("a",{key:"expand",className:"".concat(B,"-expand"),onClick:e_,"aria-label":null==D?void 0:D.expand},e)):null},eZ=()=>{if(!Z)return;let{icon:e,tooltip:t}=z,n=(0,h.Z)(t)[0]||(null==D?void 0:D.edit),o="string"==typeof n?n:"";return $.includes("icon")?r.createElement(R.Z,{key:"edit",title:!1===t?"":n},r.createElement(A,{ref:F,className:"".concat(B,"-edit"),onClick:V,"aria-label":o},e||r.createElement(u,{role:"button"}))):null},ez=()=>{if(!q)return null;let{tooltips:e,icon:t}=Q,n=ei(e),a=ei(t),i=ee?ea(n[1],null==D?void 0:D.copied):ea(n[0],null==D?void 0:D.copy),l=ee?null==D?void 0:D.copied:null==D?void 0:D.copy,c="string"==typeof i?i:l;return r.createElement(R.Z,{key:"copy",title:i},r.createElement(A,{className:p()("".concat(B,"-copy"),{["".concat(B,"-copy-success")]:ee,["".concat(B,"-copy-icon-only")]:null==w}),onClick:eu,"aria-label":c},ee?ea(a[1],r.createElement(o.Z,null),!0):ea(a[0],r.createElement(s,null),!0)))},eH=e=>[e&&eU(),eZ(),ez()],eG=e=>[e&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),eO.suffix,eH(e)];return r.createElement(g.Z,{onResize:(e,t)=>{var n;let{offsetWidth:r}=e;eM(r),eD(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!ek},n=>r.createElement(er,{tooltipProps:eF,enabledEllipsis:ek,isEllipsis:eI},r.createElement(J,Object.assign({className:p()({["".concat(B,"-").concat(f)]:f,["".concat(B,"-disabled")]:S,["".concat(B,"-ellipsis")]:ex,["".concat(B,"-single-line")]:ek&&1===eC,["".concat(B,"-ellipsis-single-line")]:eN,["".concat(B,"-ellipsis-multiple-line")]:eR},c),prefixCls:l,style:Object.assign(Object.assign({},d),{WebkitLineClamp:eR?eC:void 0}),component:T,ref:(0,E.sQ)(n,j,t),direction:L,onClick:$.includes("text")?V:void 0,"aria-label":null==eB?void 0:eB.toString(),title:_},U),r.createElement(en,{enabledMeasure:ek&&!eA,text:w,rows:eC,width:eP,fontSize:eL,onEllipsis:ej},(t,n)=>{let o=t;return t.length&&n&&eB&&(o=r.createElement("span",{key:"show-content","aria-hidden":!0},o)),function(e,t){let{mark:n,code:o,underline:a,delete:i,strong:l,keyboard:s,italic:c}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",a),d("del",i),d("code",o),d("mark",n),d("kbd",s),d("i",c),u}(e,r.createElement(r.Fragment,null,o,eG(n)))}))))});var es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ec=r.forwardRef((e,t)=>{var{ellipsis:n,rel:o}=e,a=es(e,["ellipsis","rel"]);let i=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete i.navigate,r.createElement(el,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),eu=r.forwardRef((e,t)=>r.createElement(el,Object.assign({ref:t},e,{component:"div"})));var ed=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ep=r.forwardRef((e,t)=>{var{ellipsis:n}=e,o=ed(e,["ellipsis"]);let a=r.useMemo(()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n,[n]);return r.createElement(el,Object.assign({ref:t},o,{ellipsis:a,component:"span"}))}),ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let em=[1,2,3,4,5],eg=r.forwardRef((e,t)=>{let n;let{level:o=1}=e,a=ef(e,["level"]);return n=em.includes(o)?"h".concat(o):"h1",r.createElement(el,Object.assign({ref:t},a,{component:n}))});J.Text=ep,J.Link=ec,J.Title=eg,J.Paragraph=eu;var eh=J},46495:function(e,t,n){n.d(t,{Z:function(){return ts}});var r=n(64090),o=n(63787),a=n(89542),i=n(16480),l=n.n(i),s=n(14749),c=n(47365),u=n(65127),d=n(34951),p=n(27478),f=n(85430),m=n(50833),g=n(5239),h=n(6787),b=n(86926),v=n(6976),y=n(74902),E=n(72480),S=n(53850);function w(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0}function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var O=function(e,t,n){var r=function e(r,o){if(r){if(r.path=o||"",r.isFile)r.file(function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(r.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(o).concat(r.name,"/"))})},i=r.createReader(),l=[],function e(){i.readEntries(function(t){var n=Array.prototype.slice.apply(t);l=l.concat(n),n.length?e():a(l)})}()}}};e.forEach(function(e){r(e.webkitGetAsEntry())})},k=+new Date,C=0;function T(){return"rc-upload-".concat(k,"-").concat(++C)}var A=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],I=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){(0,c.Z)(this,n);for(var e,r,a=arguments.length,i=Array(a),l=0;l0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];if(Array.isArray(r)){r.forEach(function(e){n.append("".concat(t,"[]"),e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var n;return e.onError(((n=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,n.method=e.method,n.url=e.action,n),x(t))}return e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}})({action:o,filename:c,data:n,file:a,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,a)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,a,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,a),delete t.reqs[f]}})}}},{key:"reset",value:function(){this.setState({uid:T()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.prefixCls,a=t.className,i=t.classNames,c=t.disabled,u=t.id,d=t.style,p=t.styles,f=t.multiple,b=t.accept,v=t.capture,y=t.children,S=t.directory,w=t.openFileDialogOnClick,x=t.onMouseEnter,O=t.onMouseLeave,k=t.hasControlInside,C=(0,h.Z)(t,A),T=l()((e={},(0,m.Z)(e,o,!0),(0,m.Z)(e,"".concat(o,"-disabled"),c),(0,m.Z)(e,a,a),e)),I=c?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return r.createElement(n,(0,s.Z)({},I,{className:T,role:k?void 0:"button",style:d}),r.createElement("input",(0,s.Z)({},(0,E.Z)(C,{aria:!0,data:!0}),{id:u,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,g.Z)({display:"none"},(void 0===p?{}:p).input),className:(void 0===i?{}:i).input,accept:b},S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},{multiple:f,onChange:this.onChange},null!=v?{capture:v}:{})),y)}}]),n}(r.Component);function N(){}var R=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=Array(r),a=0;a{let{componentCls:t,iconCls:n}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-drag")]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),[t]:{padding:e.padding},["".concat(t,"-btn")]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:"".concat((0,Z.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder)}},["".concat(t,"-drag-container")]:{display:"table-cell",verticalAlign:"middle"},["\n &:not(".concat(t,"-disabled):hover,\n &-hover:not(").concat(t,"-disabled)\n ")]:{borderColor:e.colorPrimaryHover},["p".concat(t,"-drag-icon")]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},["p".concat(t,"-text")]:{margin:"0 0 ".concat((0,Z.bf)(e.marginXXS)),color:e.colorTextHeading,fontSize:e.fontSizeLG},["p".concat(t,"-hint")]:{color:e.colorTextDescription,fontSize:e.fontSize},["&".concat(t,"-disabled")]:{["p".concat(t,"-drag-icon ").concat(n,",\n p").concat(t,"-text,\n p").concat(t,"-hint\n ")]:{color:e.colorTextDisabled}}}}}},H=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a,calc:i}=e,l="".concat(t,"-list-item"),s="".concat(l,"-actions"),c="".concat(l,"-action"),u=e.fontHeightSM;return{["".concat(t,"-wrapper")]:{["".concat(t,"-list")]:Object.assign(Object.assign({},(0,j.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:"background-color ".concat(e.motionDurationSlow),"&:hover":{backgroundColor:e.controlItemBgHover},["".concat(l,"-name")]:Object.assign(Object.assign({},j.vS),{padding:"0 ".concat((0,Z.bf)(e.paddingXS)),lineHeight:a,flex:"auto",transition:"all ".concat(e.motionDurationSlow)}),[s]:{[c]:{opacity:0},[r]:{color:e.actionsColor,transition:"all ".concat(e.motionDurationSlow)},["\n ".concat(c,":focus-visible,\n &.picture ").concat(c,"\n ")]:{opacity:1},["".concat(c).concat(n,"-btn")]:{height:u,border:0,lineHeight:1}},["".concat(t,"-icon ").concat(r)]:{color:e.colorTextDescription,fontSize:o},["".concat(l,"-progress")]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},["".concat(l,":hover ").concat(c)]:{opacity:1},["".concat(l,"-error")]:{color:e.colorError,["".concat(l,"-name, ").concat(t,"-icon ").concat(r)]:{color:e.colorError},[s]:{["".concat(r,", ").concat(r,":hover")]:{color:e.colorError},[c]:{opacity:1}}},["".concat(t,"-list-item-container")]:{transition:"opacity ".concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},G=n(13703);let $=new Z.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),W=new Z.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var V=e=>{let{componentCls:t}=e,n="".concat(t,"-animate-inline");return[{["".concat(t,"-wrapper")]:{["".concat(n,"-appear, ").concat(n,"-enter, ").concat(n,"-leave")]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},["".concat(n,"-appear, ").concat(n,"-enter")]:{animationName:$},["".concat(n,"-leave")]:{animationName:W}}},{["".concat(t,"-wrapper")]:(0,G.J$)(e)},$,W]},q=n(12215);let Y=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item");return{["".concat(t,"-wrapper")]:{["\n ".concat(i).concat(i,"-picture,\n ").concat(i).concat(i,"-picture-card,\n ").concat(i).concat(i,"-picture-circle\n ")]:{[l]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:"".concat((0,Z.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},["".concat(l,"-thumbnail")]:Object.assign(Object.assign({},j.vS),{width:r,height:r,lineHeight:(0,Z.bf)(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),["".concat(l,"-progress")]:{bottom:o,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingSM).mul(2).equal()),")"),marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},["".concat(l,"-error")]:{borderColor:e.colorError,["".concat(l,"-thumbnail ").concat(n)]:{["svg path[fill='".concat(q.iN[0],"']")]:{fill:e.colorErrorBg},["svg path[fill='".concat(q.iN.primary,"']")]:{fill:e.colorError}}},["".concat(l,"-uploading")]:{borderStyle:"dashed",["".concat(l,"-name")]:{marginBottom:o}}},["".concat(i).concat(i,"-picture-circle ").concat(l)]:{["&, &::before, ".concat(l,"-thumbnail")]:{borderRadius:"50%"}}}}},K=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item"),s=e.uploadPicCardSize;return{["\n ".concat(t,"-wrapper").concat(t,"-picture-card-wrapper,\n ").concat(t,"-wrapper").concat(t,"-picture-circle-wrapper\n ")]:Object.assign(Object.assign({},(0,j.dF)()),{display:"inline-block",width:"100%",["".concat(t).concat(t,"-select")]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),["> ".concat(t)]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},["&:not(".concat(t,"-disabled):hover")]:{borderColor:e.colorPrimary}},["".concat(i).concat(i,"-picture-card, ").concat(i).concat(i,"-picture-circle")]:{["".concat(i,"-item-container")]:{display:"inline-block",width:s,height:s,marginBlock:"0 ".concat((0,Z.bf)(e.marginXS)),marginInline:"0 ".concat((0,Z.bf)(e.marginXS)),verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),height:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),backgroundColor:e.colorBgMask,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'" "'}},["".concat(l,":hover")]:{["&::before, ".concat(l,"-actions")]:{opacity:1}},["".concat(l,"-actions")]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(e.motionDurationSlow),["\n ".concat(n,"-eye,\n ").concat(n,"-download,\n ").concat(n,"-delete\n ")]:{zIndex:10,width:r,margin:"0 ".concat((0,Z.bf)(e.marginXXS)),fontSize:r,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},["".concat(l,"-thumbnail, ").concat(l,"-thumbnail img")]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},["".concat(l,"-name")]:{display:"none",textAlign:"center"},["".concat(l,"-file + ").concat(l,"-name")]:{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")")},["".concat(l,"-uploading")]:{["&".concat(l)]:{backgroundColor:e.colorFillAlter},["&::before, ".concat(n,"-eye, ").concat(n,"-download, ").concat(n,"-delete")]:{display:"none"}},["".concat(l,"-progress")]:{bottom:e.marginXL,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),paddingInlineStart:0}}}),["".concat(t,"-wrapper").concat(t,"-picture-circle-wrapper")]:{["".concat(t).concat(t,"-select")]:{borderRadius:"50%"}}}};var X=e=>{let{componentCls:t}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"}}};let Q=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},(0,j.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},["".concat(t,"-select")]:{display:"inline-block"},["".concat(t,"-disabled")]:{color:n,cursor:"not-allowed"}})}};var J=(0,B.I$)("Upload",e=>{let{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=(0,U.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Q(i),z(i),Y(i),K(i),H(i),V(i),X(i),(0,F.Z)(i)]},e=>({actionsColor:e.colorTextDescription})),ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},et=n(60688),en=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ee}))}),er=n(66155),eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ea=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eo}))}),ei={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},el=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ei}))}),es=n(49367),ec=n(47387),eu=n(65823),ed=n(1861);function ep(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ef(e,t){let n=(0,o.Z)(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return -1===r?n.push(e):n[r]=e,n}function em(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},eh=e=>0===e.indexOf("image/"),eb=e=>{if(e.type&&!e.thumbUrl)return eh(e.type);let t=e.thumbUrl||e.url||"",n=eg(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function ev(e){return new Promise(t=>{if(!e.type||!eh(e.type)){t("");return}let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,s=0,c=0;e>a?c=-((l=200/e*a)-i)/2:s=-((i=200/a*e)-l)/2,r.drawImage(o,s,c,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eE=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ey}))}),eS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ew=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eS}))}),ex=n(41311),eO=n(99537),ek=n(90507),eC=n(77136),eT=n(81303),eA=n(35704),eI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eN=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current},eR=n(80406),e_=n(22127),eP=0,eM=(0,e_.Z)(),eL=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function eD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n);return"".concat(e[n]," ").concat("".concat(Math.floor(r*t),"%"))})}var ej=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.color,a=e.gradientId,i=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=o&&"object"===(0,v.Z)(o),m=d/2,g=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:f?"#FFF":void 0,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!f)return g;var h="".concat(a,"-conic"),b=eD(o,(360-p)/360),y=eD(o,1),E="conic-gradient(from ".concat(p?"".concat(180+p/2,"deg"):"0deg",", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:h},g),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},r.createElement(eL,{bg:S},r.createElement(eL,{bg:E}))))}),eF=function(e,t,n,r,o,a,i,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-r)/100*t;return"round"===s&&100!==r&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+n/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function eU(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eZ=function(e){var t,n,o,a,i,c,u,d,p=(0,g.Z)((0,g.Z)({},eI),e),f=p.id,m=p.prefixCls,b=p.steps,y=p.strokeWidth,E=p.trailWidth,S=p.gapDegree,w=void 0===S?0:S,x=p.gapPosition,O=p.trailColor,k=p.strokeLinecap,C=p.style,T=p.className,A=p.strokeColor,I=p.percent,N=(0,h.Z)(p,eB),R=(t=r.useState(),o=(n=(0,eR.Z)(t,2))[0],a=n[1],r.useEffect(function(){var e;a("rc_progress_".concat((eM?(e=eP,eP+=1):e="TEST_OR_SSR",e)))},[]),f||o),_="".concat(R,"-gradient"),P=50-y/2,M=2*Math.PI*P,L=w>0?90+w/2:-90,D=(360-w)/360*M,j="object"===(0,v.Z)(b)?b:{count:b,space:2},F=j.count,B=j.space,U=eU(I),Z=eU(A),z=Z.find(function(e){return e&&"object"===(0,v.Z)(e)}),H=z&&"object"===(0,v.Z)(z)?"butt":k,G=eF(M,D,0,100,L,w,x,O,H,y),$=eN();return r.createElement("svg",(0,s.Z)({className:l()("".concat(m,"-circle"),T),viewBox:"0 0 ".concat(100," ").concat(100),style:C,id:f,role:"presentation"},N),!F&&r.createElement("circle",{className:"".concat(m,"-circle-trail"),r:P,cx:50,cy:50,stroke:O,strokeLinecap:H,strokeWidth:E||y,style:G}),F?(i=Math.round(U[0]/100*F),c=100/F,u=0,Array(F).fill(null).map(function(e,t){var n=t<=i-1?Z[0]:O,o=n&&"object"===(0,v.Z)(n)?"url(#".concat(_,")"):void 0,a=eF(M,D,u,c,L,w,x,n,"butt",y,B);return u+=(D-a.strokeDashoffset+B)*100/D,r.createElement("circle",{key:t,className:"".concat(m,"-circle-path"),r:P,cx:50,cy:50,stroke:o,strokeWidth:y,opacity:1,style:a,ref:function(e){$[t]=e}})})):(d=0,U.map(function(e,t){var n=Z[t]||Z[Z.length-1],o=eF(M,D,d,e,L,w,x,n,H,y);return d+=e,r.createElement(ej,{key:t,color:n,ptg:e,radius:P,prefixCls:m,gradientId:_,style:o,strokeLinecap:H,strokeWidth:y,gapDegree:w,ref:function(e){$[t]=e},size:100})}).reverse()))},ez=n(1460);function eH(e){return!e||e<0?0:e>100?100:e}function eG(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}let e$=e=>{let{percent:t,success:n,successPercent:r}=e,o=eH(eG({success:n,successPercent:r}));return[o,eH(eH(t)-o)]},eW=e=>{let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||q.ez.green,n||null]},eV=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if("step"===t){let t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=r?r:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=t}else if("line"===t){let t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,s]},eq=e=>3/e*100;var eY=e=>{let{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:a,gapDegree:i,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eV(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eq(f),6));let h=r.useMemo(()=>i||0===i?i:"dashboard"===c?75:void 0,[i,c]),b="[object Object]"===Object.prototype.toString.call(e.strokeColor),v=eW({success:d,strokeColor:e.strokeColor}),y=l()("".concat(t,"-inner"),{["".concat(t,"-circle-gradient")]:b}),E=r.createElement(eZ,{percent:e$(e),strokeWidth:g,trailWidth:g,strokeColor:v,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:a||"dashboard"===c&&"bottom"||void 0});return r.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?r.createElement(ez.Z,{title:u},r.createElement("span",null,E)):r.createElement(r.Fragment,null,E,u))};let eK="--progress-line-stroke-color",eX="--progress-percent",eQ=e=>{let t=e?"100%":"-100%";return new Z.E4("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},["".concat(t,"-outer")]:{display:"inline-block",width:"100%"},["&".concat(t,"-show-info")]:{["".concat(t,"-outer")]:{marginInlineEnd:"calc(-2em - ".concat((0,Z.bf)(e.marginXS),")"),paddingInlineEnd:"calc(2em + ".concat((0,Z.bf)(e.paddingXS),")")}},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(eK,")")]},height:"100%",width:"calc(1 / var(".concat(eX,") * 100%)"),display:"block"}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:eQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:eQ(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},e0=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},e1=e=>{let{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},e2=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}};var e4=(0,B.I$)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=(0,U.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eJ(n),e0(n),e1(n),e2(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})),e3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let e6=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")}).join(", ")},e5=(e,t)=>{let{from:n=q.ez.blue,to:r=q.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,a=e3(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=e6(a),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[eK]:t}}let i="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:i,[eK]:i}};var e8=e=>{let{prefixCls:t,direction:n,percent:o,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=l&&"string"!=typeof l?e5(l,n):{[eK]:l,background:l},f="square"===s||"butt"===s?0:void 0,[m,g]=eV(null!=a?a:[-1,i||("small"===a?6:8)],"line",{strokeWidth:i}),h=Object.assign(Object.assign({width:"".concat(eH(o),"%"),height:g,borderRadius:f},p),{[eX]:eH(o)/100}),b=eG(e),v={width:"".concat(eH(b),"%"),height:g,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(t,"-outer"),style:{width:m<0?"100%":m,height:g}},r.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:u||void 0,borderRadius:f}},r.createElement("div",{className:"".concat(t,"-bg"),style:h}),void 0!==b?r.createElement("div",{className:"".concat(t,"-success-bg"),style:v}):null)),c)},e9=e=>{let{size:t,steps:n,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(o/100*n),[p,f]=eV(null!=t?t:["small"===t?2:14,a],"step",{steps:n,strokeWidth:a}),m=p/n,g=Array(n);for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let te=["normal","exception","active","success"],tt=r.forwardRef((e,t)=>{let n;let{prefixCls:o,className:a,rootClassName:i,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=e7(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=r.useMemo(()=>{var t,n;let r=eG(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=u?u:0)||void 0===n?void 0:n.toString(),10)},[u,e.success,e.successPercent]),y=r.useMemo(()=>!te.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:E,direction:S,progress:w}=r.useContext(P.E_),x=E("progress",o),[O,k,C]=e4(x),T=r.useMemo(()=>{let t;if(!p)return null;let n=eG(e),o=g||(e=>"".concat(e,"%")),a="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eH(u),eH(n)):"exception"===y?t=a?r.createElement(eC.Z,null):r.createElement(eT.Z,null):"success"===y&&(t=a?r.createElement(eO.Z,null):r.createElement(ek.Z,null)),r.createElement("span",{className:"".concat(x,"-text"),title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,x,g]),A=Array.isArray(c)?c[0]:c,I="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?n=s?r.createElement(e9,Object.assign({},e,{strokeColor:I,prefixCls:x,steps:s}),T):r.createElement(e8,Object.assign({},e,{strokeColor:A,prefixCls:x,direction:S}),T):("circle"===f||"dashboard"===f)&&(n=r.createElement(eY,Object.assign({},e,{strokeColor:A,prefixCls:x,progressStatus:y}),T));let N=l()(x,"".concat(x,"-status-").concat(y),"".concat(x,"-").concat("dashboard"===f&&"circle"||s&&"steps"||f),{["".concat(x,"-inline-circle")]:"circle"===f&&eV(d,"circle")[0]<=20,["".concat(x,"-show-info")]:p,["".concat(x,"-").concat(d)]:"string"==typeof d,["".concat(x,"-rtl")]:"rtl"===S},null==w?void 0:w.className,a,i,k,C);return O(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==w?void 0:w.style),h),className:N,role:"progressbar","aria-valuenow":v},(0,eA.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),n))}),tn=r.forwardRef((e,t)=>{var n,o;let{prefixCls:a,className:i,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:E,previewIcon:S,removeIcon:w,downloadIcon:x,onPreview:O,onDownload:k,onClose:C}=e,{status:T}=d,[A,I]=r.useState(T);r.useEffect(()=>{"removed"!==T&&I(T)},[T]);let[N,R]=r.useState(!1);r.useEffect(()=>{let e=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(e)}},[]);let _=m(d),M=r.createElement("div",{className:"".concat(a,"-icon")},_);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==A&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?r.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(a,"-list-item-image"),crossOrigin:d.crossOrigin}):_,t=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:b&&!b(d)});M=r.createElement("a",{className:t,onClick:e=>O(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:"uploading"!==A});M=r.createElement("div",{className:e},_)}}let L=l()("".concat(a,"-list-item"),"".concat(a,"-list-item-").concat(A)),D="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,j=y?g(("function"==typeof w?w(d):w)||r.createElement(eE,null),()=>C(d),a,c.removeFile,!0):null,F=E&&"done"===A?g(("function"==typeof x?x(d):x)||r.createElement(ew,null),()=>k(d),a,c.downloadFile):null,B="picture-card"!==u&&"picture-circle"!==u&&r.createElement("span",{key:"download-delete",className:l()("".concat(a,"-list-item-actions"),{picture:"picture"===u})},F,j),U=l()("".concat(a,"-list-item-name")),Z=d.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:d.name},D,{href:d.url,onClick:e=>O(d,e)}),d.name),B]:[r.createElement("span",{key:"view",className:U,onClick:e=>O(d,e),title:d.name},d.name),B],z=v&&(d.url||d.thumbUrl)?r.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>O(d,e),title:c.previewFile},"function"==typeof S?S(d):S||r.createElement(ex.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==A&&r.createElement("span",{className:"".concat(a,"-list-item-actions")},z,"done"===A&&F,j),{getPrefixCls:G}=r.useContext(P.E_),$=G(),W=r.createElement("div",{className:L},M,Z,H,N&&r.createElement(es.ZP,{motionName:"".concat($,"-fade"),visible:"uploading"===A,motionDeadline:2e3},e=>{let{className:t}=e,n="percent"in d?r.createElement(tt,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return r.createElement("div",{className:l()("".concat(a,"-list-item-progress"),t)},n)})),V=d.response&&"string"==typeof d.response?d.response:(null===(n=d.error)||void 0===n?void 0:n.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,q="error"===A?r.createElement(ez.Z,{title:V,getPopupContainer:e=>e.parentNode},W):W;return r.createElement("div",{className:l()("".concat(a,"-list-item-container"),i),style:s,ref:t},h?h(q,d,p,{download:k.bind(null,d),preview:O.bind(null,d),remove:C.bind(null,d)}):q)}),tr=r.forwardRef((e,t)=>{let{listType:n="text",previewFile:a=ev,onPreview:i,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=eb,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:E,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:x=!0,itemRender:O,disabled:k}=e,C=function(){let[,e]=r.useReducer(e=>e+1,0);return e}(),[T,A]=r.useState(!1);r.useEffect(()=>{("picture"===n||"picture-card"===n||"picture-circle"===n)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",C()}))})},[n,m,a]),r.useEffect(()=>{A(!0)},[]);let I=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},N=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},R=e=>{null==c||c(e)},_=e=>{if(d)return d(e,n);let t="uploading"===e.status,o=p&&p(e)?r.createElement(el,null):r.createElement(en,null),a=t?r.createElement(er.Z,null):r.createElement(ea,null);return"picture"===n?a=t?r.createElement(er.Z,null):o:("picture-card"===n||"picture-circle"===n)&&(a=t?u.uploading:o),a},M=(e,t,n,o,a)=>{let i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,eu.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-action")};if(a&&(i.disabled=k),(0,eu.l$)(e)){let t=(0,eu.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(ed.ZP,Object.assign({},i,{icon:t}))}return r.createElement(ed.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:N}));let{getPrefixCls:L}=r.useContext(P.E_),D=L("upload",f),j=L(),F=l()("".concat(D,"-list"),"".concat(D,"-list-").concat(n)),B=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),U={motionDeadline:2e3,motionName:"".concat(D,"-").concat("picture-card"===n||"picture-circle"===n?"animate-inline":"animate"),keys:B,motionAppear:T},Z=r.useMemo(()=>{let e=Object.assign({},(0,ec.Z)(j));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[j]);return"picture-card"!==n&&"picture-circle"!==n&&(U=Object.assign(Object.assign({},Z),U)),r.createElement("div",{className:F},r.createElement(es.V4,Object.assign({},U,{component:!1}),e=>{let{key:t,file:o,className:a,style:i}=e;return r.createElement(tn,{key:t,locale:u,prefixCls:D,className:a,style:i,file:o,items:m,progress:S,listType:n,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:E,iconRender:_,actionIconRender:M,itemRender:O,onPreview:I,onDownload:N,onClose:R})}),w&&r.createElement(es.ZP,Object.assign({},U,{visible:x,forceRender:!0}),e=>{let{className:t,style:n}=e;return(0,eu.Tm)(w,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))}),to="__LIST_IGNORE_".concat(Date.now(),"__"),ta=r.forwardRef((e,t)=>{let{fileList:n,defaultFileList:i,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:E,prefixCls:S,className:w,type:x="select",children:O,style:k,itemRender:C,maxCount:T,data:A={},multiple:I=!1,hasControlInside:N=!0,action:j="",accept:F="",supportServerRender:B=!0,rootClassName:U}=e,Z=r.useContext(M.Z),z=null!=h?h:Z,[H,G]=(0,_.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[$,W]=r.useState("drop"),V=r.useRef(null);r.useMemo(()=>{let e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))})},[n]);let q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===T?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,a.flushSync)(()=>{G(r)});let l={file:e,fileList:r};n&&(l.event=n),(!i||r.some(t=>t.uid===e.uid))&&(0,a.flushSync)(()=>{null==f||f(l)})},Y=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let n=t.map(e=>ep(e.file)),r=(0,o.Z)(H);n.forEach(e=>{r=ef(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t;let{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}q(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!em(t,H))return;let r=ep(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=ef(r,H);q(r,o)},X=(e,t)=>{if(!em(t,H))return;let n=ep(t);n.status="uploading",n.percent=e.percent;let r=ef(n,H);q(n,r,e)},Q=(e,t,n)=>{if(!em(n,H))return;let r=ep(n);r.error=e,r.response=t,r.status="error";let o=ef(r,H);q(r,o)},ee=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(n=>{var r;if(!1===n)return;let o=function(e,t){let n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))})},et=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};r.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:K,onProgress:X,onError:Q,fileList:H,upload:V.current}));let{getPrefixCls:en,direction:er,upload:eo}=r.useContext(P.E_),ea=en("upload",S),ei=Object.assign(Object.assign({onBatchStart:Y,onError:Q,onProgress:X,onSuccess:K},e),{data:A,multiple:I,action:j,accept:F,supportServerRender:B,prefixCls:ea,disabled:z,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}s((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:N});delete ei.className,delete ei.style,(!O||z)&&delete ei.id;let el="".concat(ea,"-wrapper"),[es,ec,eu]=J(ea,el),[ed]=(0,L.Z)("Upload",D.Z.Upload),{showRemoveIcon:eg,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE}="boolean"==typeof c?{}:c,eS=void 0===eg?!z:!!eg,ew=(e,t)=>c?r.createElement(tr,{prefixCls:ea,listType:u,items:H,previewFile:g,onPreview:d,onDownload:p,onRemove:ee,showRemoveIcon:eS,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:y,progress:E,appendAction:e,appendActionVisible:t,itemRender:C,disabled:z}):e,ex=l()(el,w,U,ec,eu,null==eo?void 0:eo.className,{["".concat(ea,"-rtl")]:"rtl"===er,["".concat(ea,"-picture-card-wrapper")]:"picture-card"===u,["".concat(ea,"-picture-circle-wrapper")]:"picture-circle"===u}),eO=Object.assign(Object.assign({},null==eo?void 0:eo.style),k);if("drag"===x){let e=l()(ec,ea,"".concat(ea,"-drag"),{["".concat(ea,"-drag-uploading")]:H.some(e=>"uploading"===e.status),["".concat(ea,"-drag-hover")]:"dragover"===$,["".concat(ea,"-disabled")]:z,["".concat(ea,"-rtl")]:"rtl"===er});return es(r.createElement("span",{className:ex},r.createElement("div",{className:e,style:eO,onDrop:et,onDragOver:et,onDragLeave:et},r.createElement(R,Object.assign({},ei,{ref:V,className:"".concat(ea,"-btn")}),r.createElement("div",{className:"".concat(ea,"-drag-container")},O))),ew()))}let ek=l()(ea,"".concat(ea,"-select"),{["".concat(ea,"-disabled")]:z}),eC=r.createElement("div",{className:ek,style:O?void 0:{display:"none"}},r.createElement(R,Object.assign({},ei,{ref:V})));return es("picture-card"===u||"picture-circle"===u?r.createElement("span",{className:ex},ew(eC,!!O)):r.createElement("span",{className:ex},eC,ew()))});var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tl=r.forwardRef((e,t)=>{var{style:n,height:o,hasControlInside:a=!1}=e,i=ti(e,["style","height","hasControlInside"]);return r.createElement(ta,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))});ta.Dragger=tl,ta.LIST_IGNORE=to;var ts=ta},81441:function(e,t,n){var r=n(89090),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u,d,p=!1;t||(t={}),i=t.debug||!1;try{if(s=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),s()}return p}},6122:function(e,t,n){var r;!function(o){var a,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,s="[DecimalError] ",c=s+"Invalid argument: ",u=s+"Exponent out of range: ",d=Math.floor,p=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=d(1286742750677284.5),g={};function h(e,t){var n,r,o,a,i,s,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?C(t,p):t;if(c=e.d,u=t.d,i=e.e,o=t.e,c=c.slice(),a=i-o){for(a<0?(r=c,a=-a,s=u.length):(r=u,o=i,s=c.length),a>(s=(i=Math.ceil(p/7))>s?i+1:s+1)&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((s=c.length)-(a=u.length)<0&&(a=s,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/1e7|0,c[a]%=1e7;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,l?C(t,p):t}function b(e,t,n){if(e!==~~e||en)throw Error(c+e)}function v(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},g.dividedBy=g.div=function(e){return y(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return C(y(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return 0>this.cmp(e)},g.lessThanOrEqualTo=g.lte=function(e){return 1>this.cmp(e)},g.logarithm=g.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(a))throw Error(s+"NaN");if(this.s<1)throw Error(s+(this.s?"NaN":"-Infinity"));return this.eq(a)?new n(0):(l=!1,t=y(O(this,o),O(e,o),o),l=!0,C(t,r))},g.minus=g.sub=function(e){return e=new this.constructor(e),this.s==e.s?T(this,e):h(this,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return this.s?(l=!1,t=y(this,e,0,1).times(e),l=!0,this.minus(t)):C(new n(this),r)},g.naturalExponential=g.exp=function(){return E(this)},g.naturalLogarithm=g.ln=function(){return O(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){return e=new this.constructor(e),this.s==e.s?h(this,e):T(this,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(c+e);if(t=S(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,a,i,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(s+"NaN")}for(e=S(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=v(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=i=(n=c.precision)+3;;)if(r=(a=r).plus(y(this,a,i+2)).times(.5),v(a.d).slice(0,i)===(t=v(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(C(a,n+1,0),a.times(a).eq(this)){r=a;break}}else if("9999"!=t)break;i+=4}return l=!0,C(r,n)},g.times=g.mul=function(e){var t,n,r,o,a,i,s,c,u,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(!this.s||!e.s)return new d(0);for(e.s*=this.s,n=this.e+e.e,(c=p.length)<(u=f.length)&&(a=p,p=f,f=a,i=c,c=u,u=i),a=[],r=i=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=a[o]+f[r]*p[o-r-1]+t,a[o--]=s%1e7|0,t=s/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,l?C(e,d.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(b(e,0,1e9),void 0===t?t=r.rounding:b(t,0,8),C(n,e+S(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=A(r,!0):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A(r=C(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?A(this):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A((r=C(new o(this),e+S(this)+1,t)).abs(),!1,e+S(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this.constructor;return C(new e(this),S(this)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,i,c,u=this,p=u.constructor,f=+(e=new p(e));if(!e.s)return new p(a);if(!(u=new p(u)).s){if(e.s<1)throw Error(s+"Infinity");return u}if(u.eq(a))return u;if(r=p.precision,e.eq(a))return C(u,r);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=f<0?-f:f)<=9007199254740991){for(o=new p(a),t=Math.ceil(r/7+4),l=!1;n%2&&I((o=o.times(u)).d,t),0!==(n=d(n/2));)I((u=u.times(u)).d,t);return l=!0,e.s<0?new p(a).div(o):C(o,r)}}else if(i<0)throw Error(s+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,o=e.times(O(u,r+12)),l=!0,(o=E(o)).s=i,o},g.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?(n=S(o),r=A(o,n<=a.toExpNeg||n>=a.toExpPos)):(b(e,1,1e9),void 0===t?t=a.rounding:b(t,0,8),n=S(o=C(new a(o),e,t)),r=A(o,e<=n||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,1e9),void 0===t?t=n.rounding:b(t,0,8)),C(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=S(this),t=this.constructor;return A(this,e<=t.toExpNeg||e>=t.toExpPos)};var y=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,a,i){var l,c,u,d,p,f,m,g,h,b,v,y,E,w,x,O,k,T,A=r.constructor,I=r.s==o.s?1:-1,N=r.d,R=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(s+"Division by zero");for(u=0,c=r.e-o.e,k=R.length,x=N.length,g=(m=new A(I)).d=[];R[u]==(N[u]||0);)++u;if(R[u]>(N[u]||0)&&--c,(y=null==a?a=A.precision:i?a+(S(r)-S(o))+1:a)<0)return new A(0);if(y=y/7+2|0,u=0,1==k)for(d=0,R=R[0],y++;(u1&&(R=e(R,d),N=e(N,d),k=R.length,x=N.length),w=k,b=(h=N.slice(0,k)).length;b=1e7/2&&++O;do d=0,(l=t(R,h,k,b))<0?(v=h[0],k!=b&&(v=1e7*v+(h[1]||0)),(d=v/O|0)>1?(d>=1e7&&(d=1e7-1),f=(p=e(R,d)).length,b=h.length,1==(l=t(p,h,f,b))&&(d--,n(p,k16)throw Error(u+S(e));if(!e.s)return new f(a);for(null==t?(l=!1,s=m):s=t,i=new f(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(s+=Math.log(p(2,d))/Math.LN10*2+5|0,n=r=o=new f(a),f.precision=s;;){if(r=C(r.times(e),s),n=n.times(++c),v((i=o.plus(y(r,n,s))).d).slice(0,s)===v(o.d).slice(0,s)){for(;d--;)o=C(o.times(o),s);return f.precision=m,null==t?(l=!0,C(o,m)):o}o=i}}function S(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function w(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,o,i,c,u,d,p,f,m=1,g=e,h=g.d,b=g.constructor,E=b.precision;if(g.s<1)throw Error(s+(g.s?"NaN":"-Infinity"));if(g.eq(a))return new b(0);if(null==t?(l=!1,p=E):p=t,g.eq(10))return null==t&&(l=!0),w(b,p);if(p+=10,b.precision=p,r=(n=v(h)).charAt(0),!(15e14>Math.abs(i=S(g))))return d=w(b,p+2,E).times(i+""),g=O(new b(r+"."+n.slice(1)),p-10).plus(d),b.precision=E,null==t?(l=!0,C(g,E)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=v((g=g.times(e)).d)).charAt(0),m++;for(i=S(g),r>1?(g=new b("0."+n),i++):g=new b(r+"."+n.slice(1)),u=c=g=y(g.minus(a),g.plus(a),p),f=C(g.times(g),p),o=3;;){if(c=C(c.times(f),p),v((d=u.plus(y(c,new b(o),p))).d).slice(0,p)===v(u.d).slice(0,p))return u=u.times(2),0!==i&&(u=u.plus(w(b,p+2,E).times(i+""))),u=y(u,new b(m),p),b.precision=E,null==t?(l=!0,C(u,E)):u;u=d,o+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rm||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,o,a,i,s,c,f,g,h=e.d;for(i=1,a=h[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,f=h[g=0];else{if((g=Math.ceil((r+1)/7))>=(a=h.length))return e;for(i=1,f=a=h[g];a>=10;a/=10)i++;r%=7,o=r-7+i}if(void 0!==n&&(s=f/(a=p(10,i-o-1))%10|0,c=t<0||void 0!==h[g+1]||f%a,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?f/p(10,i-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(a=S(e),h.length=1,t=t-a-1,h[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(0==r?(h.length=g,a=1,g--):(h.length=g+1,a=p(10,7-r),h[g]=o>0?(f/p(10,i-o)%p(10,o)|0)*a:0),c)for(;;){if(0==g){1e7==(h[0]+=a)&&(h[0]=1,++e.e);break}if(h[g]+=a,1e7!=h[g])break;h[g--]=0,a=1}for(r=h.length;0===h[--r];)h.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+S(e));return e}function T(e,t){var n,r,o,a,i,s,c,u,d,p,f=e.constructor,m=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?C(t,m):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),i=u-r){for((d=i<0)?(n=c,i=-i,s=p.length):(n=p,r=u,s=c.length),i>(o=Math.max(Math.ceil(m/7),s)+2)&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(s=p.length))&&(s=o),o=0;o0;--o)c[s++]=0;for(o=p.length;o>i;){if(c[--o]0?a=a.charAt(0)+"."+a.slice(1)+x(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+x(-o-1)+a,n&&(r=n-i)>0&&(a+=x(r))):o>=i?(a+=x(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+x(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=x(r))),e.s<0?"-"+a:a}function I(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(c+n+": "+r)}if(void 0!==(r=e[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(c+n+": "+r)}return this}(i=function e(t){var n,r,o;function a(e){if(!(this instanceof a))return new a(e);if(this.constructor=a,e instanceof a){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,f.test(e))k(this,e);else throw Error(c+e)}if(a.prototype=g,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=N,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n4&&m.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?g=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=s.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),i+f)),h=o),new h(g,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},31872:function(e,t,n){var r=n(96130),o=n(64730),a=n(61861),i=n(46982),l=n(83671),s=n(53618);e.exports=r([a,o,i,l,s])},83671:function(e,t,n){var r=n(7667),o=n(13585),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},53618:function(e,t,n){var r=n(7667),o=n(13585),a=n(46640),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},46640:function(e,t,n){var r=n(25852);e.exports=function(e,t){return r(e,t.toLowerCase())}},25852:function(e){e.exports=function(e,t){return t in e?e[t]:t}},13585:function(e,t,n){var r=n(39900),o=n(94949),a=n(7478);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},7478:function(e,t,n){var r=n(74108),o=n(7667);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d-1}},64797:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},94410:function(e,t,n){var r=n(320)();e.exports=r},77458:function(e,t,n){var r=n(94410),o=n(39406);e.exports=function(e,t){return e&&r(e,t,o)}},38824:function(e,t,n){var r=n(53066),o=n(217);e.exports=function(e,t){t=r(t,e);for(var n=0,a=t.length;null!=e&&nt}},69959:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77095:function(e,t,n){var r=n(47495),o=n(77562),a=n(48150);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},63686:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},29759:function(e,t,n){var r=n(28685),o=n(19340);e.exports=function e(t,n,a,i,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,a,i,e,l):t!=t&&n!=n)}},28685:function(e,t,n){var r=n(4380),o=n(63859),a=n(41020),i=n(10701),l=n(96770),s=n(95059),c=n(64843),u=n(30484),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,h,b){var v=s(e),y=s(t),E=v?p:l(e),S=y?p:l(t);E=E==d?f:E,S=S==d?f:S;var w=E==f,x=S==f,O=E==S;if(O&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new r),v||u(e)?o(e,t,n,g,h,b):a(e,t,E,n,g,h,b);if(!(1&n)){var k=w&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(k||C){var T=k?e.value():e,A=C?t.value():t;return b||(b=new r),h(T,A,n,g,b)}}return!!O&&(b||(b=new r),i(e,t,n,g,h,b))}},59165:function(e,t,n){var r=n(4380),o=n(29759);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=200){var g=t?null:l(e);if(g)return s(g);p=!1,u=i,m=new r}else m=t?[]:f;t:for(;++c=o?e:r(e,t,n)}},9058:function(e,t,n){var r=n(62704);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e=s)return c;return c*("desc"==n[o]?-1:1)}}return e.index-t.index}},35852:function(e,t,n){var r=n(67741)["__core-js_shared__"];e.exports=r},91502:function(e,t,n){var r=n(10187);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i-1?l[s?t[c]:c]:void 0}}},16519:function(e,t,n){var r=n(67535),o=n(45021),a=n(55038);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?tu))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=-1,g=!0,h=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++m-1&&e%1==0&&e-1}},42572:function(e,t,n){var r=n(89329);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},26528:function(e,t,n){var r=n(68193),o=n(5835),a=n(58246);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},90972:function(e,t,n){var r=n(72080);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},55981:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).get(e)}},76656:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).has(e)}},45541:function(e,t,n){var r=n(72080);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},38737:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},69794:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},53092:function(e,t,n){var r=n(49512);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},83463:function(e,t,n){var r=n(93245)(Object,"create");e.exports=r},51678:function(e,t,n){var r=n(93332)(Object.keys,Object);e.exports=r},16474:function(e,t,n){e=n.nmd(e);var r=n(58584),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},8611:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},93332:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7157:function(e,t,n){var r=n(24821),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4800:function(e,t,n){var r=n(5835);e.exports=function(){this.__data__=new r,this.size=0}},73987:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},59728:function(e){e.exports=function(e){return this.__data__.get(e)}},4146:function(e){e.exports=function(e){return this.__data__.has(e)}},81333:function(e,t,n){var r=n(5835),o=n(58246),a=n(93785);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},48150:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||h&&r>=u}function E(){var e,n,r,a=o();if(y(a))return S(a);p=setTimeout(E,(e=a-f,n=a-m,r=t-e,h?l(r,u-n):r))}function S(e){return(p=void 0,b&&s)?v(e):(s=c=void 0,d)}function w(){var e,n=o(),r=y(n);if(s=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(E,t),g?v(e):d;if(h)return clearTimeout(p),p=setTimeout(E,t),v(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(h="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=f=c=p=void 0},w.flush=function(){return void 0===p?d:S(o())},w}},61595:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72986:function(e,t,n){var r=n(31917),o=n(31062),a=n(49452),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,a(t,3))}},209:function(e,t,n){var r=n(70493)(n(87539));e.exports=r},87539:function(e,t,n){var r=n(47495),o=n(49452),a=n(26018),i=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var s=null==n?0:a(n);return s<0&&(s=i(l+s,0)),r(e,o(t,3),s)}},20734:function(e,t,n){var r=n(9677),o=n(30677);e.exports=function(e,t){return r(o(e,t),1)}},44750:function(e,t,n){var r=n(38824);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},19955:function(e,t,n){var r=n(69959),o=n(24986);e.exports=function(e,t){return null!=e&&o(e,t,r)}},39100:function(e){e.exports=function(e){return e}},99782:function(e,t,n){var r=n(63686),o=n(19340),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},95059:function(e){var t=Array.isArray;e.exports=t},10187:function(e,t,n){var r=n(80509),o=n(54512);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},90849:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},64843:function(e,t,n){e=n.nmd(e);var r=n(67741),o=n(33879),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||o},93574:function(e,t,n){var r=n(29759);e.exports=function(e,t){return r(e,t)}},80509:function(e,t,n){var r=n(7976),o=n(70816);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},54512:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},96240:function(e,t,n){var r=n(39018);e.exports=function(e){return r(e)&&e!=+e}},71292:function(e){e.exports=function(e){return null==e}},39018:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},70816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19340:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},23393:function(e,t,n){var r=n(7976),o=n(28766),a=n(19340),i=Object.prototype,l=Function.prototype.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},96907:function(e,t,n){var r=n(7976),o=n(95059),a=n(19340);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},62704:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},30484:function(e,t,n){var r=n(80043),o=n(43863),a=n(16474),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},39406:function(e,t,n){var r=n(26546),o=n(92916),a=n(10187);e.exports=function(e){return a(e)?r(e):o(e)}},36887:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30677:function(e,t,n){var r=n(83690),o=n(49452),a=n(28245),i=n(95059);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},50924:function(e,t,n){var r=n(30804),o=n(77458),a=n(49452);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},5037:function(e,t,n){var r=n(41764),o=n(92262),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},49512:function(e,t,n){var r=n(93785);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},30264:function(e,t,n){var r=n(41764),o=n(87004),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},67222:function(e){e.exports=function(){}},80128:function(e,t,n){var r=n(67741);e.exports=function(){return r.Date.now()}},62973:function(e,t,n){var r=n(60411),o=n(34831),a=n(55632),i=n(217);e.exports=function(e){return a(e)?r(i(e)):o(e)}},1646:function(e,t,n){var r=n(16519)();e.exports=r},13435:function(e,t,n){var r=n(30927),o=n(49452),a=n(61700),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:a;return n&&l(e,t,n)&&(t=void 0),s(e,o(t,3))}},97572:function(e,t,n){var r=n(9677),o=n(56871),a=n(70712),i=n(45021),l=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=l},30786:function(e){e.exports=function(){return[]}},33879:function(e){e.exports=function(){return!1}},68417:function(e,t,n){var r=n(54525),o=n(70816);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},55038:function(e,t,n){var r=n(89753),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},26018:function(e,t,n){var r=n(55038);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},89753:function(e,t,n){var r=n(33223),o=n(70816),a=n(62704),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?i:+e}},25635:function(e,t,n){var r=n(2218);e.exports=function(e){return null==e?"":r(e)}},98116:function(e,t,n){var r=n(49452),o=n(15375);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},9332:function(e,t,n){var r=n(6551)("toUpperCase");e.exports=r},8792:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(25250),o=n.n(r)},47907:function(e,t,n){var r=n(15313);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},49079:function(e,t,n){var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(13127)},12956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(82139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let E=a.default.forwardRef(function(e,t){let n,r;let{href:s,as:b,children:E,prefetch:S=null,passHref:w,replace:x,shallow:O,scroll:k,locale:C,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:N=!1,...R}=e;n=E,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let _=a.default.useContext(d.RouterContext),P=a.default.useContext(p.AppRouterContext),M=null!=_?_:P,L=!_,D=!1!==S,j=null===S?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:F,as:B}=a.default.useMemo(()=>{if(!_){let e=y(s);return{href:e,as:b?y(b):e}}let[e,t]=(0,i.resolveHref)(_,s,!0);return{href:e,as:b?(0,i.resolveHref)(_,b):t||e}},[_,s,b]),U=a.default.useRef(F),Z=a.default.useRef(B);N&&(r=a.default.Children.only(n));let z=N?r&&"object"==typeof r&&r.ref:t,[H,G,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(Z.current!==B||U.current!==F)&&($(),Z.current=B,U.current=F),H(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,$,H]);a.default.useEffect(()=>{M&&G&&D&&v(M,F,B,{locale:C},{kind:j},L)},[B,F,G,C,D,null==_?void 0:_.locale,M,L,j]);let V={ref:W,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,o,i,s,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?a.default.startTransition(p):p()}(e,M,F,B,x,O,k,C,L)},onMouseEnter(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){N||"function"!=typeof I||I(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,c.isAbsoluteUrl)(B))V.href=B;else if(!N||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);V.href=t||(0,g.addBasePath)((0,u.addLocale)(B,e,null==_?void 0:_.defaultLocale))}return N?a.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(95770),o=n(11030),a=n(24544),i=n(36874),l=n(82139),s=n(17434),c=n(22360),u=n(96735);function d(e,t,n){let d;let p="string"==typeof t?t:(0,o.formatWithValidation)(t),f=p.match(/^[a-zA-Z]{1,}:\/\//),m=f?p.slice(f[0].length):p;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);p=(f?f[0]:"")+t}if(!(0,s.isLocalURL)(p))return n?[p]:p;try{d=new URL(p.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(p,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,u.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(64090),o=n(52185),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),i.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8620:function(e){!function(){var t={675:function(e,t){t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),i=a[0],l=a[1],c=new o((i+l)*3/4-l),u=0,d=l>0?i-4:i;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=0,l=r-o;i>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}(e,i,i+16383>l?l:i+16383));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=a.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -29,4 +29,4 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},72784:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(6976),o=n(34951);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},86926:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(){o=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(t,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(s,"_invoke",{value:(a=new I(o||[]),l=m,function(n,o){if(l===g)throw Error("Generator is already running");if(l===h){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function t(n,r){var o=r.method,a=n.iterator[o];if(a===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(a,n.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(i,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===m)throw l=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=g;var c=f(t,r,a);if("normal"===c.type){if(l=a.done?h:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(l=h,a.method="throw",a.arg=c.arg)}})}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",g="executing",h="completed",b={};function v(){}function y(){}function E(){}var S={};d(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==n&&a.call(x,s)&&(S=x);var O=E.prototype=v.prototype=Object.create(S);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){var n;i(this,"_invoke",{value:function(o,i){function l(){return new t(function(n,l){!function n(o,i,l,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,l,s)},function(e){n("throw",e,l,s)}):t.resolve(d).then(function(e){u.value=e,l(u)},function(e){return n("throw",e,l,s)})}s(c.arg)}(o,i,n,l)})}return n=n?n.then(l,l):l()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},80406:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(19065),o=n(76057),a=n(93319);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},56721:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(19065),o=n(58194),a=n(76057),i=n(93319);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},63787:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(95180),o=n(58194),a=n(76057);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},29423:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},6976:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},76057:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(95180);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},68637:function(e,t,n){let r,o;n.d(t,{V:function(){return eE}});var a,i,l,s,c,u,d=n(64090),p=n.t(d,2),f=n(20044),m=n(10641),g=n(85235);function h(e,t,n,r){let o=(0,g.E)(n);(0,d.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var b=n(42219),v=n(21210);function y(e){let t=(0,m.z)(e),n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,v.Y)(()=>{n.current&&t()})}),[t])}var E=n(94819);function S(){for(var e=arguments.length,t=Array(e),n=0;n(0,E.r)(...t),[...t])}var w=n(92144),x=n(36601),O=n(61372),k=((a=k||{})[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a);function C(e,t){let n=(0,d.useRef)([]),r=(0,m.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}var T=n(37700);let A=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&A[0]!==e.target&&(A.unshift(e.target),(A=A.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var I=n(48803),N=n(72640),R=n(18318);function _(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var P=((i=P||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let M=Object.assign((0,R.yV)(function(e,t){let n,r=(0,d.useRef)(null),o=(0,x.T)(r,t),{initialFocus:a,containers:i,features:l=30,...s}=e;(0,w.H)()||(l=1);let c=S(r);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,d.useRef)(A.slice());return C((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,v.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=A.slice())},[e,A,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);C(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,I.C5)(r())},[t]),y(()=>{t&&(0,I.C5)(r())})}({ownerDocument:c},!!(16&l));let u=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,a=(0,d.useRef)(null),i=(0,b.t)();return C(()=>{if(!t)return;let e=r.current;e&&(0,v.Y)(()=>{if(!i.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=o&&o.current?(0,I.C5)(o.current):(0,I.jA)(e,I.TO.First)===I.fE.Error&&console.warn("There are no focusable elements inside the "),a.current=null==n?void 0:n.activeElement})},[t]),a}({ownerDocument:c,container:r,initialFocus:a},!!(2&l));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:a}=e,i=(0,b.t)();h(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!i.current)return;let n=_(o);r.current instanceof HTMLElement&&n.add(r.current);let l=a.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?L(n,s)?(a.current=s,(0,I.C5)(s)):(e.preventDefault(),e.stopPropagation(),(0,I.C5)(l)):(0,I.C5)(a.current)},!0)}({ownerDocument:c,container:r,containers:i,previousActiveElement:u},!!(8&l));let p=(n=(0,d.useRef)(0),(0,O.s)("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),g=(0,m.z)(e=>{let t=r.current;t&&(0,N.E)(p.current,{[k.Forwards]:()=>{(0,I.jA)(t,I.TO.First,{skipElements:[e.relatedTarget]})},[k.Backwards]:()=>{(0,I.jA)(t,I.TO.Last,{skipElements:[e.relatedTarget]})}})}),E=(0,f.G)(),P=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}),(0,R.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(P.current=!0,E.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){let t=_(i);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(L(t,n)||(P.current?(0,I.jA)(r.current,(0,N.E)(p.current,{[k.Forwards]:()=>I.TO.Next,[k.Backwards]:()=>I.TO.Previous})|I.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,I.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}))}),{features:P});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var D=n(89542),j=n(39790);let F=(0,d.createContext)(!1);function B(e){return d.createElement(F.Provider,{value:e.force},e.children)}var U=n(41879);let Z=d.Fragment,z=d.Fragment,H=(0,d.createContext)(null),G=(0,d.createContext)(null),$=Object.assign((0,R.yV)(function(e,t){let n=(0,d.useRef)(null),r=(0,x.T)((0,x.h)(e=>{n.current=e}),t),o=S(n),a=function(e){let t=(0,d.useContext)(F),n=(0,d.useContext)(H),r=S(e),[o,a]=(0,d.useState)(()=>{if(!t&&null!==n||U.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,d.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,d.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[i]=(0,d.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,d.useContext)(G),s=(0,w.H)();return(0,j.e)(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),(0,j.e)(()=>{if(i&&l)return l.register(i)},[l,i]),y(()=>{var e;a&&i&&(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),s&&a&&i?(0,D.createPortal)((0,R.sY)({ourProps:{ref:r},theirProps:e,defaultTag:Z,name:"Portal"}),i):null}),{Group:(0,R.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,x.T)(t)};return d.createElement(H.Provider,{value:n},(0,R.sY)({ourProps:o,theirProps:r,defaultTag:z,name:"Popover.Group"}))})}),{useState:W,useEffect:V,useLayoutEffect:q,useDebugValue:Y}=p;void 0!==window.document&&window.document.createElement;let K=p.useSyncExternalStore;var X=n(55205),Q=n(25256);let J=(l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,X.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,a={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},i=[(0,Q.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,X.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(a=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,a=o.clientWidth-o.offsetWidth,i=t-a;r.style(o,"paddingRight","".concat(i,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];i.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),i.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;ae()))}});J.subscribe(()=>{let e=J.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&J.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&J.dispatch("TEARDOWN",n)}});var ee=n(92381);let et=new Map,en=new Map;function er(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,j.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=en.get(r))?n:0;return en.set(r,o+1),0!==o||(et.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=en.get(r))?e:1;if(1===t?en.delete(r):en.set(r,t-1),1!==t)return;let n=et.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,et.delete(r))}},[e,t])}var eo=n(71679),ea=n(88358);let ei=(0,d.createContext)(()=>{});ei.displayName="StackContext";var el=((s=el||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function es(e){let{children:t,onUpdate:n,type:r,element:o,enabled:a}=e,i=(0,d.useContext)(ei),l=(0,m.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r{let e=void 0===a||!0===a;return e&&l(0,r,o),()=>{e&&l(1,r,o)}},[l,r,o,a]),d.createElement(ei.Provider,{value:l},t)}var ec=n(84152);let eu=(0,d.createContext)(null),ed=Object.assign((0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-description-".concat(n),...o}=e,a=function e(){let t=(0,d.useContext)(eu);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=(0,x.T)(t);(0,j.e)(()=>a.register(r),[r,a.register]);let l={ref:i,...a.props,id:r};return(0,R.sY)({ourProps:l,theirProps:o,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var ep=n(67409),ef=((c=ef||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eh=(0,d.createContext)(null);function eb(e){let t=(0,d.useContext)(eh);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}function ev(e,t){return(0,N.E)(t.type,eg,e,t)}eh.displayName="DialogContext";let ey=R.AN.RenderStrategy|R.AN.Static,eE=Object.assign((0,R.yV)(function(e,t){let n,r,o,a,i,l=(0,ee.M)(),{id:s="headlessui-dialog-".concat(l),open:c,onClose:u,initialFocus:p,role:f="dialog",__demoMode:g=!1,...b}=e,[v,y]=(0,d.useState)(0),E=(0,d.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(E.current||(E.current=!0,console.warn("Invalid role [".concat(f,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let O=(0,ea.oJ)();void 0===c&&null!==O&&(c=(O&ea.ZM.Open)===ea.ZM.Open);let k=(0,d.useRef)(null),C=(0,x.T)(k,t),A=S(k),I=e.hasOwnProperty("open")||null!==O,_=e.hasOwnProperty("onClose");if(!I&&!_)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!I)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof c)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(c));if("function"!=typeof u)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(u));let P=c?0:1,[L,D]=(0,d.useReducer)(ev,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),F=(0,m.z)(()=>u(!1)),U=(0,m.z)(e=>D({type:0,id:e})),Z=!!(0,w.H)()&&!g&&0===P,z=v>1,H=null!==(0,d.useContext)(eh),[W,V]=(n=(0,d.useContext)(G),r=(0,d.useRef)([]),o=(0,m.z)(e=>(r.current.push(e),n&&n.register(e),()=>a(e))),a=(0,m.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),i=(0,d.useMemo)(()=>({register:o,unregister:a,portals:r}),[o,a,r]),[r,(0,d.useMemo)(()=>function(e){let{children:t}=e;return d.createElement(G.Provider,{value:i},t)},[i])]),{resolveContainers:q,mainTreeNodeRef:Y,MainTreeNode:X}=function(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,d.useRef)(null!=(e=null==r?void 0:r.current)?e:null),a=S(o),i=(0,m.z)(()=>{var e,r,i;let l=[];for(let e of t)null!==e&&(e instanceof HTMLElement?l.push(e):"current"in e&&e.current instanceof HTMLElement&&l.push(e.current));if(null!=n&&n.current)for(let e of n.current)l.push(e);for(let t of null!=(e=null==a?void 0:a.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||t.contains(null==(i=null==(r=o.current)?void 0:r.getRootNode())?void 0:i.host)||l.some(e=>t.contains(e))||l.push(t));return l});return{resolveContainers:i,contains:(0,m.z)(e=>i().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,d.useMemo)(()=>function(){return null!=r?null:d.createElement(T._,{features:T.A.Hidden,ref:o})},[o,r])}}({portals:W,defaultContainers:[{get current(){var Q;return null!=(Q=L.panelRef.current)?Q:k.current}}]}),et=null!==O&&(O&ea.ZM.Closing)===ea.ZM.Closing,en=!H&&!et&&Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),en);let ei=!!z||Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ei);let ec=!(!Z||z);(0,eo.O)(q,F,ec);let ed=!(z||0!==P);h(null==A?void 0:A.defaultView,"keydown",e=>{ed&&(e.defaultPrevented||e.key===ep.R.Escape&&(e.preventDefault(),e.stopPropagation(),F()))}),function(e,t){var n;let r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],a]}},r=K(J.subscribe,J.getSnapshot,J.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,j.e)(()=>{if(!(!e||!t))return J.dispatch("PUSH",e,n),()=>J.dispatch("POP",e,n)},[t,e])}(A,!(et||0!==P||H),q),(0,d.useEffect)(()=>{if(0!==P||!k.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&F()}});return e.observe(k.current),()=>e.disconnect()},[P,k,F]);let[ef,em]=function(){let[e,t]=(0,d.useState)([]);return[e.length>0?e.join(" "):void 0,(0,d.useMemo)(()=>function(e){let n=(0,m.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,d.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return d.createElement(eu.Provider,{value:r},e.children)},[t])]}(),eg=(0,d.useMemo)(()=>[{dialogState:P,close:F,setTitleId:U},L],[P,L,F,U]),eb=(0,d.useMemo)(()=>({open:0===P}),[P]),eE={ref:C,id:s,role:f,"aria-modal":0===P||void 0,"aria-labelledby":L.titleId,"aria-describedby":ef};return d.createElement(es,{type:"Dialog",enabled:0===P,element:k,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,N.E)(e,{[el.Add]:()=>y(e=>e+1),[el.Remove]:()=>y(e=>e-1)})})},d.createElement(B,{force:!0},d.createElement($,null,d.createElement(eh.Provider,{value:eg},d.createElement($.Group,{target:k},d.createElement(B,{force:!1},d.createElement(em,{slot:eb,name:"Dialog.Description"},d.createElement(M,{initialFocus:p,containers:q,features:Z?(0,N.E)(z?"parent":"leaf",{parent:M.features.RestoreFocus,leaf:M.features.All&~M.features.FocusLock}):M.features.None},d.createElement(V,null,(0,R.sY)({ourProps:eE,theirProps:b,slot:eb,defaultTag:"div",features:ey,visible:0===P,name:"Dialog"}))))))))),d.createElement(X,null))}),{Backdrop:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Backdrop"),l=(0,x.T)(t);(0,d.useEffect)(()=>{if(null===i.panelRef.current)throw Error("A component is being used, but a component is missing.")},[i.panelRef]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return d.createElement(B,{force:!0},d.createElement($,null,(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Panel"),l=(0,x.T)(t,i.panelRef),s=(0,d.useMemo)(()=>({open:0===a}),[a]),c=(0,m.z)(e=>{e.stopPropagation()});return(0,R.sY)({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:a,close:i}]=eb("Dialog.Overlay"),l=(0,x.T)(t),s=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),c=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:a,setTitleId:i}]=eb("Dialog.Title"),l=(0,x.T)(t);(0,d.useEffect)(()=>(i(r),()=>i(null)),[r,i]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),Description:ed})},67409:function(e,t,n){n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},63416:function(e,t,n){n.d(t,{R:function(){return $}});var r,o,a,i,l,s=n(64090),c=n(39790),u=n(85235);function d(e,t){let[n,r]=(0,s.useState)(e),o=(0,u.E)(e);return(0,c.e)(()=>r(o.current),[o,r,...t]),n}var p=n(10641),f=n(20044),m=n(92381),g=n(71679),h=n(71454),b=n(36601);let v=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function y(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(n=o.innerText)?n:"":r;return v.test(i)&&(i=i.replace(v,"")),i}function E(e){return[e.screenX,e.screenY]}var S=n(37700),w=n(88358),x=n(84152),O=((r=O||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r),k=n(55205),C=n(48803);function T(e,t){return e?e+"["+t+"]":t}var A=n(72640),I=n(94819),N=n(18318),R=n(67409),_=((o=_||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),P=((a=P||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),M=((i=M||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),L=((l=L||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOption=5]="RegisterOption",l[l.UnregisterOption=6]="UnregisterOption",l[l.RegisterLabel=7]="RegisterLabel",l);function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,C.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let j={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=D(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;rr.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=o?e.options.indexOf(o):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=D(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=D(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},F=(0,s.createContext)(null);function B(e){let t=(0,s.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}F.displayName="ListboxActionsContext";let U=(0,s.createContext)(null);function Z(e){let t=(0,s.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Z),t}return t}function z(e,t){return(0,A.E)(t.type,j,e,t)}U.displayName="ListboxDataContext";let H=s.Fragment,G=N.AN.RenderStrategy|N.AN.Static,$=Object.assign((0,N.yV)(function(e,t){let{value:n,defaultValue:r,form:o,name:a,onChange:i,by:l=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:m=!1,...h}=e,v=d?"horizontal":"vertical",y=(0,b.T)(t),[E=m?[]:void 0,x]=function(e,t,n){let[r,o]=(0,s.useState)(n),a=void 0!==e,i=(0,s.useRef)(a),l=(0,s.useRef)(!1),c=(0,s.useRef)(!1);return!a||i.current||l.current?a||!i.current||c.current||(c.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,p.z)(e=>(a||o(e),null==t?void 0:t(e)))]}(n,i,r),[k,I]=(0,s.useReducer)(z,{dataRef:(0,s.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),R=(0,s.useRef)({static:!1,hold:!1}),_=(0,s.useRef)(null),P=(0,s.useRef)(null),M=(0,s.useRef)(null),L=(0,p.z)("string"==typeof l?(e,t)=>(null==e?void 0:e[l])===(null==t?void 0:t[l]):l),D=(0,s.useCallback)(e=>(0,A.E)(j.mode,{1:()=>E.some(t=>L(t,e)),0:()=>L(E,e)}),[E]),j=(0,s.useMemo)(()=>({...k,value:E,disabled:u,mode:m?1:0,orientation:v,compare:L,isSelected:D,optionsPropsRef:R,labelRef:_,buttonRef:P,optionsRef:M}),[E,u,m,k]);(0,c.e)(()=>{k.dataRef.current=j},[j]),(0,g.O)([j.buttonRef,j.optionsRef],(e,t)=>{var n;I({type:1}),(0,C.sP)(t,C.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let B=(0,s.useMemo)(()=>({open:0===j.listboxState,disabled:u,value:E}),[j,u,E]),Z=(0,p.z)(e=>{let t=j.options.find(t=>t.id===e);t&&K(t.dataRef.current.value)}),G=(0,p.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];K(e.current.value),I({type:2,focus:O.Specific,id:t})}}),$=(0,p.z)(()=>I({type:0})),W=(0,p.z)(()=>I({type:1})),V=(0,p.z)((e,t,n)=>e===O.Specific?I({type:2,focus:O.Specific,id:t,trigger:n}):I({type:2,focus:e,trigger:n})),q=(0,p.z)((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e}))),Y=(0,p.z)(e=>(I({type:7,id:e}),()=>I({type:7,id:null}))),K=(0,p.z)(e=>(0,A.E)(j.mode,{0:()=>null==x?void 0:x(e),1(){let t=j.value.slice(),n=t.findIndex(t=>L(t,e));return -1===n?t.push(e):t.splice(n,1),null==x?void 0:x(t)}})),X=(0,p.z)(e=>I({type:3,value:e})),Q=(0,p.z)(()=>I({type:4})),J=(0,s.useMemo)(()=>({onChange:K,registerOption:q,registerLabel:Y,goToOption:V,closeListbox:W,openListbox:$,selectActiveOption:G,selectOption:Z,search:X,clearSearch:Q}),[]),ee=(0,s.useRef)(null),et=(0,f.G)();return(0,s.useEffect)(()=>{ee.current&&void 0!==r&&et.addEventListener(ee.current,"reset",()=>{null==x||x(r)})},[ee,x]),s.createElement(F.Provider,{value:J},s.createElement(U.Provider,{value:j},s.createElement(w.up,{value:(0,A.E)(j.listboxState,{0:w.ZM.Open,1:w.ZM.Closed})},null!=a&&null!=E&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,a]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,a]of o.entries())t(n,T(r,e.toString()),a);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):e(o,r,n)}(r,T(n,o),a);return r})({[a]:E}).map((e,t)=>{let[n,r]=e;return s.createElement(S._,{features:S.A.Hidden,ref:0===t?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,N.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:n,value:r})})}),(0,N.sY)({ourProps:{ref:y},theirProps:h,slot:B,defaultTag:H,name:"Listbox"}))))}),{Button:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-button-".concat(r),...a}=e,i=Z("Listbox.Button"),l=B("Listbox.Button"),c=(0,b.T)(i.buttonRef,t),u=(0,f.G)(),g=(0,p.z)(e=>{switch(e.key){case R.R.Space:case R.R.Enter:case R.R.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.First)});break;case R.R.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.Last)})}}),v=(0,p.z)(e=>{e.key===R.R.Space&&e.preventDefault()}),y=(0,p.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),l.openListbox())}),E=d(()=>{if(i.labelId)return[i.labelId,o].join(" ")},[i.labelId,o]),S=(0,s.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value}),[i]),w={ref:c,id:o,type:(0,h.f)(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.listboxState,"aria-labelledby":E,disabled:i.disabled,onKeyDown:g,onKeyUp:v,onClick:y};return(0,N.sY)({ourProps:w,theirProps:a,slot:S,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,N.yV)(function(e,t){let n=(0,m.M)(),{id:r="headlessui-listbox-label-".concat(n),...o}=e,a=Z("Listbox.Label"),i=B("Listbox.Label"),l=(0,b.T)(a.labelRef,t);(0,c.e)(()=>i.registerLabel(r),[r]);let u=(0,p.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,s.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,N.sY)({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-options-".concat(r),...a}=e,i=Z("Listbox.Options"),l=B("Listbox.Options"),c=(0,b.T)(i.optionsRef,t),u=(0,f.G)(),g=(0,f.G)(),h=(0,w.oJ)(),v=null!==h?(h&w.ZM.Open)===w.ZM.Open:0===i.listboxState;(0,s.useEffect)(()=>{var e;let t=i.optionsRef.current;t&&0===i.listboxState&&t!==(null==(e=(0,I.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[i.listboxState,i.optionsRef]);let y=(0,p.z)(e=>{switch(g.dispose(),e.key){case R.R.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case R.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,A.E)(i.orientation,{vertical:R.R.ArrowDown,horizontal:R.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Next);case(0,A.E)(i.orientation,{vertical:R.R.ArrowUp,horizontal:R.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Previous);case R.R.Home:case R.R.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.First);case R.R.End:case R.R.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Last);case R.R.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case R.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),g.setTimeout(()=>l.clearSearch(),350))}}),E=d(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.id},[i.buttonRef.current]),S=(0,s.useMemo)(()=>({open:0===i.listboxState}),[i]),x={"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":E,"aria-orientation":i.orientation,id:o,onKeyDown:y,role:"listbox",tabIndex:0,ref:c};return(0,N.sY)({ourProps:x,theirProps:a,slot:S,defaultTag:"ul",features:G,visible:v,name:"Listbox.Options"})}),Option:(0,N.yV)(function(e,t){let n,r,o;let a=(0,m.M)(),{id:i="headlessui-listbox-option-".concat(a),disabled:l=!1,value:d,...f}=e,g=Z("Listbox.Option"),h=B("Listbox.Option"),v=null!==g.activeOptionIndex&&g.options[g.activeOptionIndex].id===i,S=g.isSelected(d),w=(0,s.useRef)(null),x=(n=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,p.z)(()=>{let e=w.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():y(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return y(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),C=(0,u.E)({disabled:l,value:d,domRef:w,get textValue(){return x()}}),T=(0,b.T)(t,w);(0,c.e)(()=>{if(0!==g.listboxState||!v||0===g.activationTrigger)return;let e=(0,k.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[w,v,g.listboxState,g.activationTrigger,g.activeOptionIndex]),(0,c.e)(()=>h.registerOption(i,C),[C,i]);let A=(0,p.z)(e=>{if(l)return e.preventDefault();h.onChange(d),0===g.mode&&(h.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),I=(0,p.z)(()=>{if(l)return h.goToOption(O.Nothing);h.goToOption(O.Specific,i)}),R=(o=(0,s.useRef)([-1,-1]),{wasMoved(e){let t=E(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=E(e)}}),_=(0,p.z)(e=>R.update(e)),P=(0,p.z)(e=>{R.wasMoved(e)&&(l||v||h.goToOption(O.Specific,i,0))}),M=(0,p.z)(e=>{R.wasMoved(e)&&(l||v&&h.goToOption(O.Nothing))}),L=(0,s.useMemo)(()=>({active:v,selected:S,disabled:l}),[v,S,l]);return(0,N.sY)({ourProps:{id:i,ref:T,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":S,disabled:void 0,onClick:A,onFocus:I,onPointerEnter:_,onMouseEnter:_,onPointerMove:P,onMouseMove:P,onPointerLeave:M,onMouseLeave:M},theirProps:f,slot:L,defaultTag:"li",name:"Listbox.Option"})})})},80991:function(e,t,n){n.d(t,{O:function(){return D}});var r,o,a,i=n(64090),l=n(67409),s=n(10641),c=n(92381),u=n(39790),d=n(85235),p=n(71454),f=n(36601),m=n(42219),g=n(37700);function h(e){let{onFocus:t}=e,[n,r]=(0,i.useState)(!0),o=(0,m.t)();return n?i.createElement(g._,{as:"button",type:"button",features:g.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!o.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var b=n(48803),v=n(72640),y=n(21210),E=n(94819),S=n(18318);let w=i.createContext(null);function x(e){let{children:t}=e,n=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(w.Provider,{value:n},t)}function O(e){let t=i.useContext(w);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],a=r;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return i.useEffect(()=>o,[]),r}var k=((r=k||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),C=((o=C||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),T=((a=T||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let A={0(e,t){var n;let r=(0,b.z2)(e.tabs,e=>e.current),o=(0,b.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),i={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,v.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,v.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return i;let o=(0,v.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:-1===o?e.selectedIndex:o}}let l=r.slice(0,t.index),s=[...r.slice(t.index),...l].find(e=>a.includes(e));if(!s)return i;let c=null!=(n=r.indexOf(s))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...i,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,b.z2)([...e.tabs,t.tab],e=>e.current),a=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===a&&(a=e.selectedIndex),{...e,tabs:o,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,b.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},I=(0,i.createContext)(null);function N(e){let t=(0,i.useContext)(I);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}I.displayName="TabsDataContext";let R=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function P(e,t){return(0,v.E)(t.type,A,e,t)}R.displayName="TabsActionsContext";let M=i.Fragment,L=S.AN.RenderStrategy|S.AN.Static,D=Object.assign((0,S.yV)(function(e,t){var n,r;let o=(0,c.M)(),{id:a="headlessui-tabs-tab-".concat(o),...d}=e,{orientation:m,activation:g,selectedIndex:h,tabs:w,panels:x}=N("Tab"),k=_("Tab"),C=N("Tab"),T=(0,i.useRef)(null),A=(0,f.T)(T,t);(0,u.e)(()=>k.registerTab(T),[k,T]);let I=O("tabs"),R=w.indexOf(T);-1===R&&(R=I);let P=R===h,M=(0,s.z)(e=>{var t;let n=e();if(n===b.fE.Success&&"auto"===g){let e=null==(t=(0,E.r)(T))?void 0:t.activeElement,n=C.tabs.findIndex(t=>t.current===e);-1!==n&&k.change(n)}return n}),L=(0,s.z)(e=>{let t=w.map(e=>e.current).filter(Boolean);if(e.key===l.R.Space||e.key===l.R.Enter){e.preventDefault(),e.stopPropagation(),k.change(R);return}switch(e.key){case l.R.Home:case l.R.PageUp:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.First));case l.R.End:case l.R.PageDown:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.Last))}if(M(()=>(0,v.E)(m,{vertical:()=>e.key===l.R.ArrowUp?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowDown?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error,horizontal:()=>e.key===l.R.ArrowLeft?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowRight?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error}))===b.fE.Success)return e.preventDefault()}),D=(0,i.useRef)(!1),j=(0,s.z)(()=>{var e;D.current||(D.current=!0,null==(e=T.current)||e.focus({preventScroll:!0}),k.change(R),(0,y.Y)(()=>{D.current=!1}))}),F=(0,s.z)(e=>{e.preventDefault()}),B=(0,i.useMemo)(()=>({selected:P}),[P]),U={ref:A,onKeyDown:L,onMouseDown:F,onClick:j,id:a,role:"tab",type:(0,p.f)(e,T),"aria-controls":null==(r=null==(n=x[R])?void 0:n.current)?void 0:r.id,"aria-selected":P,tabIndex:P?0:-1};return(0,S.sY)({ourProps:U,theirProps:d,slot:B,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,S.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:a,selectedIndex:l=null,...c}=e,p=r?"vertical":"horizontal",m=o?"manual":"auto",g=null!==l,v=(0,f.T)(t),[y,E]=(0,i.useReducer)(P,{selectedIndex:null!=l?l:n,tabs:[],panels:[]}),w=(0,i.useMemo)(()=>({selectedIndex:y.selectedIndex}),[y.selectedIndex]),O=(0,d.E)(a||(()=>{})),k=(0,d.E)(y.tabs),C=(0,i.useMemo)(()=>({orientation:p,activation:m,...y}),[p,m,y]),T=(0,s.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),A=(0,s.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),N=(0,s.z)(e=>{_.current!==e&&O.current(e),g||E({type:0,index:e})}),_=(0,d.E)(g?e.selectedIndex:y.selectedIndex),L=(0,i.useMemo)(()=>({registerTab:T,registerPanel:A,change:N}),[]);return(0,u.e)(()=>{E({type:0,index:null!=l?l:n})},[l]),(0,u.e)(()=>{if(void 0===_.current||y.tabs.length<=0)return;let e=(0,b.z2)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&N(e.indexOf(y.tabs[_.current]))}),i.createElement(x,null,i.createElement(R.Provider,{value:L},i.createElement(I.Provider,{value:C},C.tabs.length<=0&&i.createElement(h,{onFocus:()=>{var e,t;for(let n of k.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,S.sY)({ourProps:{ref:v},theirProps:c,slot:w,defaultTag:M,name:"Tabs"}))))}),List:(0,S.yV)(function(e,t){let{orientation:n,selectedIndex:r}=N("Tab.List"),o=(0,f.T)(t);return(0,S.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,S.yV)(function(e,t){let{selectedIndex:n}=N("Tab.Panels"),r=(0,f.T)(t),o=(0,i.useMemo)(()=>({selectedIndex:n}),[n]);return(0,S.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,S.yV)(function(e,t){var n,r,o,a;let l=(0,c.M)(),{id:s="headlessui-tabs-panel-".concat(l),tabIndex:d=0,...p}=e,{selectedIndex:m,tabs:h,panels:b}=N("Tab.Panel"),v=_("Tab.Panel"),y=(0,i.useRef)(null),E=(0,f.T)(y,t);(0,u.e)(()=>v.registerPanel(y),[v,y]);let w=O("panels"),x=b.indexOf(y);-1===x&&(x=w);let k=x===m,C=(0,i.useMemo)(()=>({selected:k}),[k]),T={ref:E,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=h[x])?void 0:n.current)?void 0:r.id,tabIndex:k?d:-1};return k||null!=(o=p.unmount)&&!o||null!=(a=p.static)&&a?(0,S.sY)({ourProps:T,theirProps:p,slot:C,defaultTag:"div",features:L,visible:k,name:"Tabs.Panel"}):i.createElement(g._,{as:"span","aria-hidden":"true",...T})})})},70129:function(e,t,n){n.d(t,{u:function(){return _}});var r,o=n(64090),a=n(20044),i=n(10641),l=n(42219),s=n(39790),c=n(85235),u=n(92144),d=n(36601),p=n(55205),f=n(72640);function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}var h=n(88358),b=n(82466),v=n(18318);function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let E=(0,o.createContext)(null);E.displayName="TransitionContext";var S=((r=S||{}).Visible="visible",r.Hidden="hidden",r);let w=(0,o.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function O(e,t){let n=(0,c.E)(e),r=(0,o.useRef)([]),s=(0,l.t)(),u=(0,a.G)(),d=(0,i.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,f.E)(t,{[v.l4.Unmount](){r.current.splice(o,1)},[v.l4.Hidden](){r.current[o].state="hidden"}}),u.microTask(()=>{var e;!x(r)&&s.current&&(null==(e=n.current)||e.call(n))}))}),p=(0,i.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,v.l4.Unmount)}),m=(0,o.useRef)([]),g=(0,o.useRef)(Promise.resolve()),h=(0,o.useRef)({enter:[],leave:[],idle:[]}),b=(0,i.z)((e,n,r)=>{m.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{m.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),y=(0,i.z)((e,t,n)=>{Promise.all(h.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=m.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:p,unregister:d,onStart:b,onStop:y,wait:g,chains:h}),[p,d,r,b,y,h,g])}function k(){}w.displayName="NestingContext";let C=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let n={};for(let r of C)n[r]=null!=(t=e[r])?t:k;return n}let A=v.AN.RenderStrategy,I=(0,v.yV)(function(e,t){let{show:n,appear:r=!1,unmount:a=!0,...l}=e,c=(0,o.useRef)(null),p=(0,d.T)(c,t);(0,u.H)();let f=(0,h.oJ)();if(void 0===n&&null!==f&&(n=(f&h.ZM.Open)===h.ZM.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,o.useState)(n?"visible":"hidden"),b=O(()=>{g("hidden")}),[y,S]=(0,o.useState)(!0),k=(0,o.useRef)([n]);(0,s.e)(()=>{!1!==y&&k.current[k.current.length-1]!==n&&(k.current.push(n),S(!1))},[k,n]);let C=(0,o.useMemo)(()=>({show:n,appear:r,initial:y}),[n,r,y]);(0,o.useEffect)(()=>{if(n)g("visible");else if(x(b)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[n,b]);let T={unmount:a},I=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeEnter)||t.call(e)}),R=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(w.Provider,{value:b},o.createElement(E.Provider,{value:C},(0,v.sY)({ourProps:{...T,as:o.Fragment,children:o.createElement(N,{ref:p,...T,...l,beforeEnter:I,beforeLeave:R})},theirProps:{},defaultTag:o.Fragment,features:A,visible:"visible"===m,name:"Transition"})))}),N=(0,v.yV)(function(e,t){var n,r,S;let k;let{beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R,enter:_,enterFrom:P,enterTo:M,entered:L,leave:D,leaveFrom:j,leaveTo:F,...B}=e,U=(0,o.useRef)(null),Z=(0,d.T)(U,t),z=null==(n=B.unmount)||n?v.l4.Unmount:v.l4.Hidden,{show:H,appear:G,initial:$}=function(){let e=(0,o.useContext)(E);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[W,V]=(0,o.useState)(H?"visible":"hidden"),q=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:Y,unregister:K}=q;(0,o.useEffect)(()=>Y(U),[Y,U]),(0,o.useEffect)(()=>{if(z===v.l4.Hidden&&U.current){if(H&&"visible"!==W){V("visible");return}return(0,f.E)(W,{hidden:()=>K(U),visible:()=>Y(U)})}},[W,U,Y,K,H,z]);let X=(0,c.E)({base:y(B.className),enter:y(_),enterFrom:y(P),enterTo:y(M),entered:y(L),leave:y(D),leaveFrom:y(j),leaveTo:y(F)}),Q=(S={beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R},k=(0,o.useRef)(T(S)),(0,o.useEffect)(()=>{k.current=T(S)},[S]),k),J=(0,u.H)();(0,o.useEffect)(()=>{if(J&&"visible"===W&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,W,J]);let ee=G&&H&&$,et=J&&(!$||G)?H?"enter":"leave":"idle",en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,o.useState)(e),r=(0,l.t)(),a=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.addFlag(h.ZM.Opening),Q.current.beforeEnter()},leave:()=>{en.addFlag(h.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),eo=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.removeFlag(h.ZM.Opening),Q.current.afterEnter()},leave:()=>{en.removeFlag(h.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),ea=O(()=>{V("hidden"),K(U)},q),ei=(0,o.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:i,onStop:u}=e,d=(0,l.t)(),h=(0,a.G)(),b=(0,c.E)(r);(0,s.e)(()=>{t&&(b.current="enter")},[t]),(0,s.e)(()=>{let e=(0,p.k)();h.add(e.dispose);let t=n.current;if(t&&"idle"!==b.current&&d.current){var r,a,l;let n,s,c,d,h,v,y;return e.dispose(),i.current(b.current),e.add((r=o.current,a="enter"===b.current,l=()=>{e.dispose(),u.current(b.current)},s=a?"enter":"leave",c=(0,p.k)(),d=void 0!==l?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,f.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),v=(0,f.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),y=(0,f.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),g(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),m(t,...r.base,...h,...y),c.nextFrame(()=>{g(t,...r.base,...h,...y),m(t,...r.base,...h,...v),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),l=a+i;if(0!==l){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},l),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(g(t,...r.base,...h),m(t,...r.base,...r.entered),d()))}),c.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.E)(e=>{ei.current=!0,ea.onStart(U,e,er)}),onStop:(0,c.E)(e=>{ei.current=!1,ea.onStop(U,e,eo),"leave"!==e||x(ea)||(V("hidden"),K(U))})});let el=B;return ee?el={...el,className:(0,b.A)(B.className,...X.current.enter,...X.current.enterFrom)}:ei.current&&(el.className=(0,b.A)(B.className,null==(r=U.current)?void 0:r.className),""===el.className&&delete el.className),o.createElement(w.Provider,{value:ea},o.createElement(h.up,{value:(0,f.E)(W,{visible:h.ZM.Open,hidden:h.ZM.Closed})|en.flags},(0,v.sY)({ourProps:{ref:Z},theirProps:el,defaultTag:"div",features:A,visible:"visible"===W,name:"Transition.Child"})))}),R=(0,v.yV)(function(e,t){let n=null!==(0,o.useContext)(E),r=null!==(0,h.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(I,{ref:t,...e}):o.createElement(N,{ref:t,...e}))}),_=Object.assign(I,{Child:R,Root:I})},20044:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(64090),o=n(55205);function a(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},10641:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64090),o=n(85235);let a=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;ra.O.nextId():null);return(0,i.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},42219:function(e,t,n){n.d(t,{t:function(){return a}});var r=n(64090),o=n(39790);function a(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},39790:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(64090),o=n(41879);let a=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},85235:function(e,t,n){n.d(t,{E:function(){return a}});var r=n(64090),o=n(39790);function a(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},71679:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(64090),o=n(48803),a=n(25256),i=n(85235);function l(e,t,n){let o=(0,i.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var s=n(61372);function c(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,r.useRef)(!1);function c(n,r){if(!i.current||n.defaultPrevented)return;let a=r(n);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(a,o.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);let u=(0,r.useRef)(null);l("pointerdown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("mousedown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("click",e=>{(0,a.tq)()||u.current&&(c(e,()=>u.current),u.current=null)},!0),l("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},71454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(64090),o=n(39790);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function i(e,t){let[n,i]=(0,r.useState)(()=>a(e));return(0,o.e)(()=>{i(a(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}},92144:function(e,t,n){n.d(t,{H:function(){return i}});var r,o=n(64090),a=n(41879);function i(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,l]=o.useState(a.O.isHandoffComplete);return i&&!1===a.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==i&&l(!0)},[i]),o.useEffect(()=>a.O.handoff(),[]),!t&&i}},36601:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(64090),o=n(10641);let a=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:l}},61372:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(64090),o=n(85235);function a(e,t,n){let a=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},37700:function(e,t,n){n.d(t,{A:function(){return a},_:function(){return i}});var r,o=n(18318),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let i=(0,o.yV)(function(e,t){var n;let{features:r=1,...a}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:i,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},88358:function(e,t,n){n.d(t,{ZM:function(){return i},oJ:function(){return l},up:function(){return s}});var r,o=n(64090);let a=(0,o.createContext)(null);a.displayName="OpenClosedContext";var i=((r=i||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(a)}function s(e){let{value:t,children:n}=e;return o.createElement(a.Provider,{value:t},n)}},84152:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},82466:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},55205:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(21210)},41879:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let l=new i},48803:function(e,t,n){n.d(t,{C5:function(){return b},TO:function(){return d},fE:function(){return p},jA:function(){return y},sP:function(){return g},tJ:function(){return m},z2:function(){return v}});var r,o,a,i,l,s=n(72640),c=n(94819);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),f=((a=f||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),m=((i=m||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,s.E)(n,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var h=((l=h||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function b(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t){var n,r,o;let{sorted:a=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?a?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.includes(e))),i=null!=i?i:s.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,h;do{if(m>=g||m+g<=0)return 0;let e=p+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(h=c[e])||h.focus(f),m+=d}while(h!==s.activeElement);return 6&t&&null!=(o=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&h.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},72640:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}},21210:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},94819:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(41879);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},25256:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},18318:function(e,t,n){n.d(t,{AN:function(){return s},l4:function(){return c},oA:function(){return g},sY:function(){return u},yV:function(){return m}});var r,o,a=n(64090),i=n(82466),l=n(72640),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:a,visible:i=!0,name:s,mergeRefs:c}=e;c=null!=c?c:p;let u=f(n,t);if(i)return d(u,r,o,s,c);let m=null!=a?a:0;if(2&m){let{static:e=!1,...t}=u;if(e)return d(t,r,o,s,c)}if(1&m){let{unmount:e=!0,...t}=u;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,c)})}return d(u,r,o,s,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:s,refName:c="ref",...u}=h(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},p="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(m["data-headlessui-state"]=n.join(" "))}if(l===a.Fragment&&Object.keys(g(u)).length>0){if(!(0,a.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;rnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function f(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},9454:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});t.Z=o},98941:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))});t.Z=o},33393:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});t.Z=o},37963:function(e,t,n){n.d(t,{o:function(){return o}});class r extends Error{}function o(e,t){let n;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let o=!0===t.header?0:1,a=e.split(".")[o];if("string"!=typeof a)throw new r("Invalid token specified: missing part #".concat(o+1));try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(a)}catch(e){throw new r("Invalid token specified: invalid base64 for part #".concat(o+1," (").concat(e.message,")"))}try{return JSON.parse(n)}catch(e){throw new r("Invalid token specified: invalid json for part #".concat(o+1," (").concat(e.message,")"))}}r.prototype.name="InvalidTokenError"},12968:function(e,t,n){let r,o,a,i,l,s,c,u,d,p;n.d(t,{ZP:function(){return t9}});var f,m,g,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W,V,q,Y,K,X={};n.r(X),n.d(X,{APIConnectionError:function(){return eo},APIConnectionTimeoutError:function(){return ea},APIError:function(){return en},APIUserAbortError:function(){return er},AuthenticationError:function(){return el},BadRequestError:function(){return ei},ConflictError:function(){return eu},InternalServerError:function(){return ef},NotFoundError:function(){return ec},OpenAIError:function(){return et},PermissionDeniedError:function(){return es},RateLimitError:function(){return ep},UnprocessableEntityError:function(){return ed}});let Q="4.28.0",J=!1;class ee{get[Symbol.toStringTag](){return"MultipartBody"}constructor(e){this.body=e}}o||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{auto:!1};if(J)throw Error("you must `import 'openai/shims/".concat(e.kind,"'` before importing anything else from openai"));if(o)throw Error("can't `import 'openai/shims/".concat(e.kind,"'` after `import 'openai/shims/").concat(o,"'`"));J=t.auto,o=e.kind,a=e.fetch,e.Request,e.Response,e.Headers,i=e.FormData,e.Blob,l=e.File,s=e.ReadableStream,c=e.getMultipartRequestOptions,u=e.getDefaultAgent,d=e.fileFromPath,p=e.isFsReadStream}(function(){let e,t,n,r,{manuallyImported:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";try{e=fetch,t=Request,n=Response,r=Headers}catch(e){throw Error("this environment is missing the following Web Fetch API type: ".concat(e.message,". ").concat(a))}return{kind:"web",fetch:e,Request:t,Response:n,Headers:r,FormData:"undefined"!=typeof FormData?FormData:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(a))}},Blob:"undefined"!=typeof Blob?Blob:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(a))}},File:"undefined"!=typeof File?File:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(a))}},ReadableStream:"undefined"!=typeof ReadableStream?ReadableStream:class{constructor(){throw Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(a))}},getMultipartRequestOptions:async(e,t)=>({...t,body:new ee(e)}),getDefaultAgent:e=>void 0,fileFromPath:()=>{throw Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class et extends Error{}class en extends et{static makeMessage(e,t,n){let r=(null==t?void 0:t.message)?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?"".concat(e," ").concat(r):e?"".concat(e," status code (no body)"):r||"(no status code or body)"}static generate(e,t,n,r){if(!e)return new eo({cause:e0(t)});let o=null==t?void 0:t.error;return 400===e?new ei(e,o,n,r):401===e?new el(e,o,n,r):403===e?new es(e,o,n,r):404===e?new ec(e,o,n,r):409===e?new eu(e,o,n,r):422===e?new ed(e,o,n,r):429===e?new ep(e,o,n,r):e>=500?new ef(e,o,n,r):new en(e,o,n,r)}constructor(e,t,n,r){super("".concat(en.makeMessage(e,t,n))),this.status=e,this.headers=r,this.error=t,this.code=null==t?void 0:t.code,this.param=null==t?void 0:t.param,this.type=null==t?void 0:t.type}}class er extends en{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class eo extends en{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),this.status=void 0,t&&(this.cause=t)}}class ea extends eo{constructor({message:e}={}){super({message:null!=e?e:"Request timed out."})}}class ei extends en{constructor(){super(...arguments),this.status=400}}class el extends en{constructor(){super(...arguments),this.status=401}}class es extends en{constructor(){super(...arguments),this.status=403}}class ec extends en{constructor(){super(...arguments),this.status=404}}class eu extends en{constructor(){super(...arguments),this.status=409}}class ed extends en{constructor(){super(...arguments),this.status=422}}class ep extends en{constructor(){super(...arguments),this.status=429}}class ef extends en{}var em=n(8620).Buffer;class eg{static fromSSEResponse(e,t){let n=!1,r=new eh;async function*o(){if(!e.body)throw t.abort(),new et("Attempted to iterate over a response with no body");let n=new eb;for await(let t of ev(e.body))for(let e of n.decode(t)){let t=r.decode(e);t&&(yield t)}for(let e of n.flush()){let t=r.decode(e);t&&(yield t)}}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of o())if(!e){if(t.data.startsWith("[DONE]")){e=!0;continue}if(null===t.event){let e;try{e=JSON.parse(t.data)}catch(e){throw console.error("Could not parse message into JSON:",t.data),console.error("From chunk:",t.raw),e}if(e&&e.error)throw new en(void 0,e.error,void 0,void 0);yield e}}e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}static fromReadableStream(e,t){let n=!1;async function*r(){let t=new eb;for await(let n of ev(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of r())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new eg(()=>r(e),this.controller),new eg(()=>r(t),this.controller)]}toReadableStream(){let e;let t=this,n=new TextEncoder;return new s({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:r,done:o}=await e.next();if(o)return t.close();let a=n.encode(JSON.stringify(r)+"\n");t.enqueue(a)}catch(e){t.error(e)}},async cancel(){var t;await (null===(t=e.return)||void 0===t?void 0:t.call(e))}})}constructor(e,t){this.iterator=e,this.controller=t}}class eh{decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,n,r]=function(e,t){let n=e.indexOf(t);return -1!==n?[e.substring(0,n),t,e.substring(n+t.length)]:[e,"",""]}(e,":");return r.startsWith(" ")&&(r=r.substring(1)),"event"===t?this.event=r:"data"===t&&this.data.push(r),null}constructor(){this.event=null,this.data=[],this.chunks=[]}}class eb{decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];let n=eb.NEWLINE_CHARS.has(t[t.length-1]||""),r=t.split(eb.NEWLINE_REGEXP);return 1!==r.length||n?(this.buffer.length>0&&(r=[this.buffer.join("")+r[0],...r.slice(1)],this.buffer=[]),n||(this.buffer=[r.pop()||""]),r):(this.buffer.push(r[0]),[])}decodeText(e){if(null==e)return"";if("string"==typeof e)return e;if(void 0!==em){if(e instanceof em)return e.toString();if(e instanceof Uint8Array)return em.from(e).toString();throw new et("Unexpected: received non-Uint8Array (".concat(e.constructor.name,') stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.'))}if("undefined"!=typeof TextDecoder){if(e instanceof Uint8Array||e instanceof ArrayBuffer){var t;return null!==(t=this.textDecoder)&&void 0!==t||(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e)}throw new et("Unexpected: received non-Uint8Array/ArrayBuffer (".concat(e.constructor.name,") in a web platform. Please report this error."))}throw new et("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];let e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}constructor(){this.buffer=[],this.trailingCR=!1}}function ev(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return(null==e?void 0:e.done)&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}eb.NEWLINE_CHARS=new Set(["\n","\r","\v","\f","\x1c","\x1d","\x1e","\x85","\u2028","\u2029"]),eb.NEWLINE_REGEXP=/\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;var ey=n(8620).Buffer;let eE=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob,eS=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&ew(e),ew=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,ex=e=>eS(e)||eE(e)||p(e);async function eO(e,t){var n,r,o,a,i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(eE(e=await e)){let r=await e.blob();return t||(t=null!==(n=new URL(e.url).pathname.split(/[\\/]/).pop())&&void 0!==n?n:"unknown_file"),new l([r],t,s)}let c=await ek(e);if(t||(t=null!==(r=eC((a=e).name)||eC(a.filename)||(null===(i=eC(a.path))||void 0===i?void 0:i.split(/[\\/]/).pop()))&&void 0!==r?r:"unknown_file"),!s.type){let e=null===(o=c[0])||void 0===o?void 0:o.type;"string"==typeof e&&(s={...s,type:e})}return new l(c,t,s)}async function ek(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(ew(e))t.push(await e.arrayBuffer());else if(eT(e))for await(let n of e)t.push(n);else{var n;throw Error("Unexpected data type: ".concat(typeof e,"; constructor: ").concat(null==e?void 0:null===(n=e.constructor)||void 0===n?void 0:n.name,"; props: ").concat(function(e){let t=Object.getOwnPropertyNames(e);return"[".concat(t.map(e=>'"'.concat(e,'"')).join(", "),"]")}(e)))}return t}let eC=e=>"string"==typeof e?e:void 0!==ey&&e instanceof ey?String(e):void 0,eT=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eA=e=>e&&"object"==typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],eI=async e=>{let t=await eN(e.body);return c(t,e)},eN=async e=>{let t=new i;return await Promise.all(Object.entries(e||{}).map(e=>{let[n,r]=e;return e_(t,n,r)})),t},eR=e=>{if(ex(e))return!0;if(Array.isArray(e))return e.some(eR);if(e&&"object"==typeof e){for(let t in e)if(eR(e[t]))return!0}return!1},e_=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError('Received null for "'.concat(t,"\"; to pass null in FormData, you must use the string 'null'"));if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(ex(n)){let r=await eO(n);e.append(t,r)}else if(Array.isArray(n))await Promise.all(n.map(n=>e_(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(n=>{let[r,o]=n;return e_(e,"".concat(t,"[").concat(r,"]"),o)}));else throw TypeError("Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ".concat(n," instead"))}};var eP=n(8620).Buffer,eM=n(49079),eL=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},eD=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};async function ej(e){let{response:t}=e;if(e.options.stream)return(e6("response",t.status,t.url,t.headers,t.body),e.options.__streamClass)?e.options.__streamClass.fromSSEResponse(t,e.controller):eg.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;let n=t.headers.get("content-type");if((null==n?void 0:n.includes("application/json"))||(null==n?void 0:n.includes("application/vnd.api+json"))){let e=await t.json();return e6("response",t.status,t.url,t.headers,e),e}let r=await t.text();return e6("response",t.status,t.url,t.headers,r),r}class eF extends Promise{_thenUnwrap(e){return new eF(this.responsePromise,async t=>e(await this.parseResponse(t)))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}constructor(e,t=ej){super(e=>{e(null)}),this.responsePromise=e,this.parseResponse=t}}class eB{authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...eq(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return"stainless-node-retry-".concat(e5())}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}calculateContentLength(e){if("string"==typeof e){if(void 0!==eP)return eP.byteLength(e,"utf8").toString();if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e).length.toString()}return null}buildRequest(e){var t,n,r,o,a,i;let{method:l,path:s,query:c,headers:d={}}=e,p=eA(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,f=this.calculateContentLength(p),m=this.buildURL(s,c);"timeout"in e&&eJ("timeout",e.timeout);let g=null!==(n=e.timeout)&&void 0!==n?n:this.timeout,h=null!==(o=null!==(r=e.httpAgent)&&void 0!==r?r:this.httpAgent)&&void 0!==o?o:u(m),b=g+1e3;"number"==typeof(null==h?void 0:null===(t=h.options)||void 0===t?void 0:t.timeout)&&b>(null!==(a=h.options.timeout)&&void 0!==a?a:0)&&(h.options.timeout=b),this.idempotencyHeader&&"get"!==l&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),d[this.idempotencyHeader]=e.idempotencyKey);let v=this.buildHeaders({options:e,headers:d,contentLength:f});return{req:{method:l,...p&&{body:p},headers:v,...h&&{agent:h},signal:null!==(i=e.signal)&&void 0!==i?i:null},url:m,timeout:g}}buildHeaders(e){let{options:t,headers:n,contentLength:r}=e,a={};return r&&(a["content-length"]=r),e3(a,this.defaultHeaders(t)),e3(a,n),eA(t.body)&&"node"!==o&&delete a["content-type"],this.validateHeaders(a,n),a}async prepareOptions(e){}async prepareRequest(e,t){let{url:n,options:r}=t}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(e=>[...e])):{...e}:{}}makeStatusError(e,t,n,r){return en.generate(e,t,n,r)}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new eF(this.makeRequest(e,t))}async makeRequest(e,t){var n,r,o;let a=await e;null==t&&(t=null!==(r=a.maxRetries)&&void 0!==r?r:this.maxRetries),await this.prepareOptions(a);let{req:i,url:l,timeout:s}=this.buildRequest(a);if(await this.prepareRequest(i,{url:l,options:a}),e6("request",l,a,i.headers),null===(n=a.signal)||void 0===n?void 0:n.aborted)throw new er;let c=new AbortController,u=await this.fetchWithTimeout(l,i,s,c).catch(e0);if(u instanceof Error){if(null===(o=a.signal)||void 0===o?void 0:o.aborted)throw new er;if(t)return this.retryRequest(a,t);if("AbortError"===u.name)throw new ea;throw new eo({cause:u})}let d=ez(u.headers);if(!u.ok){if(t&&this.shouldRetry(u)){let e="retrying, ".concat(t," attempts remaining");return e6("response (error; ".concat(e,")"),u.status,l,d),this.retryRequest(a,t,d)}let e=await u.text().catch(e=>e0(e).message),n=eY(e),r=n?void 0:e,o=t?"(error; no more retries left)":"(error; not retryable)";throw e6("response (error; ".concat(o,")"),u.status,l,d,r),this.makeStatusError(u.status,n,r,d)}return{response:u,options:a,controller:c}}requestAPIList(e,t){return new eZ(this,this.makeRequest(t,null),e)}buildURL(e,t){let n=new URL(eX(e)?e:this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),r=this.defaultQuery();return e2(r)||(t={...r,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(n.search=this.stringifyQuery(t)),n.toString()}stringifyQuery(e){return Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}).map(e=>{let[t,n]=e;if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n));if(null===n)return"".concat(encodeURIComponent(t),"=");throw new et("Cannot stringify type ".concat(typeof n,"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case."))}).join("&")}async fetchWithTimeout(e,t,n,r){let{signal:o,...a}=t||{};o&&o.addEventListener("abort",()=>r.abort());let i=setTimeout(()=>r.abort(),n);return this.getRequestClient().fetch.call(void 0,e,{signal:r.signal,...a}).finally(()=>{clearTimeout(i)})}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||e.status>=500)}async retryRequest(e,t,n){let r;let o=null==n?void 0:n["retry-after-ms"];if(o){let e=parseFloat(o);Number.isNaN(e)||(r=e)}let a=null==n?void 0:n["retry-after"];if(a&&!r){let e=parseFloat(a);r=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(r&&0<=r&&r<6e4)){var i;let n=null!==(i=e.maxRetries)&&void 0!==i?i:this.maxRetries;r=this.calculateDefaultRetryTimeoutMillis(t,n)}return await eQ(r),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}getUserAgent(){return"".concat(this.constructor.name,"/JS ").concat(Q)}constructor({baseURL:e,maxRetries:t=2,timeout:n=6e5,httpAgent:r,fetch:o}){this.baseURL=e,this.maxRetries=eJ("maxRetries",t),this.timeout=eJ("timeout",n),this.httpAgent=r,this.fetch=null!=o?o:a}}class eU{hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){let e=this.nextPageInfo();if(!e)throw new et("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");let t={...this.options};if("params"in e&&"object"==typeof t.query)t.query={...t.query,...e.params};else if("url"in e){for(let[n,r]of[...Object.entries(t.query||{}),...e.url.searchParams.entries()])e.url.searchParams.set(n,r);t.query=void 0,t.path=e.url.toString()}return await eD(this,w,"f").requestAPIList(this.constructor,t)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(w=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}constructor(e,t,n,r){w.set(this,void 0),eL(this,w,e,"f"),this.options=r,this.response=t,this.body=n}}class eZ extends eF{async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}constructor(e,t,n){super(t,async t=>new n(e,t.response,await ej(t),t.options))}}let ez=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){let n=t.toString();return e[n.toLowerCase()]||e[n]}}),eH={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryResponse:!0,__streamClass:!0},eG=e=>"object"==typeof e&&null!==e&&!e2(e)&&Object.keys(e).every(e=>e4(eH,e)),e$=()=>{if("undefined"!=typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(Deno.build.os),"X-Stainless-Arch":eW(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":Deno.version};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"other:".concat(EdgeRuntime),"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":eM.version};if("[object process]"===Object.prototype.toString.call(void 0!==eM?eM:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(eM.platform),"X-Stainless-Arch":eW(eM.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":eM.version};let e=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,o=n[3]||0;return{browser:e,version:"".concat(t,".").concat(r,".").concat(o)}}}return null}();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"browser:".concat(e.browser),"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},eW=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?"other:".concat(e):"unknown",eV=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?"Other:".concat(e):"Unknown",eq=()=>null!=r?r:r=e$(),eY=e=>{try{return JSON.parse(e)}catch(e){return}},eK=RegExp("^(?:[a-z]+:)?//","i"),eX=e=>eK.test(e),eQ=e=>new Promise(t=>setTimeout(t,e)),eJ=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new et("".concat(e," must be an integer"));if(t<0)throw new et("".concat(e," must be a positive integer"));return t},e0=e=>e instanceof Error?e:Error(e),e1=e=>{var t,n,r,o,a,i;return void 0!==eM?null!==(r=null===(n=eM.env)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.trim())&&void 0!==r?r:void 0:"undefined"!=typeof Deno?null===(i=Deno.env)||void 0===i?void 0:null===(a=i.get)||void 0===a?void 0:null===(o=a.call(i,e))||void 0===o?void 0:o.trim():void 0};function e2(e){if(!e)return!0;for(let t in e)return!1;return!0}function e4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e3(e,t){for(let n in t){if(!e4(t,n))continue;let r=n.toLowerCase();if(!r)continue;let o=t[n];null===o?delete e[r]:void 0!==o&&(e[r]=o)}}function e6(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e8=()=>void 0!==window.document&&"undefined"!=typeof navigator;class e9 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){return null}nextPageInfo(){return null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}}class e7 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){let e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;let t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){var e;let t=this.getPaginatedItems();if(!t.length)return null;let n=null===(e=t[t.length-1])||void 0===e?void 0:e.id;return n?{params:{after:n}}:null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[]}}class te{constructor(e){this._client=e}}class tt extends te{create(e,t){var n;return this._client.post("/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tt||(tt={});class tn extends te{create(e,t){var n;return this._client.post("/chat/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tn||(tn={});class tr extends te{constructor(){super(...arguments),this.completions=new tn(this._client)}}(tr||(tr={})).Completions=tn;class to extends te{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}to||(to={});class ta extends te{create(e,t){return this._client.post("/files",eI({body:e,...t}))}retrieve(e,t){return this._client.get("/files/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/files",ti,{query:e,...t})}del(e,t){return this._client.delete("/files/".concat(e),t)}content(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,headers:{Accept:"application/json",...null==t?void 0:t.headers}})}async waitForProcessing(e){let{pollInterval:t=5e3,maxWait:n=18e5}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Set(["processed","error","deleted"]),o=Date.now(),a=await this.retrieve(e);for(;!a.status||!r.has(a.status);)if(await eQ(t),a=await this.retrieve(e),Date.now()-o>n)throw new ea({message:"Giving up on waiting for file ".concat(e," to finish processing after ").concat(n," milliseconds.")});return a}}class ti extends e9{}(ta||(ta={})).FileObjectsPage=ti;class tl extends te{createVariation(e,t){return this._client.post("/images/variations",eI({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",eI({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}tl||(tl={});class ts extends te{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}ts||(ts={});class tc extends te{create(e,t){return this._client.post("/audio/transcriptions",eI({body:e,...t}))}}tc||(tc={});class tu extends te{create(e,t){return this._client.post("/audio/translations",eI({body:e,...t}))}}tu||(tu={});class td extends te{constructor(){super(...arguments),this.transcriptions=new tc(this._client),this.translations=new tu(this._client),this.speech=new ts(this._client)}}(f=td||(td={})).Transcriptions=tc,f.Translations=tu,f.Speech=ts;class tp extends te{create(e,t){return this._client.post("/moderations",{body:e,...t})}}tp||(tp={});class tf extends te{retrieve(e,t){return this._client.get("/models/".concat(e),t)}list(e){return this._client.getAPIList("/models",tm,e)}del(e,t){return this._client.delete("/models/".concat(e),t)}}class tm extends e9{}(tf||(tf={})).ModelsPage=tm;class tg extends te{create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get("/fine_tuning/jobs/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",th,{query:e,...t})}cancel(e,t){return this._client.post("/fine_tuning/jobs/".concat(e,"/cancel"),t)}listEvents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.listEvents(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/events"),tb,{query:t,...n})}}class th extends e7{}class tb extends e7{}(m=tg||(tg={})).FineTuningJobsPage=th,m.FineTuningJobEventsPage=tb;class tv extends te{constructor(){super(...arguments),this.jobs=new tg(this._client)}}(g=tv||(tv={})).Jobs=tg,g.FineTuningJobsPage=th,g.FineTuningJobEventsPage=tb;class ty extends te{create(e,t,n){return this._client.post("/assistants/".concat(e,"/files"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/assistants/".concat(e,"/files"),tE,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}}class tE extends e7{}(ty||(ty={})).AssistantFilesPage=tE;class tS extends te{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/assistants/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/assistants",tw,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}del(e,t){return this._client.delete("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.files=new ty(this._client)}}class tw extends e7{}function tx(e){return"function"==typeof e.parse}(h=tS||(tS={})).AssistantsPage=tw,h.Files=ty,h.AssistantFilesPage=tE;let tO=e=>(null==e?void 0:e.role)==="assistant",tk=e=>(null==e?void 0:e.role)==="function",tC=e=>(null==e?void 0:e.role)==="tool";var tT=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},tA=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class tI{_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},tA(this,U,"f"))},0)}_addChatCompletion(e){var t;this._chatCompletions.push(e),this._emit("chatCompletion",e);let n=null===(t=e.choices[0])||void 0===t?void 0:t.message;return n&&this._addMessage(n),e}_addMessage(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),(tk(e)||tC(e))&&e.content)this._emit("functionCallResult",e.content);else if(tO(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(tO(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionCall",t.function)}}_connected(){this.ended||(tA(this,k,"f").call(this),this._emit("connect"))}get ended(){return tA(this,R,"f")}get errored(){return tA(this,_,"f")}get aborted(){return tA(this,P,"f")}abort(){this.controller.abort()}on(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t}),this}off(e,t){let n=tA(this,N,"f")[e];if(!n)return this;let r=n.findIndex(e=>e.listener===t);return r>=0&&n.splice(r,1),this}once(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,n)=>{tT(this,M,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)})}async done(){tT(this,M,!0,"f"),await tA(this,T,"f")}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new et("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),tA(this,x,"m",L).call(this)}async finalMessage(){return await this.done(),tA(this,x,"m",D).call(this)}async finalFunctionCall(){return await this.done(),tA(this,x,"m",j).call(this)}async finalFunctionCallResult(){return await this.done(),tA(this,x,"m",F).call(this)}async totalUsage(){return await this.done(),tA(this,x,"m",B).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r!e.once),o.forEach(e=>{let{listener:t}=e;return t(...n)})),"abort"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end");return}if("error"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end")}}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=tA(this,x,"m",D).call(this);t&&this._emit("finalMessage",t);let n=tA(this,x,"m",L).call(this);n&&this._emit("finalContent",n);let r=tA(this,x,"m",j).call(this);r&&this._emit("finalFunctionCall",r);let o=tA(this,x,"m",F).call(this);null!=o&&this._emit("finalFunctionCallResult",o),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",tA(this,x,"m",B).call(this))}async _createChatCompletion(e,t,n){let r=null==n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),tA(this,x,"m",Z).call(this,t);let o=await e.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(o)}async _runChatCompletion(e,t,n){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,n)}async _runFunctions(e,t,n){let r="function",{function_call:o="auto",stream:a,...i}=t,l="string"!=typeof o&&(null==o?void 0:o.name),{maxChatCompletions:s=10}=n||{},c={};for(let e of t.functions)c[e.name||e.function.name]=e;let u=t.functions.map(e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description}));for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.name)).join(", "),". Please try again");this._addMessage({role:r,name:s,content:e});continue}try{t=tx(f)?await f.parse(p):p}catch(e){this._addMessage({role:r,name:s,content:e instanceof Error?e.message:String(e)});continue}let m=await f.function(t,this),g=tA(this,x,"m",z).call(this,m);if(this._addMessage({role:r,name:s,content:g}),l)return}}async _runTools(e,t,n){var r,o;let a="tool",{tool_choice:i="auto",stream:l,...s}=t,c="string"!=typeof i&&(null==i?void 0:null===(r=i.function)||void 0===r?void 0:r.name),{maxChatCompletions:u=10}=n||{},d={};for(let e of t.tools)"function"===e.type&&(d[e.function.name||e.function.function.name]=e.function);let p="tools"in t?t.tools.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.function.name)).join(", "),". Please try again");this._addMessage({role:a,tool_call_id:n,content:e});continue}try{t=tx(i)?await i.parse(o):o}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:a,tool_call_id:n,content:e});continue}let l=await i.function(t,this),s=tA(this,x,"m",z).call(this,l);if(this._addMessage({role:a,tool_call_id:n,content:s}),c)return}}}constructor(){x.add(this),this.controller=new AbortController,O.set(this,void 0),k.set(this,()=>{}),C.set(this,()=>{}),T.set(this,void 0),A.set(this,()=>{}),I.set(this,()=>{}),N.set(this,{}),this._chatCompletions=[],this.messages=[],R.set(this,!1),_.set(this,!1),P.set(this,!1),M.set(this,!1),U.set(this,e=>{if(tT(this,_,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new er),e instanceof er)return tT(this,P,!0,"f"),this._emit("abort",e);if(e instanceof et)return this._emit("error",e);if(e instanceof Error){let t=new et(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new et(String(e)))}),tT(this,O,new Promise((e,t)=>{tT(this,k,e,"f"),tT(this,C,t,"f")}),"f"),tT(this,T,new Promise((e,t)=>{tT(this,A,e,"f"),tT(this,I,t,"f")}),"f"),tA(this,O,"f").catch(()=>{}),tA(this,T,"f").catch(()=>{})}}O=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,A=new WeakMap,I=new WeakMap,N=new WeakMap,R=new WeakMap,_=new WeakMap,P=new WeakMap,M=new WeakMap,U=new WeakMap,x=new WeakSet,L=function(){var e;return null!==(e=tA(this,x,"m",D).call(this).content)&&void 0!==e?e:null},D=function(){let e=this.messages.length;for(;e-- >0;){let n=this.messages[e];if(tO(n)){var t;return{...n,content:null!==(t=n.content)&&void 0!==t?t:null}}}throw new et("stream ended without producing a ChatCompletionMessage with role=assistant")},j=function(){for(let n=this.messages.length-1;n>=0;n--){var e,t;let r=this.messages[n];if(tO(r)&&(null==r?void 0:r.function_call))return r.function_call;if(tO(r)&&(null==r?void 0:null===(e=r.tool_calls)||void 0===e?void 0:e.length))return null===(t=r.tool_calls.at(-1))||void 0===t?void 0:t.function}},F=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tk(t)&&null!=t.content||tC(t)&&null!=t.content&&this.messages.some(e=>{var n;return"assistant"===e.role&&(null===(n=e.tool_calls)||void 0===n?void 0:n.some(e=>"function"===e.type&&e.id===t.tool_call_id))}))return t.content}},B=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},Z=function(e){if(null!=e.n&&e.n>1)throw new et("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},z=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class tN extends tI{static runFunctions(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}_addMessage(e){super._addMessage(e),tO(e)&&e.content&&this._emit("content",e.content)}}var tR=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},t_=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class tP extends tI{get currentChatCompletionSnapshot(){return tR(this,G,"f")}static fromReadableStream(e){let t=new tP;return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,n){let r=new tP;return r._run(()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createChatCompletion(e,t,n){var r;let o=null==n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this);let a=await e.create({...t,stream:!0},{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))tR(this,H,"m",W).call(this,e);if(null===(r=a.controller.signal)||void 0===r?void 0:r.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}async _fromReadableStream(e,t){var n;let r;let o=null==t?void 0:t.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this),this._connected();let a=eg.fromReadableStream(e,this.controller);for await(let e of a)r&&r!==e.id&&this._addChatCompletion(tR(this,H,"m",V).call(this)),tR(this,H,"m",W).call(this,e),r=e.id;if(null===(n=a.controller.signal)||void 0===n?void 0:n.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}[(G=new WeakMap,H=new WeakSet,$=function(){this.ended||t_(this,G,void 0,"f")},W=function(e){var t,n,r;if(this.ended)return;let o=tR(this,H,"m",q).call(this,e);this._emit("chunk",e,o);let a=null===(n=e.choices[0])||void 0===n?void 0:null===(t=n.delta)||void 0===t?void 0:t.content,i=null===(r=o.choices[0])||void 0===r?void 0:r.message;null!=a&&(null==i?void 0:i.role)==="assistant"&&(null==i?void 0:i.content)&&this._emit("content",a,i.content)},V=function(){if(this.ended)throw new et("stream has ended, this shouldn't happen");let e=tR(this,G,"f");if(!e)throw new et("request ended without sending any chunks");return t_(this,G,void 0,"f"),function(e){let{id:t,choices:n,created:r,model:o,system_fingerprint:a,...i}=e;return{...i,id:t,choices:n.map(t=>{let{message:n,finish_reason:r,index:o,logprobs:a,...i}=t;if(!r)throw new et("missing finish_reason for choice ".concat(o));let{content:l=null,function_call:s,tool_calls:c,...u}=n,d=n.role;if(!d)throw new et("missing role for choice ".concat(o));if(s){let{arguments:e,name:t}=s;if(null==e)throw new et("missing function_call.arguments for choice ".concat(o));if(!t)throw new et("missing function_call.name for choice ".concat(o));return{...i,message:{content:l,function_call:{arguments:e,name:t},role:d},finish_reason:r,index:o,logprobs:a}}return c?{...i,index:o,finish_reason:r,logprobs:a,message:{...u,role:d,content:l,tool_calls:c.map((t,n)=>{let{function:r,type:a,id:i,...l}=t,{arguments:s,name:c,...u}=r||{};if(null==i)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].id\n").concat(tM(e)));if(null==a)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].type\n").concat(tM(e)));if(null==c)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.name\n").concat(tM(e)));if(null==s)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.arguments\n").concat(tM(e)));return{...l,id:i,type:a,function:{...u,name:c,arguments:s}}})}}:{...i,message:{...u,content:l,role:d},finish_reason:r,index:o,logprobs:a}}),created:r,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}}}(e)},q=function(e){var t,n,r,o,a,i,l;let s=tR(this,G,"f"),{choices:c,...u}=e;for(let{delta:c,finish_reason:d,index:p,logprobs:f=null,...m}of(s?Object.assign(s,u):s=t_(this,G,{...u,choices:[]},"f"),e.choices)){let e=s.choices[p];if(e||(e=s.choices[p]={finish_reason:d,index:p,message:{},logprobs:f,...m}),f){if(e.logprobs){let{content:n,...r}=f;Object.assign(e.logprobs,r),n&&(null!==(o=(t=e.logprobs).content)&&void 0!==o||(t.content=[]),e.logprobs.content.push(...n))}else e.logprobs=Object.assign({},f)}if(d&&(e.finish_reason=d),Object.assign(e,m),!c)continue;let{content:u,function_call:g,role:h,tool_calls:b,...v}=c;if(Object.assign(e.message,v),u&&(e.message.content=(e.message.content||"")+u),h&&(e.message.role=h),g&&(e.message.function_call?(g.name&&(e.message.function_call.name=g.name),g.arguments&&(null!==(a=(n=e.message.function_call).arguments)&&void 0!==a||(n.arguments=""),e.message.function_call.arguments+=g.arguments)):e.message.function_call=g),b)for(let{index:t,id:n,type:o,function:a,...s}of(e.message.tool_calls||(e.message.tool_calls=[]),b)){let c=null!==(i=(r=e.message.tool_calls)[t])&&void 0!==i?i:r[t]={};Object.assign(c,s),n&&(c.id=n),o&&(c.type=o),a&&(null!==(l=c.function)&&void 0!==l||(c.function={arguments:""})),(null==a?void 0:a.name)&&(c.function.name=a.name),(null==a?void 0:a.arguments)&&(c.function.arguments+=a.arguments)}}return s},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("chunk",n=>{let r=t.shift();r?r(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e(void 0);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise(e=>t.push(e)).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0})}}toReadableStream(){return new eg(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}constructor(){super(...arguments),H.add(this),G.set(this,void 0)}}function tM(e){return JSON.stringify(e)}class tL extends tP{static fromReadableStream(e){let t=new tL;return t._run(()=>t._fromReadableStream(e)),t}static runFunctions(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}}class tD extends te{runFunctions(e,t){return e.stream?tL.runFunctions(this._client.chat.completions,e,t):tN.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?tL.runTools(this._client.chat.completions,e,t):tN.runTools(this._client.chat.completions,e,t)}stream(e,t){return tP.createChatCompletion(this._client.chat.completions,e,t)}}class tj extends te{constructor(){super(...arguments),this.completions=new tD(this._client)}}(tj||(tj={})).Completions=tD;class tF extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/messages/").concat(t,"/files/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/messages/").concat(t,"/files"),tB,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tB extends e7{}(tF||(tF={})).MessageFilesPage=tB;class tU extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/messages"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/messages/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/messages"),tZ,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}constructor(){super(...arguments),this.files=new tF(this._client)}}class tZ extends e7{}(b=tU||(tU={})).ThreadMessagesPage=tZ,b.Files=tF,b.MessageFilesPage=tB;class tz extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/runs/").concat(t,"/steps/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/runs/").concat(t,"/steps"),tH,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tH extends e7{}(tz||(tz={})).RunStepsPage=tH;class tG extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/runs"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/runs/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/runs"),t$,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}submitToolOutputs(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/submit_tool_outputs"),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}constructor(){super(...arguments),this.steps=new tz(this._client)}}class t$ extends e7{}(v=tG||(tG={})).RunsPage=t$,v.Steps=tz,v.RunStepsPage=tH;class tW extends te{create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/threads/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t){return this._client.delete("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.runs=new tG(this._client),this.messages=new tU(this._client)}}(y=tW||(tW={})).Runs=tG,y.RunsPage=t$,y.Messages=tU,y.ThreadMessagesPage=tZ;class tV extends te{constructor(){super(...arguments),this.chat=new tj(this._client),this.assistants=new tS(this._client),this.threads=new tW(this._client)}}(E=tV||(tV={})).Chat=tj,E.Assistants=tS,E.AssistantsPage=tw,E.Threads=tW;class tq extends eB{defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:"Bearer ".concat(this.apiKey)}}constructor({baseURL:e=e1("OPENAI_BASE_URL"),apiKey:t=e1("OPENAI_API_KEY"),organization:n=null!==(K=e1("OPENAI_ORG_ID"))&&void 0!==K?K:null,...r}={}){var o;if(void 0===t)throw new et("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");let a={apiKey:t,organization:n,...r,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&e8())throw new et("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:a.baseURL,timeout:null!==(o=a.timeout)&&void 0!==o?o:6e5,httpAgent:a.httpAgent,maxRetries:a.maxRetries,fetch:a.fetch}),this.completions=new tt(this),this.chat=new tr(this),this.embeddings=new to(this),this.files=new ta(this),this.images=new tl(this),this.audio=new td(this),this.moderations=new tp(this),this.models=new tf(this),this.fineTuning=new tv(this),this.beta=new tV(this),this._options=a,this.apiKey=t,this.organization=n}}Y=tq,tq.OpenAI=Y,tq.OpenAIError=et,tq.APIError=en,tq.APIConnectionError=eo,tq.APIConnectionTimeoutError=ea,tq.APIUserAbortError=er,tq.NotFoundError=ec,tq.ConflictError=eu,tq.RateLimitError=ep,tq.BadRequestError=ei,tq.AuthenticationError=el,tq.InternalServerError=ef,tq.PermissionDeniedError=es,tq.UnprocessableEntityError=ed;let{OpenAIError:tY,APIError:tK,APIConnectionError:tX,APIConnectionTimeoutError:tQ,APIUserAbortError:tJ,NotFoundError:t0,ConflictError:t1,RateLimitError:t2,BadRequestError:t4,AuthenticationError:t3,InternalServerError:t6,PermissionDeniedError:t5,UnprocessableEntityError:t8}=X;(S=tq||(tq={})).toFile=eO,S.fileFromPath=d,S.Page=e9,S.CursorPage=e7,S.Completions=tt,S.Chat=tr,S.Embeddings=to,S.Files=ta,S.FileObjectsPage=ti,S.Images=tl,S.Audio=td,S.Moderations=tp,S.Models=tf,S.ModelsPage=tm,S.FineTuning=tv,S.Beta=tV;var t9=tq},69703:function(e,t,n){function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}n.d(t,{_T:function(){return r}}),"function"==typeof SuppressedError&&SuppressedError},72890:function(e){e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},55229:function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file +*/function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},72784:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(6976),o=n(34951);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},86926:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(){o=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(t,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(s,"_invoke",{value:(a=new I(o||[]),l=m,function(n,o){if(l===g)throw Error("Generator is already running");if(l===h){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function t(n,r){var o=r.method,a=n.iterator[o];if(a===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(a,n.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(i,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===m)throw l=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=g;var c=f(t,r,a);if("normal"===c.type){if(l=a.done?h:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(l=h,a.method="throw",a.arg=c.arg)}})}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",g="executing",h="completed",b={};function v(){}function y(){}function E(){}var S={};d(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==n&&a.call(x,s)&&(S=x);var O=E.prototype=v.prototype=Object.create(S);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){var n;i(this,"_invoke",{value:function(o,i){function l(){return new t(function(n,l){!function n(o,i,l,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,l,s)},function(e){n("throw",e,l,s)}):t.resolve(d).then(function(e){u.value=e,l(u)},function(e){return n("throw",e,l,s)})}s(c.arg)}(o,i,n,l)})}return n=n?n.then(l,l):l()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},80406:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(19065),o=n(76057),a=n(93319);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},56721:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(19065),o=n(58194),a=n(76057),i=n(93319);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},63787:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(95180),o=n(58194),a=n(76057);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},29423:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},6976:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},76057:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(95180);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},68637:function(e,t,n){let r,o;n.d(t,{V:function(){return eE}});var a,i,l,s,c,u,d=n(64090),p=n.t(d,2),f=n(20044),m=n(10641),g=n(85235);function h(e,t,n,r){let o=(0,g.E)(n);(0,d.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var b=n(42219),v=n(21210);function y(e){let t=(0,m.z)(e),n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,v.Y)(()=>{n.current&&t()})}),[t])}var E=n(94819);function S(){for(var e=arguments.length,t=Array(e),n=0;n(0,E.r)(...t),[...t])}var w=n(92144),x=n(36601),O=n(61372),k=((a=k||{})[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a);function C(e,t){let n=(0,d.useRef)([]),r=(0,m.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}var T=n(37700);let A=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&A[0]!==e.target&&(A.unshift(e.target),(A=A.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var I=n(48803),N=n(72640),R=n(18318);function _(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var P=((i=P||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let M=Object.assign((0,R.yV)(function(e,t){let n,r=(0,d.useRef)(null),o=(0,x.T)(r,t),{initialFocus:a,containers:i,features:l=30,...s}=e;(0,w.H)()||(l=1);let c=S(r);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,d.useRef)(A.slice());return C((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,v.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=A.slice())},[e,A,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);C(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,I.C5)(r())},[t]),y(()=>{t&&(0,I.C5)(r())})}({ownerDocument:c},!!(16&l));let u=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,a=(0,d.useRef)(null),i=(0,b.t)();return C(()=>{if(!t)return;let e=r.current;e&&(0,v.Y)(()=>{if(!i.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=o&&o.current?(0,I.C5)(o.current):(0,I.jA)(e,I.TO.First)===I.fE.Error&&console.warn("There are no focusable elements inside the "),a.current=null==n?void 0:n.activeElement})},[t]),a}({ownerDocument:c,container:r,initialFocus:a},!!(2&l));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:a}=e,i=(0,b.t)();h(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!i.current)return;let n=_(o);r.current instanceof HTMLElement&&n.add(r.current);let l=a.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?L(n,s)?(a.current=s,(0,I.C5)(s)):(e.preventDefault(),e.stopPropagation(),(0,I.C5)(l)):(0,I.C5)(a.current)},!0)}({ownerDocument:c,container:r,containers:i,previousActiveElement:u},!!(8&l));let p=(n=(0,d.useRef)(0),(0,O.s)("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),g=(0,m.z)(e=>{let t=r.current;t&&(0,N.E)(p.current,{[k.Forwards]:()=>{(0,I.jA)(t,I.TO.First,{skipElements:[e.relatedTarget]})},[k.Backwards]:()=>{(0,I.jA)(t,I.TO.Last,{skipElements:[e.relatedTarget]})}})}),E=(0,f.G)(),P=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}),(0,R.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(P.current=!0,E.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){let t=_(i);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(L(t,n)||(P.current?(0,I.jA)(r.current,(0,N.E)(p.current,{[k.Forwards]:()=>I.TO.Next,[k.Backwards]:()=>I.TO.Previous})|I.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,I.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}))}),{features:P});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var D=n(89542),j=n(39790);let F=(0,d.createContext)(!1);function B(e){return d.createElement(F.Provider,{value:e.force},e.children)}var U=n(41879);let Z=d.Fragment,z=d.Fragment,H=(0,d.createContext)(null),G=(0,d.createContext)(null),$=Object.assign((0,R.yV)(function(e,t){let n=(0,d.useRef)(null),r=(0,x.T)((0,x.h)(e=>{n.current=e}),t),o=S(n),a=function(e){let t=(0,d.useContext)(F),n=(0,d.useContext)(H),r=S(e),[o,a]=(0,d.useState)(()=>{if(!t&&null!==n||U.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,d.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,d.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[i]=(0,d.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,d.useContext)(G),s=(0,w.H)();return(0,j.e)(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),(0,j.e)(()=>{if(i&&l)return l.register(i)},[l,i]),y(()=>{var e;a&&i&&(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),s&&a&&i?(0,D.createPortal)((0,R.sY)({ourProps:{ref:r},theirProps:e,defaultTag:Z,name:"Portal"}),i):null}),{Group:(0,R.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,x.T)(t)};return d.createElement(H.Provider,{value:n},(0,R.sY)({ourProps:o,theirProps:r,defaultTag:z,name:"Popover.Group"}))})}),{useState:W,useEffect:V,useLayoutEffect:q,useDebugValue:Y}=p;void 0!==window.document&&window.document.createElement;let K=p.useSyncExternalStore;var X=n(55205),Q=n(25256);let J=(l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,X.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,a={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},i=[(0,Q.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,X.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(a=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,a=o.clientWidth-o.offsetWidth,i=t-a;r.style(o,"paddingRight","".concat(i,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];i.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),i.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;ae()))}});J.subscribe(()=>{let e=J.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&J.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&J.dispatch("TEARDOWN",n)}});var ee=n(92381);let et=new Map,en=new Map;function er(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,j.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=en.get(r))?n:0;return en.set(r,o+1),0!==o||(et.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=en.get(r))?e:1;if(1===t?en.delete(r):en.set(r,t-1),1!==t)return;let n=et.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,et.delete(r))}},[e,t])}var eo=n(71679),ea=n(88358);let ei=(0,d.createContext)(()=>{});ei.displayName="StackContext";var el=((s=el||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function es(e){let{children:t,onUpdate:n,type:r,element:o,enabled:a}=e,i=(0,d.useContext)(ei),l=(0,m.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r{let e=void 0===a||!0===a;return e&&l(0,r,o),()=>{e&&l(1,r,o)}},[l,r,o,a]),d.createElement(ei.Provider,{value:l},t)}var ec=n(84152);let eu=(0,d.createContext)(null),ed=Object.assign((0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-description-".concat(n),...o}=e,a=function e(){let t=(0,d.useContext)(eu);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=(0,x.T)(t);(0,j.e)(()=>a.register(r),[r,a.register]);let l={ref:i,...a.props,id:r};return(0,R.sY)({ourProps:l,theirProps:o,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var ep=n(67409),ef=((c=ef||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eh=(0,d.createContext)(null);function eb(e){let t=(0,d.useContext)(eh);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}function ev(e,t){return(0,N.E)(t.type,eg,e,t)}eh.displayName="DialogContext";let ey=R.AN.RenderStrategy|R.AN.Static,eE=Object.assign((0,R.yV)(function(e,t){let n,r,o,a,i,l=(0,ee.M)(),{id:s="headlessui-dialog-".concat(l),open:c,onClose:u,initialFocus:p,role:f="dialog",__demoMode:g=!1,...b}=e,[v,y]=(0,d.useState)(0),E=(0,d.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(E.current||(E.current=!0,console.warn("Invalid role [".concat(f,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let O=(0,ea.oJ)();void 0===c&&null!==O&&(c=(O&ea.ZM.Open)===ea.ZM.Open);let k=(0,d.useRef)(null),C=(0,x.T)(k,t),A=S(k),I=e.hasOwnProperty("open")||null!==O,_=e.hasOwnProperty("onClose");if(!I&&!_)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!I)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof c)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(c));if("function"!=typeof u)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(u));let P=c?0:1,[L,D]=(0,d.useReducer)(ev,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),F=(0,m.z)(()=>u(!1)),U=(0,m.z)(e=>D({type:0,id:e})),Z=!!(0,w.H)()&&!g&&0===P,z=v>1,H=null!==(0,d.useContext)(eh),[W,V]=(n=(0,d.useContext)(G),r=(0,d.useRef)([]),o=(0,m.z)(e=>(r.current.push(e),n&&n.register(e),()=>a(e))),a=(0,m.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),i=(0,d.useMemo)(()=>({register:o,unregister:a,portals:r}),[o,a,r]),[r,(0,d.useMemo)(()=>function(e){let{children:t}=e;return d.createElement(G.Provider,{value:i},t)},[i])]),{resolveContainers:q,mainTreeNodeRef:Y,MainTreeNode:X}=function(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,d.useRef)(null!=(e=null==r?void 0:r.current)?e:null),a=S(o),i=(0,m.z)(()=>{var e,r,i;let l=[];for(let e of t)null!==e&&(e instanceof HTMLElement?l.push(e):"current"in e&&e.current instanceof HTMLElement&&l.push(e.current));if(null!=n&&n.current)for(let e of n.current)l.push(e);for(let t of null!=(e=null==a?void 0:a.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||t.contains(null==(i=null==(r=o.current)?void 0:r.getRootNode())?void 0:i.host)||l.some(e=>t.contains(e))||l.push(t));return l});return{resolveContainers:i,contains:(0,m.z)(e=>i().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,d.useMemo)(()=>function(){return null!=r?null:d.createElement(T._,{features:T.A.Hidden,ref:o})},[o,r])}}({portals:W,defaultContainers:[{get current(){var Q;return null!=(Q=L.panelRef.current)?Q:k.current}}]}),et=null!==O&&(O&ea.ZM.Closing)===ea.ZM.Closing,en=!H&&!et&&Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),en);let ei=!!z||Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ei);let ec=!(!Z||z);(0,eo.O)(q,F,ec);let ed=!(z||0!==P);h(null==A?void 0:A.defaultView,"keydown",e=>{ed&&(e.defaultPrevented||e.key===ep.R.Escape&&(e.preventDefault(),e.stopPropagation(),F()))}),function(e,t){var n;let r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],a]}},r=K(J.subscribe,J.getSnapshot,J.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,j.e)(()=>{if(!(!e||!t))return J.dispatch("PUSH",e,n),()=>J.dispatch("POP",e,n)},[t,e])}(A,!(et||0!==P||H),q),(0,d.useEffect)(()=>{if(0!==P||!k.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&F()}});return e.observe(k.current),()=>e.disconnect()},[P,k,F]);let[ef,em]=function(){let[e,t]=(0,d.useState)([]);return[e.length>0?e.join(" "):void 0,(0,d.useMemo)(()=>function(e){let n=(0,m.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,d.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return d.createElement(eu.Provider,{value:r},e.children)},[t])]}(),eg=(0,d.useMemo)(()=>[{dialogState:P,close:F,setTitleId:U},L],[P,L,F,U]),eb=(0,d.useMemo)(()=>({open:0===P}),[P]),eE={ref:C,id:s,role:f,"aria-modal":0===P||void 0,"aria-labelledby":L.titleId,"aria-describedby":ef};return d.createElement(es,{type:"Dialog",enabled:0===P,element:k,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,N.E)(e,{[el.Add]:()=>y(e=>e+1),[el.Remove]:()=>y(e=>e-1)})})},d.createElement(B,{force:!0},d.createElement($,null,d.createElement(eh.Provider,{value:eg},d.createElement($.Group,{target:k},d.createElement(B,{force:!1},d.createElement(em,{slot:eb,name:"Dialog.Description"},d.createElement(M,{initialFocus:p,containers:q,features:Z?(0,N.E)(z?"parent":"leaf",{parent:M.features.RestoreFocus,leaf:M.features.All&~M.features.FocusLock}):M.features.None},d.createElement(V,null,(0,R.sY)({ourProps:eE,theirProps:b,slot:eb,defaultTag:"div",features:ey,visible:0===P,name:"Dialog"}))))))))),d.createElement(X,null))}),{Backdrop:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Backdrop"),l=(0,x.T)(t);(0,d.useEffect)(()=>{if(null===i.panelRef.current)throw Error("A component is being used, but a component is missing.")},[i.panelRef]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return d.createElement(B,{force:!0},d.createElement($,null,(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Panel"),l=(0,x.T)(t,i.panelRef),s=(0,d.useMemo)(()=>({open:0===a}),[a]),c=(0,m.z)(e=>{e.stopPropagation()});return(0,R.sY)({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:a,close:i}]=eb("Dialog.Overlay"),l=(0,x.T)(t),s=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),c=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:a,setTitleId:i}]=eb("Dialog.Title"),l=(0,x.T)(t);(0,d.useEffect)(()=>(i(r),()=>i(null)),[r,i]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),Description:ed})},11754:function(e,t,n){n.d(t,{p:function(){return A}});var r,o,a,i=n(64090),l=n(10641),s=n(92381),c=n(71454),u=n(36601),d=n(88358),p=n(84152),f=n(72640),m=n(94819),g=n(18318);let h=null!=(a=i.startTransition)?a:function(e){e()};var b=n(67409),v=((r=v||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),y=((o=y||{})[o.ToggleDisclosure=0]="ToggleDisclosure",o[o.CloseDisclosure=1]="CloseDisclosure",o[o.SetButtonId=2]="SetButtonId",o[o.SetPanelId=3]="SetPanelId",o[o.LinkPanel=4]="LinkPanel",o[o.UnlinkPanel=5]="UnlinkPanel",o);let E={0:e=>({...e,disclosureState:(0,f.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},S=(0,i.createContext)(null);function w(e){let t=(0,i.useContext)(S);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}S.displayName="DisclosureContext";let x=(0,i.createContext)(null);x.displayName="DisclosureAPIContext";let O=(0,i.createContext)(null);function k(e,t){return(0,f.E)(t.type,E,e,t)}O.displayName="DisclosurePanelContext";let C=i.Fragment,T=g.AN.RenderStrategy|g.AN.Static,A=Object.assign((0,g.yV)(function(e,t){let{defaultOpen:n=!1,...r}=e,o=(0,i.useRef)(null),a=(0,u.T)(t,(0,u.h)(e=>{o.current=e},void 0===e.as||e.as===i.Fragment)),s=(0,i.useRef)(null),c=(0,i.useRef)(null),p=(0,i.useReducer)(k,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:c,panelRef:s,buttonId:null,panelId:null}),[{disclosureState:h,buttonId:b},v]=p,y=(0,l.z)(e=>{v({type:1});let t=(0,m.r)(o);if(!t||!b)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(b):t.getElementById(b);null==n||n.focus()}),E=(0,i.useMemo)(()=>({close:y}),[y]),w=(0,i.useMemo)(()=>({open:0===h,close:y}),[h,y]);return i.createElement(S.Provider,{value:p},i.createElement(x.Provider,{value:E},i.createElement(d.up,{value:(0,f.E)(h,{0:d.ZM.Open,1:d.ZM.Closed})},(0,g.sY)({ourProps:{ref:a},theirProps:r,slot:w,defaultTag:C,name:"Disclosure"}))))}),{Button:(0,g.yV)(function(e,t){let n=(0,s.M)(),{id:r="headlessui-disclosure-button-".concat(n),...o}=e,[a,d]=w("Disclosure.Button"),f=(0,i.useContext)(O),m=null!==f&&f===a.panelId,h=(0,i.useRef)(null),v=(0,u.T)(h,t,m?null:a.buttonRef),y=(0,g.Y2)();(0,i.useEffect)(()=>{if(!m)return d({type:2,buttonId:r}),()=>{d({type:2,buttonId:null})}},[r,d,m]);let E=(0,l.z)(e=>{var t;if(m){if(1===a.disclosureState)return;switch(e.key){case b.R.Space:case b.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case b.R.Space:case b.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0})}}),S=(0,l.z)(e=>{e.key===b.R.Space&&e.preventDefault()}),x=(0,l.z)(t=>{var n;(0,p.P)(t.currentTarget)||e.disabled||(m?(d({type:0}),null==(n=a.buttonRef.current)||n.focus()):d({type:0}))}),k=(0,i.useMemo)(()=>({open:0===a.disclosureState}),[a]),C=(0,c.f)(e,h),T=m?{ref:v,type:C,onKeyDown:E,onClick:x}:{ref:v,id:r,type:C,"aria-expanded":0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:E,onKeyUp:S,onClick:x};return(0,g.sY)({mergeRefs:y,ourProps:T,theirProps:o,slot:k,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,g.yV)(function(e,t){let n=(0,s.M)(),{id:r="headlessui-disclosure-panel-".concat(n),...o}=e,[a,l]=w("Disclosure.Panel"),{close:c}=function e(t){let n=(0,i.useContext)(x);if(null===n){let n=Error("<".concat(t," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),p=(0,g.Y2)(),f=(0,u.T)(t,a.panelRef,e=>{h(()=>l({type:e?4:5}))});(0,i.useEffect)(()=>(l({type:3,panelId:r}),()=>{l({type:3,panelId:null})}),[r,l]);let m=(0,d.oJ)(),b=null!==m?(m&d.ZM.Open)===d.ZM.Open:0===a.disclosureState,v=(0,i.useMemo)(()=>({open:0===a.disclosureState,close:c}),[a,c]);return i.createElement(O.Provider,{value:a.panelId},(0,g.sY)({mergeRefs:p,ourProps:{ref:f,id:r},theirProps:o,slot:v,defaultTag:"div",features:T,visible:b,name:"Disclosure.Panel"}))})})},67409:function(e,t,n){n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},63416:function(e,t,n){n.d(t,{R:function(){return $}});var r,o,a,i,l,s=n(64090),c=n(39790),u=n(85235);function d(e,t){let[n,r]=(0,s.useState)(e),o=(0,u.E)(e);return(0,c.e)(()=>r(o.current),[o,r,...t]),n}var p=n(10641),f=n(20044),m=n(92381),g=n(71679),h=n(71454),b=n(36601);let v=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function y(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(n=o.innerText)?n:"":r;return v.test(i)&&(i=i.replace(v,"")),i}function E(e){return[e.screenX,e.screenY]}var S=n(37700),w=n(88358),x=n(84152),O=((r=O||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r),k=n(55205),C=n(48803);function T(e,t){return e?e+"["+t+"]":t}var A=n(72640),I=n(94819),N=n(18318),R=n(67409),_=((o=_||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),P=((a=P||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),M=((i=M||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),L=((l=L||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOption=5]="RegisterOption",l[l.UnregisterOption=6]="UnregisterOption",l[l.RegisterLabel=7]="RegisterLabel",l);function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,C.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let j={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=D(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;rr.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=o?e.options.indexOf(o):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=D(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=D(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},F=(0,s.createContext)(null);function B(e){let t=(0,s.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}F.displayName="ListboxActionsContext";let U=(0,s.createContext)(null);function Z(e){let t=(0,s.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Z),t}return t}function z(e,t){return(0,A.E)(t.type,j,e,t)}U.displayName="ListboxDataContext";let H=s.Fragment,G=N.AN.RenderStrategy|N.AN.Static,$=Object.assign((0,N.yV)(function(e,t){let{value:n,defaultValue:r,form:o,name:a,onChange:i,by:l=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:m=!1,...h}=e,v=d?"horizontal":"vertical",y=(0,b.T)(t),[E=m?[]:void 0,x]=function(e,t,n){let[r,o]=(0,s.useState)(n),a=void 0!==e,i=(0,s.useRef)(a),l=(0,s.useRef)(!1),c=(0,s.useRef)(!1);return!a||i.current||l.current?a||!i.current||c.current||(c.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,p.z)(e=>(a||o(e),null==t?void 0:t(e)))]}(n,i,r),[k,I]=(0,s.useReducer)(z,{dataRef:(0,s.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),R=(0,s.useRef)({static:!1,hold:!1}),_=(0,s.useRef)(null),P=(0,s.useRef)(null),M=(0,s.useRef)(null),L=(0,p.z)("string"==typeof l?(e,t)=>(null==e?void 0:e[l])===(null==t?void 0:t[l]):l),D=(0,s.useCallback)(e=>(0,A.E)(j.mode,{1:()=>E.some(t=>L(t,e)),0:()=>L(E,e)}),[E]),j=(0,s.useMemo)(()=>({...k,value:E,disabled:u,mode:m?1:0,orientation:v,compare:L,isSelected:D,optionsPropsRef:R,labelRef:_,buttonRef:P,optionsRef:M}),[E,u,m,k]);(0,c.e)(()=>{k.dataRef.current=j},[j]),(0,g.O)([j.buttonRef,j.optionsRef],(e,t)=>{var n;I({type:1}),(0,C.sP)(t,C.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let B=(0,s.useMemo)(()=>({open:0===j.listboxState,disabled:u,value:E}),[j,u,E]),Z=(0,p.z)(e=>{let t=j.options.find(t=>t.id===e);t&&K(t.dataRef.current.value)}),G=(0,p.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];K(e.current.value),I({type:2,focus:O.Specific,id:t})}}),$=(0,p.z)(()=>I({type:0})),W=(0,p.z)(()=>I({type:1})),V=(0,p.z)((e,t,n)=>e===O.Specific?I({type:2,focus:O.Specific,id:t,trigger:n}):I({type:2,focus:e,trigger:n})),q=(0,p.z)((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e}))),Y=(0,p.z)(e=>(I({type:7,id:e}),()=>I({type:7,id:null}))),K=(0,p.z)(e=>(0,A.E)(j.mode,{0:()=>null==x?void 0:x(e),1(){let t=j.value.slice(),n=t.findIndex(t=>L(t,e));return -1===n?t.push(e):t.splice(n,1),null==x?void 0:x(t)}})),X=(0,p.z)(e=>I({type:3,value:e})),Q=(0,p.z)(()=>I({type:4})),J=(0,s.useMemo)(()=>({onChange:K,registerOption:q,registerLabel:Y,goToOption:V,closeListbox:W,openListbox:$,selectActiveOption:G,selectOption:Z,search:X,clearSearch:Q}),[]),ee=(0,s.useRef)(null),et=(0,f.G)();return(0,s.useEffect)(()=>{ee.current&&void 0!==r&&et.addEventListener(ee.current,"reset",()=>{null==x||x(r)})},[ee,x]),s.createElement(F.Provider,{value:J},s.createElement(U.Provider,{value:j},s.createElement(w.up,{value:(0,A.E)(j.listboxState,{0:w.ZM.Open,1:w.ZM.Closed})},null!=a&&null!=E&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,a]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,a]of o.entries())t(n,T(r,e.toString()),a);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):e(o,r,n)}(r,T(n,o),a);return r})({[a]:E}).map((e,t)=>{let[n,r]=e;return s.createElement(S._,{features:S.A.Hidden,ref:0===t?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,N.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:n,value:r})})}),(0,N.sY)({ourProps:{ref:y},theirProps:h,slot:B,defaultTag:H,name:"Listbox"}))))}),{Button:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-button-".concat(r),...a}=e,i=Z("Listbox.Button"),l=B("Listbox.Button"),c=(0,b.T)(i.buttonRef,t),u=(0,f.G)(),g=(0,p.z)(e=>{switch(e.key){case R.R.Space:case R.R.Enter:case R.R.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.First)});break;case R.R.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.Last)})}}),v=(0,p.z)(e=>{e.key===R.R.Space&&e.preventDefault()}),y=(0,p.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),l.openListbox())}),E=d(()=>{if(i.labelId)return[i.labelId,o].join(" ")},[i.labelId,o]),S=(0,s.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value}),[i]),w={ref:c,id:o,type:(0,h.f)(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.listboxState,"aria-labelledby":E,disabled:i.disabled,onKeyDown:g,onKeyUp:v,onClick:y};return(0,N.sY)({ourProps:w,theirProps:a,slot:S,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,N.yV)(function(e,t){let n=(0,m.M)(),{id:r="headlessui-listbox-label-".concat(n),...o}=e,a=Z("Listbox.Label"),i=B("Listbox.Label"),l=(0,b.T)(a.labelRef,t);(0,c.e)(()=>i.registerLabel(r),[r]);let u=(0,p.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,s.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,N.sY)({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-options-".concat(r),...a}=e,i=Z("Listbox.Options"),l=B("Listbox.Options"),c=(0,b.T)(i.optionsRef,t),u=(0,f.G)(),g=(0,f.G)(),h=(0,w.oJ)(),v=null!==h?(h&w.ZM.Open)===w.ZM.Open:0===i.listboxState;(0,s.useEffect)(()=>{var e;let t=i.optionsRef.current;t&&0===i.listboxState&&t!==(null==(e=(0,I.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[i.listboxState,i.optionsRef]);let y=(0,p.z)(e=>{switch(g.dispose(),e.key){case R.R.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case R.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,A.E)(i.orientation,{vertical:R.R.ArrowDown,horizontal:R.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Next);case(0,A.E)(i.orientation,{vertical:R.R.ArrowUp,horizontal:R.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Previous);case R.R.Home:case R.R.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.First);case R.R.End:case R.R.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Last);case R.R.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case R.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),g.setTimeout(()=>l.clearSearch(),350))}}),E=d(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.id},[i.buttonRef.current]),S=(0,s.useMemo)(()=>({open:0===i.listboxState}),[i]),x={"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":E,"aria-orientation":i.orientation,id:o,onKeyDown:y,role:"listbox",tabIndex:0,ref:c};return(0,N.sY)({ourProps:x,theirProps:a,slot:S,defaultTag:"ul",features:G,visible:v,name:"Listbox.Options"})}),Option:(0,N.yV)(function(e,t){let n,r,o;let a=(0,m.M)(),{id:i="headlessui-listbox-option-".concat(a),disabled:l=!1,value:d,...f}=e,g=Z("Listbox.Option"),h=B("Listbox.Option"),v=null!==g.activeOptionIndex&&g.options[g.activeOptionIndex].id===i,S=g.isSelected(d),w=(0,s.useRef)(null),x=(n=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,p.z)(()=>{let e=w.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():y(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return y(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),C=(0,u.E)({disabled:l,value:d,domRef:w,get textValue(){return x()}}),T=(0,b.T)(t,w);(0,c.e)(()=>{if(0!==g.listboxState||!v||0===g.activationTrigger)return;let e=(0,k.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[w,v,g.listboxState,g.activationTrigger,g.activeOptionIndex]),(0,c.e)(()=>h.registerOption(i,C),[C,i]);let A=(0,p.z)(e=>{if(l)return e.preventDefault();h.onChange(d),0===g.mode&&(h.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),I=(0,p.z)(()=>{if(l)return h.goToOption(O.Nothing);h.goToOption(O.Specific,i)}),R=(o=(0,s.useRef)([-1,-1]),{wasMoved(e){let t=E(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=E(e)}}),_=(0,p.z)(e=>R.update(e)),P=(0,p.z)(e=>{R.wasMoved(e)&&(l||v||h.goToOption(O.Specific,i,0))}),M=(0,p.z)(e=>{R.wasMoved(e)&&(l||v&&h.goToOption(O.Nothing))}),L=(0,s.useMemo)(()=>({active:v,selected:S,disabled:l}),[v,S,l]);return(0,N.sY)({ourProps:{id:i,ref:T,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":S,disabled:void 0,onClick:A,onFocus:I,onPointerEnter:_,onMouseEnter:_,onPointerMove:P,onMouseMove:P,onPointerLeave:M,onMouseLeave:M},theirProps:f,slot:L,defaultTag:"li",name:"Listbox.Option"})})})},80991:function(e,t,n){n.d(t,{O:function(){return D}});var r,o,a,i=n(64090),l=n(67409),s=n(10641),c=n(92381),u=n(39790),d=n(85235),p=n(71454),f=n(36601),m=n(42219),g=n(37700);function h(e){let{onFocus:t}=e,[n,r]=(0,i.useState)(!0),o=(0,m.t)();return n?i.createElement(g._,{as:"button",type:"button",features:g.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!o.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var b=n(48803),v=n(72640),y=n(21210),E=n(94819),S=n(18318);let w=i.createContext(null);function x(e){let{children:t}=e,n=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(w.Provider,{value:n},t)}function O(e){let t=i.useContext(w);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],a=r;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return i.useEffect(()=>o,[]),r}var k=((r=k||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),C=((o=C||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),T=((a=T||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let A={0(e,t){var n;let r=(0,b.z2)(e.tabs,e=>e.current),o=(0,b.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),i={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,v.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,v.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return i;let o=(0,v.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:-1===o?e.selectedIndex:o}}let l=r.slice(0,t.index),s=[...r.slice(t.index),...l].find(e=>a.includes(e));if(!s)return i;let c=null!=(n=r.indexOf(s))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...i,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,b.z2)([...e.tabs,t.tab],e=>e.current),a=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===a&&(a=e.selectedIndex),{...e,tabs:o,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,b.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},I=(0,i.createContext)(null);function N(e){let t=(0,i.useContext)(I);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}I.displayName="TabsDataContext";let R=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function P(e,t){return(0,v.E)(t.type,A,e,t)}R.displayName="TabsActionsContext";let M=i.Fragment,L=S.AN.RenderStrategy|S.AN.Static,D=Object.assign((0,S.yV)(function(e,t){var n,r;let o=(0,c.M)(),{id:a="headlessui-tabs-tab-".concat(o),...d}=e,{orientation:m,activation:g,selectedIndex:h,tabs:w,panels:x}=N("Tab"),k=_("Tab"),C=N("Tab"),T=(0,i.useRef)(null),A=(0,f.T)(T,t);(0,u.e)(()=>k.registerTab(T),[k,T]);let I=O("tabs"),R=w.indexOf(T);-1===R&&(R=I);let P=R===h,M=(0,s.z)(e=>{var t;let n=e();if(n===b.fE.Success&&"auto"===g){let e=null==(t=(0,E.r)(T))?void 0:t.activeElement,n=C.tabs.findIndex(t=>t.current===e);-1!==n&&k.change(n)}return n}),L=(0,s.z)(e=>{let t=w.map(e=>e.current).filter(Boolean);if(e.key===l.R.Space||e.key===l.R.Enter){e.preventDefault(),e.stopPropagation(),k.change(R);return}switch(e.key){case l.R.Home:case l.R.PageUp:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.First));case l.R.End:case l.R.PageDown:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.Last))}if(M(()=>(0,v.E)(m,{vertical:()=>e.key===l.R.ArrowUp?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowDown?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error,horizontal:()=>e.key===l.R.ArrowLeft?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowRight?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error}))===b.fE.Success)return e.preventDefault()}),D=(0,i.useRef)(!1),j=(0,s.z)(()=>{var e;D.current||(D.current=!0,null==(e=T.current)||e.focus({preventScroll:!0}),k.change(R),(0,y.Y)(()=>{D.current=!1}))}),F=(0,s.z)(e=>{e.preventDefault()}),B=(0,i.useMemo)(()=>({selected:P}),[P]),U={ref:A,onKeyDown:L,onMouseDown:F,onClick:j,id:a,role:"tab",type:(0,p.f)(e,T),"aria-controls":null==(r=null==(n=x[R])?void 0:n.current)?void 0:r.id,"aria-selected":P,tabIndex:P?0:-1};return(0,S.sY)({ourProps:U,theirProps:d,slot:B,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,S.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:a,selectedIndex:l=null,...c}=e,p=r?"vertical":"horizontal",m=o?"manual":"auto",g=null!==l,v=(0,f.T)(t),[y,E]=(0,i.useReducer)(P,{selectedIndex:null!=l?l:n,tabs:[],panels:[]}),w=(0,i.useMemo)(()=>({selectedIndex:y.selectedIndex}),[y.selectedIndex]),O=(0,d.E)(a||(()=>{})),k=(0,d.E)(y.tabs),C=(0,i.useMemo)(()=>({orientation:p,activation:m,...y}),[p,m,y]),T=(0,s.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),A=(0,s.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),N=(0,s.z)(e=>{_.current!==e&&O.current(e),g||E({type:0,index:e})}),_=(0,d.E)(g?e.selectedIndex:y.selectedIndex),L=(0,i.useMemo)(()=>({registerTab:T,registerPanel:A,change:N}),[]);return(0,u.e)(()=>{E({type:0,index:null!=l?l:n})},[l]),(0,u.e)(()=>{if(void 0===_.current||y.tabs.length<=0)return;let e=(0,b.z2)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&N(e.indexOf(y.tabs[_.current]))}),i.createElement(x,null,i.createElement(R.Provider,{value:L},i.createElement(I.Provider,{value:C},C.tabs.length<=0&&i.createElement(h,{onFocus:()=>{var e,t;for(let n of k.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,S.sY)({ourProps:{ref:v},theirProps:c,slot:w,defaultTag:M,name:"Tabs"}))))}),List:(0,S.yV)(function(e,t){let{orientation:n,selectedIndex:r}=N("Tab.List"),o=(0,f.T)(t);return(0,S.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,S.yV)(function(e,t){let{selectedIndex:n}=N("Tab.Panels"),r=(0,f.T)(t),o=(0,i.useMemo)(()=>({selectedIndex:n}),[n]);return(0,S.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,S.yV)(function(e,t){var n,r,o,a;let l=(0,c.M)(),{id:s="headlessui-tabs-panel-".concat(l),tabIndex:d=0,...p}=e,{selectedIndex:m,tabs:h,panels:b}=N("Tab.Panel"),v=_("Tab.Panel"),y=(0,i.useRef)(null),E=(0,f.T)(y,t);(0,u.e)(()=>v.registerPanel(y),[v,y]);let w=O("panels"),x=b.indexOf(y);-1===x&&(x=w);let k=x===m,C=(0,i.useMemo)(()=>({selected:k}),[k]),T={ref:E,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=h[x])?void 0:n.current)?void 0:r.id,tabIndex:k?d:-1};return k||null!=(o=p.unmount)&&!o||null!=(a=p.static)&&a?(0,S.sY)({ourProps:T,theirProps:p,slot:C,defaultTag:"div",features:L,visible:k,name:"Tabs.Panel"}):i.createElement(g._,{as:"span","aria-hidden":"true",...T})})})},70129:function(e,t,n){n.d(t,{u:function(){return _}});var r,o=n(64090),a=n(20044),i=n(10641),l=n(42219),s=n(39790),c=n(85235),u=n(92144),d=n(36601),p=n(55205),f=n(72640);function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}var h=n(88358),b=n(82466),v=n(18318);function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let E=(0,o.createContext)(null);E.displayName="TransitionContext";var S=((r=S||{}).Visible="visible",r.Hidden="hidden",r);let w=(0,o.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function O(e,t){let n=(0,c.E)(e),r=(0,o.useRef)([]),s=(0,l.t)(),u=(0,a.G)(),d=(0,i.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,f.E)(t,{[v.l4.Unmount](){r.current.splice(o,1)},[v.l4.Hidden](){r.current[o].state="hidden"}}),u.microTask(()=>{var e;!x(r)&&s.current&&(null==(e=n.current)||e.call(n))}))}),p=(0,i.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,v.l4.Unmount)}),m=(0,o.useRef)([]),g=(0,o.useRef)(Promise.resolve()),h=(0,o.useRef)({enter:[],leave:[],idle:[]}),b=(0,i.z)((e,n,r)=>{m.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{m.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),y=(0,i.z)((e,t,n)=>{Promise.all(h.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=m.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:p,unregister:d,onStart:b,onStop:y,wait:g,chains:h}),[p,d,r,b,y,h,g])}function k(){}w.displayName="NestingContext";let C=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let n={};for(let r of C)n[r]=null!=(t=e[r])?t:k;return n}let A=v.AN.RenderStrategy,I=(0,v.yV)(function(e,t){let{show:n,appear:r=!1,unmount:a=!0,...l}=e,c=(0,o.useRef)(null),p=(0,d.T)(c,t);(0,u.H)();let f=(0,h.oJ)();if(void 0===n&&null!==f&&(n=(f&h.ZM.Open)===h.ZM.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,o.useState)(n?"visible":"hidden"),b=O(()=>{g("hidden")}),[y,S]=(0,o.useState)(!0),k=(0,o.useRef)([n]);(0,s.e)(()=>{!1!==y&&k.current[k.current.length-1]!==n&&(k.current.push(n),S(!1))},[k,n]);let C=(0,o.useMemo)(()=>({show:n,appear:r,initial:y}),[n,r,y]);(0,o.useEffect)(()=>{if(n)g("visible");else if(x(b)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[n,b]);let T={unmount:a},I=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeEnter)||t.call(e)}),R=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(w.Provider,{value:b},o.createElement(E.Provider,{value:C},(0,v.sY)({ourProps:{...T,as:o.Fragment,children:o.createElement(N,{ref:p,...T,...l,beforeEnter:I,beforeLeave:R})},theirProps:{},defaultTag:o.Fragment,features:A,visible:"visible"===m,name:"Transition"})))}),N=(0,v.yV)(function(e,t){var n,r,S;let k;let{beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R,enter:_,enterFrom:P,enterTo:M,entered:L,leave:D,leaveFrom:j,leaveTo:F,...B}=e,U=(0,o.useRef)(null),Z=(0,d.T)(U,t),z=null==(n=B.unmount)||n?v.l4.Unmount:v.l4.Hidden,{show:H,appear:G,initial:$}=function(){let e=(0,o.useContext)(E);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[W,V]=(0,o.useState)(H?"visible":"hidden"),q=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:Y,unregister:K}=q;(0,o.useEffect)(()=>Y(U),[Y,U]),(0,o.useEffect)(()=>{if(z===v.l4.Hidden&&U.current){if(H&&"visible"!==W){V("visible");return}return(0,f.E)(W,{hidden:()=>K(U),visible:()=>Y(U)})}},[W,U,Y,K,H,z]);let X=(0,c.E)({base:y(B.className),enter:y(_),enterFrom:y(P),enterTo:y(M),entered:y(L),leave:y(D),leaveFrom:y(j),leaveTo:y(F)}),Q=(S={beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R},k=(0,o.useRef)(T(S)),(0,o.useEffect)(()=>{k.current=T(S)},[S]),k),J=(0,u.H)();(0,o.useEffect)(()=>{if(J&&"visible"===W&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,W,J]);let ee=G&&H&&$,et=J&&(!$||G)?H?"enter":"leave":"idle",en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,o.useState)(e),r=(0,l.t)(),a=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.addFlag(h.ZM.Opening),Q.current.beforeEnter()},leave:()=>{en.addFlag(h.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),eo=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.removeFlag(h.ZM.Opening),Q.current.afterEnter()},leave:()=>{en.removeFlag(h.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),ea=O(()=>{V("hidden"),K(U)},q),ei=(0,o.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:i,onStop:u}=e,d=(0,l.t)(),h=(0,a.G)(),b=(0,c.E)(r);(0,s.e)(()=>{t&&(b.current="enter")},[t]),(0,s.e)(()=>{let e=(0,p.k)();h.add(e.dispose);let t=n.current;if(t&&"idle"!==b.current&&d.current){var r,a,l;let n,s,c,d,h,v,y;return e.dispose(),i.current(b.current),e.add((r=o.current,a="enter"===b.current,l=()=>{e.dispose(),u.current(b.current)},s=a?"enter":"leave",c=(0,p.k)(),d=void 0!==l?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,f.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),v=(0,f.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),y=(0,f.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),g(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),m(t,...r.base,...h,...y),c.nextFrame(()=>{g(t,...r.base,...h,...y),m(t,...r.base,...h,...v),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),l=a+i;if(0!==l){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},l),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(g(t,...r.base,...h),m(t,...r.base,...r.entered),d()))}),c.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.E)(e=>{ei.current=!0,ea.onStart(U,e,er)}),onStop:(0,c.E)(e=>{ei.current=!1,ea.onStop(U,e,eo),"leave"!==e||x(ea)||(V("hidden"),K(U))})});let el=B;return ee?el={...el,className:(0,b.A)(B.className,...X.current.enter,...X.current.enterFrom)}:ei.current&&(el.className=(0,b.A)(B.className,null==(r=U.current)?void 0:r.className),""===el.className&&delete el.className),o.createElement(w.Provider,{value:ea},o.createElement(h.up,{value:(0,f.E)(W,{visible:h.ZM.Open,hidden:h.ZM.Closed})|en.flags},(0,v.sY)({ourProps:{ref:Z},theirProps:el,defaultTag:"div",features:A,visible:"visible"===W,name:"Transition.Child"})))}),R=(0,v.yV)(function(e,t){let n=null!==(0,o.useContext)(E),r=null!==(0,h.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(I,{ref:t,...e}):o.createElement(N,{ref:t,...e}))}),_=Object.assign(I,{Child:R,Root:I})},20044:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(64090),o=n(55205);function a(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},10641:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64090),o=n(85235);let a=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;ra.O.nextId():null);return(0,i.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},42219:function(e,t,n){n.d(t,{t:function(){return a}});var r=n(64090),o=n(39790);function a(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},39790:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(64090),o=n(41879);let a=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},85235:function(e,t,n){n.d(t,{E:function(){return a}});var r=n(64090),o=n(39790);function a(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},71679:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(64090),o=n(48803),a=n(25256),i=n(85235);function l(e,t,n){let o=(0,i.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var s=n(61372);function c(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,r.useRef)(!1);function c(n,r){if(!i.current||n.defaultPrevented)return;let a=r(n);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(a,o.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);let u=(0,r.useRef)(null);l("pointerdown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("mousedown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("click",e=>{(0,a.tq)()||u.current&&(c(e,()=>u.current),u.current=null)},!0),l("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},71454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(64090),o=n(39790);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function i(e,t){let[n,i]=(0,r.useState)(()=>a(e));return(0,o.e)(()=>{i(a(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}},92144:function(e,t,n){n.d(t,{H:function(){return i}});var r,o=n(64090),a=n(41879);function i(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,l]=o.useState(a.O.isHandoffComplete);return i&&!1===a.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==i&&l(!0)},[i]),o.useEffect(()=>a.O.handoff(),[]),!t&&i}},36601:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(64090),o=n(10641);let a=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:l}},61372:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(64090),o=n(85235);function a(e,t,n){let a=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},37700:function(e,t,n){n.d(t,{A:function(){return a},_:function(){return i}});var r,o=n(18318),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let i=(0,o.yV)(function(e,t){var n;let{features:r=1,...a}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:i,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},88358:function(e,t,n){n.d(t,{ZM:function(){return i},oJ:function(){return l},up:function(){return s}});var r,o=n(64090);let a=(0,o.createContext)(null);a.displayName="OpenClosedContext";var i=((r=i||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(a)}function s(e){let{value:t,children:n}=e;return o.createElement(a.Provider,{value:t},n)}},84152:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},82466:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},55205:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(21210)},41879:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let l=new i},48803:function(e,t,n){n.d(t,{C5:function(){return b},TO:function(){return d},fE:function(){return p},jA:function(){return y},sP:function(){return g},tJ:function(){return m},z2:function(){return v}});var r,o,a,i,l,s=n(72640),c=n(94819);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),f=((a=f||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),m=((i=m||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,s.E)(n,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var h=((l=h||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function b(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t){var n,r,o;let{sorted:a=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?a?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.includes(e))),i=null!=i?i:s.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,h;do{if(m>=g||m+g<=0)return 0;let e=p+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(h=c[e])||h.focus(f),m+=d}while(h!==s.activeElement);return 6&t&&null!=(o=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&h.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},72640:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}},21210:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},94819:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(41879);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},25256:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},18318:function(e,t,n){n.d(t,{AN:function(){return s},Y2:function(){return p},l4:function(){return c},oA:function(){return h},sY:function(){return u},yV:function(){return g}});var r,o,a=n(64090),i=n(82466),l=n(72640),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:a,visible:i=!0,name:s,mergeRefs:c}=e;c=null!=c?c:f;let u=m(n,t);if(i)return d(u,r,o,s,c);let p=null!=a?a:0;if(2&p){let{static:e=!1,...t}=u;if(e)return d(t,r,o,s,c)}if(1&p){let{unmount:e=!0,...t}=u;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,c)})}return d(u,r,o,s,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:s,refName:c="ref",...u}=b(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},p="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(l===a.Fragment&&Object.keys(h(u)).length>0){if(!(0,a.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;r{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return function(){for(var n=arguments.length,r=Array(n),o=0;onull==e))return e.current=r,t}}function f(){for(var e=arguments.length,t=Array(e),n=0;nnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function m(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},9454:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});t.Z=o},98941:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))});t.Z=o},33393:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});t.Z=o},37963:function(e,t,n){n.d(t,{o:function(){return o}});class r extends Error{}function o(e,t){let n;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let o=!0===t.header?0:1,a=e.split(".")[o];if("string"!=typeof a)throw new r("Invalid token specified: missing part #".concat(o+1));try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(a)}catch(e){throw new r("Invalid token specified: invalid base64 for part #".concat(o+1," (").concat(e.message,")"))}try{return JSON.parse(n)}catch(e){throw new r("Invalid token specified: invalid json for part #".concat(o+1," (").concat(e.message,")"))}}r.prototype.name="InvalidTokenError"},12968:function(e,t,n){let r,o,a,i,l,s,c,u,d,p;n.d(t,{ZP:function(){return t9}});var f,m,g,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W,V,q,Y,K,X={};n.r(X),n.d(X,{APIConnectionError:function(){return eo},APIConnectionTimeoutError:function(){return ea},APIError:function(){return en},APIUserAbortError:function(){return er},AuthenticationError:function(){return el},BadRequestError:function(){return ei},ConflictError:function(){return eu},InternalServerError:function(){return ef},NotFoundError:function(){return ec},OpenAIError:function(){return et},PermissionDeniedError:function(){return es},RateLimitError:function(){return ep},UnprocessableEntityError:function(){return ed}});let Q="4.28.0",J=!1;class ee{get[Symbol.toStringTag](){return"MultipartBody"}constructor(e){this.body=e}}o||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{auto:!1};if(J)throw Error("you must `import 'openai/shims/".concat(e.kind,"'` before importing anything else from openai"));if(o)throw Error("can't `import 'openai/shims/".concat(e.kind,"'` after `import 'openai/shims/").concat(o,"'`"));J=t.auto,o=e.kind,a=e.fetch,e.Request,e.Response,e.Headers,i=e.FormData,e.Blob,l=e.File,s=e.ReadableStream,c=e.getMultipartRequestOptions,u=e.getDefaultAgent,d=e.fileFromPath,p=e.isFsReadStream}(function(){let e,t,n,r,{manuallyImported:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";try{e=fetch,t=Request,n=Response,r=Headers}catch(e){throw Error("this environment is missing the following Web Fetch API type: ".concat(e.message,". ").concat(a))}return{kind:"web",fetch:e,Request:t,Response:n,Headers:r,FormData:"undefined"!=typeof FormData?FormData:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(a))}},Blob:"undefined"!=typeof Blob?Blob:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(a))}},File:"undefined"!=typeof File?File:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(a))}},ReadableStream:"undefined"!=typeof ReadableStream?ReadableStream:class{constructor(){throw Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(a))}},getMultipartRequestOptions:async(e,t)=>({...t,body:new ee(e)}),getDefaultAgent:e=>void 0,fileFromPath:()=>{throw Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class et extends Error{}class en extends et{static makeMessage(e,t,n){let r=(null==t?void 0:t.message)?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?"".concat(e," ").concat(r):e?"".concat(e," status code (no body)"):r||"(no status code or body)"}static generate(e,t,n,r){if(!e)return new eo({cause:e0(t)});let o=null==t?void 0:t.error;return 400===e?new ei(e,o,n,r):401===e?new el(e,o,n,r):403===e?new es(e,o,n,r):404===e?new ec(e,o,n,r):409===e?new eu(e,o,n,r):422===e?new ed(e,o,n,r):429===e?new ep(e,o,n,r):e>=500?new ef(e,o,n,r):new en(e,o,n,r)}constructor(e,t,n,r){super("".concat(en.makeMessage(e,t,n))),this.status=e,this.headers=r,this.error=t,this.code=null==t?void 0:t.code,this.param=null==t?void 0:t.param,this.type=null==t?void 0:t.type}}class er extends en{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class eo extends en{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),this.status=void 0,t&&(this.cause=t)}}class ea extends eo{constructor({message:e}={}){super({message:null!=e?e:"Request timed out."})}}class ei extends en{constructor(){super(...arguments),this.status=400}}class el extends en{constructor(){super(...arguments),this.status=401}}class es extends en{constructor(){super(...arguments),this.status=403}}class ec extends en{constructor(){super(...arguments),this.status=404}}class eu extends en{constructor(){super(...arguments),this.status=409}}class ed extends en{constructor(){super(...arguments),this.status=422}}class ep extends en{constructor(){super(...arguments),this.status=429}}class ef extends en{}var em=n(8620).Buffer;class eg{static fromSSEResponse(e,t){let n=!1,r=new eh;async function*o(){if(!e.body)throw t.abort(),new et("Attempted to iterate over a response with no body");let n=new eb;for await(let t of ev(e.body))for(let e of n.decode(t)){let t=r.decode(e);t&&(yield t)}for(let e of n.flush()){let t=r.decode(e);t&&(yield t)}}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of o())if(!e){if(t.data.startsWith("[DONE]")){e=!0;continue}if(null===t.event){let e;try{e=JSON.parse(t.data)}catch(e){throw console.error("Could not parse message into JSON:",t.data),console.error("From chunk:",t.raw),e}if(e&&e.error)throw new en(void 0,e.error,void 0,void 0);yield e}}e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}static fromReadableStream(e,t){let n=!1;async function*r(){let t=new eb;for await(let n of ev(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of r())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new eg(()=>r(e),this.controller),new eg(()=>r(t),this.controller)]}toReadableStream(){let e;let t=this,n=new TextEncoder;return new s({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:r,done:o}=await e.next();if(o)return t.close();let a=n.encode(JSON.stringify(r)+"\n");t.enqueue(a)}catch(e){t.error(e)}},async cancel(){var t;await (null===(t=e.return)||void 0===t?void 0:t.call(e))}})}constructor(e,t){this.iterator=e,this.controller=t}}class eh{decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,n,r]=function(e,t){let n=e.indexOf(t);return -1!==n?[e.substring(0,n),t,e.substring(n+t.length)]:[e,"",""]}(e,":");return r.startsWith(" ")&&(r=r.substring(1)),"event"===t?this.event=r:"data"===t&&this.data.push(r),null}constructor(){this.event=null,this.data=[],this.chunks=[]}}class eb{decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];let n=eb.NEWLINE_CHARS.has(t[t.length-1]||""),r=t.split(eb.NEWLINE_REGEXP);return 1!==r.length||n?(this.buffer.length>0&&(r=[this.buffer.join("")+r[0],...r.slice(1)],this.buffer=[]),n||(this.buffer=[r.pop()||""]),r):(this.buffer.push(r[0]),[])}decodeText(e){if(null==e)return"";if("string"==typeof e)return e;if(void 0!==em){if(e instanceof em)return e.toString();if(e instanceof Uint8Array)return em.from(e).toString();throw new et("Unexpected: received non-Uint8Array (".concat(e.constructor.name,') stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.'))}if("undefined"!=typeof TextDecoder){if(e instanceof Uint8Array||e instanceof ArrayBuffer){var t;return null!==(t=this.textDecoder)&&void 0!==t||(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e)}throw new et("Unexpected: received non-Uint8Array/ArrayBuffer (".concat(e.constructor.name,") in a web platform. Please report this error."))}throw new et("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];let e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}constructor(){this.buffer=[],this.trailingCR=!1}}function ev(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return(null==e?void 0:e.done)&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}eb.NEWLINE_CHARS=new Set(["\n","\r","\v","\f","\x1c","\x1d","\x1e","\x85","\u2028","\u2029"]),eb.NEWLINE_REGEXP=/\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;var ey=n(8620).Buffer;let eE=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob,eS=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&ew(e),ew=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,ex=e=>eS(e)||eE(e)||p(e);async function eO(e,t){var n,r,o,a,i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(eE(e=await e)){let r=await e.blob();return t||(t=null!==(n=new URL(e.url).pathname.split(/[\\/]/).pop())&&void 0!==n?n:"unknown_file"),new l([r],t,s)}let c=await ek(e);if(t||(t=null!==(r=eC((a=e).name)||eC(a.filename)||(null===(i=eC(a.path))||void 0===i?void 0:i.split(/[\\/]/).pop()))&&void 0!==r?r:"unknown_file"),!s.type){let e=null===(o=c[0])||void 0===o?void 0:o.type;"string"==typeof e&&(s={...s,type:e})}return new l(c,t,s)}async function ek(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(ew(e))t.push(await e.arrayBuffer());else if(eT(e))for await(let n of e)t.push(n);else{var n;throw Error("Unexpected data type: ".concat(typeof e,"; constructor: ").concat(null==e?void 0:null===(n=e.constructor)||void 0===n?void 0:n.name,"; props: ").concat(function(e){let t=Object.getOwnPropertyNames(e);return"[".concat(t.map(e=>'"'.concat(e,'"')).join(", "),"]")}(e)))}return t}let eC=e=>"string"==typeof e?e:void 0!==ey&&e instanceof ey?String(e):void 0,eT=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eA=e=>e&&"object"==typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],eI=async e=>{let t=await eN(e.body);return c(t,e)},eN=async e=>{let t=new i;return await Promise.all(Object.entries(e||{}).map(e=>{let[n,r]=e;return e_(t,n,r)})),t},eR=e=>{if(ex(e))return!0;if(Array.isArray(e))return e.some(eR);if(e&&"object"==typeof e){for(let t in e)if(eR(e[t]))return!0}return!1},e_=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError('Received null for "'.concat(t,"\"; to pass null in FormData, you must use the string 'null'"));if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(ex(n)){let r=await eO(n);e.append(t,r)}else if(Array.isArray(n))await Promise.all(n.map(n=>e_(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(n=>{let[r,o]=n;return e_(e,"".concat(t,"[").concat(r,"]"),o)}));else throw TypeError("Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ".concat(n," instead"))}};var eP=n(8620).Buffer,eM=n(49079),eL=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},eD=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};async function ej(e){let{response:t}=e;if(e.options.stream)return(e6("response",t.status,t.url,t.headers,t.body),e.options.__streamClass)?e.options.__streamClass.fromSSEResponse(t,e.controller):eg.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;let n=t.headers.get("content-type");if((null==n?void 0:n.includes("application/json"))||(null==n?void 0:n.includes("application/vnd.api+json"))){let e=await t.json();return e6("response",t.status,t.url,t.headers,e),e}let r=await t.text();return e6("response",t.status,t.url,t.headers,r),r}class eF extends Promise{_thenUnwrap(e){return new eF(this.responsePromise,async t=>e(await this.parseResponse(t)))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}constructor(e,t=ej){super(e=>{e(null)}),this.responsePromise=e,this.parseResponse=t}}class eB{authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...eq(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return"stainless-node-retry-".concat(e5())}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}calculateContentLength(e){if("string"==typeof e){if(void 0!==eP)return eP.byteLength(e,"utf8").toString();if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e).length.toString()}return null}buildRequest(e){var t,n,r,o,a,i;let{method:l,path:s,query:c,headers:d={}}=e,p=eA(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,f=this.calculateContentLength(p),m=this.buildURL(s,c);"timeout"in e&&eJ("timeout",e.timeout);let g=null!==(n=e.timeout)&&void 0!==n?n:this.timeout,h=null!==(o=null!==(r=e.httpAgent)&&void 0!==r?r:this.httpAgent)&&void 0!==o?o:u(m),b=g+1e3;"number"==typeof(null==h?void 0:null===(t=h.options)||void 0===t?void 0:t.timeout)&&b>(null!==(a=h.options.timeout)&&void 0!==a?a:0)&&(h.options.timeout=b),this.idempotencyHeader&&"get"!==l&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),d[this.idempotencyHeader]=e.idempotencyKey);let v=this.buildHeaders({options:e,headers:d,contentLength:f});return{req:{method:l,...p&&{body:p},headers:v,...h&&{agent:h},signal:null!==(i=e.signal)&&void 0!==i?i:null},url:m,timeout:g}}buildHeaders(e){let{options:t,headers:n,contentLength:r}=e,a={};return r&&(a["content-length"]=r),e3(a,this.defaultHeaders(t)),e3(a,n),eA(t.body)&&"node"!==o&&delete a["content-type"],this.validateHeaders(a,n),a}async prepareOptions(e){}async prepareRequest(e,t){let{url:n,options:r}=t}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(e=>[...e])):{...e}:{}}makeStatusError(e,t,n,r){return en.generate(e,t,n,r)}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new eF(this.makeRequest(e,t))}async makeRequest(e,t){var n,r,o;let a=await e;null==t&&(t=null!==(r=a.maxRetries)&&void 0!==r?r:this.maxRetries),await this.prepareOptions(a);let{req:i,url:l,timeout:s}=this.buildRequest(a);if(await this.prepareRequest(i,{url:l,options:a}),e6("request",l,a,i.headers),null===(n=a.signal)||void 0===n?void 0:n.aborted)throw new er;let c=new AbortController,u=await this.fetchWithTimeout(l,i,s,c).catch(e0);if(u instanceof Error){if(null===(o=a.signal)||void 0===o?void 0:o.aborted)throw new er;if(t)return this.retryRequest(a,t);if("AbortError"===u.name)throw new ea;throw new eo({cause:u})}let d=ez(u.headers);if(!u.ok){if(t&&this.shouldRetry(u)){let e="retrying, ".concat(t," attempts remaining");return e6("response (error; ".concat(e,")"),u.status,l,d),this.retryRequest(a,t,d)}let e=await u.text().catch(e=>e0(e).message),n=eY(e),r=n?void 0:e,o=t?"(error; no more retries left)":"(error; not retryable)";throw e6("response (error; ".concat(o,")"),u.status,l,d,r),this.makeStatusError(u.status,n,r,d)}return{response:u,options:a,controller:c}}requestAPIList(e,t){return new eZ(this,this.makeRequest(t,null),e)}buildURL(e,t){let n=new URL(eX(e)?e:this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),r=this.defaultQuery();return e2(r)||(t={...r,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(n.search=this.stringifyQuery(t)),n.toString()}stringifyQuery(e){return Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}).map(e=>{let[t,n]=e;if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n));if(null===n)return"".concat(encodeURIComponent(t),"=");throw new et("Cannot stringify type ".concat(typeof n,"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case."))}).join("&")}async fetchWithTimeout(e,t,n,r){let{signal:o,...a}=t||{};o&&o.addEventListener("abort",()=>r.abort());let i=setTimeout(()=>r.abort(),n);return this.getRequestClient().fetch.call(void 0,e,{signal:r.signal,...a}).finally(()=>{clearTimeout(i)})}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||e.status>=500)}async retryRequest(e,t,n){let r;let o=null==n?void 0:n["retry-after-ms"];if(o){let e=parseFloat(o);Number.isNaN(e)||(r=e)}let a=null==n?void 0:n["retry-after"];if(a&&!r){let e=parseFloat(a);r=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(r&&0<=r&&r<6e4)){var i;let n=null!==(i=e.maxRetries)&&void 0!==i?i:this.maxRetries;r=this.calculateDefaultRetryTimeoutMillis(t,n)}return await eQ(r),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}getUserAgent(){return"".concat(this.constructor.name,"/JS ").concat(Q)}constructor({baseURL:e,maxRetries:t=2,timeout:n=6e5,httpAgent:r,fetch:o}){this.baseURL=e,this.maxRetries=eJ("maxRetries",t),this.timeout=eJ("timeout",n),this.httpAgent=r,this.fetch=null!=o?o:a}}class eU{hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){let e=this.nextPageInfo();if(!e)throw new et("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");let t={...this.options};if("params"in e&&"object"==typeof t.query)t.query={...t.query,...e.params};else if("url"in e){for(let[n,r]of[...Object.entries(t.query||{}),...e.url.searchParams.entries()])e.url.searchParams.set(n,r);t.query=void 0,t.path=e.url.toString()}return await eD(this,w,"f").requestAPIList(this.constructor,t)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(w=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}constructor(e,t,n,r){w.set(this,void 0),eL(this,w,e,"f"),this.options=r,this.response=t,this.body=n}}class eZ extends eF{async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}constructor(e,t,n){super(t,async t=>new n(e,t.response,await ej(t),t.options))}}let ez=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){let n=t.toString();return e[n.toLowerCase()]||e[n]}}),eH={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryResponse:!0,__streamClass:!0},eG=e=>"object"==typeof e&&null!==e&&!e2(e)&&Object.keys(e).every(e=>e4(eH,e)),e$=()=>{if("undefined"!=typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(Deno.build.os),"X-Stainless-Arch":eW(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":Deno.version};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"other:".concat(EdgeRuntime),"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":eM.version};if("[object process]"===Object.prototype.toString.call(void 0!==eM?eM:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(eM.platform),"X-Stainless-Arch":eW(eM.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":eM.version};let e=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,o=n[3]||0;return{browser:e,version:"".concat(t,".").concat(r,".").concat(o)}}}return null}();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"browser:".concat(e.browser),"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},eW=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?"other:".concat(e):"unknown",eV=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?"Other:".concat(e):"Unknown",eq=()=>null!=r?r:r=e$(),eY=e=>{try{return JSON.parse(e)}catch(e){return}},eK=RegExp("^(?:[a-z]+:)?//","i"),eX=e=>eK.test(e),eQ=e=>new Promise(t=>setTimeout(t,e)),eJ=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new et("".concat(e," must be an integer"));if(t<0)throw new et("".concat(e," must be a positive integer"));return t},e0=e=>e instanceof Error?e:Error(e),e1=e=>{var t,n,r,o,a,i;return void 0!==eM?null!==(r=null===(n=eM.env)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.trim())&&void 0!==r?r:void 0:"undefined"!=typeof Deno?null===(i=Deno.env)||void 0===i?void 0:null===(a=i.get)||void 0===a?void 0:null===(o=a.call(i,e))||void 0===o?void 0:o.trim():void 0};function e2(e){if(!e)return!0;for(let t in e)return!1;return!0}function e4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e3(e,t){for(let n in t){if(!e4(t,n))continue;let r=n.toLowerCase();if(!r)continue;let o=t[n];null===o?delete e[r]:void 0!==o&&(e[r]=o)}}function e6(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e8=()=>void 0!==window.document&&"undefined"!=typeof navigator;class e9 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){return null}nextPageInfo(){return null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}}class e7 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){let e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;let t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){var e;let t=this.getPaginatedItems();if(!t.length)return null;let n=null===(e=t[t.length-1])||void 0===e?void 0:e.id;return n?{params:{after:n}}:null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[]}}class te{constructor(e){this._client=e}}class tt extends te{create(e,t){var n;return this._client.post("/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tt||(tt={});class tn extends te{create(e,t){var n;return this._client.post("/chat/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tn||(tn={});class tr extends te{constructor(){super(...arguments),this.completions=new tn(this._client)}}(tr||(tr={})).Completions=tn;class to extends te{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}to||(to={});class ta extends te{create(e,t){return this._client.post("/files",eI({body:e,...t}))}retrieve(e,t){return this._client.get("/files/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/files",ti,{query:e,...t})}del(e,t){return this._client.delete("/files/".concat(e),t)}content(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,headers:{Accept:"application/json",...null==t?void 0:t.headers}})}async waitForProcessing(e){let{pollInterval:t=5e3,maxWait:n=18e5}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Set(["processed","error","deleted"]),o=Date.now(),a=await this.retrieve(e);for(;!a.status||!r.has(a.status);)if(await eQ(t),a=await this.retrieve(e),Date.now()-o>n)throw new ea({message:"Giving up on waiting for file ".concat(e," to finish processing after ").concat(n," milliseconds.")});return a}}class ti extends e9{}(ta||(ta={})).FileObjectsPage=ti;class tl extends te{createVariation(e,t){return this._client.post("/images/variations",eI({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",eI({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}tl||(tl={});class ts extends te{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}ts||(ts={});class tc extends te{create(e,t){return this._client.post("/audio/transcriptions",eI({body:e,...t}))}}tc||(tc={});class tu extends te{create(e,t){return this._client.post("/audio/translations",eI({body:e,...t}))}}tu||(tu={});class td extends te{constructor(){super(...arguments),this.transcriptions=new tc(this._client),this.translations=new tu(this._client),this.speech=new ts(this._client)}}(f=td||(td={})).Transcriptions=tc,f.Translations=tu,f.Speech=ts;class tp extends te{create(e,t){return this._client.post("/moderations",{body:e,...t})}}tp||(tp={});class tf extends te{retrieve(e,t){return this._client.get("/models/".concat(e),t)}list(e){return this._client.getAPIList("/models",tm,e)}del(e,t){return this._client.delete("/models/".concat(e),t)}}class tm extends e9{}(tf||(tf={})).ModelsPage=tm;class tg extends te{create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get("/fine_tuning/jobs/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",th,{query:e,...t})}cancel(e,t){return this._client.post("/fine_tuning/jobs/".concat(e,"/cancel"),t)}listEvents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.listEvents(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/events"),tb,{query:t,...n})}}class th extends e7{}class tb extends e7{}(m=tg||(tg={})).FineTuningJobsPage=th,m.FineTuningJobEventsPage=tb;class tv extends te{constructor(){super(...arguments),this.jobs=new tg(this._client)}}(g=tv||(tv={})).Jobs=tg,g.FineTuningJobsPage=th,g.FineTuningJobEventsPage=tb;class ty extends te{create(e,t,n){return this._client.post("/assistants/".concat(e,"/files"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/assistants/".concat(e,"/files"),tE,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}}class tE extends e7{}(ty||(ty={})).AssistantFilesPage=tE;class tS extends te{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/assistants/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/assistants",tw,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}del(e,t){return this._client.delete("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.files=new ty(this._client)}}class tw extends e7{}function tx(e){return"function"==typeof e.parse}(h=tS||(tS={})).AssistantsPage=tw,h.Files=ty,h.AssistantFilesPage=tE;let tO=e=>(null==e?void 0:e.role)==="assistant",tk=e=>(null==e?void 0:e.role)==="function",tC=e=>(null==e?void 0:e.role)==="tool";var tT=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},tA=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class tI{_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},tA(this,U,"f"))},0)}_addChatCompletion(e){var t;this._chatCompletions.push(e),this._emit("chatCompletion",e);let n=null===(t=e.choices[0])||void 0===t?void 0:t.message;return n&&this._addMessage(n),e}_addMessage(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),(tk(e)||tC(e))&&e.content)this._emit("functionCallResult",e.content);else if(tO(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(tO(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionCall",t.function)}}_connected(){this.ended||(tA(this,k,"f").call(this),this._emit("connect"))}get ended(){return tA(this,R,"f")}get errored(){return tA(this,_,"f")}get aborted(){return tA(this,P,"f")}abort(){this.controller.abort()}on(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t}),this}off(e,t){let n=tA(this,N,"f")[e];if(!n)return this;let r=n.findIndex(e=>e.listener===t);return r>=0&&n.splice(r,1),this}once(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,n)=>{tT(this,M,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)})}async done(){tT(this,M,!0,"f"),await tA(this,T,"f")}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new et("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),tA(this,x,"m",L).call(this)}async finalMessage(){return await this.done(),tA(this,x,"m",D).call(this)}async finalFunctionCall(){return await this.done(),tA(this,x,"m",j).call(this)}async finalFunctionCallResult(){return await this.done(),tA(this,x,"m",F).call(this)}async totalUsage(){return await this.done(),tA(this,x,"m",B).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r!e.once),o.forEach(e=>{let{listener:t}=e;return t(...n)})),"abort"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end");return}if("error"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end")}}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=tA(this,x,"m",D).call(this);t&&this._emit("finalMessage",t);let n=tA(this,x,"m",L).call(this);n&&this._emit("finalContent",n);let r=tA(this,x,"m",j).call(this);r&&this._emit("finalFunctionCall",r);let o=tA(this,x,"m",F).call(this);null!=o&&this._emit("finalFunctionCallResult",o),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",tA(this,x,"m",B).call(this))}async _createChatCompletion(e,t,n){let r=null==n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),tA(this,x,"m",Z).call(this,t);let o=await e.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(o)}async _runChatCompletion(e,t,n){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,n)}async _runFunctions(e,t,n){let r="function",{function_call:o="auto",stream:a,...i}=t,l="string"!=typeof o&&(null==o?void 0:o.name),{maxChatCompletions:s=10}=n||{},c={};for(let e of t.functions)c[e.name||e.function.name]=e;let u=t.functions.map(e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description}));for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.name)).join(", "),". Please try again");this._addMessage({role:r,name:s,content:e});continue}try{t=tx(f)?await f.parse(p):p}catch(e){this._addMessage({role:r,name:s,content:e instanceof Error?e.message:String(e)});continue}let m=await f.function(t,this),g=tA(this,x,"m",z).call(this,m);if(this._addMessage({role:r,name:s,content:g}),l)return}}async _runTools(e,t,n){var r,o;let a="tool",{tool_choice:i="auto",stream:l,...s}=t,c="string"!=typeof i&&(null==i?void 0:null===(r=i.function)||void 0===r?void 0:r.name),{maxChatCompletions:u=10}=n||{},d={};for(let e of t.tools)"function"===e.type&&(d[e.function.name||e.function.function.name]=e.function);let p="tools"in t?t.tools.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.function.name)).join(", "),". Please try again");this._addMessage({role:a,tool_call_id:n,content:e});continue}try{t=tx(i)?await i.parse(o):o}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:a,tool_call_id:n,content:e});continue}let l=await i.function(t,this),s=tA(this,x,"m",z).call(this,l);if(this._addMessage({role:a,tool_call_id:n,content:s}),c)return}}}constructor(){x.add(this),this.controller=new AbortController,O.set(this,void 0),k.set(this,()=>{}),C.set(this,()=>{}),T.set(this,void 0),A.set(this,()=>{}),I.set(this,()=>{}),N.set(this,{}),this._chatCompletions=[],this.messages=[],R.set(this,!1),_.set(this,!1),P.set(this,!1),M.set(this,!1),U.set(this,e=>{if(tT(this,_,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new er),e instanceof er)return tT(this,P,!0,"f"),this._emit("abort",e);if(e instanceof et)return this._emit("error",e);if(e instanceof Error){let t=new et(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new et(String(e)))}),tT(this,O,new Promise((e,t)=>{tT(this,k,e,"f"),tT(this,C,t,"f")}),"f"),tT(this,T,new Promise((e,t)=>{tT(this,A,e,"f"),tT(this,I,t,"f")}),"f"),tA(this,O,"f").catch(()=>{}),tA(this,T,"f").catch(()=>{})}}O=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,A=new WeakMap,I=new WeakMap,N=new WeakMap,R=new WeakMap,_=new WeakMap,P=new WeakMap,M=new WeakMap,U=new WeakMap,x=new WeakSet,L=function(){var e;return null!==(e=tA(this,x,"m",D).call(this).content)&&void 0!==e?e:null},D=function(){let e=this.messages.length;for(;e-- >0;){let n=this.messages[e];if(tO(n)){var t;return{...n,content:null!==(t=n.content)&&void 0!==t?t:null}}}throw new et("stream ended without producing a ChatCompletionMessage with role=assistant")},j=function(){for(let n=this.messages.length-1;n>=0;n--){var e,t;let r=this.messages[n];if(tO(r)&&(null==r?void 0:r.function_call))return r.function_call;if(tO(r)&&(null==r?void 0:null===(e=r.tool_calls)||void 0===e?void 0:e.length))return null===(t=r.tool_calls.at(-1))||void 0===t?void 0:t.function}},F=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tk(t)&&null!=t.content||tC(t)&&null!=t.content&&this.messages.some(e=>{var n;return"assistant"===e.role&&(null===(n=e.tool_calls)||void 0===n?void 0:n.some(e=>"function"===e.type&&e.id===t.tool_call_id))}))return t.content}},B=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},Z=function(e){if(null!=e.n&&e.n>1)throw new et("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},z=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class tN extends tI{static runFunctions(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}_addMessage(e){super._addMessage(e),tO(e)&&e.content&&this._emit("content",e.content)}}var tR=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},t_=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class tP extends tI{get currentChatCompletionSnapshot(){return tR(this,G,"f")}static fromReadableStream(e){let t=new tP;return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,n){let r=new tP;return r._run(()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createChatCompletion(e,t,n){var r;let o=null==n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this);let a=await e.create({...t,stream:!0},{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))tR(this,H,"m",W).call(this,e);if(null===(r=a.controller.signal)||void 0===r?void 0:r.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}async _fromReadableStream(e,t){var n;let r;let o=null==t?void 0:t.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this),this._connected();let a=eg.fromReadableStream(e,this.controller);for await(let e of a)r&&r!==e.id&&this._addChatCompletion(tR(this,H,"m",V).call(this)),tR(this,H,"m",W).call(this,e),r=e.id;if(null===(n=a.controller.signal)||void 0===n?void 0:n.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}[(G=new WeakMap,H=new WeakSet,$=function(){this.ended||t_(this,G,void 0,"f")},W=function(e){var t,n,r;if(this.ended)return;let o=tR(this,H,"m",q).call(this,e);this._emit("chunk",e,o);let a=null===(n=e.choices[0])||void 0===n?void 0:null===(t=n.delta)||void 0===t?void 0:t.content,i=null===(r=o.choices[0])||void 0===r?void 0:r.message;null!=a&&(null==i?void 0:i.role)==="assistant"&&(null==i?void 0:i.content)&&this._emit("content",a,i.content)},V=function(){if(this.ended)throw new et("stream has ended, this shouldn't happen");let e=tR(this,G,"f");if(!e)throw new et("request ended without sending any chunks");return t_(this,G,void 0,"f"),function(e){let{id:t,choices:n,created:r,model:o,system_fingerprint:a,...i}=e;return{...i,id:t,choices:n.map(t=>{let{message:n,finish_reason:r,index:o,logprobs:a,...i}=t;if(!r)throw new et("missing finish_reason for choice ".concat(o));let{content:l=null,function_call:s,tool_calls:c,...u}=n,d=n.role;if(!d)throw new et("missing role for choice ".concat(o));if(s){let{arguments:e,name:t}=s;if(null==e)throw new et("missing function_call.arguments for choice ".concat(o));if(!t)throw new et("missing function_call.name for choice ".concat(o));return{...i,message:{content:l,function_call:{arguments:e,name:t},role:d},finish_reason:r,index:o,logprobs:a}}return c?{...i,index:o,finish_reason:r,logprobs:a,message:{...u,role:d,content:l,tool_calls:c.map((t,n)=>{let{function:r,type:a,id:i,...l}=t,{arguments:s,name:c,...u}=r||{};if(null==i)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].id\n").concat(tM(e)));if(null==a)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].type\n").concat(tM(e)));if(null==c)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.name\n").concat(tM(e)));if(null==s)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.arguments\n").concat(tM(e)));return{...l,id:i,type:a,function:{...u,name:c,arguments:s}}})}}:{...i,message:{...u,content:l,role:d},finish_reason:r,index:o,logprobs:a}}),created:r,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}}}(e)},q=function(e){var t,n,r,o,a,i,l;let s=tR(this,G,"f"),{choices:c,...u}=e;for(let{delta:c,finish_reason:d,index:p,logprobs:f=null,...m}of(s?Object.assign(s,u):s=t_(this,G,{...u,choices:[]},"f"),e.choices)){let e=s.choices[p];if(e||(e=s.choices[p]={finish_reason:d,index:p,message:{},logprobs:f,...m}),f){if(e.logprobs){let{content:n,...r}=f;Object.assign(e.logprobs,r),n&&(null!==(o=(t=e.logprobs).content)&&void 0!==o||(t.content=[]),e.logprobs.content.push(...n))}else e.logprobs=Object.assign({},f)}if(d&&(e.finish_reason=d),Object.assign(e,m),!c)continue;let{content:u,function_call:g,role:h,tool_calls:b,...v}=c;if(Object.assign(e.message,v),u&&(e.message.content=(e.message.content||"")+u),h&&(e.message.role=h),g&&(e.message.function_call?(g.name&&(e.message.function_call.name=g.name),g.arguments&&(null!==(a=(n=e.message.function_call).arguments)&&void 0!==a||(n.arguments=""),e.message.function_call.arguments+=g.arguments)):e.message.function_call=g),b)for(let{index:t,id:n,type:o,function:a,...s}of(e.message.tool_calls||(e.message.tool_calls=[]),b)){let c=null!==(i=(r=e.message.tool_calls)[t])&&void 0!==i?i:r[t]={};Object.assign(c,s),n&&(c.id=n),o&&(c.type=o),a&&(null!==(l=c.function)&&void 0!==l||(c.function={arguments:""})),(null==a?void 0:a.name)&&(c.function.name=a.name),(null==a?void 0:a.arguments)&&(c.function.arguments+=a.arguments)}}return s},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("chunk",n=>{let r=t.shift();r?r(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e(void 0);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise(e=>t.push(e)).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0})}}toReadableStream(){return new eg(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}constructor(){super(...arguments),H.add(this),G.set(this,void 0)}}function tM(e){return JSON.stringify(e)}class tL extends tP{static fromReadableStream(e){let t=new tL;return t._run(()=>t._fromReadableStream(e)),t}static runFunctions(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}}class tD extends te{runFunctions(e,t){return e.stream?tL.runFunctions(this._client.chat.completions,e,t):tN.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?tL.runTools(this._client.chat.completions,e,t):tN.runTools(this._client.chat.completions,e,t)}stream(e,t){return tP.createChatCompletion(this._client.chat.completions,e,t)}}class tj extends te{constructor(){super(...arguments),this.completions=new tD(this._client)}}(tj||(tj={})).Completions=tD;class tF extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/messages/").concat(t,"/files/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/messages/").concat(t,"/files"),tB,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tB extends e7{}(tF||(tF={})).MessageFilesPage=tB;class tU extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/messages"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/messages/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/messages"),tZ,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}constructor(){super(...arguments),this.files=new tF(this._client)}}class tZ extends e7{}(b=tU||(tU={})).ThreadMessagesPage=tZ,b.Files=tF,b.MessageFilesPage=tB;class tz extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/runs/").concat(t,"/steps/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/runs/").concat(t,"/steps"),tH,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tH extends e7{}(tz||(tz={})).RunStepsPage=tH;class tG extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/runs"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/runs/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/runs"),t$,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}submitToolOutputs(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/submit_tool_outputs"),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}constructor(){super(...arguments),this.steps=new tz(this._client)}}class t$ extends e7{}(v=tG||(tG={})).RunsPage=t$,v.Steps=tz,v.RunStepsPage=tH;class tW extends te{create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/threads/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t){return this._client.delete("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.runs=new tG(this._client),this.messages=new tU(this._client)}}(y=tW||(tW={})).Runs=tG,y.RunsPage=t$,y.Messages=tU,y.ThreadMessagesPage=tZ;class tV extends te{constructor(){super(...arguments),this.chat=new tj(this._client),this.assistants=new tS(this._client),this.threads=new tW(this._client)}}(E=tV||(tV={})).Chat=tj,E.Assistants=tS,E.AssistantsPage=tw,E.Threads=tW;class tq extends eB{defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:"Bearer ".concat(this.apiKey)}}constructor({baseURL:e=e1("OPENAI_BASE_URL"),apiKey:t=e1("OPENAI_API_KEY"),organization:n=null!==(K=e1("OPENAI_ORG_ID"))&&void 0!==K?K:null,...r}={}){var o;if(void 0===t)throw new et("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");let a={apiKey:t,organization:n,...r,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&e8())throw new et("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:a.baseURL,timeout:null!==(o=a.timeout)&&void 0!==o?o:6e5,httpAgent:a.httpAgent,maxRetries:a.maxRetries,fetch:a.fetch}),this.completions=new tt(this),this.chat=new tr(this),this.embeddings=new to(this),this.files=new ta(this),this.images=new tl(this),this.audio=new td(this),this.moderations=new tp(this),this.models=new tf(this),this.fineTuning=new tv(this),this.beta=new tV(this),this._options=a,this.apiKey=t,this.organization=n}}Y=tq,tq.OpenAI=Y,tq.OpenAIError=et,tq.APIError=en,tq.APIConnectionError=eo,tq.APIConnectionTimeoutError=ea,tq.APIUserAbortError=er,tq.NotFoundError=ec,tq.ConflictError=eu,tq.RateLimitError=ep,tq.BadRequestError=ei,tq.AuthenticationError=el,tq.InternalServerError=ef,tq.PermissionDeniedError=es,tq.UnprocessableEntityError=ed;let{OpenAIError:tY,APIError:tK,APIConnectionError:tX,APIConnectionTimeoutError:tQ,APIUserAbortError:tJ,NotFoundError:t0,ConflictError:t1,RateLimitError:t2,BadRequestError:t4,AuthenticationError:t3,InternalServerError:t6,PermissionDeniedError:t5,UnprocessableEntityError:t8}=X;(S=tq||(tq={})).toFile=eO,S.fileFromPath=d,S.Page=e9,S.CursorPage=e7,S.Completions=tt,S.Chat=tr,S.Embeddings=to,S.Files=ta,S.FileObjectsPage=ti,S.Images=tl,S.Audio=td,S.Moderations=tp,S.Models=tf,S.ModelsPage=tm,S.FineTuning=tv,S.Beta=tV;var t9=tq},69703:function(e,t,n){function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}n.d(t,{_T:function(){return r}}),"function"==typeof SuppressedError&&SuppressedError},72890:function(e){e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},55229:function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/app/_not-found-28e7651bceba9aa1.js b/litellm/proxy/_experimental/out/_next/static/chunks/app/_not-found-a166f65a6af292d9.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/chunks/app/_not-found-28e7651bceba9aa1.js rename to litellm/proxy/_experimental/out/_next/static/chunks/app/_not-found-a166f65a6af292d9.js diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js b/litellm/proxy/_experimental/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js new file mode 100644 index 000000000..696bbfce8 --- /dev/null +++ b/litellm/proxy/_experimental/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{20661:function(e,l,t){Promise.resolve().then(t.bind(t,16586))},16586:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ln}});var s,a,r=t(3827),n=t(64090),o=t(47907),i=t(8792),c=t(40491),d=t(65270),m=e=>{let{userID:l,userRole:t,userEmail:s,showSSOBanner:a}=e;console.log("User ID:",l),console.log("userEmail:",s),console.log("showSSOBanner:",a);let n=[{key:"1",label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:["Role: ",t]}),(0,r.jsxs)("p",{children:["ID: ",l]})]})}];return(0,r.jsxs)("nav",{className:"left-0 right-0 top-0 flex justify-between items-center h-12 mb-4",children:[(0,r.jsx)("div",{className:"text-left my-2 absolute top-0 left-0",children:(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(i.default,{href:"/",children:(0,r.jsx)("button",{className:"text-gray-800 text-2xl py-1 rounded text-center",children:(0,r.jsx)("img",{src:"/get_image",width:200,height:200,alt:"LiteLLM Brand",className:"mr-2"})})})})}),(0,r.jsxs)("div",{className:"text-right mx-4 my-2 absolute top-0 right-0 flex items-center justify-end space-x-2",children:[a?(0,r.jsx)("div",{style:{padding:"6px",borderRadius:"8px"},children:(0,r.jsx)("a",{href:"https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat",target:"_blank",style:{fontSize:"14px",textDecoration:"underline"},children:"Request hosted proxy"})}):null,(0,r.jsx)("div",{style:{border:"1px solid #391085",padding:"6px",borderRadius:"8px"},children:(0,r.jsx)(c.Z,{menu:{items:n},children:(0,r.jsx)(d.Z,{children:s})})})]})]})},h=t(80588);let u=async()=>{try{let e=await fetch("https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"),l=await e.json();return console.log("received data: ".concat(l)),l}catch(e){throw console.error("Failed to get model cost map:",e),e}},x=async(e,l)=>{try{let t=await fetch("/model/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model created successfully. Wait 60s and refresh on 'All Models' page"),s}catch(e){throw console.error("Failed to create key:",e),e}},p=async(e,l)=>{console.log("model_id in model delete call: ".concat(l));try{let t=await fetch("/model/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({id:l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model deleted successfully. Restart server to see this."),s}catch(e){throw console.error("Failed to create key:",e),e}},j=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/key/generate",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},g=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/user/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},y=async(e,l)=>{try{console.log("in keyDeleteCall:",l);let t=await fetch("/key/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},Z=async(e,l)=>{try{console.log("in teamDeleteCall:",l);let t=await fetch("/team/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_ids:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete team: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to delete key:",e),e}},f=async function(e,l,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;try{let n="/user/info";"App Owner"==t&&l&&(n="".concat(n,"?user_id=").concat(l)),console.log("in userInfoCall viewAll=",s),s&&r&&null!=a&&void 0!=a&&(n="".concat(n,"?view_all=true&page=").concat(a,"&page_size=").concat(r));let o=await fetch(n,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!o.ok){let e=await o.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let i=await o.json();return console.log("API Response:",i),i}catch(e){throw console.error("Failed to create key:",e),e}},w=async e=>{try{let l=await fetch("/global/spend",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},b=async(e,l,t)=>{try{let l=await fetch("/v2/model/info",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log("modelInfoCall:",t),t}catch(e){throw console.error("Failed to create key:",e),e}},_=async(e,l,t)=>{try{let l=await fetch("/model/metrics",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},k=async(e,l,t)=>{try{let l=await fetch("/models",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},v=async(e,l)=>{try{let t="/global/spend/logs";console.log("in keySpendLogsCall:",t);let s=await fetch("".concat(t,"?api_key=").concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to create key:",e),e}},S=async e=>{try{let l="/global/spend/teams";console.log("in teamSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},A=async e=>{try{let l="/global/spend/tags";console.log("in tagsSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},N=async(e,l,t,s,a,r)=>{try{console.log("user role in spend logs call: ".concat(t));let l="/spend/logs";l="App Owner"==t?"".concat(l,"?user_id=").concat(s,"&start_date=").concat(a,"&end_date=").concat(r):"".concat(l,"?start_date=").concat(a,"&end_date=").concat(r);let n=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!n.ok){let e=await n.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let o=await n.json();return console.log(o),o}catch(e){throw console.error("Failed to create key:",e),e}},C=async e=>{try{let l=await fetch("/global/spend/logs",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},I=async e=>{try{let l=await fetch("/global/spend/keys?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},P=async(e,l)=>{try{l&&JSON.stringify({api_key:l});let t={method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}};l&&(t.body=JSON.stringify({api_key:l}));let s=await fetch("/global/spend/end_users",t);if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to create key:",e),e}},T=async e=>{try{let l=await fetch("/global/spend/models?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},E=async(e,l)=>{try{let t=await fetch("/v2/key/info",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},O=async e=>{try{let l="/user/get_requests";console.log("in userGetRequesedtModelsCall:",l);let t=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to get requested models:",e),e}},F=async(e,l)=>{try{let t="/user/get_users?role=".concat(l);console.log("in userGetAllUsersCall:",t);let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to get requested models:",e),e}},M=async(e,l)=>{try{console.log("Form Values in teamCreateCall:",l);let t=await fetch("/team/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},R=async(e,l)=>{try{console.log("Form Values in keyUpdateCall:",l);let t=await fetch("/key/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update key Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},D=async(e,l)=>{try{console.log("Form Values in teamUpateCall:",l);let t=await fetch("/team/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update team: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update Team Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},L=async(e,l,t)=>{try{console.log("Form Values in teamMemberAddCall:",t);let s=await fetch("/team/member_add",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_id:l,member:t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},U=async(e,l,t)=>{try{console.log("Form Values in userUpdateUserCall:",l);let s={...l};null!==t&&(s.user_role=t),s=JSON.stringify(s);let a=await fetch("/user/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:s});if(!a.ok){let e=await a.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await a.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},z=async(e,l)=>{try{let t=await fetch("/global/predict/spend/logs",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({data:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},B=async(e,l)=>{try{let t="/health/services?service=".concat(l);console.log("Checking Slack Budget Alerts service health");let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed ".concat(l," service health check ")+e),Error(e)}let a=await s.json();return h.ZP.success("Test request to ".concat(l," made - check logs on ").concat(l," dashboard!")),a}catch(e){throw console.error("Failed to perform health check:",e),e}},q=async(e,l,t)=>{try{let l=await fetch("/get/config/callbacks",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to get callbacks:",e),e}},V=async(e,l)=>{try{let t=await fetch("/config/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await t.json()}catch(e){throw console.error("Failed to set callbacks:",e),e}},K=async e=>{try{let l=await fetch("/health",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to call /health:",e),e}};var G=t(10384),J=t(46453),W=t(2179),Y=t(71801),H=t(42440),$=t(42308),X=t(50670),Q=t(81583),ee=t(99129),el=t(44839),et=t(88707),es=t(1861);let{Option:ea}=X.default;var er=e=>{let{userID:l,team:t,userRole:s,accessToken:a,data:o,setData:i}=e,[c]=Q.Z.useForm(),[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[y,Z]=(0,n.useState)([]),f=()=>{m(!1),c.resetFields()},w=()=>{m(!1),x(null),c.resetFields()};(0,n.useEffect)(()=>{(async()=>{try{if(null===l||null===s)return;if(null!==a){let e=(await k(a,l,s)).data.map(e=>e.id);console.log("available_model_names:",e),Z(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[a,l,s]);let b=async e=>{try{h.ZP.info("Making API Call"),m(!0);let t=await j(a,l,e);console.log("key create Response:",t),i(e=>e?[...e,t]:[t]),x(t.key),g(t.soft_budget),h.ZP.success("API Key Created"),c.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the key:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>m(!0),children:"+ Create New Key"}),(0,r.jsx)(ee.Z,{title:"Create Key",visible:d,width:800,footer:null,onOk:f,onCancel:w,children:(0,r.jsxs)(Q.Z,{form:c,onFinish:b,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:["App Owner"===s||"Admin"===s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",hidden:!0,initialValue:t?t.team_id:null,valuePropName:"team_id",className:"mt-8",children:(0,r.jsx)(el.Z,{value:t?t.team_alias:"",disabled:!0})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{required:!0,message:"Please select a model"}],help:"required",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(ea,{value:"all-team-models",children:"All Team Models"},"all-team-models"),t&&t.models?t.models.includes("all-proxy-models")?y.map(e=>(0,r.jsx)(ea,{value:e,children:e},e)):t.models.map(e=>(0,r.jsx)(ea,{value:e,children:e},e)):y.map(e=>(0,r.jsx)(ea,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: $".concat((null==t?void 0:t.max_budget)!==null&&(null==t?void 0:t.max_budget)!==void 0?null==t?void 0:t.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.max_budget&&l>t.max_budget)throw Error("Budget cannot exceed team max budget: $".concat(t.max_budget))}}],children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Reset Budget",name:"budget_duration",help:"Team Reset Budget: ".concat((null==t?void 0:t.budget_duration)!==null&&(null==t?void 0:t.budget_duration)!==void 0?null==t?void 0:t.budget_duration:"None"),children:(0,r.jsxs)(X.default,{defaultValue:null,placeholder:"n/a",children:[(0,r.jsx)(X.default.Option,{value:"24h",children:"daily"}),(0,r.jsx)(X.default.Option,{value:"30d",children:"monthly"})]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Tokens per minute Limit (TPM)",name:"tpm_limit",help:"TPM cannot exceed team TPM limit: ".concat((null==t?void 0:t.tpm_limit)!==null&&(null==t?void 0:t.tpm_limit)!==void 0?null==t?void 0:t.tpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.tpm_limit&&l>t.tpm_limit)throw Error("TPM limit cannot exceed team TPM limit: ".concat(t.tpm_limit))}}],children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Requests per minute Limit (RPM)",name:"rpm_limit",help:"RPM cannot exceed team RPM limit: ".concat((null==t?void 0:t.rpm_limit)!==null&&(null==t?void 0:t.rpm_limit)!==void 0?null==t?void 0:t.rpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.rpm_limit&&l>t.rpm_limit)throw Error("RPM limit cannot exceed team RPM limit: ".concat(t.rpm_limit))}}],children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Expire Key (eg: 30s, 30h, 30d)",name:"duration",className:"mt-8",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,r.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID (Contact Group)",name:"team_id",children:(0,r.jsx)(el.Z,{placeholder:"default team (create a new team)"})}),(0,r.jsx)(Q.Z.Item,{label:"Description",name:"description",children:(0,r.jsx)(el.Z.TextArea,{placeholder:"Enter description",rows:4})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create Key"})})]})}),u&&(0,r.jsx)(ee.Z,{visible:d,onOk:f,onCancel:w,footer:null,children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,r.jsx)(H.Z,{children:"Save your Key"}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("p",{children:["Please save this secret key somewhere safe and accessible. For security reasons, ",(0,r.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret key, you will need to generate a new one."]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:null!=u?(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{className:"mt-3",children:"API Key:"}),(0,r.jsx)("div",{style:{background:"#f8f8f8",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:(0,r.jsx)("pre",{style:{wordWrap:"break-word",whiteSpace:"normal"},children:u})}),(0,r.jsx)($.CopyToClipboard,{text:u,onCopy:()=>{h.ZP.success("API Key copied to clipboard")},children:(0,r.jsx)(W.Z,{className:"mt-3",children:"Copy API Key"})})]}):(0,r.jsx)(Y.Z,{children:"Key being created, this might take 30s"})})]})})]})},en=t(9454),eo=t(98941),ei=t(33393),ec=t(5),ed=t(9853),em=t(13810),eh=t(39290),eu=t(66952),ex=t(61244),ep=t(10827),ej=t(3851),eg=t(2044),ey=t(64167),eZ=t(74480),ef=t(7178),ew=t(95093),eb=t(27166);let{Option:e_}=X.default;var ek=e=>{let{userID:l,userRole:t,accessToken:s,selectedTeam:a,data:o,setData:i,teams:c}=e,[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,j]=(0,n.useState)(null),[g,Z]=n.useState(null),[f,w]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[S,A]=(0,n.useState)(""),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),[T,E]=(0,n.useState)([]),O=new Set,[F,M]=(0,n.useState)(O);(0,n.useEffect)(()=>{(async()=>{try{if(null===l)return;if(null!==s&&null!==t){let e=(await k(s,l,t)).data.map(e=>e.id);console.log("available_model_names:",e),E(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,l,t]),(0,n.useEffect)(()=>{if(c){let e=new Set;c.forEach((l,t)=>{let s=l.team_id;e.add(s)}),M(e)}},[c]);let D=e=>{console.log("handleEditClick:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),P(e),C(!0)},L=async e=>{if(null==s)return;let l=e.token;e.key=l,console.log("handleEditSubmit:",e);let t=await R(s,e);console.log("handleEditSubmit: newKeyValues",t),o&&i(o.map(e=>e.token===l?t:e)),h.ZP.success("Key updated successfully"),C(!1),P(null)},U=async e=>{try{if(null==s||null==e)return;console.log("accessToken: ".concat(s,"; token: ").concat(e.token));let l=await v(s,e.token);console.log("Response:",l),_(l);try{let e=await z(s,l);console.log("Response2:",e);let t=[...l,...e.response];_(t),A(e.predicted_spend),console.log("Combined Data:",t)}catch(e){console.error("There was an error fetching the predicted data",e)}}catch(e){console.error("There was an error fetching the data",e)}};(0,n.useEffect)(()=>{U(f)},[f]);let B=async e=>{console.log("handleDelete:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),null!=o&&(j(e.token),localStorage.removeItem("userData"+l),x(!0))},q=async()=>{if(null!=p&&null!=o){try{await y(s,p);let e=o.filter(e=>e.token!==p);i(e)}catch(e){console.error("Error deleting the key:",e)}x(!1),j(null)}};if(null!=o)return console.log("RERENDER TRIGGERED"),(0,r.jsxs)("div",{children:[(0,r.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4 mt-2",children:[(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Key Alias"}),(0,r.jsx)(eZ.Z,{children:"Secret Key"}),(0,r.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,r.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,r.jsx)(eZ.Z,{children:"Models"}),(0,r.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,r.jsx)(ej.Z,{children:o.map(e=>{if(console.log(e),"litellm-dashboard"===e.team_id)return null;if(a){if(console.log("item team id: ".concat(e.team_id,", knownTeamIDs.has(item.team_id): ").concat(F.has(e.team_id),", selectedTeam id: ").concat(a.team_id)),(null!=a.team_id||null===e.team_id||F.has(e.team_id))&&e.team_id!=a.team_id)return null;console.log("item team id: ".concat(e.team_id,", is returned"))}return(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{style:{maxWidth:"2px",whiteSpace:"pre-wrap",overflow:"hidden"},children:null!=e.key_alias?(0,r.jsx)(Y.Z,{children:e.key_alias}):(0,r.jsx)(Y.Z,{children:"Not Set"})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:e.key_name})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:(()=>{try{return parseFloat(e.spend).toFixed(4)}catch(l){return e.spend}})()})}),(0,r.jsx)(eg.Z,{children:null!=e.max_budget?(0,r.jsx)(Y.Z,{children:e.max_budget}):(0,r.jsx)(Y.Z,{children:"Unlimited"})}),(0,r.jsx)(eg.Z,{children:Array.isArray(e.models)?(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,r.jsx)(r.Fragment,{children:a&&a.models&&a.models.length>0?a.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Team Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l)):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:"all-proxy-models"})})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Team Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,r.jsx)(eg.Z,{children:(0,r.jsxs)(Y.Z,{children:["TPM: ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,r.jsx)("br",{})," RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{onClick:()=>{w(e),Z(e.id)},icon:en.Z,size:"sm"}),(0,r.jsx)(eh.Z,{open:null!==g,onClose:()=>{Z(null),w(null)},children:(0,r.jsx)(eu.Z,{children:f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:[(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Spend"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:(()=>{try{return parseFloat(f.spend).toFixed(4)}catch(e){return f.spend}})()})})]}),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Budget"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.max_budget?(0,r.jsx)(r.Fragment,{children:f.max_budget}):(0,r.jsx)(r.Fragment,{children:"Unlimited"})})})]},e.name),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Expires"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor-default font-small text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.expires?(0,r.jsx)(r.Fragment,{children:new Date(f.expires).toLocaleString(void 0,{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}):(0,r.jsx)(r.Fragment,{children:"Never"})})})]},e.name)]}),(0,r.jsx)(em.Z,{className:"mt-6 mb-6",children:b&&(0,r.jsx)(ed.Z,{className:"mt-6",data:b,colors:["blue","amber"],index:"date",categories:["spend","predicted_spend"],yAxisWidth:80})}),(0,r.jsx)(H.Z,{children:"Metadata"}),(0,r.jsx)(Y.Z,{children:JSON.stringify(f.metadata)}),(0,r.jsx)(W.Z,{variant:"light",className:"mx-auto flex items-center",onClick:()=>{Z(null),w(null)},children:"Close"})]})})}),(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>D(e)}),(0,r.jsx)(ex.Z,{onClick:()=>B(e),icon:ei.Z,size:"sm"})]})]},e.token)})})]}),u&&(0,r.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,r.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,r.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,r.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Key"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this key ?"})})]})})}),(0,r.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)(W.Z,{onClick:q,color:"red",className:"ml-2",children:"Delete"}),(0,r.jsx)(W.Z,{onClick:()=>{x(!1),j(null)},children:"Cancel"})]})]})]})})]}),I&&(0,r.jsx)(e=>{let{visible:l,onCancel:t,token:s,onSubmit:o}=e,[i]=Q.Z.useForm(),[d,m]=(0,n.useState)(a),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)(!1);return(0,r.jsx)(ee.Z,{title:"Edit Key",visible:l,width:800,footer:null,onOk:()=>{i.validateFields().then(e=>{i.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,r.jsxs)(Q.Z,{form:i,onFinish:L,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{validator:(e,l)=>{let t=l.filter(e=>!d.models.includes(e)&&"all-team-models"!==e&&"all-proxy-models"!==e);return(console.log("errorModels: ".concat(t)),t.length>0)?Promise.reject("Some models are not part of the new team's models - ".concat(t)):Promise.resolve()}}],children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(e_,{value:"all-team-models",children:"All Team Models"},"all-team-models"),d&&d.models?d.models.includes("all-proxy-models")?T.filter(e=>"all-proxy-models"!==e).map(e=>(0,r.jsx)(e_,{value:e,children:e},e)):d.models.map(e=>(0,r.jsx)(e_,{value:e,children:e},e)):T.map(e=>(0,r.jsx)(e_,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: ".concat((null==d?void 0:d.max_budget)!==null&&(null==d?void 0:d.max_budget)!==void 0?null==d?void 0:d.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&d&&null!==d.max_budget&&l>d.max_budget)throw console.log("keyTeam.max_budget: ".concat(d.max_budget)),Error("Budget cannot exceed team max budget: $".concat(d.max_budget))}}],children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"token",name:"token",hidden:!0}),(0,r.jsx)(Q.Z.Item,{label:"Team",name:"team_id",help:"the team this key belongs to",children:(0,r.jsx)(ew.Z,{value:s.team_alias,children:null==c?void 0:c.map((e,l)=>(0,r.jsx)(eb.Z,{value:e.team_id,onClick:()=>m(e),children:e.team_alias},l))})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Edit Key"})})]})})},{visible:N,onCancel:()=>{C(!1),P(null)},token:I,onSubmit:L})]})},ev=e=>{let{userID:l,userRole:t,accessToken:s,userSpend:a}=e;console.log("userSpend: ".concat(a));let[o,i]=(0,n.useState)(null!==a?a:0),[c,d]=(0,n.useState)(0);(0,n.useEffect)(()=>{(async()=>{if(s&&l&&t&&"Admin"===t&&null==a)try{let e=await w(s);e&&(e.spend?i(e.spend):i(0),e.max_budget?d(e.max_budget):d(0))}catch(e){console.error("Error fetching global spend data:",e)}})()},[t,s]),(0,n.useEffect)(()=>{null!==a&&i(a)},[a]);let m=void 0!==o?o.toFixed(4):null;return console.log("spend in view user spend: ".concat(o)),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-tremor-default text-tremor-content dark:text-dark-tremor-content",children:"Total Spend "}),(0,r.jsxs)("p",{className:"text-3xl text-tremor-content-strong dark:text-dark-tremor-content-strong font-semibold",children:["$",m]})]})},eS=e=>{let{teams:l,setSelectedTeam:t}=e,s={models:[],team_id:null,team_alias:"Default Team"},[a,o]=(0,n.useState)(s),i=l?[...l,s]:[s];return(0,r.jsxs)("div",{className:"mt-5 mb-5",children:[(0,r.jsx)(H.Z,{children:"Select Team"}),(0,r.jsx)(Y.Z,{children:"If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys."}),(0,r.jsxs)(Y.Z,{className:"mt-3 mb-3",children:[(0,r.jsx)("b",{children:"Default Team:"})," If no team_id is set for a key, it will be grouped under here."]}),i&&i.length>0?(0,r.jsx)(ew.Z,{defaultValue:"0",children:i.map((e,l)=>(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>t(e),children:e.team_alias},l))}):(0,r.jsxs)(Y.Z,{children:["No team created. ",(0,r.jsx)("b",{children:"Defaulting to personal account."})]})]})},eA=t(37963),eN=t(36083);console.log("isLocal:",!1);var eC=e=>{let{userID:l,userRole:t,teams:s,keys:a,setUserRole:i,userEmail:c,setUserEmail:d,setTeams:m,setKeys:h}=e,[u,x]=(0,n.useState)(null),p=(0,o.useSearchParams)();p.get("viewSpend"),(0,o.useRouter)();let j=p.get("token"),[g,y]=(0,n.useState)(null),[Z,b]=(0,n.useState)(null),[_,v]=(0,n.useState)([]),[S,A]=(0,n.useState)(s?s[0]:null);if(window.addEventListener("beforeunload",function(){sessionStorage.clear()}),(0,n.useEffect)(()=>{if(j){let e=(0,eA.o)(j);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),y(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),i(l)}else console.log("User role not defined");e.user_email?d(e.user_email):console.log("User Email is not set ".concat(e))}}if(l&&g&&t&&!a&&!u){let e=sessionStorage.getItem("userModels"+l);e?v(JSON.parse(e)):(async()=>{try{let e=await f(g,l,t,!1,null,null);if(console.log("received teams in user dashboard: ".concat(Object.keys(e),"; team values: ").concat(Object.entries(e.teams))),"Admin"==t){let e=await w(g);x(e),console.log("globalSpend:",e)}else x(e.user_info);h(e.keys),m(e.teams),A(e.teams?e.teams[0]:null),sessionStorage.setItem("userData"+l,JSON.stringify(e.keys)),sessionStorage.setItem("userSpendData"+l,JSON.stringify(e.user_info));let s=(await k(g,l,t)).data.map(e=>e.id);console.log("available_model_names:",s),v(s),console.log("userModels:",_),sessionStorage.setItem("userModels"+l,JSON.stringify(s))}catch(e){console.error("There was an error fetching the data",e)}})()}},[l,j,g,a,t]),(0,n.useEffect)(()=>{if(null!==a&&null!=S){let e=0;for(let l of a)S.hasOwnProperty("team_id")&&null!==l.team_id&&l.team_id===S.team_id&&(e+=l.spend);b(e)}else if(null!==a){let e=0;for(let l of a)e+=l.spend;b(e)}},[S]),null==l||null==j){let e="/sso/key/generate";return console.log("Full URL:",e),window.location.href=e,null}if(null==g)return null;if(null==t&&i("App Owner"),t&&"Admin Viewer"==t){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to create keys"})]})}return console.log("inside user dashboard, selected team",S),console.log("teamSpend: ".concat(Z)),(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsx)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(ev,{userID:l,userRole:t,accessToken:g,userSpend:Z}),(0,r.jsx)(ek,{userID:l,userRole:t,accessToken:g,selectedTeam:S||null,data:a,setData:h,teams:s}),(0,r.jsx)(er,{userID:l,team:S||null,userRole:t,accessToken:g,data:a,setData:h},S?S.team_id:null),(0,r.jsx)(eS,{teams:s,setSelectedTeam:A})]})})})},eI=t(26780),eP=t(15595),eT=t(6698),eE=t(92836),eO=t(26734),eF=t(41608),eM=t(32126),eR=t(23682),eD=t(52273),eL=t(47047),eU=t(76628),ez=t(38302),eB=t(28683),eq=t(1460),eV=t(78578),eK=e=>{let{modelID:l,accessToken:t}=e,[s,a]=(0,n.useState)(!1),o=async()=>{try{h.ZP.info("Making API Call"),a(!0);let e=await p(t,l);console.log("model delete Response:",e),h.ZP.success("Model ".concat(l," deleted successfully")),a(!1)}catch(e){console.error("Error deleting the model:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(ex.Z,{onClick:()=>a(!0),icon:ei.Z,size:"sm"}),(0,r.jsx)(ee.Z,{open:s,onOk:o,okType:"danger",onCancel:()=>a(!1),children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,r.jsx)(H.Z,{children:"Delete Model"}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsx)("p",{children:"Are you sure you want to delete this model? This action is irreversible."})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("p",{children:["Model ID: ",(0,r.jsx)("b",{children:l})]})})]})})]})},eG=t(97766),eJ=t(46495);let{Title:eW,Link:eY}=eN.default;(s=a||(a={})).OpenAI="OpenAI",s.Azure="Azure",s.Anthropic="Anthropic",s.Google_AI_Studio="Gemini (Google AI Studio)",s.Bedrock="Amazon Bedrock",s.OpenAI_Compatible="OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)",s.Vertex_AI="Vertex AI (Anthropic, Gemini, etc.)";let eH={OpenAI:"openai",Azure:"azure",Anthropic:"anthropic",Google_AI_Studio:"gemini",Bedrock:"bedrock",OpenAI_Compatible:"openai",Vertex_AI:"vertex_ai"};var e$=e=>{var l,t,s;let{accessToken:o,token:i,userRole:c,userID:d}=e,[m,p]=(0,n.useState)({data:[]}),[j,g]=(0,n.useState)([]),[y]=Q.Z.useForm(),[Z,f]=(0,n.useState)(null),[w,_]=(0,n.useState)([]),k=Object.values(a).filter(e=>isNaN(Number(e))),[v,S]=(0,n.useState)("OpenAI"),[A,N]=(0,n.useState)("");if((0,n.useEffect)(()=>{if(!o||!i||!c||!d)return;let e=async()=>{try{let e=await b(o,d,c);if(console.log("Model data response:",e.data),p(e),"Admin"===c&&o){let e=await O(o);console.log("Pending Requests:",j),g(e.requests||[])}}catch(e){console.error("There was an error fetching the model data",e)}};o&&i&&c&&d&&e();let l=async()=>{let e=await u();console.log("received model cost map data: ".concat(Object.keys(e))),f(e)};null==Z&&l()},[o,i,c,d,Z]),!m||!o||!i||!c||!d)return(0,r.jsx)("div",{children:"Loading..."});let C=[];for(let e=0;e(console.log("GET PROVIDER CALLED! - ".concat(Z)),null!=Z&&"object"==typeof Z&&e in Z)?Z[e].litellm_provider:"openai";if(a){let e=a.split("/"),l=e[0];n=1===e.length?h(a):l}else n="openai";r&&(o=null==r?void 0:r.input_cost_per_token,i=null==r?void 0:r.output_cost_per_token,c=null==r?void 0:r.max_tokens),(null==s?void 0:s.litellm_params)&&(d=Object.fromEntries(Object.entries(null==s?void 0:s.litellm_params).filter(e=>{let[l]=e;return"model"!==l&&"api_base"!==l}))),m.data[e].provider=n,m.data[e].input_cost=o,m.data[e].output_cost=i,m.data[e].max_tokens=c,m.data[e].api_base=null==s?void 0:null===(t=s.litellm_params)||void 0===t?void 0:t.api_base,m.data[e].cleanedLitellmParams=d,C.push(s.model_name),console.log(m.data[e])}if(c&&"Admin Viewer"==c){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to view all models"})]})}let I=e=>{console.log("received provider string: ".concat(e));let l=Object.keys(a).find(l=>a[l]===e);if(l){let e=eH[l];console.log("mappingResult: ".concat(e));let t=[];"object"==typeof Z&&Object.entries(Z).forEach(l=>{let[s,a]=l;null!==a&&"object"==typeof a&&"litellm_provider"in a&&(a.litellm_provider===e||a.litellm_provider.includes(e))&&t.push(s)}),_(t),console.log("providerModels: ".concat(w))}},P=async()=>{try{h.ZP.info("Running health check..."),N("");let e=await K(o);N(e)}catch(e){console.error("Error running health check:",e),N("Error running health check")}},T=async e=>{try{let l=Object.values(e.model);console.log("received deployments: ".concat(l)),console.log("received type of deployments: ".concat(typeof l)),l.forEach(async l=>{console.log("litellm_model: ".concat(l));let t={},s={};t.model=l;let a="";for(let[l,r]of Object.entries(e))if("model_name"==l)a+=r;else if("custom_llm_provider"==l)continue;else if("model"==l)continue;else if("base_model"===l)s[l]=r;else if("litellm_extra_params"==l){console.log("litellm_extra_params:",r);let e={};if(r&&void 0!=r){try{e=JSON.parse(r)}catch(e){throw h.ZP.error("Failed to parse LiteLLM Extra Params: "+e,20),Error("Failed to parse litellm_extra_params: "+e)}for(let[l,s]of Object.entries(e))t[l]=s}}else t[l]=r;let r={model_name:a,litellm_params:t,model_info:s},n=await x(o,r);console.log("response for model create call: ".concat(n.data))}),y.resetFields()}catch(e){h.ZP.error("Failed to create model: "+e,20)}};return console.log("selectedProvider: ".concat(v)),console.log("providerModels.length: ".concat(w.length)),(0,r.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,r.jsxs)(eO.Z,{className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,r.jsxs)(eF.Z,{className:"mt-2",children:[(0,r.jsx)(eE.Z,{children:"All Models"}),(0,r.jsx)(eE.Z,{children:"Add Model"}),(0,r.jsx)(eE.Z,{children:(0,r.jsx)("pre",{children:"/health Models"})})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsx)(J.Z,{children:(0,r.jsx)(em.Z,{children:(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Model Name "}),(0,r.jsx)(eZ.Z,{children:"Provider"}),"Admin"===c&&(0,r.jsx)(eZ.Z,{children:"API Base"}),(0,r.jsx)(eZ.Z,{children:"Extra litellm Params"}),(0,r.jsx)(eZ.Z,{children:"Input Price per token ($)"}),(0,r.jsx)(eZ.Z,{children:"Output Price per token ($)"}),(0,r.jsx)(eZ.Z,{children:"Max Tokens"})]})}),(0,r.jsx)(ej.Z,{children:m.data.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:e.model_name})}),(0,r.jsx)(eg.Z,{children:e.provider}),"Admin"===c&&(0,r.jsx)(eg.Z,{children:e.api_base}),(0,r.jsx)(eg.Z,{children:(0,r.jsxs)(eI.Z,{children:[(0,r.jsx)(eT.Z,{children:(0,r.jsx)(Y.Z,{children:"Litellm params"})}),(0,r.jsx)(eP.Z,{children:(0,r.jsx)("pre",{children:JSON.stringify(e.cleanedLitellmParams,null,2)})})]})}),(0,r.jsx)(eg.Z,{children:e.input_cost}),(0,r.jsx)(eg.Z,{children:e.output_cost}),(0,r.jsx)(eg.Z,{children:e.max_tokens}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(eK,{modelID:e.model_info.id,accessToken:o})})]},l))})]})})})}),(0,r.jsxs)(eM.Z,{className:"h-full",children:[(0,r.jsx)(eW,{level:2,children:"Add new model"}),(0,r.jsx)(em.Z,{children:(0,r.jsxs)(Q.Z,{form:y,onFinish:()=>{y.validateFields().then(e=>{T(e)}).catch(e=>{console.error("Validation failed:",e)})},labelCol:{span:10},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Provider:",name:"custom_llm_provider",tooltip:"E.g. OpenAI, Azure OpenAI, Anthropic, Bedrock, etc.",labelCol:{span:10},labelAlign:"left",children:(0,r.jsx)(ew.Z,{value:v.toString(),children:k.map((e,l)=>(0,r.jsx)(eb.Z,{value:e,onClick:()=>{I(e),S(e)},children:e},l))})}),(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Public Model Name",name:"model_name",tooltip:"Model name your users will pass in. Also used for load-balancing, LiteLLM will load balance between all models with this public name.",className:"mb-0",children:(0,r.jsx)(eD.Z,{placeholder:"Vertex AI (Anthropic, Gemini, etc.)"===(s=v.toString())?"gemini-pro":"Anthropic"==s?"claude-3-opus":"Amazon Bedrock"==s?"claude-3-opus":"Gemini (Google AI Studio)"==s?"gemini-pro":"gpt-3.5-turbo"})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Model name your users will pass in."})})]}),(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"LiteLLM Model Name(s)",name:"model",tooltip:"Actual model name used for making litellm.completion() call.",className:"mb-0",children:"Azure"===v?(0,r.jsx)(eD.Z,{placeholder:"Enter model name"}):w.length>0?(0,r.jsx)(eL.Z,{value:w,children:w.map((e,l)=>(0,r.jsx)(eU.Z,{value:e,children:e},l))}):(0,r.jsx)(eD.Z,{placeholder:"gpt-3.5-turbo-0125"})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Actual model name used for making ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/providers",target:"_blank",children:"litellm.completion() call"}),". We'll ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/proxy/reliability#step-1---set-deployments-on-config",target:"_blank",children:"loadbalance"})," models with the same 'public name'"]})})]}),"Amazon Bedrock"!=v&&"Vertex AI (Anthropic, Gemini, etc.)"!=v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Key",name:"api_key",children:(0,r.jsx)(eD.Z,{placeholder:"sk-",type:"password"})}),"OpenAI"==v&&(0,r.jsx)(Q.Z.Item,{label:"Organization ID",name:"organization_id",children:(0,r.jsx)(eD.Z,{placeholder:"[OPTIONAL] my-unique-org"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Project",name:"vertex_project",children:(0,r.jsx)(eD.Z,{placeholder:"adroit-cadet-1234.."})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Location",name:"vertex_location",children:(0,r.jsx)(eD.Z,{placeholder:"us-east-1"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Credentials",name:"vertex_credentials",className:"mb-0",children:(0,r.jsx)(eJ.Z,{name:"file",accept:".json",beforeUpload:e=>{if("application/json"===e.type){let l=new FileReader;l.onload=e=>{if(e.target){let l=e.target.result;y.setFieldsValue({vertex_credentials:l})}},l.readAsText(e)}return!1},onChange(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?h.ZP.success("".concat(e.file.name," file uploaded successfully")):"error"===e.file.status&&h.ZP.error("".concat(e.file.name," file upload failed."))},children:(0,r.jsx)(es.ZP,{icon:(0,r.jsx)(eG.Z,{}),children:"Click to Upload"})})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Give litellm a gcp service account(.json file), so it can make the relevant calls"})})]}),("Azure"==v||"OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)"==v)&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Base",name:"api_base",children:(0,r.jsx)(eD.Z,{placeholder:"https://..."})}),"Azure"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Version",name:"api_version",children:(0,r.jsx)(eD.Z,{placeholder:"2023-07-01-preview"})}),"Azure"==v&&(0,r.jsxs)(Q.Z.Item,{label:"Base Model",name:"base_model",children:[(0,r.jsx)(eD.Z,{placeholder:"azure/gpt-3.5-turbo"}),(0,r.jsxs)(Y.Z,{children:["The actual model your azure deployment uses. Used for accurate cost tracking. Select name from ",(0,r.jsx)(eY,{href:"https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json",target:"_blank",children:"here"})]})]}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Access Key ID",name:"aws_access_key_id",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Secret Access Key",name:"aws_secret_access_key",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Region Name",name:"aws_region_name",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:"us-east-1"})}),(0,r.jsx)(Q.Z.Item,{label:"LiteLLM Params",name:"litellm_extra_params",tooltip:"Optional litellm params used for making a litellm.completion() call.",className:"mb-0",children:(0,r.jsx)(eV.Z,{rows:4,placeholder:'{ "rpm": 100, "timeout": 0, "stream_timeout": 0 }'})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Pass JSON of litellm supported params ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/completion/input",target:"_blank",children:"litellm.completion() call"})]})})]})]}),(0,r.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add Model"})}),(0,r.jsx)(eq.Z,{title:"Get help on our github",children:(0,r.jsx)(eN.default.Link,{href:"https://github.com/BerriAI/litellm/issues",children:"Need Help?"})})]})})]}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(Y.Z,{children:"`/health` will run a very small request through your models configured on litellm"}),(0,r.jsx)(W.Z,{onClick:P,children:"Run `/health`"}),A&&(0,r.jsx)("pre",{children:JSON.stringify(A,null,2)})]})})]})]})})};let{Option:eX}=X.default;var eQ=e=>{let{userID:l,accessToken:t}=e,[s]=Q.Z.useForm(),[a,o]=(0,n.useState)(!1),[i,c]=(0,n.useState)(null),[d,m]=(0,n.useState)([]);(0,n.useEffect)(()=>{(async()=>{try{let e=await k(t,l,"any"),s=[];for(let l=0;l{o(!1),s.resetFields()},x=()=>{o(!1),c(null),s.resetFields()},p=async e=>{try{h.ZP.info("Making API Call"),o(!0),console.log("formValues in create user:",e);let a=await g(t,l,e);console.log("user create Response:",a),c(a.key),h.ZP.success("API user Created"),s.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the user:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>o(!0),children:"+ Create New User"}),(0,r.jsx)(ee.Z,{title:"Create User",visible:a,width:800,footer:null,onOk:u,onCancel:x,children:(0,r.jsxs)(Q.Z,{form:s,onFinish:p,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",children:(0,r.jsx)(el.Z,{placeholder:"Enter User ID"})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",children:(0,r.jsx)(el.Z,{placeholder:"ai_team"})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsx)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:d.map(e=>(0,r.jsx)(eX,{value:e,children:e},e))})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Duration (eg: 30s, 30h, 30d)",name:"duration",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,r.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create User"})})]})}),i&&(0,r.jsxs)(ee.Z,{title:"Save Your User",visible:a,onOk:u,onCancel:x,footer:null,children:[(0,r.jsxs)("p",{children:["Please save this secret user somewhere safe and accessible. For security reasons, ",(0,r.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret user, you will need to generate a new one."]}),(0,r.jsx)("p",{children:null!=i?"API user: ".concat(i):"User being created, this might take 30s"})]})]})},e0=e=>{let{accessToken:l,token:t,keys:s,userRole:a,userID:o,setKeys:i}=e,[c,d]=(0,n.useState)(null),[m,h]=(0,n.useState)(null),[u,x]=(0,n.useState)(0),[p,j]=n.useState(null),[g,y]=(0,n.useState)(null);if((0,n.useEffect)(()=>{if(!l||!t||!a||!o)return;let e=async()=>{try{let e=await f(l,null,a,!0,u,25);console.log("user data response:",e),d(e)}catch(e){console.error("There was an error fetching the model data",e)}};l&&t&&a&&o&&e();let s=async()=>{try{let e=await P(l,null);console.log("user data response:",e),h(e)}catch(e){console.error("There was an error fetching the model data",e)}};a&&("Admin"==a||"Admin Viewer"==a)&&!m&&s()},[l,t,a,o,u]),!c||!l||!t||!a||!o)return(0,r.jsx)("div",{children:"Loading..."});let Z=async e=>{try{let t=await P(l,e);console.log("user data response:",t),h(t)}catch(e){console.error("There was an error fetching the model data",e)}};return(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsxs)(J.Z,{className:"gap-2 p-2 h-[75vh] w-full mt-8",children:[(0,r.jsx)(eQ,{userID:o,accessToken:l}),(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4",children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{variant:"line",defaultValue:"1",children:[(0,r.jsx)(eE.Z,{value:"1",children:"Key Owners"}),(0,r.jsx)(eE.Z,{value:"2",children:"End-Users"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"User ID"}),(0,r.jsx)(eZ.Z,{children:"User Email"}),(0,r.jsx)(eZ.Z,{children:"User Models"}),(0,r.jsx)(eZ.Z,{children:"User Spend ($ USD)"}),(0,r.jsx)(eZ.Z,{children:"User Max Budget ($ USD)"}),(0,r.jsx)(eZ.Z,{children:"User API Key Aliases"})]})}),(0,r.jsx)(ej.Z,{children:c.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_id}),(0,r.jsx)(eg.Z,{children:e.user_email}),(0,r.jsx)(eg.Z,{children:e.models&&e.models.length>0?e.models:"All Models"}),(0,r.jsx)(eg.Z,{children:e.spend?e.spend:0}),(0,r.jsx)(eg.Z,{children:e.max_budget?e.max_budget:"Unlimited"}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(J.Z,{numItems:2,children:e&&e.key_aliases&&e.key_aliases.filter(e=>null!==e).length>0?(0,r.jsx)(ec.Z,{size:"xs",color:"indigo",children:e.key_aliases.filter(e=>null!==e).join(", ")}):(0,r.jsx)(ec.Z,{size:"xs",color:"gray",children:"No Keys"})})})]},e.user_id))})]})}),(0,r.jsxs)(eM.Z,{children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex-1 flex justify-between items-center",children:[(0,r.jsx)(Y.Z,{className:"w-1/4 mr-2 text-right",children:"Key"}),(0,r.jsx)(ew.Z,{defaultValue:"1",className:"w-3/4",children:null==s?void 0:s.map((e,l)=>{if(e&&null!==e.key_name&&e.key_name.length>0)return(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>Z(e.token),children:e.key_name},l)})})]})]}),(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"End User"}),(0,r.jsx)(eZ.Z,{children:"Spend"}),(0,r.jsx)(eZ.Z,{children:"Total Events"})]})}),(0,r.jsx)(ej.Z,{children:null==m?void 0:m.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.end_user}),(0,r.jsx)(eg.Z,{children:e.total_spend}),(0,r.jsx)(eg.Z,{children:e.total_events})]},l))})]})]})]})]})}),function(){if(!c)return null;let e=Math.ceil(c.length/25);return(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsxs)("div",{children:["Showing Page ",u+1," of ",e]}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-l focus:outline-none",disabled:0===u,onClick:()=>x(u-1),children:"← Prev"}),(0,r.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-r focus:outline-none",onClick:()=>{x(u+1)},children:"Next →"})]})]})}()]})})},e1=e=>{let{teams:l,searchParams:t,accessToken:s,setTeams:a,userID:o,userRole:i}=e,[c]=Q.Z.useForm(),[d]=Q.Z.useForm(),{Title:m,Paragraph:u}=eN.default,[x,p]=(0,n.useState)(""),[j,g]=(0,n.useState)(!1),[y,f]=(0,n.useState)(l?l[0]:null),[w,b]=(0,n.useState)(!1),[_,v]=(0,n.useState)(!1),[S,A]=(0,n.useState)([]),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),T=e=>{f(e),g(!0)},E=async e=>{let t=e.team_id;if(console.log("handleEditSubmit:",e),null==s)return;let r=await D(s,e);l&&a(l.map(e=>e.team_id===t?r.data:e)),h.ZP.success("Team updated successfully"),g(!1),f(null)},O=async e=>{P(e),C(!0)},F=async()=>{if(null!=I&&null!=l&&null!=s){try{await Z(s,I);let e=l.filter(e=>e.team_id!==I);a(e)}catch(e){console.error("Error deleting the team:",e)}C(!1),P(null)}};(0,n.useEffect)(()=>{(async()=>{try{if(null===o||null===i)return;if(null!==s){let e=(await k(s,o,i)).data.map(e=>e.id);console.log("available_model_names:",e),A(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,o,i]);let R=async e=>{try{if(null!=s){h.ZP.info("Creating Team");let t=await M(s,e);null!==l?a([...l,t]):a([t]),console.log("response for team create call: ".concat(t)),h.ZP.success("Team created"),b(!1)}}catch(e){console.error("Error creating the team:",e),h.ZP.error("Error creating the team: "+e,20)}},U=async e=>{try{if(null!=s&&null!=l){h.ZP.info("Adding Member");let t={role:"user",user_email:e.user_email,user_id:e.user_id},r=await L(s,y.team_id,t);console.log("response for team create call: ".concat(r.data));let n=l.findIndex(e=>(console.log("team.team_id=".concat(e.team_id,"; response.data.team_id=").concat(r.data.team_id)),e.team_id===r.data.team_id));if(console.log("foundIndex: ".concat(n)),-1!==n){let e=[...l];e[n]=r.data,a(e),f(r.data)}v(!1)}}catch(e){console.error("Error creating the team:",e)}};return console.log("received teams ".concat(l)),(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(m,{level:4,children:"All Teams"}),(0,r.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:[(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Team Name"}),(0,r.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,r.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,r.jsx)(eZ.Z,{children:"Models"}),(0,r.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,r.jsx)(ej.Z,{children:l&&l.length>0?l.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.team_alias}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.spend}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.max_budget?e.max_budget:"No limit"}),(0,r.jsx)(eg.Z,{style:{maxWidth:"8-x",whiteSpace:"pre-wrap",overflow:"hidden"},children:Array.isArray(e.models)?(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:(0,r.jsxs)(Y.Z,{children:["TPM:"," ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,r.jsx)("br",{}),"RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>T(e)}),(0,r.jsx)(ex.Z,{onClick:()=>O(e.team_id),icon:ei.Z,size:"sm"})]})]},e.team_id)):null})]}),N&&(0,r.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,r.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,r.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,r.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Team"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this team ?"})})]})})}),(0,r.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)(W.Z,{onClick:F,color:"red",className:"ml-2",children:"Delete"}),(0,r.jsx)(W.Z,{onClick:()=>{C(!1),P(null)},children:"Cancel"})]})]})]})})]})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>b(!0),children:"+ Create New Team"}),(0,r.jsx)(ee.Z,{title:"Create Team",visible:w,width:800,footer:null,onOk:()=>{b(!1),c.resetFields()},onCancel:()=>{b(!1),c.resetFields()},children:(0,r.jsxs)(Q.Z,{form:c,onFinish:R,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S.map(e=>(0,r.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create Team"})})]})})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(m,{level:4,children:"Team Members"}),(0,r.jsx)(u,{children:"If you belong to multiple teams, this setting controls which teams members you see."}),l&&l.length>0?(0,r.jsx)(ew.Z,{defaultValue:"0",children:l.map((e,l)=>(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>{f(e)},children:e.team_alias},l))}):(0,r.jsxs)(u,{children:["No team created. ",(0,r.jsx)("b",{children:"Defaulting to personal account."})]})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Member Name"}),(0,r.jsx)(eZ.Z,{children:"Role"})]})}),(0,r.jsx)(ej.Z,{children:y?y.members_with_roles.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,r.jsx)(eg.Z,{children:e.role})]},l)):null})]})}),y&&(0,r.jsx)(e=>{let{visible:l,onCancel:t,team:s,onSubmit:a}=e,[n]=Q.Z.useForm();return(0,r.jsx)(ee.Z,{title:"Edit Team",visible:l,width:800,footer:null,onOk:()=>{n.validateFields().then(e=>{a({...e,team_id:s.team_id}),n.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,r.jsxs)(Q.Z,{form:n,onFinish:E,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S&&S.map(e=>(0,r.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"team_id",hidden:!0})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Edit Team"})})]})})},{visible:j,onCancel:()=>{g(!1),f(null)},team:y,onSubmit:E})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(W.Z,{className:"mx-auto mb-5",onClick:()=>v(!0),children:"+ Add member"}),(0,r.jsx)(ee.Z,{title:"Add member",visible:_,width:800,footer:null,onOk:()=>{v(!1),d.resetFields()},onCancel:()=>{v(!1),d.resetFields()},children:(0,r.jsxs)(Q.Z,{form:c,onFinish:U,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,r.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]})})]})]})})},e2=t(18190),e4=e=>{let l,{searchParams:t,accessToken:s,showSSOBanner:a}=e,[o]=Q.Z.useForm(),[i]=Q.Z.useForm(),{Title:c,Paragraph:d}=eN.default,[m,u]=(0,n.useState)(""),[x,p]=(0,n.useState)(null),[j,g]=(0,n.useState)(!1),[y,Z]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),[b,_]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1);try{l=window.location.origin}catch(e){l=""}l+="/fallback/login";let S=()=>{v(!1)},A=["proxy_admin","proxy_admin_viewer"];(0,n.useEffect)(()=>{(async()=>{if(null!=s){let e=[],l=await F(s,"proxy_admin_viewer");l.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy viewers: ".concat(l));let t=await F(s,"proxy_admin");t.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy admins: ".concat(t)),console.log("combinedList: ".concat(e)),p(e)}})()},[s]);let N=()=>{w(!1),i.resetFields()},C=()=>{w(!1),i.resetFields()},I=e=>(0,r.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,r.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]}),P=(e,l,t)=>(0,r.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"User Role",name:"user_role",labelCol:{span:10},labelAlign:"left",children:(0,r.jsx)(ew.Z,{value:l,children:A.map((e,l)=>(0,r.jsx)(eb.Z,{value:e,children:e},l))})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"user_id",hidden:!0,initialValue:t,valuePropName:"user_id",className:"mt-8",children:(0,r.jsx)(el.Z,{value:t,disabled:!0})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Update role"})})]}),T=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,null);console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),h.ZP.success("Refresh tab to see updated user role"),w(!1)}}catch(e){console.error("Error creating the key:",e)}},E=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,"proxy_admin_viewer");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),g(!1)}}catch(e){console.error("Error creating the key:",e)}},O=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call"),e.user_email,e.user_id;let l=await U(s,e,"proxy_admin");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),Z(!1)}}catch(e){console.error("Error creating the key:",e)}},M=async e=>{null!=s&&V(s,{environment_variables:{PROXY_BASE_URL:e.proxy_base_url,GOOGLE_CLIENT_ID:e.google_client_id,GOOGLE_CLIENT_SECRET:e.google_client_secret}})};return console.log("admins: ".concat(null==x?void 0:x.length)),(0,r.jsxs)("div",{className:"w-full m-2 mt-2 p-8",children:[(0,r.jsx)(c,{level:4,children:"Admin Access "}),(0,r.jsxs)(d,{children:[a&&(0,r.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/ui#restrict-ui-access",children:"Requires SSO Setup"}),(0,r.jsx)("br",{}),(0,r.jsx)("b",{children:"Proxy Admin: "})," Can create keys, teams, users, add models, etc. ",(0,r.jsx)("br",{}),(0,r.jsx)("b",{children:"Proxy Admin Viewer: "}),"Can just view spend. They cannot create keys, teams or grant users access to new models."," "]}),(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-2 w-full",children:[(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Member Name"}),(0,r.jsx)(eZ.Z,{children:"Role"})]})}),(0,r.jsx)(ej.Z,{children:x?x.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,r.jsx)(eg.Z,{children:e.user_role}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>w(!0)}),(0,r.jsx)(ee.Z,{title:"Update role",visible:f,width:800,footer:null,onOk:N,onCancel:C,children:P(T,e.user_role,e.user_id)})]})]},l)):null})]})})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("div",{className:"flex justify-start",children:[(0,r.jsx)(W.Z,{className:"mr-4 mb-5",onClick:()=>Z(!0),children:"+ Add admin"}),(0,r.jsx)(ee.Z,{title:"Add admin",visible:y,width:800,footer:null,onOk:()=>{Z(!1),i.resetFields()},onCancel:()=>{Z(!1),i.resetFields()},children:I(O)}),(0,r.jsx)(W.Z,{className:"mb-5",onClick:()=>g(!0),children:"+ Add viewer"}),(0,r.jsx)(ee.Z,{title:"Add viewer",visible:j,width:800,footer:null,onOk:()=>{g(!1),i.resetFields()},onCancel:()=>{g(!1),i.resetFields()},children:I(E)})]})})]}),(0,r.jsxs)(J.Z,{children:[(0,r.jsx)(c,{level:4,children:"Add SSO"}),(0,r.jsxs)("div",{className:"flex justify-start mb-4",children:[(0,r.jsx)(W.Z,{onClick:()=>_(!0),children:"Add SSO"}),(0,r.jsx)(ee.Z,{title:"Add SSO",visible:b,width:800,footer:null,onOk:()=>{_(!1),o.resetFields()},onCancel:()=>{_(!1),o.resetFields()},children:(0,r.jsxs)(Q.Z,{form:o,onFinish:e=>{O(e),M(e),_(!1),v(!0)},labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Admin Email",name:"user_email",rules:[{required:!0,message:"Please enter the email of the proxy admin"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"PROXY BASE URL",name:"proxy_base_url",rules:[{required:!0,message:"Please enter the proxy base url"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT ID",name:"google_client_id",rules:[{required:!0,message:"Please enter the google client id"}],children:(0,r.jsx)(el.Z.Password,{})}),(0,r.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT SECRET",name:"google_client_secret",rules:[{required:!0,message:"Please enter the google client secret"}],children:(0,r.jsx)(el.Z.Password,{})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})}),(0,r.jsxs)(ee.Z,{title:"SSO Setup Instructions",visible:k,width:800,footer:null,onOk:S,onCancel:()=>{v(!1)},children:[(0,r.jsx)("p",{children:"Follow these steps to complete the SSO setup:"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"1. DO NOT Exit this TAB"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"2. Open a new tab, visit your proxy base url"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"3. Confirm your SSO is configured correctly and you can login on the new Tab"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"4. If Step 3 is successful, you can close this tab"}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{onClick:S,children:"Done"})})]})]}),(0,r.jsxs)(e2.Z,{title:"Login without SSO",color:"teal",children:["If you need to login without sso, you can access ",(0,r.jsxs)("a",{href:l,target:"_blank",children:[(0,r.jsx)("b",{children:l})," "]})]})]})]})},e8=e=>{let{accessToken:l,userRole:t,userID:s}=e,[a,o]=(0,n.useState)([]),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null),[x,p]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.data)})},[l,t,s]);let j=e=>{p(e),console.log("Selected values:",e)},g=e=>{if(!l)return;let t=Object.fromEntries(Object.entries(e.variables).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t),console.log("updateAlertTypes",x);try{V(l,{environment_variables:t,general_settings:{alert_types:x}})}catch(e){h.ZP.error("Failed to update callback: "+e,20)}h.ZP.success("Callback updated successfully")},y=()=>{l&&d.validateFields().then(e=>{console.log("Form values:",e),"langfuse"===e.callback?(V(l,{environment_variables:{LANGFUSE_PUBLIC_KEY:e.langfusePublicKey,LANGFUSE_SECRET_KEY:e.langfusePrivateKey},litellm_settings:{success_callback:[e.callback]}}),o(a?[...a,e.callback]:[e.callback])):"slack"===e.callback&&(V(l,{general_settings:{alerting:["slack"],alerting_threshold:300},environment_variables:{SLACK_WEBHOOK_URL:e.slackWebhookUrl}}),o(a?[...a,e.callback]:[e.callback])),c(!1),d.resetFields(),u(null)})};return l?(0,r.jsxs)("div",{className:"w-full mx-4",children:[(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,r.jsx)(H.Z,{children:"Logging Callbacks"}),(0,r.jsxs)(em.Z,{children:[(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Callback"}),(0,r.jsx)(eZ.Z,{children:"Callback Env Vars"})]})}),(0,r.jsx)(ej.Z,{children:a.map((e,t)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(ec.Z,{color:"emerald",children:e.name})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)("ul",{children:Object.entries(e.variables).map(e=>{let[l,t]=e;return(0,r.jsxs)("li",{children:[(0,r.jsx)(Y.Z,{className:"mt-2",children:l}),"LANGFUSE_HOST"===l?(0,r.jsx)("p",{children:"default value=https://cloud.langfuse.com"}):(0,r.jsx)("div",{}),(0,r.jsx)(eD.Z,{name:l,defaultValue:t,type:"password"})]},l)})}),e.all_alert_types&&(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{className:"mt-2",children:"Alerting Types"}),(0,r.jsx)(X.default,{mode:"multiple",style:{width:"100%"},placeholder:"Select Alerting Types",optionLabelProp:"label",onChange:j,defaultValue:e.alerting_types,children:e.all_alert_types.map(e=>(0,r.jsx)(X.default.Option,{value:e,label:e,children:e},e))})]}),(0,r.jsx)(W.Z,{className:"mt-2",onClick:()=>g(e),children:"Save Changes"}),(0,r.jsx)(W.Z,{onClick:()=>B(l,e.name),className:"mx-2",children:"Test Callback"})]})]},t))})]}),(0,r.jsx)(W.Z,{size:"xs",className:"mt-2",onClick:()=>{console.log("Add callback clicked"),c(!0)},children:"Add Callback"})]})]}),(0,r.jsx)(ee.Z,{title:"Add Callback",visible:i,onOk:y,width:800,onCancel:()=>{c(!1),d.resetFields(),u(null)},footer:null,children:(0,r.jsxs)(Q.Z,{form:d,layout:"vertical",onFinish:y,children:[(0,r.jsx)(Q.Z.Item,{label:"Callback",name:"callback",rules:[{required:!0,message:"Please select a callback"}],children:(0,r.jsxs)(X.default,{onChange:e=>{u(e)},children:[(0,r.jsx)(X.default.Option,{value:"langfuse",children:"langfuse"}),(0,r.jsx)(X.default.Option,{value:"slack",children:"slack alerting"})]})}),"langfuse"===m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"LANGFUSE_PUBLIC_KEY",name:"langfusePublicKey",rules:[{required:!0,message:"Please enter the public key"}],children:(0,r.jsx)(el.Z.Password,{})}),(0,r.jsx)(Q.Z.Item,{label:"LANGFUSE_PRIVATE_KEY",name:"langfusePrivateKey",rules:[{required:!0,message:"Please enter the private key"}],children:(0,r.jsx)(el.Z.Password,{})})]}),"slack"===m&&(0,r.jsx)(Q.Z.Item,{label:"SLACK_WEBHOOK_URL",name:"slackWebhookUrl",rules:[{required:!0,message:"Please enter the Slack webhook URL"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})})]}):null},e3=e=>{let{accessToken:l,userRole:t,userID:s}=e,[a,o]=(0,n.useState)({}),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.router_settings)})},[l,t,s]);let x=e=>{if(!l)return;console.log("router_settings",e);let t=Object.fromEntries(Object.entries(e).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t);try{V(l,{router_settings:t})}catch(e){h.ZP.error("Failed to update router settings: "+e,20)}h.ZP.success("router settings updated successfully")};return l?(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,r.jsx)(H.Z,{children:"Router Settings"}),(0,r.jsx)(em.Z,{children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Setting"}),(0,r.jsx)(eZ.Z,{children:"Value"})]})}),(0,r.jsx)(ej.Z,{children:Object.entries(a).map(e=>{let[l,t]=e;return(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:l})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(eD.Z,{name:l,defaultValue:"object"==typeof t?JSON.stringify(t,null,2):t.toString()})})]},l)})})]})}),(0,r.jsx)(G.Z,{children:(0,r.jsx)(W.Z,{className:"mt-2",onClick:()=>x(a),children:"Save Changes"})})]})}):null},e5=t(12968),e6=t(67951);async function e7(e,l,t,s){console.log("isLocal:",!1);let a=window.location.origin,r=new e5.ZP.OpenAI({apiKey:s,baseURL:a,dangerouslyAllowBrowser:!0});try{for await(let s of(await r.chat.completions.create({model:t,stream:!0,messages:[{role:"user",content:e}]})))console.log(s),s.choices[0].delta.content&&l(s.choices[0].delta.content)}catch(e){h.ZP.error("Error occurred while generating model response. Please try again. Error: ".concat(e),20)}}var e9=e=>{let{accessToken:l,token:t,userRole:s,userID:a}=e,[o,i]=(0,n.useState)(""),[c,d]=(0,n.useState)(""),[m,h]=(0,n.useState)([]),[u,x]=(0,n.useState)(void 0),[p,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&a&&(async()=>{try{let e=await k(l,a,s);if(console.log("model_info:",e),(null==e?void 0:e.data.length)>0){let l=e.data.map(e=>({value:e.id,label:e.id}));console.log(l),j(l),x(e.data[0].id)}}catch(e){console.error("Error fetching model info:",e)}})()},[l,a,s]);let g=(e,l)=>{h(t=>{let s=t[t.length-1];return s&&s.role===e?[...t.slice(0,t.length-1),{role:e,content:s.content+l}]:[...t,{role:e,content:l}]})},y=async()=>{if(""!==c.trim()&&o&&t&&s&&a){h(e=>[...e,{role:"user",content:c}]);try{u&&await e7(c,e=>g("assistant",e),u,o)}catch(e){console.error("Error fetching model response",e),g("assistant","Error fetching model response")}d("")}};if(s&&"Admin Viewer"==s){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to test models"})]})}return(0,r.jsx)("div",{style:{width:"100%",position:"relative"},children:(0,r.jsx)(J.Z,{className:"gap-2 p-8 h-[80vh] w-full mt-2",children:(0,r.jsx)(em.Z,{children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{children:[(0,r.jsx)(eE.Z,{children:"Chat"}),(0,r.jsx)(eE.Z,{children:"API Reference"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsxs)(eM.Z,{children:[(0,r.jsx)("div",{className:"sm:max-w-2xl",children:(0,r.jsxs)(J.Z,{numItems:2,children:[(0,r.jsxs)(G.Z,{children:[(0,r.jsx)(Y.Z,{children:"API Key"}),(0,r.jsx)(eD.Z,{placeholder:"Type API Key here",type:"password",onValueChange:i,value:o})]}),(0,r.jsxs)(G.Z,{className:"mx-2",children:[(0,r.jsx)(Y.Z,{children:"Select Model:"}),(0,r.jsx)(X.default,{placeholder:"Select a Model",onChange:e=>{console.log("selected ".concat(e)),x(e)},options:p,style:{width:"200px"}})]})]})}),(0,r.jsxs)(ep.Z,{className:"mt-5",style:{display:"block",maxHeight:"60vh",overflowY:"auto"},children:[(0,r.jsx)(ey.Z,{children:(0,r.jsx)(ef.Z,{children:(0,r.jsx)(eg.Z,{})})}),(0,r.jsx)(ej.Z,{children:m.map((e,l)=>(0,r.jsx)(ef.Z,{children:(0,r.jsx)(eg.Z,{children:"".concat(e.role,": ").concat(e.content)})},l))})]}),(0,r.jsx)("div",{className:"mt-3",style:{position:"absolute",bottom:5,width:"95%"},children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(eD.Z,{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Type your message..."}),(0,r.jsx)(W.Z,{onClick:y,className:"ml-2",children:"Send"})]})})]}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{children:[(0,r.jsx)(eE.Z,{children:"OpenAI Python SDK"}),(0,r.jsx)(eE.Z,{children:"LlamaIndex"}),(0,r.jsx)(eE.Z,{children:"Langchain Py"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nimport openai\nclient = openai.OpenAI(\n api_key="your_api_key",\n base_url="http://0.0.0.0:4000" # proxy base url\n)\n\nresponse = client.chat.completions.create(\n model="gpt-3.5-turbo", # model to use from Models Tab\n messages = [\n {\n "role": "user",\n "content": "this is a test request, write a short poem"\n }\n ],\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-openai-client",\n "generation_id": "openai-client-gen-id22",\n "trace_id": "openai-client-trace-id22",\n "trace_user_id": "openai-client-user-id2"\n }\n }\n)\n\nprint(response)\n '})}),(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nimport os, dotenv\n\nfrom llama_index.llms import AzureOpenAI\nfrom llama_index.embeddings import AzureOpenAIEmbedding\nfrom llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n\nllm = AzureOpenAI(\n engine="azure-gpt-3.5", # model_name on litellm proxy\n temperature=0.0,\n azure_endpoint="http://0.0.0.0:4000", # litellm proxy endpoint\n api_key="sk-1234", # litellm proxy API Key\n api_version="2023-07-01-preview",\n)\n\nembed_model = AzureOpenAIEmbedding(\n deployment_name="azure-embedding-model",\n azure_endpoint="http://0.0.0.0:4000",\n api_key="sk-1234",\n api_version="2023-07-01-preview",\n)\n\n\ndocuments = SimpleDirectoryReader("llama_index_data").load_data()\nservice_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)\nindex = VectorStoreIndex.from_documents(documents, service_context=service_context)\n\nquery_engine = index.as_query_engine()\nresponse = query_engine.query("What did the author do growing up?")\nprint(response)\n\n '})}),(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nfrom langchain.chat_models import ChatOpenAI\nfrom langchain.prompts.chat import (\n ChatPromptTemplate,\n HumanMessagePromptTemplate,\n SystemMessagePromptTemplate,\n)\nfrom langchain.schema import HumanMessage, SystemMessage\n\nchat = ChatOpenAI(\n openai_api_base="http://0.0.0.0:8000",\n model = "gpt-3.5-turbo",\n temperature=0.1,\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-langchain-client",\n "generation_id": "langchain-client-gen-id22",\n "trace_id": "langchain-client-trace-id22",\n "trace_user_id": "langchain-client-user-id2"\n }\n }\n)\n\nmessages = [\n SystemMessage(\n content="You are a helpful assistant that im using to make a test request to."\n ),\n HumanMessage(\n content="test from litellm. tell me why it\'s amazing in 1 sentence"\n ),\n]\nresponse = chat(messages)\n\nprint(response)\n\n '})})]})]})})]})]})})})})},le=t(33509),ll=t(95781);let{Sider:lt}=le.default;var ls=e=>{let{setPage:l,userRole:t,defaultSelectedKey:s}=e;return"Admin Viewer"==t?(0,r.jsx)(le.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,r.jsx)(lt,{width:120,children:(0,r.jsxs)(ll.Z,{mode:"inline",defaultSelectedKeys:s||["4"],style:{height:"100%",borderRight:0},children:[(0,r.jsx)(ll.Z.Item,{onClick:()=>l("api-keys"),children:"API Keys"},"4"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("models"),children:"Models"},"2"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("llm-playground"),children:"Chat UI"},"3"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("usage"),children:"Usage"},"1")]})})}):(0,r.jsx)(le.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,r.jsx)(lt,{width:120,children:(0,r.jsxs)(ll.Z,{mode:"inline",defaultSelectedKeys:s||["1"],style:{height:"100%",borderRight:0},children:[(0,r.jsx)(ll.Z.Item,{onClick:()=>l("api-keys"),children:(0,r.jsx)(Y.Z,{children:"API Keys"})},"1"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("llm-playground"),children:(0,r.jsx)(Y.Z,{children:"Test Key"})},"3"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("models"),children:(0,r.jsx)(Y.Z,{children:"Models"})},"2"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("teams"),children:(0,r.jsx)(Y.Z,{children:"Teams"})},"6"):null,(0,r.jsx)(ll.Z.Item,{onClick:()=>l("usage"),children:(0,r.jsx)(Y.Z,{children:"Usage"})},"4"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("users"),children:(0,r.jsx)(Y.Z,{children:"Users"})},"5"):null,(0,r.jsx)(ll.Z.Item,{onClick:()=>l("settings"),children:(0,r.jsx)(Y.Z,{children:"Integrations"})},"8"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("general-settings"),children:(0,r.jsx)(Y.Z,{children:"Settings"})},"9"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("admin-panel"),children:(0,r.jsx)(Y.Z,{children:"Admin"})},"7"):null]})})})},la=t(67989),lr=e=>{let{accessToken:l,token:t,userRole:s,userID:a}=e,o=new Date,[i,c]=(0,n.useState)([]),[d,m]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)([]),[j,g]=(0,n.useState)([]),[y,Z]=(0,n.useState)([]),[f,w]=(0,n.useState)([]),[b,k]=(0,n.useState)([]),[v,P]=(0,n.useState)([]),[O,F]=(0,n.useState)([]),M=new Date(o.getFullYear(),o.getMonth(),1),R=new Date(o.getFullYear(),o.getMonth()+1,0),D=U(M),L=U(R);function U(e){let l=e.getFullYear(),t=e.getMonth()+1,s=e.getDate();return"".concat(l,"-").concat(t<10?"0"+t:t,"-").concat(s<10?"0"+s:s)}return console.log("Start date is ".concat(D)),console.log("End date is ".concat(L)),(0,n.useEffect)(()=>{l&&t&&s&&a&&(async()=>{try{if(console.log("user role: ".concat(s)),"Admin"==s||"Admin Viewer"==s){let e=await C(l);c(e);let t=(await I(l)).map(e=>({key:(e.key_name||e.key_alias||e.api_key).substring(0,10),spend:e.total_spend}));m(t);let s=(await T(l)).map(e=>({key:e.model,spend:e.total_spend}));u(s);let a=await S(l);console.log("teamSpend",a),g(a.daily_spend),w(a.teams);let r=a.total_spend_per_team;r=r.map(e=>(e.name=e.team_id||"",e.value=e.total_spend||0,e)),k(r);let n=await A(l);Z(n.top_10_tags)}else"App Owner"==s&&await N(l,t,s,a,D,L).then(async e=>{if(console.log("result from spend logs call",e),"daily_spend"in e){let l=e.daily_spend;console.log("daily spend",l),c(l);let t=e.top_api_keys;m(t)}else{let t=(await E(l,function(e){let l=[];e.forEach(e=>{Object.entries(e).forEach(e=>{let[t,s]=e;"spend"!==t&&"startTime"!==t&&"models"!==t&&"users"!==t&&l.push({key:t,spend:s})})}),l.sort((e,l)=>Number(l.spend)-Number(e.spend));let t=l.slice(0,5).map(e=>e.key);return console.log("topKeys: ".concat(Object.keys(t[0]))),t}(e))).info.map(e=>({key:(e.key_name||e.key_alias).substring(0,10),spend:e.spend}));m(t),p(function(e){let l={};e.forEach(e=>{Object.entries(e.users).forEach(e=>{let[t,s]=e;""!==t&&null!=t&&"None"!=t&&(l[t]||(l[t]=0),l[t]+=s)})});let t=Object.entries(l).map(e=>{let[l,t]=e;return{user_id:l,spend:t}});t.sort((e,l)=>l.spend-e.spend);let s=t.slice(0,5);return console.log("topKeys: ".concat(Object.values(s[0]))),s}(e)),c(e)}});let e=await _(l,a,s);console.log("Model metrics response:",e);let r=[...e].sort((e,l)=>l.avg_latency_seconds-e.avg_latency_seconds);console.log("Sorted by latency:",r),P(e),F(r)}catch(e){console.error("There was an error fetching the data",e)}})()},[l,t,s,a,D,L]),(0,r.jsxs)("div",{style:{width:"100%"},className:"p-8",children:[(0,r.jsx)(ev,{userID:a,userRole:s,accessToken:l,userSpend:null}),(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{className:"mt-2",children:[(0,r.jsx)(eE.Z,{children:"All Up"}),(0,r.jsx)(eE.Z,{children:"Team Based Usage"}),(0,r.jsx)(eE.Z,{children:"Tag Based Usage"}),(0,r.jsx)(eE.Z,{children:"Model Based Usage"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,r.jsx)(G.Z,{numColSpan:2,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Monthly Spend"}),(0,r.jsx)(ed.Z,{data:i,index:"date",categories:["spend"],colors:["blue"],valueFormatter:e=>"$ ".concat(new Intl.NumberFormat("us").format(e).toString()),yAxisWidth:100,tickGap:5})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top API Keys"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:d,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:80,tickGap:5,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top Users"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:x,index:"user_id",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top Models"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:h,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})})]})}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,r.jsxs)(G.Z,{numColSpan:2,children:[(0,r.jsxs)(em.Z,{className:"mb-2",children:[(0,r.jsx)(H.Z,{children:"Total Spend Per Team"}),(0,r.jsx)(la.Z,{data:b})]}),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Daily Spend Per Team"}),(0,r.jsx)(ed.Z,{className:"h-72",data:j,showLegend:!0,index:"date",categories:f,yAxisWidth:80,stack:!0})]})]}),(0,r.jsx)(G.Z,{numColSpan:2})]})}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full mb-4",children:[(0,r.jsx)(G.Z,{numColSpan:2,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Spend Per Tag - Last 30 Days"}),(0,r.jsxs)(Y.Z,{children:["Get Started Tracking cost per tag ",(0,r.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/enterprise#tracking-spend-for-custom-tags",target:"_blank",children:"here"})]}),(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Tag"}),(0,r.jsx)(eZ.Z,{children:"Spend"}),(0,r.jsx)(eZ.Z,{children:"Requests"})]})}),(0,r.jsx)(ej.Z,{children:y.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.name}),(0,r.jsx)(eg.Z,{children:e.value}),(0,r.jsx)(eg.Z,{children:e.log_count})]},e.name))})]})]})}),(0,r.jsx)(G.Z,{numColSpan:2})]})}),(0,r.jsxs)(eM.Z,{children:[(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Number Requests per Model"}),(0,r.jsx)(ed.Z,{data:v,className:"h-[50vh]",index:"model",categories:["num_requests"],colors:["blue"],yAxisWidth:400,layout:"vertical",tickGap:5})]}),(0,r.jsxs)(em.Z,{className:"mt-4",children:[(0,r.jsx)(H.Z,{children:"Latency Per Model"}),(0,r.jsx)(ed.Z,{data:O,className:"h-[50vh]",index:"model",categories:["avg_latency_seconds"],colors:["red"],yAxisWidth:400,layout:"vertical",tickGap:5})]})]})]})]})]})},ln=()=>{let{Title:e,Paragraph:l}=eN.default,[t,s]=(0,n.useState)(""),[a,i]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[h,u]=(0,n.useState)(null),[x,p]=(0,n.useState)(!0),j=(0,o.useSearchParams)(),g=j.get("userID"),y=j.get("token"),[Z,f]=(0,n.useState)("api-keys"),[w,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(y){let e=(0,eA.o)(y);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),b(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e.toLowerCase())),console.log("Received user role length: ".concat(e.toLowerCase().length)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),s(l),"Admin Viewer"==l&&f("usage")}else console.log("User role not defined");e.user_email?i(e.user_email):console.log("User Email is not set ".concat(e)),e.login_method?p("username_password"==e.login_method):console.log("User Email is not set ".concat(e))}}},[y]),(0,r.jsx)(n.Suspense,{fallback:(0,r.jsx)("div",{children:"Loading..."}),children:(0,r.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,r.jsx)(m,{userID:g,userRole:t,userEmail:a,showSSOBanner:x}),(0,r.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(ls,{setPage:f,userRole:t,defaultSelectedKey:null})}),"api-keys"==Z?(0,r.jsx)(eC,{userID:g,userRole:t,teams:c,keys:h,setUserRole:s,userEmail:a,setUserEmail:i,setTeams:d,setKeys:u}):"models"==Z?(0,r.jsx)(e$,{userID:g,userRole:t,token:y,accessToken:w}):"llm-playground"==Z?(0,r.jsx)(e9,{userID:g,userRole:t,token:y,accessToken:w}):"users"==Z?(0,r.jsx)(e0,{userID:g,userRole:t,token:y,keys:h,accessToken:w,setKeys:u}):"teams"==Z?(0,r.jsx)(e1,{teams:c,setTeams:d,searchParams:j,accessToken:w,userID:g,userRole:t}):"admin-panel"==Z?(0,r.jsx)(e4,{setTeams:d,searchParams:j,accessToken:w,showSSOBanner:x}):"settings"==Z?(0,r.jsx)(e8,{userID:g,userRole:t,accessToken:w}):"general-settings"==Z?(0,r.jsx)(e3,{userID:g,userRole:t,accessToken:w}):(0,r.jsx)(lr,{userID:g,userRole:t,token:y,accessToken:w})]})]})})}}},function(e){e.O(0,[968,971,69,744],function(){return e(e.s=20661)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/app/page-cb85da9a307105a0.js b/litellm/proxy/_experimental/out/_next/static/chunks/app/page-cb85da9a307105a0.js deleted file mode 100644 index f853f5dff..000000000 --- a/litellm/proxy/_experimental/out/_next/static/chunks/app/page-cb85da9a307105a0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{20661:function(e,l,t){Promise.resolve().then(t.bind(t,21225))},21225:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ls}});var s,r,a=t(3827),n=t(64090),o=t(47907),i=t(8792),c=t(40491),d=t(65270),m=e=>{let{userID:l,userRole:t,userEmail:s,showSSOBanner:r}=e;console.log("User ID:",l),console.log("userEmail:",s),console.log("showSSOBanner:",r);let n=[{key:"1",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["Role: ",t]}),(0,a.jsxs)("p",{children:["ID: ",l]})]})}];return(0,a.jsxs)("nav",{className:"left-0 right-0 top-0 flex justify-between items-center h-12 mb-4",children:[(0,a.jsx)("div",{className:"text-left my-2 absolute top-0 left-0",children:(0,a.jsx)("div",{className:"flex flex-col items-center",children:(0,a.jsx)(i.default,{href:"/",children:(0,a.jsx)("button",{className:"text-gray-800 text-2xl py-1 rounded text-center",children:(0,a.jsx)("img",{src:"/get_image",width:200,height:200,alt:"LiteLLM Brand",className:"mr-2"})})})})}),(0,a.jsxs)("div",{className:"text-right mx-4 my-2 absolute top-0 right-0 flex items-center justify-end space-x-2",children:[r?(0,a.jsx)("div",{style:{padding:"6px",borderRadius:"8px"},children:(0,a.jsx)("a",{href:"https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat",target:"_blank",style:{fontSize:"14px",textDecoration:"underline"},children:"Request hosted proxy"})}):null,(0,a.jsx)("div",{style:{border:"1px solid #391085",padding:"6px",borderRadius:"8px"},children:(0,a.jsx)(c.Z,{menu:{items:n},children:(0,a.jsx)(d.Z,{children:s})})})]})]})},h=t(80588);let u=async()=>{try{let e=await fetch("https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"),l=await e.json();return console.log("received data: ".concat(l)),l}catch(e){throw console.error("Failed to get model cost map:",e),e}},x=async(e,l)=>{try{let t=await fetch("/model/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model created successfully. Wait 60s and refresh on 'All Models' page"),s}catch(e){throw console.error("Failed to create key:",e),e}},p=async(e,l)=>{console.log("model_id in model delete call: ".concat(l));try{let t=await fetch("/model/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({id:l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model deleted successfully. Restart server to see this."),s}catch(e){throw console.error("Failed to create key:",e),e}},j=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/key/generate",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},g=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/user/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},y=async(e,l)=>{try{console.log("in keyDeleteCall:",l);let t=await fetch("/key/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},Z=async(e,l)=>{try{console.log("in teamDeleteCall:",l);let t=await fetch("/team/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_ids:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete team: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to delete key:",e),e}},f=async function(e,l,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;try{let n="/user/info";"App Owner"==t&&l&&(n="".concat(n,"?user_id=").concat(l)),console.log("in userInfoCall viewAll=",s),s&&a&&null!=r&&void 0!=r&&(n="".concat(n,"?view_all=true&page=").concat(r,"&page_size=").concat(a));let o=await fetch(n,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!o.ok){let e=await o.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let i=await o.json();return console.log("API Response:",i),i}catch(e){throw console.error("Failed to create key:",e),e}},w=async e=>{try{let l=await fetch("/global/spend",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},b=async(e,l,t)=>{try{let l=await fetch("/v2/model/info",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log("modelInfoCall:",t),t}catch(e){throw console.error("Failed to create key:",e),e}},_=async(e,l,t)=>{try{let l=await fetch("/model/metrics",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},k=async(e,l,t)=>{try{let l=await fetch("/models",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},v=async(e,l)=>{try{let t="/global/spend/logs";console.log("in keySpendLogsCall:",t);let s=await fetch("".concat(t,"?api_key=").concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to create key:",e),e}},S=async e=>{try{let l="/global/spend/teams";console.log("in teamSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},A=async e=>{try{let l="/global/spend/tags";console.log("in tagsSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},N=async(e,l,t,s,r,a)=>{try{console.log("user role in spend logs call: ".concat(t));let l="/spend/logs";l="App Owner"==t?"".concat(l,"?user_id=").concat(s,"&start_date=").concat(r,"&end_date=").concat(a):"".concat(l,"?start_date=").concat(r,"&end_date=").concat(a);let n=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!n.ok){let e=await n.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let o=await n.json();return console.log(o),o}catch(e){throw console.error("Failed to create key:",e),e}},C=async e=>{try{let l=await fetch("/global/spend/logs",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},I=async e=>{try{let l=await fetch("/global/spend/keys?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},P=async(e,l)=>{try{l&&JSON.stringify({api_key:l});let t={method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}};l&&(t.body=JSON.stringify({api_key:l}));let s=await fetch("/global/spend/end_users",t);if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to create key:",e),e}},T=async e=>{try{let l=await fetch("/global/spend/models?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},E=async(e,l)=>{try{let t=await fetch("/v2/key/info",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},O=async e=>{try{let l="/user/get_requests";console.log("in userGetRequesedtModelsCall:",l);let t=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to get requested models:",e),e}},F=async(e,l)=>{try{let t="/user/get_users?role=".concat(l);console.log("in userGetAllUsersCall:",t);let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to get requested models:",e),e}},M=async(e,l)=>{try{console.log("Form Values in teamCreateCall:",l);let t=await fetch("/team/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},R=async(e,l)=>{try{console.log("Form Values in keyUpdateCall:",l);let t=await fetch("/key/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update key Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},D=async(e,l)=>{try{console.log("Form Values in teamUpateCall:",l);let t=await fetch("/team/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update team: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update Team Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},L=async(e,l,t)=>{try{console.log("Form Values in teamMemberAddCall:",t);let s=await fetch("/team/member_add",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_id:l,member:t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},U=async(e,l,t)=>{try{console.log("Form Values in userUpdateUserCall:",l);let s={...l};null!==t&&(s.user_role=t),s=JSON.stringify(s);let r=await fetch("/user/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:s});if(!r.ok){let e=await r.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await r.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},z=async(e,l)=>{try{let t=await fetch("/global/predict/spend/logs",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({data:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},B=async(e,l)=>{try{let t="/health/services?service=".concat(l);console.log("Checking Slack Budget Alerts service health");let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed ".concat(l," service health check ")+e),Error(e)}let r=await s.json();return h.ZP.success("Test request to ".concat(l," made - check logs on ").concat(l," dashboard!")),r}catch(e){throw console.error("Failed to perform health check:",e),e}},q=async(e,l,t)=>{try{let l=await fetch("/get/config/callbacks",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to get callbacks:",e),e}},V=async(e,l)=>{try{let t=await fetch("/config/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await t.json()}catch(e){throw console.error("Failed to set callbacks:",e),e}},G=async e=>{try{let l=await fetch("/health",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to call /health:",e),e}};var K=t(10384),J=t(46453),W=t(2179),Y=t(71801),H=t(42440),$=t(42308),X=t(50670),Q=t(81583),ee=t(99129),el=t(44839),et=t(88707),es=t(1861);let{Option:er}=X.default;var ea=e=>{let{userID:l,team:t,userRole:s,accessToken:r,data:o,setData:i}=e,[c]=Q.Z.useForm(),[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[y,Z]=(0,n.useState)([]),f=()=>{m(!1),c.resetFields()},w=()=>{m(!1),x(null),c.resetFields()};(0,n.useEffect)(()=>{(async()=>{try{if(null===l||null===s)return;if(null!==r){let e=(await k(r,l,s)).data.map(e=>e.id);console.log("available_model_names:",e),Z(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[r,l,s]);let b=async e=>{try{h.ZP.info("Making API Call"),m(!0);let t=await j(r,l,e);console.log("key create Response:",t),i(e=>e?[...e,t]:[t]),x(t.key),g(t.soft_budget),h.ZP.success("API Key Created"),c.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the key:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>m(!0),children:"+ Create New Key"}),(0,a.jsx)(ee.Z,{title:"Create Key",visible:d,width:800,footer:null,onOk:f,onCancel:w,children:(0,a.jsxs)(Q.Z,{form:c,onFinish:b,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:["App Owner"===s||"Admin"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",hidden:!0,initialValue:t?t.team_id:null,valuePropName:"team_id",className:"mt-8",children:(0,a.jsx)(el.Z,{value:t?t.team_alias:"",disabled:!0})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{required:!0,message:"Please select a model"}],help:"required",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(er,{value:"all-team-models",children:"All Team Models"},"all-team-models"),t&&t.models?t.models.includes("all-proxy-models")?y.map(e=>(0,a.jsx)(er,{value:e,children:e},e)):t.models.map(e=>(0,a.jsx)(er,{value:e,children:e},e)):y.map(e=>(0,a.jsx)(er,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: $".concat((null==t?void 0:t.max_budget)!==null&&(null==t?void 0:t.max_budget)!==void 0?null==t?void 0:t.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.max_budget&&l>t.max_budget)throw Error("Budget cannot exceed team max budget: $".concat(t.max_budget))}}],children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Reset Budget",name:"budget_duration",help:"Team Reset Budget: ".concat((null==t?void 0:t.budget_duration)!==null&&(null==t?void 0:t.budget_duration)!==void 0?null==t?void 0:t.budget_duration:"None"),children:(0,a.jsxs)(X.default,{defaultValue:null,placeholder:"n/a",children:[(0,a.jsx)(X.default.Option,{value:"24h",children:"daily"}),(0,a.jsx)(X.default.Option,{value:"30d",children:"monthly"})]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Tokens per minute Limit (TPM)",name:"tpm_limit",help:"TPM cannot exceed team TPM limit: ".concat((null==t?void 0:t.tpm_limit)!==null&&(null==t?void 0:t.tpm_limit)!==void 0?null==t?void 0:t.tpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.tpm_limit&&l>t.tpm_limit)throw Error("TPM limit cannot exceed team TPM limit: ".concat(t.tpm_limit))}}],children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Requests per minute Limit (RPM)",name:"rpm_limit",help:"RPM cannot exceed team RPM limit: ".concat((null==t?void 0:t.rpm_limit)!==null&&(null==t?void 0:t.rpm_limit)!==void 0?null==t?void 0:t.rpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.rpm_limit&&l>t.rpm_limit)throw Error("RPM limit cannot exceed team RPM limit: ".concat(t.rpm_limit))}}],children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Expire Key (eg: 30s, 30h, 30d)",name:"duration",className:"mt-8",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,a.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID (Contact Group)",name:"team_id",children:(0,a.jsx)(el.Z,{placeholder:"default team (create a new team)"})}),(0,a.jsx)(Q.Z.Item,{label:"Description",name:"description",children:(0,a.jsx)(el.Z.TextArea,{placeholder:"Enter description",rows:4})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create Key"})})]})}),u&&(0,a.jsx)(ee.Z,{visible:d,onOk:f,onCancel:w,footer:null,children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,a.jsx)(H.Z,{children:"Save your Key"}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("p",{children:["Please save this secret key somewhere safe and accessible. For security reasons, ",(0,a.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret key, you will need to generate a new one."]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:null!=u?(0,a.jsxs)("div",{children:[(0,a.jsx)(Y.Z,{className:"mt-3",children:"API Key:"}),(0,a.jsx)("div",{style:{background:"#f8f8f8",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:(0,a.jsx)("pre",{style:{wordWrap:"break-word",whiteSpace:"normal"},children:u})}),(0,a.jsx)($.CopyToClipboard,{text:u,onCopy:()=>{h.ZP.success("API Key copied to clipboard")},children:(0,a.jsx)(W.Z,{className:"mt-3",children:"Copy API Key"})})]}):(0,a.jsx)(Y.Z,{children:"Key being created, this might take 30s"})})]})})]})},en=t(9454),eo=t(98941),ei=t(33393),ec=t(5),ed=t(9853),em=t(13810),eh=t(39290),eu=t(66952),ex=t(61244),ep=t(10827),ej=t(3851),eg=t(2044),ey=t(64167),eZ=t(74480),ef=t(7178),ew=t(95093),eb=t(27166);let{Option:e_}=X.default;var ek=e=>{let{userID:l,userRole:t,accessToken:s,selectedTeam:r,data:o,setData:i,teams:c}=e,[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,j]=(0,n.useState)(null),[g,Z]=n.useState(null),[f,w]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[S,A]=(0,n.useState)(""),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),[T,E]=(0,n.useState)([]),O=new Set,[F,M]=(0,n.useState)(O);(0,n.useEffect)(()=>{(async()=>{try{if(null===l)return;if(null!==s&&null!==t){let e=(await k(s,l,t)).data.map(e=>e.id);console.log("available_model_names:",e),E(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,l,t]),(0,n.useEffect)(()=>{if(c){let e=new Set;c.forEach((l,t)=>{let s=l.team_id;e.add(s)}),M(e)}},[c]);let D=e=>{console.log("handleEditClick:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),P(e),C(!0)},L=async e=>{if(null==s)return;let l=e.token;e.key=l,console.log("handleEditSubmit:",e);let t=await R(s,e);console.log("handleEditSubmit: newKeyValues",t),o&&i(o.map(e=>e.token===l?t:e)),h.ZP.success("Key updated successfully"),C(!1),P(null)},U=async e=>{try{if(null==s||null==e)return;console.log("accessToken: ".concat(s,"; token: ").concat(e.token));let l=await v(s,e.token);console.log("Response:",l),_(l);try{let e=await z(s,l);console.log("Response2:",e);let t=[...l,...e.response];_(t),A(e.predicted_spend),console.log("Combined Data:",t)}catch(e){console.error("There was an error fetching the predicted data",e)}}catch(e){console.error("There was an error fetching the data",e)}};(0,n.useEffect)(()=>{U(f)},[f]);let B=async e=>{console.log("handleDelete:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),null!=o&&(j(e.token),localStorage.removeItem("userData"+l),x(!0))},q=async()=>{if(null!=p&&null!=o){try{await y(s,p);let e=o.filter(e=>e.token!==p);i(e)}catch(e){console.error("Error deleting the key:",e)}x(!1),j(null)}};if(null!=o)return console.log("RERENDER TRIGGERED"),(0,a.jsxs)("div",{children:[(0,a.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4 mt-2",children:[(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Key Alias"}),(0,a.jsx)(eZ.Z,{children:"Secret Key"}),(0,a.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,a.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,a.jsx)(eZ.Z,{children:"Models"}),(0,a.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,a.jsx)(ej.Z,{children:o.map(e=>{if(console.log(e),"litellm-dashboard"===e.team_id)return null;if(r){if(console.log("item team id: ".concat(e.team_id,", knownTeamIDs.has(item.team_id): ").concat(F.has(e.team_id),", selectedTeam id: ").concat(r.team_id)),(null!=r.team_id||null===e.team_id||F.has(e.team_id))&&e.team_id!=r.team_id)return null;console.log("item team id: ".concat(e.team_id,", is returned"))}return(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{style:{maxWidth:"2px",whiteSpace:"pre-wrap",overflow:"hidden"},children:null!=e.key_alias?(0,a.jsx)(Y.Z,{children:e.key_alias}):(0,a.jsx)(Y.Z,{children:"Not Set"})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:e.key_name})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:(()=>{try{return parseFloat(e.spend).toFixed(4)}catch(l){return e.spend}})()})}),(0,a.jsx)(eg.Z,{children:null!=e.max_budget?(0,a.jsx)(Y.Z,{children:e.max_budget}):(0,a.jsx)(Y.Z,{children:"Unlimited"})}),(0,a.jsx)(eg.Z,{children:Array.isArray(e.models)?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,a.jsx)(a.Fragment,{children:r&&r.models&&r.models.length>0?r.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Team Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l)):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:"all-proxy-models"})})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Team Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,a.jsx)(eg.Z,{children:(0,a.jsxs)(Y.Z,{children:["TPM: ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,a.jsx)("br",{})," RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{onClick:()=>{w(e),Z(e.id)},icon:en.Z,size:"sm"}),(0,a.jsx)(eh.Z,{open:null!==g,onClose:()=>{Z(null),w(null)},children:(0,a.jsx)(eu.Z,{children:f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:[(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Spend"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:(()=>{try{return parseFloat(f.spend).toFixed(4)}catch(e){return f.spend}})()})})]}),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Budget"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.max_budget?(0,a.jsx)(a.Fragment,{children:f.max_budget}):(0,a.jsx)(a.Fragment,{children:"Unlimited"})})})]},e.name),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Expires"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor-default font-small text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.expires?(0,a.jsx)(a.Fragment,{children:new Date(f.expires).toLocaleString(void 0,{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}):(0,a.jsx)(a.Fragment,{children:"Never"})})})]},e.name)]}),(0,a.jsx)(em.Z,{className:"mt-6 mb-6",children:b&&(0,a.jsx)(ed.Z,{className:"mt-6",data:b,colors:["blue","amber"],index:"date",categories:["spend","predicted_spend"],yAxisWidth:80})}),(0,a.jsx)(H.Z,{children:"Metadata"}),(0,a.jsx)(Y.Z,{children:JSON.stringify(f.metadata)}),(0,a.jsx)(W.Z,{variant:"light",className:"mx-auto flex items-center",onClick:()=>{Z(null),w(null)},children:"Close"})]})})}),(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>D(e)}),(0,a.jsx)(ex.Z,{onClick:()=>B(e),icon:ei.Z,size:"sm"})]})]},e.token)})})]}),u&&(0,a.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,a.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,a.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,a.jsx)("div",{className:"sm:flex sm:items-start",children:(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,a.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Key"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this key ?"})})]})})}),(0,a.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,a.jsx)(W.Z,{onClick:q,color:"red",className:"ml-2",children:"Delete"}),(0,a.jsx)(W.Z,{onClick:()=>{x(!1),j(null)},children:"Cancel"})]})]})]})})]}),I&&(0,a.jsx)(e=>{let{visible:l,onCancel:t,token:s,onSubmit:o}=e,[i]=Q.Z.useForm(),[d,m]=(0,n.useState)(r),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)(!1);return(0,a.jsx)(ee.Z,{title:"Edit Key",visible:l,width:800,footer:null,onOk:()=>{i.validateFields().then(e=>{i.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,a.jsxs)(Q.Z,{form:i,onFinish:L,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{validator:(e,l)=>{let t=l.filter(e=>!d.models.includes(e)&&"all-team-models"!==e&&"all-proxy-models"!==e);return(console.log("errorModels: ".concat(t)),t.length>0)?Promise.reject("Some models are not part of the new team's models - ".concat(t)):Promise.resolve()}}],children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(e_,{value:"all-team-models",children:"All Team Models"},"all-team-models"),d&&d.models?d.models.includes("all-proxy-models")?T.filter(e=>"all-proxy-models"!==e).map(e=>(0,a.jsx)(e_,{value:e,children:e},e)):d.models.map(e=>(0,a.jsx)(e_,{value:e,children:e},e)):T.map(e=>(0,a.jsx)(e_,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: ".concat((null==d?void 0:d.max_budget)!==null&&(null==d?void 0:d.max_budget)!==void 0?null==d?void 0:d.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&d&&null!==d.max_budget&&l>d.max_budget)throw console.log("keyTeam.max_budget: ".concat(d.max_budget)),Error("Budget cannot exceed team max budget: $".concat(d.max_budget))}}],children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"token",name:"token",hidden:!0}),(0,a.jsx)(Q.Z.Item,{label:"Team",name:"team_id",help:"the team this key belongs to",children:(0,a.jsx)(ew.Z,{value:s.team_alias,children:null==c?void 0:c.map((e,l)=>(0,a.jsx)(eb.Z,{value:e.team_id,onClick:()=>m(e),children:e.team_alias},l))})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Edit Key"})})]})})},{visible:N,onCancel:()=>{C(!1),P(null)},token:I,onSubmit:L})]})},ev=e=>{let{userID:l,userRole:t,accessToken:s,userSpend:r}=e;console.log("userSpend: ".concat(r));let[o,i]=(0,n.useState)(null!==r?r:0),[c,d]=(0,n.useState)(0);(0,n.useEffect)(()=>{(async()=>{if(s&&l&&t&&"Admin"===t&&null==r)try{let e=await w(s);e&&(e.spend?i(e.spend):i(0),e.max_budget?d(e.max_budget):d(0))}catch(e){console.error("Error fetching global spend data:",e)}})()},[t,s]),(0,n.useEffect)(()=>{null!==r&&i(r)},[r]);let m=void 0!==o?o.toFixed(4):null;return console.log("spend in view user spend: ".concat(o)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-tremor-default text-tremor-content dark:text-dark-tremor-content",children:"Total Spend "}),(0,a.jsxs)("p",{className:"text-3xl text-tremor-content-strong dark:text-dark-tremor-content-strong font-semibold",children:["$",m]})]})},eS=e=>{let{teams:l,setSelectedTeam:t}=e,s={models:[],team_id:null,team_alias:"Default Team"},[r,o]=(0,n.useState)(s),i=l?[...l,s]:[s];return(0,a.jsxs)("div",{className:"mt-5 mb-5",children:[(0,a.jsx)(H.Z,{children:"Select Team"}),(0,a.jsx)(Y.Z,{children:"If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys."}),(0,a.jsxs)(Y.Z,{className:"mt-3 mb-3",children:[(0,a.jsx)("b",{children:"Default Team:"})," If no team_id is set for a key, it will be grouped under here."]}),i&&i.length>0?(0,a.jsx)(ew.Z,{defaultValue:"0",children:i.map((e,l)=>(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>t(e),children:e.team_alias},l))}):(0,a.jsxs)(Y.Z,{children:["No team created. ",(0,a.jsx)("b",{children:"Defaulting to personal account."})]})]})},eA=t(37963),eN=t(36083);console.log("isLocal:",!1);var eC=e=>{let{userID:l,userRole:t,teams:s,keys:r,setUserRole:i,userEmail:c,setUserEmail:d,setTeams:m,setKeys:h}=e,[u,x]=(0,n.useState)(null),p=(0,o.useSearchParams)();p.get("viewSpend"),(0,o.useRouter)();let j=p.get("token"),[g,y]=(0,n.useState)(null),[Z,b]=(0,n.useState)(null),[_,v]=(0,n.useState)([]),[S,A]=(0,n.useState)(s?s[0]:null);if(window.addEventListener("beforeunload",function(){sessionStorage.clear()}),(0,n.useEffect)(()=>{if(j){let e=(0,eA.o)(j);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),y(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),i(l)}else console.log("User role not defined");e.user_email?d(e.user_email):console.log("User Email is not set ".concat(e))}}if(l&&g&&t&&!r&&!u){let e=sessionStorage.getItem("userModels"+l);e?v(JSON.parse(e)):(async()=>{try{let e=await f(g,l,t,!1,null,null);if(console.log("received teams in user dashboard: ".concat(Object.keys(e),"; team values: ").concat(Object.entries(e.teams))),"Admin"==t){let e=await w(g);x(e),console.log("globalSpend:",e)}else x(e.user_info);h(e.keys),m(e.teams),A(e.teams?e.teams[0]:null),sessionStorage.setItem("userData"+l,JSON.stringify(e.keys)),sessionStorage.setItem("userSpendData"+l,JSON.stringify(e.user_info));let s=(await k(g,l,t)).data.map(e=>e.id);console.log("available_model_names:",s),v(s),console.log("userModels:",_),sessionStorage.setItem("userModels"+l,JSON.stringify(s))}catch(e){console.error("There was an error fetching the data",e)}})()}},[l,j,g,r,t]),(0,n.useEffect)(()=>{if(null!==r&&null!=S){let e=0;for(let l of r)S.hasOwnProperty("team_id")&&null!==l.team_id&&l.team_id===S.team_id&&(e+=l.spend);b(e)}else if(null!==r){let e=0;for(let l of r)e+=l.spend;b(e)}},[S]),null==l||null==j){let e="/sso/key/generate";return console.log("Full URL:",e),window.location.href=e,null}if(null==g)return null;if(null==t&&i("App Owner"),t&&"Admin Viewer"==t){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to create keys"})]})}return console.log("inside user dashboard, selected team",S),console.log("teamSpend: ".concat(Z)),(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsx)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(ev,{userID:l,userRole:t,accessToken:g,userSpend:Z}),(0,a.jsx)(ek,{userID:l,userRole:t,accessToken:g,selectedTeam:S||null,data:r,setData:h,teams:s}),(0,a.jsx)(ea,{userID:l,team:S||null,userRole:t,accessToken:g,data:r,setData:h},S?S.team_id:null),(0,a.jsx)(eS,{teams:s,setSelectedTeam:A})]})})})},eI=t(92836),eP=t(26734),eT=t(41608),eE=t(32126),eO=t(23682),eF=t(52273),eM=t(47047),eR=t(76628),eD=t(38302),eL=t(28683),eU=t(1460),ez=t(78578),eB=e=>{let{modelID:l,accessToken:t}=e,[s,r]=(0,n.useState)(!1),o=async()=>{try{h.ZP.info("Making API Call"),r(!0);let e=await p(t,l);console.log("model delete Response:",e),h.ZP.success("Model ".concat(l," deleted successfully")),r(!1)}catch(e){console.error("Error deleting the model:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(ex.Z,{onClick:()=>r(!0),icon:ei.Z,size:"sm"}),(0,a.jsx)(ee.Z,{open:s,onOk:o,okType:"danger",onCancel:()=>r(!1),children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,a.jsx)(H.Z,{children:"Delete Model"}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsx)("p",{children:"Are you sure you want to delete this model? This action is irreversible."})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("p",{children:["Model ID: ",(0,a.jsx)("b",{children:l})]})})]})})]})},eq=t(97766),eV=t(46495);let{Title:eG,Link:eK}=eN.default;(s=r||(r={})).OpenAI="OpenAI",s.Azure="Azure",s.Anthropic="Anthropic",s.Google_AI_Studio="Gemini (Google AI Studio)",s.Bedrock="Amazon Bedrock",s.OpenAI_Compatible="OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)",s.Vertex_AI="Vertex AI (Anthropic, Gemini, etc.)";let eJ={OpenAI:"openai",Azure:"azure",Anthropic:"anthropic",Google_AI_Studio:"gemini",Bedrock:"bedrock",OpenAI_Compatible:"openai",Vertex_AI:"vertex_ai"};var eW=e=>{var l,t,s;let{accessToken:o,token:i,userRole:c,userID:d}=e,[m,p]=(0,n.useState)({data:[]}),[j,g]=(0,n.useState)([]),[y]=Q.Z.useForm(),[Z,f]=(0,n.useState)(null),[w,_]=(0,n.useState)([]),k=Object.values(r).filter(e=>isNaN(Number(e))),[v,S]=(0,n.useState)("OpenAI"),[A,N]=(0,n.useState)("");if((0,n.useEffect)(()=>{if(!o||!i||!c||!d)return;let e=async()=>{try{let e=await b(o,d,c);if(console.log("Model data response:",e.data),p(e),"Admin"===c&&o){let e=await O(o);console.log("Pending Requests:",j),g(e.requests||[])}}catch(e){console.error("There was an error fetching the model data",e)}};o&&i&&c&&d&&e();let l=async()=>{let e=await u();console.log("received model cost map data: ".concat(Object.keys(e))),f(e)};null==Z&&l()},[o,i,c,d,Z]),!m||!o||!i||!c||!d)return(0,a.jsx)("div",{children:"Loading..."});let C=[];for(let e=0;e(console.log("GET PROVIDER CALLED! - ".concat(Z)),null!=Z&&"object"==typeof Z&&e in Z)?Z[e].litellm_provider:"openai";if(r){let e=r.split("/"),l=e[0];n=1===e.length?h(r):l}else n="openai";a&&(o=null==a?void 0:a.input_cost_per_token,i=null==a?void 0:a.output_cost_per_token,c=null==a?void 0:a.max_tokens),(null==s?void 0:s.litellm_params)&&(d=Object.fromEntries(Object.entries(null==s?void 0:s.litellm_params).filter(e=>{let[l]=e;return"model"!==l&&"api_base"!==l}))),m.data[e].provider=n,m.data[e].input_cost=o,m.data[e].output_cost=i,m.data[e].max_tokens=c,m.data[e].api_base=null==s?void 0:null===(t=s.litellm_params)||void 0===t?void 0:t.api_base,m.data[e].cleanedLitellmParams=d,C.push(s.model_name),console.log(m.data[e])}if(c&&"Admin Viewer"==c){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to view all models"})]})}let I=e=>{console.log("received provider string: ".concat(e));let l=Object.keys(r).find(l=>r[l]===e);if(l){let e=eJ[l];console.log("mappingResult: ".concat(e));let t=[];"object"==typeof Z&&Object.entries(Z).forEach(l=>{let[s,r]=l;null!==r&&"object"==typeof r&&"litellm_provider"in r&&(r.litellm_provider===e||r.litellm_provider.includes(e))&&t.push(s)}),_(t),console.log("providerModels: ".concat(w))}},P=async()=>{try{h.ZP.info("Running health check..."),N("");let e=await G(o);N(e)}catch(e){console.error("Error running health check:",e),N("Error running health check")}},T=async e=>{try{let l=Object.values(e.model);console.log("received deployments: ".concat(l)),console.log("received type of deployments: ".concat(typeof l)),l.forEach(async l=>{console.log("litellm_model: ".concat(l));let t={},s={};t.model=l;let r="";for(let[l,a]of Object.entries(e))if("model_name"==l)r+=a;else if("custom_llm_provider"==l)continue;else if("model"==l)continue;else if("base_model"===l)s[l]=a;else if("litellm_extra_params"==l){console.log("litellm_extra_params:",a);let e={};if(a&&void 0!=a){try{e=JSON.parse(a)}catch(e){throw h.ZP.error("Failed to parse LiteLLM Extra Params: "+e,20),Error("Failed to parse litellm_extra_params: "+e)}for(let[l,s]of Object.entries(e))t[l]=s}}else t[l]=a;let a={model_name:r,litellm_params:t,model_info:s},n=await x(o,a);console.log("response for model create call: ".concat(n.data))}),y.resetFields()}catch(e){h.ZP.error("Failed to create model: "+e,20)}};return console.log("selectedProvider: ".concat(v)),console.log("providerModels.length: ".concat(w.length)),(0,a.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,a.jsxs)(eP.Z,{className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,a.jsxs)(eT.Z,{className:"mt-2",children:[(0,a.jsx)(eI.Z,{children:"All Models"}),(0,a.jsx)(eI.Z,{children:"Add Model"}),(0,a.jsx)(eI.Z,{children:(0,a.jsx)("pre",{children:"/health Models"})})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsx)(J.Z,{children:(0,a.jsx)(em.Z,{children:(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Model Name "}),(0,a.jsx)(eZ.Z,{children:"Provider"}),"Admin"===c&&(0,a.jsx)(eZ.Z,{children:"API Base"}),(0,a.jsx)(eZ.Z,{children:"Extra litellm Params"}),(0,a.jsx)(eZ.Z,{children:"Input Price per token ($)"}),(0,a.jsx)(eZ.Z,{children:"Output Price per token ($)"}),(0,a.jsx)(eZ.Z,{children:"Max Tokens"})]})}),(0,a.jsx)(ej.Z,{children:m.data.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:e.model_name})}),(0,a.jsx)(eg.Z,{children:e.provider}),"Admin"===c&&(0,a.jsx)(eg.Z,{children:e.api_base}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)("pre",{children:JSON.stringify(e.cleanedLitellmParams,null,2)})}),(0,a.jsx)(eg.Z,{children:e.input_cost}),(0,a.jsx)(eg.Z,{children:e.output_cost}),(0,a.jsx)(eg.Z,{children:e.max_tokens}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(eB,{modelID:e.model_info.id,accessToken:o})})]},l))})]})})})}),(0,a.jsxs)(eE.Z,{className:"h-full",children:[(0,a.jsx)(eG,{level:2,children:"Add new model"}),(0,a.jsx)(em.Z,{children:(0,a.jsxs)(Q.Z,{form:y,onFinish:()=>{y.validateFields().then(e=>{T(e)}).catch(e=>{console.error("Validation failed:",e)})},labelCol:{span:10},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Provider:",name:"custom_llm_provider",tooltip:"E.g. OpenAI, Azure OpenAI, Anthropic, Bedrock, etc.",labelCol:{span:10},labelAlign:"left",children:(0,a.jsx)(ew.Z,{value:v.toString(),children:k.map((e,l)=>(0,a.jsx)(eb.Z,{value:e,onClick:()=>{I(e),S(e)},children:e},l))})}),(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Public Model Name",name:"model_name",tooltip:"Model name your users will pass in. Also used for load-balancing, LiteLLM will load balance between all models with this public name.",className:"mb-0",children:(0,a.jsx)(eF.Z,{placeholder:"Vertex AI (Anthropic, Gemini, etc.)"===(s=v.toString())?"gemini-pro":"Anthropic"==s?"claude-3-opus":"Amazon Bedrock"==s?"claude-3-opus":"Gemini (Google AI Studio)"==s?"gemini-pro":"gpt-3.5-turbo"})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Model name your users will pass in."})})]}),(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"LiteLLM Model Name(s)",name:"model",tooltip:"Actual model name used for making litellm.completion() call.",className:"mb-0",children:"Azure"===v?(0,a.jsx)(eF.Z,{placeholder:"Enter model name"}):w.length>0?(0,a.jsx)(eM.Z,{value:w,children:w.map((e,l)=>(0,a.jsx)(eR.Z,{value:e,children:e},l))}):(0,a.jsx)(eF.Z,{placeholder:"gpt-3.5-turbo-0125"})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Actual model name used for making ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/providers",target:"_blank",children:"litellm.completion() call"}),". We'll ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/proxy/reliability#step-1---set-deployments-on-config",target:"_blank",children:"loadbalance"})," models with the same 'public name'"]})})]}),"Amazon Bedrock"!=v&&"Vertex AI (Anthropic, Gemini, etc.)"!=v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Key",name:"api_key",children:(0,a.jsx)(eF.Z,{placeholder:"sk-",type:"password"})}),"OpenAI"==v&&(0,a.jsx)(Q.Z.Item,{label:"Organization ID",name:"organization_id",children:(0,a.jsx)(eF.Z,{placeholder:"[OPTIONAL] my-unique-org"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Project",name:"vertex_project",children:(0,a.jsx)(eF.Z,{placeholder:"adroit-cadet-1234.."})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Location",name:"vertex_location",children:(0,a.jsx)(eF.Z,{placeholder:"us-east-1"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Credentials",name:"vertex_credentials",className:"mb-0",children:(0,a.jsx)(eV.Z,{name:"file",accept:".json",beforeUpload:e=>{if("application/json"===e.type){let l=new FileReader;l.onload=e=>{if(e.target){let l=e.target.result;y.setFieldsValue({vertex_credentials:l})}},l.readAsText(e)}return!1},onChange(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?h.ZP.success("".concat(e.file.name," file uploaded successfully")):"error"===e.file.status&&h.ZP.error("".concat(e.file.name," file upload failed."))},children:(0,a.jsx)(es.ZP,{icon:(0,a.jsx)(eq.Z,{}),children:"Click to Upload"})})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Give litellm a gcp service account(.json file), so it can make the relevant calls"})})]}),("Azure"==v||"OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)"==v)&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Base",name:"api_base",children:(0,a.jsx)(eF.Z,{placeholder:"https://..."})}),"Azure"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Version",name:"api_version",children:(0,a.jsx)(eF.Z,{placeholder:"2023-07-01-preview"})}),"Azure"==v&&(0,a.jsxs)(Q.Z.Item,{label:"Base Model",name:"base_model",children:[(0,a.jsx)(eF.Z,{placeholder:"azure/gpt-3.5-turbo"}),(0,a.jsxs)(Y.Z,{children:["The actual model your azure deployment uses. Used for accurate cost tracking. Select name from ",(0,a.jsx)(eK,{href:"https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json",target:"_blank",children:"here"})]})]}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Access Key ID",name:"aws_access_key_id",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Secret Access Key",name:"aws_secret_access_key",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Region Name",name:"aws_region_name",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:"us-east-1"})}),(0,a.jsx)(Q.Z.Item,{label:"LiteLLM Params",name:"litellm_extra_params",tooltip:"Optional litellm params used for making a litellm.completion() call.",className:"mb-0",children:(0,a.jsx)(ez.Z,{rows:4,placeholder:'{ "rpm": 100, "timeout": 0, "stream_timeout": 0 }'})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Pass JSON of litellm supported params ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/completion/input",target:"_blank",children:"litellm.completion() call"})]})})]})]}),(0,a.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add Model"})}),(0,a.jsx)(eU.Z,{title:"Get help on our github",children:(0,a.jsx)(eN.default.Link,{href:"https://github.com/BerriAI/litellm/issues",children:"Need Help?"})})]})})]}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(Y.Z,{children:"`/health` will run a very small request through your models configured on litellm"}),(0,a.jsx)(W.Z,{onClick:P,children:"Run `/health`"}),A&&(0,a.jsx)("pre",{children:JSON.stringify(A,null,2)})]})})]})]})})};let{Option:eY}=X.default;var eH=e=>{let{userID:l,accessToken:t}=e,[s]=Q.Z.useForm(),[r,o]=(0,n.useState)(!1),[i,c]=(0,n.useState)(null),[d,m]=(0,n.useState)([]);(0,n.useEffect)(()=>{(async()=>{try{let e=await k(t,l,"any"),s=[];for(let l=0;l{o(!1),s.resetFields()},x=()=>{o(!1),c(null),s.resetFields()},p=async e=>{try{h.ZP.info("Making API Call"),o(!0),console.log("formValues in create user:",e);let r=await g(t,l,e);console.log("user create Response:",r),c(r.key),h.ZP.success("API user Created"),s.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the user:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>o(!0),children:"+ Create New User"}),(0,a.jsx)(ee.Z,{title:"Create User",visible:r,width:800,footer:null,onOk:u,onCancel:x,children:(0,a.jsxs)(Q.Z,{form:s,onFinish:p,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",children:(0,a.jsx)(el.Z,{placeholder:"Enter User ID"})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",children:(0,a.jsx)(el.Z,{placeholder:"ai_team"})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsx)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:d.map(e=>(0,a.jsx)(eY,{value:e,children:e},e))})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Duration (eg: 30s, 30h, 30d)",name:"duration",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,a.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create User"})})]})}),i&&(0,a.jsxs)(ee.Z,{title:"Save Your User",visible:r,onOk:u,onCancel:x,footer:null,children:[(0,a.jsxs)("p",{children:["Please save this secret user somewhere safe and accessible. For security reasons, ",(0,a.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret user, you will need to generate a new one."]}),(0,a.jsx)("p",{children:null!=i?"API user: ".concat(i):"User being created, this might take 30s"})]})]})},e$=e=>{let{accessToken:l,token:t,keys:s,userRole:r,userID:o,setKeys:i}=e,[c,d]=(0,n.useState)(null),[m,h]=(0,n.useState)(null),[u,x]=(0,n.useState)(0);if((0,n.useEffect)(()=>{if(!l||!t||!r||!o)return;let e=async()=>{try{let e=await f(l,null,r,!0,u,25);console.log("user data response:",e),d(e)}catch(e){console.error("There was an error fetching the model data",e)}};l&&t&&r&&o&&e();let s=async()=>{try{let e=await P(l,null);console.log("user data response:",e),h(e)}catch(e){console.error("There was an error fetching the model data",e)}};r&&("Admin"==r||"Admin Viewer"==r)&&!m&&s()},[l,t,r,o,u]),!c||!l||!t||!r||!o)return(0,a.jsx)("div",{children:"Loading..."});let p=async e=>{try{let t=await P(l,e);console.log("user data response:",t),h(t)}catch(e){console.error("There was an error fetching the model data",e)}};return(0,a.jsx)("div",{style:{width:"100%"},children:(0,a.jsxs)(J.Z,{className:"gap-2 p-2 h-[75vh] w-full mt-8",children:[(0,a.jsx)(eH,{userID:o,accessToken:l}),(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4",children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{variant:"line",defaultValue:"1",children:[(0,a.jsx)(eI.Z,{value:"1",children:"Key Owners"}),(0,a.jsx)(eI.Z,{value:"2",children:"End-Users"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"User ID"}),(0,a.jsx)(eZ.Z,{children:"User Role"}),(0,a.jsx)(eZ.Z,{children:"User Models"}),(0,a.jsx)(eZ.Z,{children:"User Spend ($ USD)"}),(0,a.jsx)(eZ.Z,{children:"User Max Budget ($ USD)"})]})}),(0,a.jsx)(ej.Z,{children:c.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_id}),(0,a.jsx)(eg.Z,{children:e.user_role?e.user_role:"app_owner"}),(0,a.jsx)(eg.Z,{children:e.models&&e.models.length>0?e.models:"All Models"}),(0,a.jsx)(eg.Z,{children:e.spend?e.spend:0}),(0,a.jsx)(eg.Z,{children:e.max_budget?e.max_budget:"Unlimited"})]},e.user_id))})]})}),(0,a.jsxs)(eE.Z,{children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsxs)("div",{className:"flex-1 flex justify-between items-center",children:[(0,a.jsx)(Y.Z,{className:"w-1/4 mr-2 text-right",children:"Key"}),(0,a.jsx)(ew.Z,{defaultValue:"1",className:"w-3/4",children:null==s?void 0:s.map((e,l)=>{if(e&&null!==e.key_name&&e.key_name.length>0)return(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>p(e.token),children:e.key_name},l)})})]})]}),(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"End User"}),(0,a.jsx)(eZ.Z,{children:"Spend"}),(0,a.jsx)(eZ.Z,{children:"Total Events"})]})}),(0,a.jsx)(ej.Z,{children:null==m?void 0:m.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.end_user}),(0,a.jsx)(eg.Z,{children:e.total_spend}),(0,a.jsx)(eg.Z,{children:e.total_events})]},l))})]})]})]})]})}),function(){if(!c)return null;let e=Math.ceil(c.length/25);return(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("div",{children:["Showing Page ",u+1," of ",e]}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-l focus:outline-none",disabled:0===u,onClick:()=>x(u-1),children:"← Prev"}),(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-r focus:outline-none",onClick:()=>{x(u+1)},children:"Next →"})]})]})}()]})})},eX=e=>{let{teams:l,searchParams:t,accessToken:s,setTeams:r,userID:o,userRole:i}=e,[c]=Q.Z.useForm(),[d]=Q.Z.useForm(),{Title:m,Paragraph:u}=eN.default,[x,p]=(0,n.useState)(""),[j,g]=(0,n.useState)(!1),[y,f]=(0,n.useState)(l?l[0]:null),[w,b]=(0,n.useState)(!1),[_,v]=(0,n.useState)(!1),[S,A]=(0,n.useState)([]),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),T=e=>{f(e),g(!0)},E=async e=>{let t=e.team_id;if(console.log("handleEditSubmit:",e),null==s)return;let a=await D(s,e);l&&r(l.map(e=>e.team_id===t?a.data:e)),h.ZP.success("Team updated successfully"),g(!1),f(null)},O=async e=>{P(e),C(!0)},F=async()=>{if(null!=I&&null!=l&&null!=s){try{await Z(s,I);let e=l.filter(e=>e.team_id!==I);r(e)}catch(e){console.error("Error deleting the team:",e)}C(!1),P(null)}};(0,n.useEffect)(()=>{(async()=>{try{if(null===o||null===i)return;if(null!==s){let e=(await k(s,o,i)).data.map(e=>e.id);console.log("available_model_names:",e),A(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,o,i]);let R=async e=>{try{if(null!=s){h.ZP.info("Creating Team");let t=await M(s,e);null!==l?r([...l,t]):r([t]),console.log("response for team create call: ".concat(t)),h.ZP.success("Team created"),b(!1)}}catch(e){console.error("Error creating the team:",e),h.ZP.error("Error creating the team: "+e,20)}},U=async e=>{try{if(null!=s&&null!=l){h.ZP.info("Adding Member");let t={role:"user",user_email:e.user_email,user_id:e.user_id},a=await L(s,y.team_id,t);console.log("response for team create call: ".concat(a.data));let n=l.findIndex(e=>(console.log("team.team_id=".concat(e.team_id,"; response.data.team_id=").concat(a.data.team_id)),e.team_id===a.data.team_id));if(console.log("foundIndex: ".concat(n)),-1!==n){let e=[...l];e[n]=a.data,r(e),f(a.data)}v(!1)}}catch(e){console.error("Error creating the team:",e)}};return console.log("received teams ".concat(l)),(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(m,{level:4,children:"All Teams"}),(0,a.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:[(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Team Name"}),(0,a.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,a.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,a.jsx)(eZ.Z,{children:"Models"}),(0,a.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,a.jsx)(ej.Z,{children:l&&l.length>0?l.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.team_alias}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.spend}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.max_budget?e.max_budget:"No limit"}),(0,a.jsx)(eg.Z,{style:{maxWidth:"8-x",whiteSpace:"pre-wrap",overflow:"hidden"},children:Array.isArray(e.models)?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:(0,a.jsxs)(Y.Z,{children:["TPM:"," ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,a.jsx)("br",{}),"RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>T(e)}),(0,a.jsx)(ex.Z,{onClick:()=>O(e.team_id),icon:ei.Z,size:"sm"})]})]},e.team_id)):null})]}),N&&(0,a.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,a.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,a.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,a.jsx)("div",{className:"sm:flex sm:items-start",children:(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,a.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Team"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this team ?"})})]})})}),(0,a.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,a.jsx)(W.Z,{onClick:F,color:"red",className:"ml-2",children:"Delete"}),(0,a.jsx)(W.Z,{onClick:()=>{C(!1),P(null)},children:"Cancel"})]})]})]})})]})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>b(!0),children:"+ Create New Team"}),(0,a.jsx)(ee.Z,{title:"Create Team",visible:w,width:800,footer:null,onOk:()=>{b(!1),c.resetFields()},onCancel:()=>{b(!1),c.resetFields()},children:(0,a.jsxs)(Q.Z,{form:c,onFinish:R,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S.map(e=>(0,a.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create Team"})})]})})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(m,{level:4,children:"Team Members"}),(0,a.jsx)(u,{children:"If you belong to multiple teams, this setting controls which teams members you see."}),l&&l.length>0?(0,a.jsx)(ew.Z,{defaultValue:"0",children:l.map((e,l)=>(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>{f(e)},children:e.team_alias},l))}):(0,a.jsxs)(u,{children:["No team created. ",(0,a.jsx)("b",{children:"Defaulting to personal account."})]})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Member Name"}),(0,a.jsx)(eZ.Z,{children:"Role"})]})}),(0,a.jsx)(ej.Z,{children:y?y.members_with_roles.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,a.jsx)(eg.Z,{children:e.role})]},l)):null})]})}),y&&(0,a.jsx)(e=>{let{visible:l,onCancel:t,team:s,onSubmit:r}=e,[n]=Q.Z.useForm();return(0,a.jsx)(ee.Z,{title:"Edit Team",visible:l,width:800,footer:null,onOk:()=>{n.validateFields().then(e=>{r({...e,team_id:s.team_id}),n.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,a.jsxs)(Q.Z,{form:n,onFinish:E,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S&&S.map(e=>(0,a.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"team_id",hidden:!0})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Edit Team"})})]})})},{visible:j,onCancel:()=>{g(!1),f(null)},team:y,onSubmit:E})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(W.Z,{className:"mx-auto mb-5",onClick:()=>v(!0),children:"+ Add member"}),(0,a.jsx)(ee.Z,{title:"Add member",visible:_,width:800,footer:null,onOk:()=>{v(!1),d.resetFields()},onCancel:()=>{v(!1),d.resetFields()},children:(0,a.jsxs)(Q.Z,{form:c,onFinish:U,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,a.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]})})]})]})})},eQ=t(18190),e0=e=>{let l,{searchParams:t,accessToken:s,showSSOBanner:r}=e,[o]=Q.Z.useForm(),[i]=Q.Z.useForm(),{Title:c,Paragraph:d}=eN.default,[m,u]=(0,n.useState)(""),[x,p]=(0,n.useState)(null),[j,g]=(0,n.useState)(!1),[y,Z]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),[b,_]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1);try{l=window.location.origin}catch(e){l=""}l+="/fallback/login";let S=()=>{v(!1)},A=["proxy_admin","proxy_admin_viewer"];(0,n.useEffect)(()=>{(async()=>{if(null!=s){let e=[],l=await F(s,"proxy_admin_viewer");l.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy viewers: ".concat(l));let t=await F(s,"proxy_admin");t.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy admins: ".concat(t)),console.log("combinedList: ".concat(e)),p(e)}})()},[s]);let N=()=>{w(!1),i.resetFields()},C=()=>{w(!1),i.resetFields()},I=e=>(0,a.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,a.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]}),P=(e,l,t)=>(0,a.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"User Role",name:"user_role",labelCol:{span:10},labelAlign:"left",children:(0,a.jsx)(ew.Z,{value:l,children:A.map((e,l)=>(0,a.jsx)(eb.Z,{value:e,children:e},l))})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"user_id",hidden:!0,initialValue:t,valuePropName:"user_id",className:"mt-8",children:(0,a.jsx)(el.Z,{value:t,disabled:!0})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Update role"})})]}),T=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,null);console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),h.ZP.success("Refresh tab to see updated user role"),w(!1)}}catch(e){console.error("Error creating the key:",e)}},E=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,"proxy_admin_viewer");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),g(!1)}}catch(e){console.error("Error creating the key:",e)}},O=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call"),e.user_email,e.user_id;let l=await U(s,e,"proxy_admin");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),Z(!1)}}catch(e){console.error("Error creating the key:",e)}},M=async e=>{null!=s&&V(s,{environment_variables:{PROXY_BASE_URL:e.proxy_base_url,GOOGLE_CLIENT_ID:e.google_client_id,GOOGLE_CLIENT_SECRET:e.google_client_secret}})};return console.log("admins: ".concat(null==x?void 0:x.length)),(0,a.jsxs)("div",{className:"w-full m-2 mt-2 p-8",children:[(0,a.jsx)(c,{level:4,children:"Admin Access "}),(0,a.jsxs)(d,{children:[r&&(0,a.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/ui#restrict-ui-access",children:"Requires SSO Setup"}),(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Proxy Admin: "})," Can create keys, teams, users, add models, etc. ",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Proxy Admin Viewer: "}),"Can just view spend. They cannot create keys, teams or grant users access to new models."," "]}),(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-2 w-full",children:[(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Member Name"}),(0,a.jsx)(eZ.Z,{children:"Role"})]})}),(0,a.jsx)(ej.Z,{children:x?x.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,a.jsx)(eg.Z,{children:e.user_role}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>w(!0)}),(0,a.jsx)(ee.Z,{title:"Update role",visible:f,width:800,footer:null,onOk:N,onCancel:C,children:P(T,e.user_role,e.user_id)})]})]},l)):null})]})})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("div",{className:"flex justify-start",children:[(0,a.jsx)(W.Z,{className:"mr-4 mb-5",onClick:()=>Z(!0),children:"+ Add admin"}),(0,a.jsx)(ee.Z,{title:"Add admin",visible:y,width:800,footer:null,onOk:()=>{Z(!1),i.resetFields()},onCancel:()=>{Z(!1),i.resetFields()},children:I(O)}),(0,a.jsx)(W.Z,{className:"mb-5",onClick:()=>g(!0),children:"+ Add viewer"}),(0,a.jsx)(ee.Z,{title:"Add viewer",visible:j,width:800,footer:null,onOk:()=>{g(!1),i.resetFields()},onCancel:()=>{g(!1),i.resetFields()},children:I(E)})]})})]}),(0,a.jsxs)(J.Z,{children:[(0,a.jsx)(c,{level:4,children:"Add SSO"}),(0,a.jsxs)("div",{className:"flex justify-start mb-4",children:[(0,a.jsx)(W.Z,{onClick:()=>_(!0),children:"Add SSO"}),(0,a.jsx)(ee.Z,{title:"Add SSO",visible:b,width:800,footer:null,onOk:()=>{_(!1),o.resetFields()},onCancel:()=>{_(!1),o.resetFields()},children:(0,a.jsxs)(Q.Z,{form:o,onFinish:e=>{O(e),M(e),_(!1),v(!0)},labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Admin Email",name:"user_email",rules:[{required:!0,message:"Please enter the email of the proxy admin"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"PROXY BASE URL",name:"proxy_base_url",rules:[{required:!0,message:"Please enter the proxy base url"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT ID",name:"google_client_id",rules:[{required:!0,message:"Please enter the google client id"}],children:(0,a.jsx)(el.Z.Password,{})}),(0,a.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT SECRET",name:"google_client_secret",rules:[{required:!0,message:"Please enter the google client secret"}],children:(0,a.jsx)(el.Z.Password,{})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})}),(0,a.jsxs)(ee.Z,{title:"SSO Setup Instructions",visible:k,width:800,footer:null,onOk:S,onCancel:()=>{v(!1)},children:[(0,a.jsx)("p",{children:"Follow these steps to complete the SSO setup:"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"1. DO NOT Exit this TAB"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"2. Open a new tab, visit your proxy base url"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"3. Confirm your SSO is configured correctly and you can login on the new Tab"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"4. If Step 3 is successful, you can close this tab"}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{onClick:S,children:"Done"})})]})]}),(0,a.jsxs)(eQ.Z,{title:"Login without SSO",color:"teal",children:["If you need to login without sso, you can access ",(0,a.jsxs)("a",{href:l,target:"_blank",children:[(0,a.jsx)("b",{children:l})," "]})]})]})]})},e1=e=>{let{accessToken:l,userRole:t,userID:s}=e,[r,o]=(0,n.useState)([]),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.data)})},[l,t,s]);let x=e=>{if(!l)return;let t=Object.fromEntries(Object.entries(e.variables).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));try{V(l,{environment_variables:t})}catch(e){h.ZP.error("Failed to update callback: "+e,20)}h.ZP.success("Callback updated successfully")},p=()=>{l&&d.validateFields().then(e=>{console.log("Form values:",e),"langfuse"===e.callback?(V(l,{environment_variables:{LANGFUSE_PUBLIC_KEY:e.langfusePublicKey,LANGFUSE_SECRET_KEY:e.langfusePrivateKey},litellm_settings:{success_callback:[e.callback]}}),o(r?[...r,e.callback]:[e.callback])):"slack"===e.callback&&(V(l,{general_settings:{alerting:["slack"],alerting_threshold:300},environment_variables:{SLACK_WEBHOOK_URL:e.slackWebhookUrl}}),o(r?[...r,e.callback]:[e.callback])),c(!1),d.resetFields(),u(null)})};return l?(0,a.jsxs)("div",{className:"w-full mx-4",children:[(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,a.jsx)(H.Z,{children:"Logging Callbacks"}),(0,a.jsxs)(em.Z,{children:[(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Callback"}),(0,a.jsx)(eZ.Z,{children:"Callback Env Vars"})]})}),(0,a.jsx)(ej.Z,{children:r.map((e,t)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(ec.Z,{color:"emerald",children:e.name})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)("ul",{children:Object.entries(e.variables).map(e=>{let[l,t]=e;return(0,a.jsxs)("li",{children:[(0,a.jsx)(Y.Z,{className:"mt-2",children:l}),"LANGFUSE_HOST"===l?(0,a.jsx)("p",{children:"default value=https://cloud.langfuse.com"}):(0,a.jsx)("div",{}),(0,a.jsx)(eF.Z,{name:l,defaultValue:t,type:"password"})]},l)})}),(0,a.jsx)(W.Z,{className:"mt-2",onClick:()=>x(e),children:"Save Changes"}),(0,a.jsx)(W.Z,{onClick:()=>B(l,e.name),className:"mx-2",children:"Test Callback"})]})]},t))})]}),(0,a.jsx)(W.Z,{size:"xs",className:"mt-2",onClick:()=>{console.log("Add callback clicked"),c(!0)},children:"Add Callback"})]})]}),(0,a.jsx)(ee.Z,{title:"Add Callback",visible:i,onOk:p,width:800,onCancel:()=>{c(!1),d.resetFields(),u(null)},footer:null,children:(0,a.jsxs)(Q.Z,{form:d,layout:"vertical",onFinish:p,children:[(0,a.jsx)(Q.Z.Item,{label:"Callback",name:"callback",rules:[{required:!0,message:"Please select a callback"}],children:(0,a.jsxs)(X.default,{onChange:e=>{u(e)},children:[(0,a.jsx)(X.default.Option,{value:"langfuse",children:"langfuse"}),(0,a.jsx)(X.default.Option,{value:"slack",children:"slack alerting"})]})}),"langfuse"===m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"LANGFUSE_PUBLIC_KEY",name:"langfusePublicKey",rules:[{required:!0,message:"Please enter the public key"}],children:(0,a.jsx)(el.Z.Password,{})}),(0,a.jsx)(Q.Z.Item,{label:"LANGFUSE_PRIVATE_KEY",name:"langfusePrivateKey",rules:[{required:!0,message:"Please enter the private key"}],children:(0,a.jsx)(el.Z.Password,{})})]}),"slack"===m&&(0,a.jsx)(Q.Z.Item,{label:"SLACK_WEBHOOK_URL",name:"slackWebhookUrl",rules:[{required:!0,message:"Please enter the Slack webhook URL"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})})]}):null},e2=e=>{let{accessToken:l,userRole:t,userID:s}=e,[r,o]=(0,n.useState)({}),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.router_settings)})},[l,t,s]);let x=e=>{if(!l)return;console.log("router_settings",e);let t=Object.fromEntries(Object.entries(e).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t);try{V(l,{router_settings:t})}catch(e){h.ZP.error("Failed to update router settings: "+e,20)}h.ZP.success("router settings updated successfully")};return l?(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,a.jsx)(H.Z,{children:"Router Settings"}),(0,a.jsx)(em.Z,{children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Setting"}),(0,a.jsx)(eZ.Z,{children:"Value"})]})}),(0,a.jsx)(ej.Z,{children:Object.entries(r).map(e=>{let[l,t]=e;return(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:l})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(eF.Z,{name:l,defaultValue:"object"==typeof t?JSON.stringify(t,null,2):t.toString()})})]},l)})})]})}),(0,a.jsx)(K.Z,{children:(0,a.jsx)(W.Z,{className:"mt-2",onClick:()=>x(r),children:"Save Changes"})})]})}):null},e4=t(12968),e3=t(67951);async function e8(e,l,t,s){console.log("isLocal:",!1);let r=window.location.origin,a=new e4.ZP.OpenAI({apiKey:s,baseURL:r,dangerouslyAllowBrowser:!0});try{for await(let s of(await a.chat.completions.create({model:t,stream:!0,messages:[{role:"user",content:e}]})))console.log(s),s.choices[0].delta.content&&l(s.choices[0].delta.content)}catch(e){h.ZP.error("Error occurred while generating model response. Please try again. Error: ".concat(e),20)}}var e5=e=>{let{accessToken:l,token:t,userRole:s,userID:r}=e,[o,i]=(0,n.useState)(""),[c,d]=(0,n.useState)(""),[m,h]=(0,n.useState)([]),[u,x]=(0,n.useState)(void 0),[p,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&r&&(async()=>{try{let e=await k(l,r,s);if(console.log("model_info:",e),(null==e?void 0:e.data.length)>0){let l=e.data.map(e=>({value:e.id,label:e.id}));console.log(l),j(l),x(e.data[0].id)}}catch(e){console.error("Error fetching model info:",e)}})()},[l,r,s]);let g=(e,l)=>{h(t=>{let s=t[t.length-1];return s&&s.role===e?[...t.slice(0,t.length-1),{role:e,content:s.content+l}]:[...t,{role:e,content:l}]})},y=async()=>{if(""!==c.trim()&&o&&t&&s&&r){h(e=>[...e,{role:"user",content:c}]);try{u&&await e8(c,e=>g("assistant",e),u,o)}catch(e){console.error("Error fetching model response",e),g("assistant","Error fetching model response")}d("")}};if(s&&"Admin Viewer"==s){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to test models"})]})}return(0,a.jsx)("div",{style:{width:"100%",position:"relative"},children:(0,a.jsx)(J.Z,{className:"gap-2 p-8 h-[80vh] w-full mt-2",children:(0,a.jsx)(em.Z,{children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{children:[(0,a.jsx)(eI.Z,{children:"Chat"}),(0,a.jsx)(eI.Z,{children:"API Reference"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsxs)(eE.Z,{children:[(0,a.jsx)("div",{className:"sm:max-w-2xl",children:(0,a.jsxs)(J.Z,{numItems:2,children:[(0,a.jsxs)(K.Z,{children:[(0,a.jsx)(Y.Z,{children:"API Key"}),(0,a.jsx)(eF.Z,{placeholder:"Type API Key here",type:"password",onValueChange:i,value:o})]}),(0,a.jsxs)(K.Z,{className:"mx-2",children:[(0,a.jsx)(Y.Z,{children:"Select Model:"}),(0,a.jsx)(X.default,{placeholder:"Select a Model",onChange:e=>{console.log("selected ".concat(e)),x(e)},options:p,style:{width:"200px"}})]})]})}),(0,a.jsxs)(ep.Z,{className:"mt-5",style:{display:"block",maxHeight:"60vh",overflowY:"auto"},children:[(0,a.jsx)(ey.Z,{children:(0,a.jsx)(ef.Z,{children:(0,a.jsx)(eg.Z,{})})}),(0,a.jsx)(ej.Z,{children:m.map((e,l)=>(0,a.jsx)(ef.Z,{children:(0,a.jsx)(eg.Z,{children:"".concat(e.role,": ").concat(e.content)})},l))})]}),(0,a.jsx)("div",{className:"mt-3",style:{position:"absolute",bottom:5,width:"95%"},children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(eF.Z,{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Type your message..."}),(0,a.jsx)(W.Z,{onClick:y,className:"ml-2",children:"Send"})]})})]}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{children:[(0,a.jsx)(eI.Z,{children:"OpenAI Python SDK"}),(0,a.jsx)(eI.Z,{children:"LlamaIndex"}),(0,a.jsx)(eI.Z,{children:"Langchain Py"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nimport openai\nclient = openai.OpenAI(\n api_key="your_api_key",\n base_url="http://0.0.0.0:4000" # proxy base url\n)\n\nresponse = client.chat.completions.create(\n model="gpt-3.5-turbo", # model to use from Models Tab\n messages = [\n {\n "role": "user",\n "content": "this is a test request, write a short poem"\n }\n ],\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-openai-client",\n "generation_id": "openai-client-gen-id22",\n "trace_id": "openai-client-trace-id22",\n "trace_user_id": "openai-client-user-id2"\n }\n }\n)\n\nprint(response)\n '})}),(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nimport os, dotenv\n\nfrom llama_index.llms import AzureOpenAI\nfrom llama_index.embeddings import AzureOpenAIEmbedding\nfrom llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n\nllm = AzureOpenAI(\n engine="azure-gpt-3.5", # model_name on litellm proxy\n temperature=0.0,\n azure_endpoint="http://0.0.0.0:4000", # litellm proxy endpoint\n api_key="sk-1234", # litellm proxy API Key\n api_version="2023-07-01-preview",\n)\n\nembed_model = AzureOpenAIEmbedding(\n deployment_name="azure-embedding-model",\n azure_endpoint="http://0.0.0.0:4000",\n api_key="sk-1234",\n api_version="2023-07-01-preview",\n)\n\n\ndocuments = SimpleDirectoryReader("llama_index_data").load_data()\nservice_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)\nindex = VectorStoreIndex.from_documents(documents, service_context=service_context)\n\nquery_engine = index.as_query_engine()\nresponse = query_engine.query("What did the author do growing up?")\nprint(response)\n\n '})}),(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nfrom langchain.chat_models import ChatOpenAI\nfrom langchain.prompts.chat import (\n ChatPromptTemplate,\n HumanMessagePromptTemplate,\n SystemMessagePromptTemplate,\n)\nfrom langchain.schema import HumanMessage, SystemMessage\n\nchat = ChatOpenAI(\n openai_api_base="http://0.0.0.0:8000",\n model = "gpt-3.5-turbo",\n temperature=0.1,\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-langchain-client",\n "generation_id": "langchain-client-gen-id22",\n "trace_id": "langchain-client-trace-id22",\n "trace_user_id": "langchain-client-user-id2"\n }\n }\n)\n\nmessages = [\n SystemMessage(\n content="You are a helpful assistant that im using to make a test request to."\n ),\n HumanMessage(\n content="test from litellm. tell me why it\'s amazing in 1 sentence"\n ),\n]\nresponse = chat(messages)\n\nprint(response)\n\n '})})]})]})})]})]})})})})},e6=t(33509),e7=t(95781);let{Sider:e9}=e6.default;var le=e=>{let{setPage:l,userRole:t,defaultSelectedKey:s}=e;return"Admin Viewer"==t?(0,a.jsx)(e6.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,a.jsx)(e9,{width:120,children:(0,a.jsxs)(e7.Z,{mode:"inline",defaultSelectedKeys:s||["4"],style:{height:"100%",borderRight:0},children:[(0,a.jsx)(e7.Z.Item,{onClick:()=>l("api-keys"),children:"API Keys"},"4"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("models"),children:"Models"},"2"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("llm-playground"),children:"Chat UI"},"3"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("usage"),children:"Usage"},"1")]})})}):(0,a.jsx)(e6.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,a.jsx)(e9,{width:120,children:(0,a.jsxs)(e7.Z,{mode:"inline",defaultSelectedKeys:s||["1"],style:{height:"100%",borderRight:0},children:[(0,a.jsx)(e7.Z.Item,{onClick:()=>l("api-keys"),children:(0,a.jsx)(Y.Z,{children:"API Keys"})},"1"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("llm-playground"),children:(0,a.jsx)(Y.Z,{children:"Test Key"})},"3"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("models"),children:(0,a.jsx)(Y.Z,{children:"Models"})},"2"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("teams"),children:(0,a.jsx)(Y.Z,{children:"Teams"})},"6"):null,(0,a.jsx)(e7.Z.Item,{onClick:()=>l("usage"),children:(0,a.jsx)(Y.Z,{children:"Usage"})},"4"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("users"),children:(0,a.jsx)(Y.Z,{children:"Users"})},"5"):null,(0,a.jsx)(e7.Z.Item,{onClick:()=>l("settings"),children:(0,a.jsx)(Y.Z,{children:"Integrations"})},"8"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("general-settings"),children:(0,a.jsx)(Y.Z,{children:"Settings"})},"9"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("admin-panel"),children:(0,a.jsx)(Y.Z,{children:"Admin"})},"7"):null]})})})},ll=t(67989),lt=e=>{let{accessToken:l,token:t,userRole:s,userID:r}=e,o=new Date,[i,c]=(0,n.useState)([]),[d,m]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)([]),[j,g]=(0,n.useState)([]),[y,Z]=(0,n.useState)([]),[f,w]=(0,n.useState)([]),[b,k]=(0,n.useState)([]),[v,P]=(0,n.useState)([]),[O,F]=(0,n.useState)([]),M=new Date(o.getFullYear(),o.getMonth(),1),R=new Date(o.getFullYear(),o.getMonth()+1,0),D=U(M),L=U(R);function U(e){let l=e.getFullYear(),t=e.getMonth()+1,s=e.getDate();return"".concat(l,"-").concat(t<10?"0"+t:t,"-").concat(s<10?"0"+s:s)}return console.log("Start date is ".concat(D)),console.log("End date is ".concat(L)),(0,n.useEffect)(()=>{l&&t&&s&&r&&(async()=>{try{if(console.log("user role: ".concat(s)),"Admin"==s||"Admin Viewer"==s){let e=await C(l);c(e);let t=(await I(l)).map(e=>({key:(e.key_name||e.key_alias||e.api_key).substring(0,10),spend:e.total_spend}));m(t);let s=(await T(l)).map(e=>({key:e.model,spend:e.total_spend}));u(s);let r=await S(l);console.log("teamSpend",r),g(r.daily_spend),w(r.teams);let a=r.total_spend_per_team;a=a.map(e=>(e.name=e.team_id||"",e.value=e.total_spend||0,e)),k(a);let n=await A(l);Z(n.top_10_tags)}else"App Owner"==s&&await N(l,t,s,r,D,L).then(async e=>{if(console.log("result from spend logs call",e),"daily_spend"in e){let l=e.daily_spend;console.log("daily spend",l),c(l);let t=e.top_api_keys;m(t)}else{let t=(await E(l,function(e){let l=[];e.forEach(e=>{Object.entries(e).forEach(e=>{let[t,s]=e;"spend"!==t&&"startTime"!==t&&"models"!==t&&"users"!==t&&l.push({key:t,spend:s})})}),l.sort((e,l)=>Number(l.spend)-Number(e.spend));let t=l.slice(0,5).map(e=>e.key);return console.log("topKeys: ".concat(Object.keys(t[0]))),t}(e))).info.map(e=>({key:(e.key_name||e.key_alias).substring(0,10),spend:e.spend}));m(t),p(function(e){let l={};e.forEach(e=>{Object.entries(e.users).forEach(e=>{let[t,s]=e;""!==t&&null!=t&&"None"!=t&&(l[t]||(l[t]=0),l[t]+=s)})});let t=Object.entries(l).map(e=>{let[l,t]=e;return{user_id:l,spend:t}});t.sort((e,l)=>l.spend-e.spend);let s=t.slice(0,5);return console.log("topKeys: ".concat(Object.values(s[0]))),s}(e)),c(e)}});let e=await _(l,r,s);console.log("Model metrics response:",e);let a=[...e].sort((e,l)=>l.avg_latency_seconds-e.avg_latency_seconds);console.log("Sorted by latency:",a),P(e),F(a)}catch(e){console.error("There was an error fetching the data",e)}})()},[l,t,s,r,D,L]),(0,a.jsxs)("div",{style:{width:"100%"},className:"p-8",children:[(0,a.jsx)(ev,{userID:r,userRole:s,accessToken:l,userSpend:null}),(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{className:"mt-2",children:[(0,a.jsx)(eI.Z,{children:"All Up"}),(0,a.jsx)(eI.Z,{children:"Team Based Usage"}),(0,a.jsx)(eI.Z,{children:"Tag Based Usage"}),(0,a.jsx)(eI.Z,{children:"Model Based Usage"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,a.jsx)(K.Z,{numColSpan:2,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Monthly Spend"}),(0,a.jsx)(ed.Z,{data:i,index:"date",categories:["spend"],colors:["blue"],valueFormatter:e=>"$ ".concat(new Intl.NumberFormat("us").format(e).toString()),yAxisWidth:100,tickGap:5})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top API Keys"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:d,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:80,tickGap:5,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top Users"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:x,index:"user_id",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top Models"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:h,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})})]})}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,a.jsxs)(K.Z,{numColSpan:2,children:[(0,a.jsxs)(em.Z,{className:"mb-2",children:[(0,a.jsx)(H.Z,{children:"Total Spend Per Team"}),(0,a.jsx)(ll.Z,{data:b})]}),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Daily Spend Per Team"}),(0,a.jsx)(ed.Z,{className:"h-72",data:j,showLegend:!0,index:"date",categories:f,yAxisWidth:80,stack:!0})]})]}),(0,a.jsx)(K.Z,{numColSpan:2})]})}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full mb-4",children:[(0,a.jsx)(K.Z,{numColSpan:2,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Spend Per Tag - Last 30 Days"}),(0,a.jsxs)(Y.Z,{children:["Get Started Tracking cost per tag ",(0,a.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/enterprise#tracking-spend-for-custom-tags",target:"_blank",children:"here"})]}),(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Tag"}),(0,a.jsx)(eZ.Z,{children:"Spend"}),(0,a.jsx)(eZ.Z,{children:"Requests"})]})}),(0,a.jsx)(ej.Z,{children:y.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.name}),(0,a.jsx)(eg.Z,{children:e.value}),(0,a.jsx)(eg.Z,{children:e.log_count})]},e.name))})]})]})}),(0,a.jsx)(K.Z,{numColSpan:2})]})}),(0,a.jsxs)(eE.Z,{children:[(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Number Requests per Model"}),(0,a.jsx)(ed.Z,{data:v,className:"h-[50vh]",index:"model",categories:["num_requests"],colors:["blue"],yAxisWidth:400,layout:"vertical",tickGap:5})]}),(0,a.jsxs)(em.Z,{className:"mt-4",children:[(0,a.jsx)(H.Z,{children:"Latency Per Model"}),(0,a.jsx)(ed.Z,{data:O,className:"h-[50vh]",index:"model",categories:["avg_latency_seconds"],colors:["red"],yAxisWidth:400,layout:"vertical",tickGap:5})]})]})]})]})]})},ls=()=>{let{Title:e,Paragraph:l}=eN.default,[t,s]=(0,n.useState)(""),[r,i]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[h,u]=(0,n.useState)(null),[x,p]=(0,n.useState)(!0),j=(0,o.useSearchParams)(),g=j.get("userID"),y=j.get("token"),[Z,f]=(0,n.useState)("api-keys"),[w,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(y){let e=(0,eA.o)(y);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),b(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e.toLowerCase())),console.log("Received user role length: ".concat(e.toLowerCase().length)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),s(l),"Admin Viewer"==l&&f("usage")}else console.log("User role not defined");e.user_email?i(e.user_email):console.log("User Email is not set ".concat(e)),e.login_method?p("username_password"==e.login_method):console.log("User Email is not set ".concat(e))}}},[y]),(0,a.jsx)(n.Suspense,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:(0,a.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,a.jsx)(m,{userID:g,userRole:t,userEmail:r,showSSOBanner:x}),(0,a.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(le,{setPage:f,userRole:t,defaultSelectedKey:null})}),"api-keys"==Z?(0,a.jsx)(eC,{userID:g,userRole:t,teams:c,keys:h,setUserRole:s,userEmail:r,setUserEmail:i,setTeams:d,setKeys:u}):"models"==Z?(0,a.jsx)(eW,{userID:g,userRole:t,token:y,accessToken:w}):"llm-playground"==Z?(0,a.jsx)(e5,{userID:g,userRole:t,token:y,accessToken:w}):"users"==Z?(0,a.jsx)(e$,{userID:g,userRole:t,token:y,keys:h,accessToken:w,setKeys:u}):"teams"==Z?(0,a.jsx)(eX,{teams:c,setTeams:d,searchParams:j,accessToken:w,userID:g,userRole:t}):"admin-panel"==Z?(0,a.jsx)(e0,{setTeams:d,searchParams:j,accessToken:w,showSSOBanner:x}):"settings"==Z?(0,a.jsx)(e1,{userID:g,userRole:t,accessToken:w}):"general-settings"==Z?(0,a.jsx)(e2,{userID:g,userRole:t,accessToken:w}):(0,a.jsx)(lt,{userID:g,userRole:t,token:y,accessToken:w})]})]})})}}},function(e){e.O(0,[289,971,69,744],function(){return e(e.s=20661)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/fd9d1056-bcf69420342937de.js b/litellm/proxy/_experimental/out/_next/static/chunks/fd9d1056-dafd44dfa2da140c.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/chunks/fd9d1056-bcf69420342937de.js rename to litellm/proxy/_experimental/out/_next/static/chunks/fd9d1056-dafd44dfa2da140c.js diff --git a/litellm/proxy/_experimental/out/index.html b/litellm/proxy/_experimental/out/index.html index 9786e4ead..93b1ab8eb 100644 --- a/litellm/proxy/_experimental/out/index.html +++ b/litellm/proxy/_experimental/out/index.html @@ -1 +1 @@ -LiteLLM Dashboard \ No newline at end of file +LiteLLM Dashboard \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/index.txt b/litellm/proxy/_experimental/out/index.txt index e3b6dba85..8a4a6fb5b 100644 --- a/litellm/proxy/_experimental/out/index.txt +++ b/litellm/proxy/_experimental/out/index.txt @@ -1,7 +1,7 @@ 2:I[77831,[],""] -3:I[21225,["289","static/chunks/289-04be6cb9636840d2.js","931","static/chunks/app/page-cb85da9a307105a0.js"],""] +3:I[16586,["968","static/chunks/968-0cc23fee51b47e4e.js","931","static/chunks/app/page-93ac11fb17dce9d6.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["y7Wf8hfvd5KooOO87je1n",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{"propsForComponent":{"params":{}},"Component":"$3","isStaticGeneration":true}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_c23dc8","children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/ui/_next/static/css/dc347b0d22ffde5d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["Oe7aA-U7OV9Y13gspREJQ",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{"propsForComponent":{"params":{}},"Component":"$3","isStaticGeneration":true}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_c23dc8","children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/ui/_next/static/css/dc347b0d22ffde5d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"LiteLLM Dashboard"}],["$","meta","3",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","4",{"rel":"icon","href":"/ui/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/ui/litellm-dashboard/out/404.html b/ui/litellm-dashboard/out/404.html index 8df02fe3d..3ace44f68 100644 --- a/ui/litellm-dashboard/out/404.html +++ b/ui/litellm-dashboard/out/404.html @@ -1 +1 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/y7Wf8hfvd5KooOO87je1n/_buildManifest.js b/ui/litellm-dashboard/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_buildManifest.js similarity index 100% rename from ui/litellm-dashboard/out/_next/static/y7Wf8hfvd5KooOO87je1n/_buildManifest.js rename to ui/litellm-dashboard/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_buildManifest.js diff --git a/ui/litellm-dashboard/out/_next/static/y7Wf8hfvd5KooOO87je1n/_ssgManifest.js b/ui/litellm-dashboard/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_ssgManifest.js similarity index 100% rename from ui/litellm-dashboard/out/_next/static/y7Wf8hfvd5KooOO87je1n/_ssgManifest.js rename to ui/litellm-dashboard/out/_next/static/Oe7aA-U7OV9Y13gspREJQ/_ssgManifest.js diff --git a/ui/litellm-dashboard/out/_next/static/chunks/69-442a9c01c3fd20f9.js b/ui/litellm-dashboard/out/_next/static/chunks/69-e49705773ae41779.js similarity index 100% rename from ui/litellm-dashboard/out/_next/static/chunks/69-442a9c01c3fd20f9.js rename to ui/litellm-dashboard/out/_next/static/chunks/69-e49705773ae41779.js diff --git a/ui/litellm-dashboard/out/_next/static/chunks/289-04be6cb9636840d2.js b/ui/litellm-dashboard/out/_next/static/chunks/968-0cc23fee51b47e4e.js similarity index 67% rename from ui/litellm-dashboard/out/_next/static/chunks/289-04be6cb9636840d2.js rename to ui/litellm-dashboard/out/_next/static/chunks/968-0cc23fee51b47e4e.js index 4221b318f..e18edda98 100644 --- a/ui/litellm-dashboard/out/_next/static/chunks/289-04be6cb9636840d2.js +++ b/ui/litellm-dashboard/out/_next/static/chunks/968-0cc23fee51b47e4e.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{12215:function(e,t,n){n.d(t,{iN:function(){return h},R_:function(){return d},EV:function(){return g},ez:function(){return p}});var r=n(41785),o=n(76991),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=i(r),f=l((0,o.uA)({h:s(p,d,!0),s:c(p,d,!0),v:u(p,d,!0)}));n.push(f)}n.push(l(r));for(var m=1;m<=4;m+=1){var g=i(r),h=l((0,o.uA)({h:s(g,m),s:c(g,m),v:u(g,m)}));n.push(h)}return"dark"===t.theme?a.map(function(e){var r,a,i,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[s]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f={},m={};Object.keys(p).forEach(function(e){f[e]=d(p[e]),f[e].primary=f[e][5],m[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}),f.red,f.volcano;var g=f.gold;f.orange,f.yellow,f.lime,f.green,f.cyan;var h=f.blue;f.geekblue,f.purple,f.magenta,f.grey,f.grey},8985:function(e,t,n){n.d(t,{E4:function(){return ej},jG:function(){return A},ks:function(){return U},bf:function(){return F},CI:function(){return eD},fp:function(){return X},xy:function(){return eM}});var r,o,a=n(50833),i=n(80406),l=n(63787),s=n(5239),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(24050),d=n(64090),p=n.t(d,2);n(61475),n(92536);var f=n(47365),m=n(65127);function g(e){return e.join("%")}var h=function(){function e(t){(0,f.Z)(this,e),(0,a.Z)(this,"instanceId",void 0),(0,a.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__",E=d.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new h(e)}(),defaultCache:!0}),S=n(6976),w=n(22127),x=function(){function e(){(0,f.Z)(this,e),(0,a.Z)(this,"cache",void 0),(0,a.Z)(this,"keys",void 0),(0,a.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,m.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),T=new x;function A(e){var t=Array.isArray(e)?e:[e];return T.has(t)||T.set(t,new C(t)),T.get(t)}var I=new WeakMap,N={},R=new WeakMap;function _(e){var t=R.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,S.Z)(r)?t+=_(r):t+=r}),R.set(e,t)),t}function P(e,t){return c("".concat(t,"_").concat(_(e)))}var M="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),L="_bAmBoO_",D=void 0,j=(0,w.Z)();function F(e){return"number"==typeof e?"".concat(e,"px"):e}function B(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var l=(0,s.Z)((0,s.Z)({},o),{},(r={},(0,a.Z)(r,b,t),(0,a.Z)(r,v,n),r)),c=Object.keys(l).map(function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];if(null!=n&&null!==(s=n.preserve)&&void 0!==s&&s[r])a[r]=l;else if(("string"==typeof l||"number"==typeof l)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[r])){var s,c,u,d=U(r,null==n?void 0:n.prefix);o[d]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[r]?String(l):"".concat(l,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},z=n(24800),H=(0,s.Z)({},p).useInsertionEffect,G=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){d.useMemo(e,n),(0,z.Z)(function(){return t(!0)},n)},$=void 0!==(0,s.Z)({},p).useInsertionEffect?function(e){var t=[],n=!1;return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function W(e,t,n,r,o){var a=d.useContext(E).cache,s=g([e].concat((0,l.Z)(t))),c=$([s]),u=function(e){a.opUpdate(s,function(t){var r=(0,i.Z)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};d.useMemo(function(){u()},[s]);var p=a.opGet(s)[1];return G(function(){null==o||o(p)},function(e){return u(function(t){var n=(0,i.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(p)),[r+1,a]}),function(){a.opUpdate(s,function(t){var n=(0,i.Z)(t||[],2),o=n[0],l=void 0===o?0:o,u=n[1];return 0==l-1?(c(function(){(e||!a.opGet(s))&&(null==r||r(u,!1))}),null):[l-1,u]})}},[s]),p}var V={},q=new Map,Y=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,s.Z)((0,s.Z)({},o),t);return r&&(a=r(a)),a},K="token";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(E),o=r.cache.instanceId,a=r.container,p=n.salt,f=void 0===p?"":p,m=n.override,g=void 0===m?V:m,h=n.formatToken,S=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=I,r=0;r=(q.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(w&&r){var l=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:a,priority:-999});l[y]=o,l.setAttribute(b,n._themeKey)}})}var Q=n(14749),J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee="comm",et="rule",en="decl",er=Math.abs,eo=String.fromCharCode;function ea(e,t,n){return e.replace(t,n)}function ei(e,t){return 0|e.charCodeAt(t)}function el(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ec(e,t){return t.push(e),e}function eu(e,t){for(var n="",r=0;r0?f[v]+" "+y:ea(y,/&\f/g,f[v])).trim())&&(s[b++]=E);return ev(e,t,n,0===o?et:l,s,c,u,d)}function eO(e,t,n,r,o){return ev(e,t,n,en,el(e,0,r),el(e,r+1,-1),r,o)}var ek="data-ant-cssinjs-cache-path",eC="_FILE_STYLE__",eT=!0,eA="_multi_value_";function eI(e){var t,n,r;return eu((r=function e(t,n,r,o,a,i,l,s,c){for(var u,d,p,f=0,m=0,g=l,h=0,b=0,v=0,y=1,E=1,S=1,w=0,x="",O=a,k=i,C=o,T=x;E;)switch(v=w,w=ey()){case 40:if(108!=v&&58==ei(T,g-1)){-1!=(d=T+=ea(ew(w),"&","&\f"),p=er(f?s[f-1]:0),d.indexOf("&\f",p))&&(S=-1);break}case 34:case 39:case 91:T+=ew(w);break;case 9:case 10:case 13:case 32:T+=function(e){for(;eh=eE();)if(eh<33)ey();else break;return eS(e)>2||eS(eh)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&ey()&&!(eh<48)&&!(eh>102)&&(!(eh>57)||!(eh<65))&&(!(eh>70)||!(eh<97)););return n=eg+(t<6&&32==eE()&&32==ey()),el(eb,e,n)}(eg-1,7);continue;case 47:switch(eE()){case 42:case 47:ec(ev(u=function(e,t){for(;ey();)if(e+eh===57)break;else if(e+eh===84&&47===eE())break;return"/*"+el(eb,t,eg-1)+"*"+eo(47===e?e:ey())}(ey(),eg),n,r,ee,eo(eh),el(u,2,-2),0,c),c);break;default:T+="/"}break;case 123*y:s[f++]=es(T)*S;case 125*y:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+m:-1==S&&(T=ea(T,/\f/g,"")),b>0&&es(T)-g&&ec(b>32?eO(T+";",o,r,g-1,c):eO(ea(T," ","")+";",o,r,g-2,c),c);break;case 59:T+=";";default:if(ec(C=ex(T,n,r,f,m,a,s,x,O=[],k=[],g,i),i),123===w){if(0===m)e(T,n,C,C,O,i,g,s,k);else switch(99===h&&110===ei(T,3)?100:h){case 100:case 108:case 109:case 115:e(t,C,C,o&&ec(ex(t,C,C,0,0,a,s,x,a,O=[],g,k),k),a,k,g,s,o?O:k);break;default:e(T,C,C,C,[""],k,0,s,k)}}}f=m=b=0,y=S=1,x=T="",g=l;break;case 58:g=1+es(T),b=v;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(eh=eg>0?ei(eb,--eg):0,ef--,10===eh&&(ef=1,ep--),eh))continue}switch(T+=eo(w),w*y){case 38:S=m>0?1:(T+="\f",-1);break;case 44:s[f++]=(es(T)-1)*S,S=1;break;case 64:45===eE()&&(T+=ew(ey())),h=eE(),m=g=es(x=T+=function(e){for(;!eS(eE());)ey();return el(eb,e,eg)}(eg)),w++;break;case 45:45===v&&2==es(T)&&(y=0)}}return i}("",null,null,null,[""],(n=t=e,ep=ef=1,em=es(eb=n),eg=0,t=[]),0,[0],t),eb="",r),ed).replace(/\{%%%\:[^;];}/g,";")}var eN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,c=r.parentSelectors,d=n.hashId,p=n.layer,f=(n.path,n.hashPriority),m=n.transformers,g=void 0===m?[]:m;n.linters;var h="",b={};function v(t){var r=t.getName(d);if(!b[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];b[r]="@keyframes ".concat(t.getName(d)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var u=g.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,S.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,S.Z)(r)&&r&&("_skip_check_"in r||eA in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;J[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(d)),h+="".concat(n,":").concat(r,";")}var m,g=null!==(m=null==r?void 0:r.value)&&void 0!==m?m:r;"object"===(0,S.Z)(r)&&null!=r&&r[eA]&&Array.isArray(g)?g.forEach(function(e){p(t,e)}):p(t,g)}else{var y=!1,E=t.trim(),w=!1;(o||a)&&d?E.startsWith("@")?y=!0:E=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,l.Z)(n.slice(1))).join(" ")}).join(",")}(t,d,f):o&&!d&&("&"===E||""===E)&&(E="",w=!0);var x=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,l.Z)(c),[E])}),O=(0,i.Z)(x,2),k=O[0],C=O[1];b=(0,s.Z)((0,s.Z)({},b),C),h+="".concat(E).concat(k)}})}}),o){if(p&&(void 0===D&&(D=function(e,t,n){if((0,w.Z)()){(0,u.hq)(e,M);var r,o,a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(L);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,u.jL)(M),i}return!1}("@layer ".concat(M," { .").concat(M,' { content: "').concat(L,'"!important; } }'),function(e){e.className=M})),D)){var y=p.split(","),E=y[y.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(p,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,b]};function eR(e,t){return c("".concat(e.join("%")).concat(t))}function e_(){return null}var eP="style";function eM(e,t){var n=e.token,o=e.path,s=e.hashId,c=e.layer,p=e.nonce,f=e.clientOnly,m=e.order,g=void 0===m?0:m,h=d.useContext(E),S=h.autoClear,x=(h.mock,h.defaultCache),O=h.hashPriority,k=h.container,C=h.ssrInline,T=h.transformers,A=h.linters,I=h.cache,N=n._tokenKey,R=[N].concat((0,l.Z)(o)),_=W(eP,R,function(){var e=R.join("|");if(!function(){if(!r&&(r={},(0,w.Z)())){var e,t=document.createElement("div");t.className=ek,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.Z)(t,2),o=n[0],a=n[1];r[o]=a});var o=document.querySelector("style[".concat(ek,"]"));o&&(eT=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,w.Z)()){if(eT)n=eC;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),a=(0,i.Z)(n,2),l=a[0],u=a[1];if(l)return[l,N,u,{},f,g]}var d=eN(t(),{hashId:s,hashPriority:O,layer:c,path:o.join("-"),transformers:T,linters:A}),p=(0,i.Z)(d,2),m=p[0],h=p[1],b=eI(m),y=eR(R,b);return[b,N,y,h,f,g]},function(e,t){var n=(0,i.Z)(e,3)[2];(t||S)&&j&&(0,u.jL)(n,{mark:v})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==eC){var a={mark:v,prepend:"queue",attachTo:k,priority:g},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var s=(0,u.hq)(n,r,a);s[y]=I.instanceId,s.setAttribute(b,N),Object.keys(o).forEach(function(e){(0,u.hq)(eI(o[e]),"_effect-".concat(e),a)})}}),P=(0,i.Z)(_,3),M=P[0],L=P[1],D=P[2];return function(e){var t,n;return t=C&&!j&&x?d.createElement("style",(0,Q.Z)({},(n={},(0,a.Z)(n,b,L),(0,a.Z)(n,v,D),n),{dangerouslySetInnerHTML:{__html:M}})):d.createElement(e_,null),d.createElement(d.Fragment,null,t,e)}}var eL="cssVar",eD=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,p=void 0===c?"":c,f=(0,d.useContext)(E),m=f.cache.instanceId,g=f.container,h=s._tokenKey,S=[].concat((0,l.Z)(e.path),[n,p,h]);return W(eL,S,function(){var e=Z(t(),n,{prefix:r,unitless:o,ignore:a,scope:p}),l=(0,i.Z)(e,2),s=l[0],c=l[1],u=eR(S,c);return[s,c,u,n]},function(e){var t=(0,i.Z)(e,3)[2];j&&(0,u.jL)(t,{mark:v})},function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,u.hq)(r,o,{mark:v,prepend:"queue",attachTo:g,priority:-999});a[y]=m,a.setAttribute(b,n)}})};o={},(0,a.Z)(o,eP,function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var p=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=B(o,a,l,f,d),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=eI(s[e]);p+=B(n,a,"_effect-".concat(e),f,d)}}),[u,l,p]}),(0,a.Z)(o,K,function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=B(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,c,u]}),(0,a.Z)(o,eL,function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!o)return null;var c=B(o,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,c]});var ej=function(){function e(t,n){(0,f.Z)(this,e),(0,a.Z)(this,"name",void 0),(0,a.Z)(this,"style",void 0),(0,a.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eF(e){return e.notSplit=!0,e}eF(["borderTop","borderBottom"]),eF(["borderTop"]),eF(["borderBottom"]),eF(["borderLeft","borderRight"]),eF(["borderLeft"]),eF(["borderRight"])},60688:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(14749),o=n(80406),a=n(50833),i=n(6787),l=n(64090),s=n(16480),c=n.n(s),u=n(12215),d=n(67689),p=n(5239),f=n(6976),m=n(24050),g=n(74687),h=n(53850);function b(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(d.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,g.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},O=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,d=(0,i.Z)(e,w),f=l.useRef(),m=x;if(c&&(m={primaryColor:c,secondaryColor:u||y(c)}),S(f),t=b(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!b(r))return null;var g=r;return g&&"function"==typeof g.icon&&(g=(0,p.Z)((0,p.Z)({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,p.Z)((0,p.Z)({key:n},v(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,p.Z)({key:n},v(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,p.Z)((0,p.Z)({className:o,onClick:a,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};function k(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return O.setTwoToneColors({primaryColor:r,secondaryColor:a})}O.displayName="IconReact",O.getTwoToneColors=function(){return(0,p.Z)({},x)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||y(t),x.calculated=!!n};var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var T=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,p=e.spin,f=e.rotate,m=e.tabIndex,g=e.onClick,h=e.twoToneColor,b=(0,i.Z)(e,C),v=l.useContext(d.Z),y=v.prefixCls,S=void 0===y?"anticon":y,w=v.rootClassName,x=c()(w,S,(n={},(0,a.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(S,"-spin"),!!p||"loading"===u.name),n),s),k=m;void 0===k&&g&&(k=-1);var T=E(h),A=(0,o.Z)(T,2),I=A[0],N=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},b,{ref:t,tabIndex:k,onClick:g,className:x}),l.createElement(O,{icon:u,primaryColor:I,secondaryColor:N,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});T.displayName="AntdIcon",T.getTwoToneColor=function(){var e=O.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},T.setTwoToneColor=k;var A=T},67689:function(e,t,n){var r=(0,n(64090).createContext)({});t.Z=r},99537:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},90507:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},77136:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},81303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20383:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31413:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20653:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41311:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},40388:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},66155:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},50459:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},96871:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},97766:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41785:function(e,t,n){n.d(t,{T6:function(){return p},VD:function(){return f},WE:function(){return c},Yt:function(){return m},lC:function(){return a},py:function(){return s},rW:function(){return o},s:function(){return d},ve:function(){return l},vq:function(){return u}});var r=n(27974);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,s=(o+a)/2;if(o===a)l=0,i=0;else{var c=o-a;switch(l=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=i(c,s,e+1/3),a=i(c,s,e),l=i(c,s,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},6564:function(e,t,n){n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76991:function(e,t,n){n.d(t,{uA:function(){return i}});var r=n(41785),o=n(6564),a=n(27974);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,s=null,c=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),c=!0,p="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,a.JX)(e.s),s=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,s),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},6336:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(41785),o=n(6564),a=n(76991),i=n(27974),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},88804:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(80406),a=n(64090),i=n(89542),l=n(22127);n(53850);var s=n(74084),c=a.createContext(null),u=n(63787),d=n(24800),p=[],f=n(24050);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),r=a-i}return r}():n}var g="rc-util-locker-".concat(Date.now()),h=0,b=!1,v=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=a.forwardRef(function(e,t){var n,r,y,E,S=e.open,w=e.autoLock,x=e.getContainer,O=(e.debug,e.autoDestroy),k=void 0===O||O,C=e.children,T=a.useState(S),A=(0,o.Z)(T,2),I=A[0],N=A[1],R=I||S;a.useEffect(function(){(k||S)&&N(S)},[S,k]);var _=a.useState(function(){return v(x)}),P=(0,o.Z)(_,2),M=P[0],L=P[1];a.useEffect(function(){var e=v(x);L(null!=e?e:null)});var D=function(e,t){var n=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(n,1)[0],i=a.useRef(!1),s=a.useContext(c),f=a.useState(p),m=(0,o.Z)(f,2),g=m[0],h=m[1],b=s||(i.current?void 0:function(e){h(function(t){return[e].concat((0,u.Z)(t))})});function v(){r.parentElement||document.body.appendChild(r),i.current=!0}function y(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return(0,d.Z)(function(){return e?s?s(v):v():y(),y},[e]),(0,d.Z)(function(){g.length&&(g.forEach(function(e){return e()}),h(p))},[g]),[r,b]}(R&&!M,0),j=(0,o.Z)(D,2),F=j[0],B=j[1],U=null!=M?M:F;n=!!(w&&S&&(0,l.Z)()&&(U===F||U===document.body)),r=a.useState(function(){return h+=1,"".concat(g,"_").concat(h)}),y=(0,o.Z)(r,1)[0],(0,d.Z)(function(){if(n){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,f.jL)(y);return function(){(0,f.jL)(y)}},[n,y]);var Z=null;C&&(0,s.Yr)(C)&&t&&(Z=C.ref);var z=(0,s.x1)(Z,t);if(!R||!(0,l.Z)()||void 0===M)return null;var H=!1===U||("boolean"==typeof E&&(b=E),b),G=C;return t&&(G=a.cloneElement(C,{ref:z})),a.createElement(c.Provider,{value:B},H?G:(0,i.createPortal)(G,U))})},44101:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(5239),o=n(80406),a=n(6787),i=n(88804),l=n(16480),s=n.n(l),c=n(46505),u=n(97472),d=n(74687),p=n(54811),f=n(91010),m=n(24800),g=n(76158),h=n(64090),b=n(14749),v=n(49367),y=n(74084);function E(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=o.y,d=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],m=n.points[1],g=f[0],b=f[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=void 0===u?0:u,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=void 0===c?0:c}return h.createElement("div",{ref:d,className:s()("".concat(t,"-arrow"),i),style:p},l)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?h.createElement(v.ZP,(0,b.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var w=h.memo(function(e){return e.children},function(e,t){return t.cache}),x=h.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,O=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,A=e.motion,I=e.maskMotion,N=e.forceRender,R=e.getPopupContainer,_=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,F=e.ready,B=e.offsetX,U=e.offsetY,Z=e.offsetR,z=e.offsetB,H=e.onAlign,G=e.onPrepare,$=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof n?n():n,Y=p||f,K=(null==R?void 0:R.length)>0,X=h.useState(!R||!K),Q=(0,o.Z)(X,2),J=Q[0],ee=Q[1];if((0,m.Z)(function(){!J&&K&&u&&ee(!0)},[J,K,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!p){var er,eo=T.points,ea=T.dynamicInset||(null===(er=T._experimental)||void 0===er?void 0:er.dynamicInset),ei=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];ei?(en.right=Z,en.left=et):(en.left=B,en.right=et),el?(en.bottom=z,en.top=et):(en.top=U,en.bottom=et)}var es={};return $&&($.includes("height")&&V?es.height=V:$.includes("minHeight")&&V&&(es.minHeight=V),$.includes("width")&&W?es.width=W:$.includes("minWidth")&&W&&(es.minWidth=W)),p||(es.pointerEvents="none"),h.createElement(P,{open:N||Y,getContainer:R&&function(){return R(u)},autoDestroy:_},h.createElement(S,{prefixCls:i,open:p,zIndex:M,mask:O,motion:I}),h.createElement(c.Z,{onResize:H,disabled:!p},function(e){return h.createElement(v.ZP,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=s()(i,c,a);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),es),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:D,onPointerEnter:j,onClick:x},k&&h.createElement(E,{prefixCls:i,arrow:k,arrowPos:C,align:T}),h.createElement(w,{cache:!p&&!g},q))})}))}),O=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),a=h.useCallback(function(e){(0,y.mH)(t,r?r(e):e)},[r]),i=(0,y.x1)(a,n.ref);return o?h.cloneElement(n,{ref:i}):n}),k=h.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(73193);function A(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return R(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=_(a),g=_(i),h=_(l),b=_(s),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),E=m*y,S=h*v,w=0,x=0;if("clip"===r){var O=_(o);w=O*v,x=O*y}var k=c.x+S-w,C=c.y+E-x,T=k+c.width+2*w-S-b*v-(p-f-h-b)*v,A=C+c.height+2*x-E-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A)}}),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function L(e,t){var n=(0,o.Z)(t||[],2),r=n[0],a=n[1];return[M(e.width,r),M(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var B=n(63787);n(53850);var U=n(19223),Z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z;return h.forwardRef(function(t,n){var i,l,b,v,y,E,S,w,_,M,z,H,G,$,W,V,q,Y=t.prefixCls,K=void 0===Y?"rc-trigger-popup":Y,X=t.children,Q=t.action,J=t.showAction,ee=t.hideAction,et=t.popupVisible,en=t.defaultPopupVisible,er=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,ei=t.mouseLeaveDelay,el=void 0===ei?.1:ei,es=t.focusDelay,ec=t.blurDelay,eu=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,ef=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,eh=t.popup,eb=t.popupClassName,ev=t.popupStyle,ey=t.popupPlacement,eE=t.builtinPlacements,eS=void 0===eE?{}:eE,ew=t.popupAlign,ex=t.zIndex,eO=t.stretch,ek=t.getPopupClassNameFromAlign,eC=t.fresh,eT=t.alignPoint,eA=t.onPopupClick,eI=t.onPopupAlign,eN=t.arrow,eR=t.popupMotion,e_=t.maskMotion,eP=t.popupTransitionName,eM=t.popupAnimation,eL=t.maskTransitionName,eD=t.maskAnimation,ej=t.className,eF=t.getTriggerDOMNode,eB=(0,a.Z)(t,Z),eU=h.useState(!1),eZ=(0,o.Z)(eU,2),ez=eZ[0],eH=eZ[1];(0,m.Z)(function(){eH((0,g.Z)())},[]);var eG=h.useRef({}),e$=h.useContext(k),eW=h.useMemo(function(){return{registerSubPopup:function(e,t){eG.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eV=(0,f.Z)(),eq=h.useState(null),eY=(0,o.Z)(eq,2),eK=eY[0],eX=eY[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&eX(e),null==e$||e$.registerSubPopup(eV,e)}),eJ=h.useState(null),e0=(0,o.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=h.useRef(null),e3=(0,p.Z)(function(e){(0,u.S)(e)&&e1!==e&&(e2(e),e4.current=e)}),e6=h.Children.only(X),e5=(null==e6?void 0:e6.props)||{},e8={},e9=(0,p.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,d.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eK?void 0:eK.contains(e))||(null===(n=(0,d.A)(eK))||void 0===n?void 0:n.host)===e||e===eK||Object.values(eG.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=A(K,eR,eM,eP),te=A(K,e_,eD,eL),tt=h.useState(en||!1),tn=(0,o.Z)(tt,2),tr=tn[0],to=tn[1],ta=null!=et?et:tr,ti=(0,p.Z)(function(e){void 0===et&&to(e)});(0,m.Z)(function(){to(et||!1)},[et]);var tl=h.useRef(ta);tl.current=ta;var ts=h.useRef([]);ts.current=[];var tc=(0,p.Z)(function(e){var t;ti(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ta)!==e&&(ts.current.push(e),null==er||er(e))}),tu=h.useRef(),td=function(){clearTimeout(tu.current)},tp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;td(),0===t?tc(e):tu.current=setTimeout(function(){tc(e)},1e3*t)};h.useEffect(function(){return td},[]);var tf=h.useState(!1),tm=(0,o.Z)(tf,2),tg=tm[0],th=tm[1];(0,m.Z)(function(e){(!e||ta)&&th(!0)},[ta]);var tb=h.useState(null),tv=(0,o.Z)(tb,2),ty=tv[0],tE=tv[1],tS=h.useState([0,0]),tw=(0,o.Z)(tS,2),tx=tw[0],tO=tw[1],tk=function(e){tO([e.clientX,e.clientY])},tC=(i=eT?tx:e1,l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eS[ey]||{}}),v=(b=(0,o.Z)(l,2))[0],y=b[1],E=h.useRef(0),S=h.useMemo(function(){return eK?N(eK):[]},[eK]),w=h.useRef({}),ta||(w.current={}),_=(0,p.Z)(function(){if(eK&&i&&ta){var e,t,n,a,l,s,c,d=eK.ownerDocument,p=I(eK).getComputedStyle(eK),f=p.width,m=p.height,g=p.position,h=eK.style.left,b=eK.style.top,v=eK.style.right,E=eK.style.bottom,x=eK.style.overflow,O=(0,r.Z)((0,r.Z)({},eS[ey]),ew),k=d.createElement("div");if(null===(e=eK.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(eK.offsetLeft,"px"),k.style.top="".concat(eK.offsetTop,"px"),k.style.position=g,k.style.height="".concat(eK.offsetHeight,"px"),k.style.width="".concat(eK.offsetWidth,"px"),eK.style.left="0",eK.style.top="0",eK.style.right="auto",eK.style.bottom="auto",eK.style.overflow="hidden",Array.isArray(i))n={x:i[0],y:i[1],width:0,height:0};else{var C=i.getBoundingClientRect();n={x:C.x,y:C.y,width:C.width,height:C.height}}var A=eK.getBoundingClientRect(),N=d.documentElement,_=N.clientWidth,M=N.clientHeight,B=N.scrollWidth,U=N.scrollHeight,Z=N.scrollTop,z=N.scrollLeft,H=A.height,G=A.width,$=n.height,W=n.width,V=O.htmlRegion,q="visible",Y="visibleFirst";"scroll"!==V&&V!==Y&&(V=q);var K=V===Y,X=P({left:-z,top:-Z,right:B-z,bottom:U-Z},S),Q=P({left:0,top:0,right:_,bottom:M},S),J=V===q?Q:X,ee=K?Q:J;eK.style.left="auto",eK.style.top="auto",eK.style.right="0",eK.style.bottom="0";var et=eK.getBoundingClientRect();eK.style.left=h,eK.style.top=b,eK.style.right=v,eK.style.bottom=E,eK.style.overflow=x,null===(t=eK.parentElement)||void 0===t||t.removeChild(k);var en=R(Math.round(G/parseFloat(f)*1e3)/1e3),er=R(Math.round(H/parseFloat(m)*1e3)/1e3);if(!(0===en||0===er||(0,u.S)(i)&&!(0,T.Z)(i))){var eo=O.offset,ea=O.targetOffset,ei=L(A,eo),el=(0,o.Z)(ei,2),es=el[0],ec=el[1],eu=L(n,ea),ed=(0,o.Z)(eu,2),ep=ed[0],ef=ed[1];n.x-=ep,n.y-=ef;var em=O.points||[],eg=(0,o.Z)(em,2),eh=eg[0],eb=D(eg[1]),ev=D(eh),eE=j(n,eb),ex=j(A,ev),eO=(0,r.Z)({},O),ek=eE.x-ex.x+es,eC=eE.y-ex.y+ec,eT=tt(ek,eC),eA=tt(ek,eC,Q),eN=j(n,["t","l"]),eR=j(A,["t","l"]),e_=j(n,["b","r"]),eP=j(A,["b","r"]),eM=O.overflow||{},eL=eM.adjustX,eD=eM.adjustY,ej=eM.shiftX,eF=eM.shiftY,eB=function(e){return"boolean"==typeof e?e:e>=0};tn();var eU=eB(eD),eZ=ev[0]===eb[0];if(eU&&"t"===ev[0]&&(l>ee.bottom||w.current.bt)){var ez=eC;eZ?ez-=H-$:ez=eN.y-eP.y-ec;var eH=tt(ek,ez),eG=tt(ek,ez,Q);eH>eT||eH===eT&&(!K||eG>=eA)?(w.current.bt=!0,eC=ez,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.bt=!1}if(eU&&"b"===ev[0]&&(aeT||eW===eT&&(!K||eV>=eA)?(w.current.tb=!0,eC=e$,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.tb=!1}var eq=eB(eL),eY=ev[1]===eb[1];if(eq&&"l"===ev[1]&&(c>ee.right||w.current.rl)){var eX=ek;eY?eX-=G-W:eX=eN.x-eP.x-es;var eQ=tt(eX,eC),eJ=tt(eX,eC,Q);eQ>eT||eQ===eT&&(!K||eJ>=eA)?(w.current.rl=!0,ek=eX,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.rl=!1}if(eq&&"r"===ev[1]&&(seT||e1===eT&&(!K||e2>=eA)?(w.current.lr=!0,ek=e0,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.lr=!1}tn();var e4=!0===ej?0:ej;"number"==typeof e4&&(sQ.right&&(ek-=c-Q.right-es,n.x>Q.right-e4&&(ek+=n.x-Q.right+e4)));var e3=!0===eF?0:eF;"number"==typeof e3&&(aQ.bottom&&(eC-=l-Q.bottom-ec,n.y>Q.bottom-e3&&(eC+=n.y-Q.bottom+e3)));var e6=A.x+ek,e5=A.y+eC,e8=n.x,e9=n.y;null==eI||eI(eK,eO);var e7=et.right-A.x-(ek+A.width),te=et.bottom-A.y-(eC+A.height);y({ready:!0,offsetX:ek/en,offsetY:eC/er,offsetR:e7/en,offsetB:te/er,arrowX:((Math.max(e6,e8)+Math.min(e6+G,e8+W))/2-e6)/en,arrowY:((Math.max(e5,e9)+Math.min(e5+H,e9+$))/2-e5)/er,scaleX:en,scaleY:er,align:eO})}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,o=A.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+G,n.right)-a)*(Math.min(o+H,n.bottom)-i))}function tn(){l=(a=A.y+eC)+H,c=(s=A.x+ek)+G}}}),M=function(){y(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,m.Z)(M,[ey]),(0,m.Z)(function(){ta||M()},[ta]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){E.current+=1;var e=E.current;Promise.resolve().then(function(){E.current===e&&_()})}]),tT=(0,o.Z)(tC,11),tA=tT[0],tI=tT[1],tN=tT[2],tR=tT[3],t_=tT[4],tP=tT[5],tM=tT[6],tL=tT[7],tD=tT[8],tj=tT[9],tF=tT[10],tB=(z=void 0===Q?"hover":Q,h.useMemo(function(){var e=C(null!=J?J:z),t=C(null!=ee?ee:z),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,z,J,ee])),tU=(0,o.Z)(tB,2),tZ=tU[0],tz=tU[1],tH=tZ.has("click"),tG=tz.has("click")||tz.has("contextMenu"),t$=(0,p.Z)(function(){tg||tF()});H=function(){tl.current&&eT&&tG&&tp(!1)},(0,m.Z)(function(){if(ta&&e1&&eK){var e=N(e1),t=N(eK),n=I(eK),r=new Set([n].concat((0,B.Z)(e),(0,B.Z)(t)));function o(){t$(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),t$(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[ta,e1,eK]),(0,m.Z)(function(){t$()},[tx,ey]),(0,m.Z)(function(){ta&&!(null!=eS&&eS[ey])&&t$()},[JSON.stringify(ew)]);var tW=h.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eS,K,tj,eT);return s()(e,null==ek?void 0:ek(tj))},[tj,ek,eS,K,eT]);h.useImperativeHandle(n,function(){return{nativeElement:e4.current,forceAlign:t$}});var tV=h.useState(0),tq=(0,o.Z)(tV,2),tY=tq[0],tK=tq[1],tX=h.useState(0),tQ=(0,o.Z)(tX,2),tJ=tQ[0],t0=tQ[1],t1=function(){if(eO&&e1){var e=e1.getBoundingClientRect();tK(e.width),t0(e.height)}};function t2(e,t,n,r){e8[e]=function(o){var a;null==r||r(o),tp(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))}},8903:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(69703),o=n(64090);let a=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}))}},9853:function(e,t,n){n.d(t,{Z:function(){return mv}});var r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E,S,w,x,O={};n.r(O),n.d(O,{scaleBand:function(){return ou},scaleDiverging:function(){return function e(){var t=a3(sp()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=io(sp()).domain([.1,1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleDivergingPow:function(){return sf},scaleDivergingSqrt:function(){return sm},scaleDivergingSymlog:function(){return function e(){var t=il(sp());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,aF),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,aF):[0,1],a3(r)}},scaleImplicit:function(){return os},scaleLinear:function(){return a6},scaleLog:function(){return function e(){let t=io(a$()).domain([1,10]);return t.copy=()=>aG(t,e()).base(t.base()),or.apply(t,arguments),t}},scaleOrdinal:function(){return oc},scalePoint:function(){return od},scalePow:function(){return ip},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e2&&void 0!==arguments[2]?arguments[2]:o4;if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[o6(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,r]).range(i).unknown(t)},or.apply(a3(l),arguments)}},scaleRadial:function(){return function e(){var t,n=aW(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(ig(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,aF)).map(ig)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},or.apply(a,arguments),a3(a)}},scaleSequential:function(){return function e(){var t=a3(ss()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=io(ss()).domain([1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleSequentialPow:function(){return su},scaleSequentialQuantile:function(){return function e(){var t=[],n=aU;function r(e){if(null!=e&&!isNaN(e=+e))return n((o6(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(oJ),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return ib(e);if(t>=1)return ih(e);var r,o=(r-1)*t,a=Math.floor(o),i=ih((function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?iv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ;if(e===oJ)return iv;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,l=n-r+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(l-i/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/i+u)),p=Math.min(o,Math.floor(n+(i-l)*c/i+u));e(t,n,d,p,a)}let i=t[n],l=r,s=o;for(iy(t,r,n),a(t[o],i)>0&&iy(t,r,o);la(t[l],i);)++l;for(;a(t[s],i)>0;)--s}0===a(t[r],i)?iy(t,r,s):iy(t,++s,o),s<=n&&(r=s+1),n<=s&&(o=s-1)}return t})(e,a).subarray(0,a+1));return i+(ib(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},oo.apply(r,arguments)}},scaleSequentialSqrt:function(){return sd},scaleSequentialSymlog:function(){return function e(){var t=il(ss());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleSqrt:function(){return im},scaleSymlog:function(){return function e(){var t=il(a$());return t.copy=function(){return aG(t,e()).constant(t.constant())},or.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[o6(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},or.apply(a,arguments)}},scaleTime:function(){return si},scaleUtc:function(){return sl},tickFormat:function(){return a4}});var k=n(69703),C=n(54942),T=n(2898),A=n(99250),I=n(65492),N=n(64090),R=function(){for(var e,t,n=0,r="",o=arguments.length;n0?1:-1},G=function(e){return D()(e)&&e.indexOf("%")===e.length-1},$=function(e){return z()(e)&&!F()(e)},W=function(e){return $(e)||D()(e)},V=0,q=function(e){var t=++V;return"".concat(e||"").concat(t)},Y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!$(e)&&!D()(e))return r;if(G(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return F()(n)&&(n=r),o&&n>t&&(n=t),n},K=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},X=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ey=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},eE=null,eS=null,ew=function e(t){if(t===eE&&Array.isArray(eS))return eS;var n=[];return N.Children.forEach(t,function(t){en()(t)||((0,M.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),eS=n,eE=t,n};function ex(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ey(e)}):[ey(t)],ew(e).forEach(function(e){var t=U()(e,"type.displayName")||U()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function eO(e,t){var n=ex(e,t);return n&&n[0]}var ek=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!$(n)&&!(n<=0)&&!!$(r)&&!(r<=0)},eC=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],eT=function(e,t,n,r){var o,a=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!eo()(e)&&(r&&a.includes(t)||ec.includes(t))||n&&ep.includes(t)},eA=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,N.isValidElement)(e)&&(r=e.props),!ei()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;eT(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},eI=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(0===r)return!0;if(1===r)return eN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=ey(e.type),i=t[a]||{},l=i.handler,s=i.once;if(l&&(!s||!r[a])){var c=l(e,a,o);n.push(c),r[a]=!0}}}),n},e_=function(e){var t=e&&e.type;return t&&ev[t]?ev[t]:null};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=P()(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect();return C(n.width,n.height),t.observe(S.current),function(){t.disconnect()}},[C,h]);var T=(0,N.useMemo)(function(){var e=O.containerWidth,t=O.containerHeight;if(e<0||t<0)return null;ee(G(l)||G(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,c),ee(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=G(l)?e:l,o=G(c)?t:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),f&&o>f&&(o=f)),ee(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,l,c,d,p,r);var a=!Array.isArray(m)&&(0,M.isElement)(m)&&ey(m.type).endsWith("Chart");return N.Children.map(m,function(e){return(0,M.isElement)(e)?(0,N.cloneElement)(e,eL({width:n,height:o},a?{style:eL({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e})},[r,m,c,f,p,d,O,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:R("recharts-responsive-container",v),style:eL(eL({},void 0===E?{}:E),{},{width:l,height:c,minWidth:d,minHeight:p,maxHeight:f}),ref:S},T)}),eF=n(1646),eB=n.n(eF),eU=n(97572),eZ=n.n(eU),ez=n(209),eH=n.n(ez),eG=n(72986),e$=n.n(eG);function eW(e,t){if(!e)throw Error("Invariant failed")}var eV=["children","width","height","viewBox","className","style","title","desc"];function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eV),u=o||{width:n,height:r,x:0,y:0},d=R("recharts-surface",a);return N.createElement("svg",eq({},eA(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),N.createElement("title",null,l),N.createElement("desc",null,s),t)}var eK=["children","className"];function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eK),a=R("recharts-layer",r);return N.createElement("g",eX({className:a},eA(o,!0),{ref:t}),n)});function eJ(e){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tc(e,t){return to(e.getTime(),t.getTime())}function tu(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),l=0;(r=i.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,p=d[0],f=d[1],m=o.value,g=m[0],h=m[1];!c&&!a[u]&&(c=n.equals(p,g,l,u,e,t,n)&&n.equals(f,h,p,g,e,t,n))&&(a[u]=!0),u++}if(!c)return!1;l++}return!0}function td(e,t,n){var r,o=tl(e),a=o.length;if(tl(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tp(e,t,n){var r,o,a,i=tn(e),l=i.length;if(tn(t).length!==l)return!1;for(;l-- >0;)if((r=i[l])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=ti(e,r),a=ti(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tf(e,t){return to(e.valueOf(),t.valueOf())}function tm(e,t){return e.source===t.source&&e.flags===t.flags}function tg(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)!s&&!a[c]&&(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[c]=!0),c++;if(!s)return!1}return!0}function th(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var tb=Array.isArray,tv="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ty=Object.assign,tE=Object.prototype.toString.call.bind(Object.prototype.toString),tS=tw();function tw(e){void 0===e&&(e={});var t,n,r,o,a,i,l,s,c,u=e.circular,d=e.createInternalComparator,p=e.createState,f=e.strict,m=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?tp:ts,areDatesEqual:tc,areMapsEqual:r?te(tu,tp):tu,areObjectsEqual:r?tp:td,arePrimitiveWrappersEqual:tf,areRegExpsEqual:tm,areSetsEqual:r?te(tg,tp):tg,areTypedArraysEqual:r?tp:th};if(n&&(o=ty({},o,n(o))),t){var a=tt(o.areArraysEqual),i=tt(o.areMapsEqual),l=tt(o.areObjectsEqual),s=tt(o.areSetsEqual);o=ty({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,c=t.areTypedArraysEqual,function(e,t,u){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var d=e.constructor;if(d!==t.constructor)return!1;if(d===Object)return a(e,t,u);if(tb(e))return n(e,t,u);if(null!=tv&&tv(e))return c(e,t,u);if(d===Date)return r(e,t,u);if(d===RegExp)return l(e,t,u);if(d===Map)return o(e,t,u);if(d===Set)return s(e,t,u);var p=tE(e);return"[object Date]"===p?r(e,t,u):"[object RegExp]"===p?l(e,t,u):"[object Map]"===p?o(e,t,u):"[object Set]"===p?s(e,t,u):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,u):"[object Arguments]"===p?a(e,t,u):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,u)}),g=d?d(m):function(e,t,n,r,o,a,i){return m(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var l=r(),s=l.cache;return n(e,i,{cache:void 0===s?t?new WeakMap:void 0:s,equals:o,meta:l.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==u&&u,comparator:m,createState:p,equals:g,strict:void 0!==f&&f})}function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tH(a,l),f=tH(i,s),m=(e=a,t=l,function(n){var r;return tz([].concat(function(e){if(Array.isArray(e))return tU(e)}(r=tZ(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||tB(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=m(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return f(n)};return g.isStepper=!1,g},t$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,l=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,l=r*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return l.isStepper=!0,l.dt=i,l},tW=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(t6(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:a,easing:l}),a]);var f=tj(p,a,l),m=t9(t9(t9({},d.style),s),{},{transition:f});return[].concat(t6(e),[m,a,u]).filter(tP)},[i,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){tx(e.bind(null,i),a);return}e(a),tx(e.bind(null,i));return}"object"===tO(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,s=e.easing,c=e.onAnimationStart,u=e.onAnimationEnd,d=e.steps,p=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof s||"function"==typeof p||"spring"===s){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?t7({},i,l):l,g=tj(Object.keys(m),a,s);f.start([c,o,t9(t9({},m),{},{transition:g}),a,u])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,t3)),a=N.Children.count(t),i=tD(this.state.style);if("function"==typeof t)return t(i);if(!r||0===a||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=t.className;return(0,N.cloneElement)(e,t9(t9({},o),{},{style:t9(t9({},void 0===n?{}:n),i),className:r}))};return 1===a?l(N.Children.only(t)):N.createElement("div",null,N.Children.map(t,function(e){return l(e)}))}}],ne(a.prototype,n),r&&ne(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);ni.displayName="Animate",ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ni.propTypes={from:e5().oneOfType([e5().object,e5().string]),to:e5().oneOfType([e5().object,e5().string]),attributeName:e5().string,duration:e5().number,begin:e5().number,easing:e5().oneOfType([e5().string,e5().func]),steps:e5().arrayOf(e5().shape({duration:e5().number.isRequired,style:e5().object.isRequired,easing:e5().oneOfType([e5().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),e5().func]),properties:e5().arrayOf("string"),onAnimationEnd:e5().func})),children:e5().oneOfType([e5().node,e5().func]),isActive:e5().bool,canBegin:e5().bool,onAnimationEnd:e5().func,shouldReAnimate:e5().bool,onAnimationStart:e5().func,onAnimationReStart:e5().func};var nl=n(42859),ns=["children","appearOptions","enterOptions","leaveOptions"];function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(){return(nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nh(a);if(t){var r=nh(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ng(e)}(this,e)});function a(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),nb(ng(e=o.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),nb(ng(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(np(np({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return ny(t)+ny(n)+ny(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ns));return N.createElement(nl.Transition,nu({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return N.createElement(ni,e.state,N.Children.only(n))})}}],nf(a.prototype,n),r&&nf(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function nS(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,a=e.leave;return N.createElement(nl.TransitionGroup,{component:t},N.Children.map(n,function(e,t){return N.createElement(nE,{appearOptions:r,enterOptions:o,leaveOptions:a,key:"child-".concat(t)},e)}))}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nx(e,t,n){var r;return(r=function(e,t){if("object"!==nw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nw(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===nw(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nE.propTypes={appearOptions:e5().object,enterOptions:e5().object,leaveOptions:e5().object,children:e5().element},nS.propTypes={appear:e5().object,enter:e5().object,leave:e5().object,children:e5().oneOfType([e5().array,e5().element]),component:e5().any},nS.defaultProps={component:"span"};var nO="recharts-tooltip-wrapper",nk={visibility:"hidden"};function nC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&$(a[r]))return a[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?us[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E=this,S=this.props,w=S.active,x=S.allowEscapeViewBox,O=S.animationDuration,k=S.animationEasing,C=S.children,T=S.coordinate,A=S.hasPayload,I=S.isAnimationActive,_=S.offset,P=S.position,M=S.reverseDirection,L=S.useTranslate3d,D=S.viewBox,j=S.wrapperStyle,F=(p=(e={allowEscapeViewBox:x,coordinate:T,offsetTopLeft:_,position:P,reverseDirection:M,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:L,viewBox:D}).allowEscapeViewBox,f=e.coordinate,m=e.offsetTopLeft,g=e.position,h=e.reverseDirection,b=e.tooltipBox,v=e.useTranslate3d,y=e.viewBox,b.height>0&&b.width>0&&f?(n=(t={translateX:u=nC({allowEscapeViewBox:p,coordinate:f,key:"x",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.width,viewBox:y,viewBoxDimension:y.width}),translateY:d=nC({allowEscapeViewBox:p,coordinate:f,key:"y",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.height,viewBox:y,viewBoxDimension:y.height}),useTranslate3d:v}).translateX,r=t.translateY,c=tD({transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})):c=nk,{cssProperties:c,cssClasses:(i=(o={translateX:u,translateY:d,coordinate:f}).coordinate,l=o.translateX,s=o.translateY,R(nO,(nx(a={},"".concat(nO,"-right"),$(l)&&i&&$(i.x)&&l>=i.x),nx(a,"".concat(nO,"-left"),$(l)&&i&&$(i.x)&&l=i.y),nx(a,"".concat(nO,"-top"),$(s)&&i&&$(i.y)&&s0;return N.createElement(nD,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:u,active:r,coordinate:s,hasPayload:E,offset:d,position:m,reverseDirection:g,useTranslate3d:h,viewBox:b,wrapperStyle:v},(e=nH(nH({},this.props),{},{payload:y}),N.isValidElement(l)?N.cloneElement(l,e):"function"==typeof l?N.createElement(l,e):N.createElement(e3,e)))}}],nG(a.prototype,n),r&&nG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);nV(nK,"displayName","Tooltip"),nV(nK,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var nX=n(9332),nQ=n.n(nX);let nJ=Math.cos,n0=Math.sin,n1=Math.sqrt,n2=Math.PI,n4=2*n2;var n3={draw(e,t){let n=n1(t/n2);e.moveTo(n,0),e.arc(0,0,n,0,n4)}};let n6=n1(1/3),n5=2*n6,n8=n0(n2/10)/n0(7*n2/10),n9=n0(n4/10)*n8,n7=-nJ(n4/10)*n8,re=n1(3),rt=n1(3)/2,rn=1/n1(12),rr=(rn/2+1)*3;function ro(e){return function(){return e}}function ra(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ri(){let e=ra(["M",",",""]);return ri=function(){return e},e}function rl(){let e=ra(["Z"]);return rl=function(){return e},e}function rs(){let e=ra(["L",",",""]);return rs=function(){return e},e}function rc(){let e=ra(["Q",",",",",",",""]);return rc=function(){return e},e}function ru(){let e=ra(["C",",",",",",",",",",",""]);return ru=function(){return e},e}function rd(){let e=ra(["M",",",""]);return rd=function(){return e},e}function rp(){let e=ra(["L",",",""]);return rp=function(){return e},e}function rf(){let e=ra(["L",",",""]);return rf=function(){return e},e}function rm(){let e=ra(["A",",",",0,0,",",",",",""]);return rm=function(){return e},e}function rg(){let e=ra(["M",",",""]);return rg=function(){return e},e}function rh(){let e=ra(["L",",",""]);return rh=function(){return e},e}function rb(){let e=ra(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]);return rb=function(){return e},e}function rv(){let e=ra(["A",",",",0,",",",",",",",""]);return rv=function(){return e},e}function ry(){let e=ra(["M",",","h","v","h","Z"]);return ry=function(){return e},e}let rE=Math.PI,rS=2*rE,rw=rS-1e-6;function rx(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(u*l-s*c)>1e-6&&o){let p=n-a,f=r-i,m=l*l+s*s,g=Math.sqrt(m),h=Math.sqrt(d),b=o*Math.tan((rE-Math.acos((m+d-(p*p+f*f))/(2*g*h)))/2),v=b/h,y=b/g;Math.abs(v-1)>1e-6&&this._append(rf(),e+v*c,t+v*u),this._append(rm(),o,o,+(u*p>c*f),this._x1=e+y*l,this._y1=t+y*s)}else this._append(rp(),this._x1=e,this._y1=t)}}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error("negative radius: ".concat(n));let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,c=t+l,u=1^a,d=a?r-o:o-r;null===this._x1?this._append(rg(),s,c):(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append(rh(),s,c),n&&(d<0&&(d=d%rS+rS),d>rw?this._append(rb(),n,n,u,e-i,t-l,n,n,u,this._x1=s,this._y1=c):d>1e-6&&this._append(rv(),n,n,+(d>=rE),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}rect(e,t,n,r){this._append(ry(),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?rx:function(e){let t=Math.floor(e);if(!(t>=0))throw Error("invalid digits: ".concat(e));if(t>15)return rx;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw RangeError("invalid digits: ".concat(n));t=e}return e},()=>new rO(t)}function rC(e){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rO.prototype,n1(3),n1(3);var rT=["type","size","sizeType"];function rA(){return(rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rT)),{},{type:r,size:a,sizeType:l}),c=s.className,u=s.cx,d=s.cy,p=eA(s,!0);return u===+u&&d===+d&&a===+a?N.createElement("path",rA({},p,{className:R("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:(t=rR["symbol".concat(nQ()(r))]||n3,(function(e,t){let n=null,r=rk(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ro(e||n3),t="function"==typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(rP(a,l,r))())})):null};function rL(e){return(rL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rD(){return(rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var f=t.inactive?i:t.color;return N.createElement("li",rD({className:d,style:s,key:"legend-item-".concat(n)},em(e.props,t,n)),N.createElement(eY,{width:r,height:r,viewBox:l,style:c},e.renderIcon(t)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},u?u(p,t,n):p))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?N.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],rF(a.prototype,n),r&&rF(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function rG(e){return(rG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rZ(rH,"displayName","Legend"),rZ(rH,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var r$=["ref"];function rW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rV({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),rV(rV({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,s=rV(rV({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return N.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if("function"==typeof e)return N.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,r$);return N.createElement(rH,n)}(n,rV(rV({},this.props),{},{payload:nU(l,i,r0)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&$(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&rq(a.prototype,n),r&&rq(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function r2(){return(r2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),a+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),a+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),a+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},oe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+l)&&r<=Math.max(a,a+l)},ot={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},on=function(e){var t,n=r9(r9({},ot),e),r=(0,N.useRef)(),o=function(e){if(Array.isArray(e))return e}(t=(0,N.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r5(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o[1];(0,N.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=n.x,s=n.y,c=n.width,u=n.height,d=n.radius,p=n.className,f=n.animationEasing,m=n.animationDuration,g=n.animationBegin,h=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var v=R("recharts-rectangle",p);return b?N.createElement(ni,{canBegin:a>0,from:{width:c,height:u,x:l,y:s},to:{width:c,height:u,x:l,y:s},duration:m,animationEasing:f,isActive:b},function(e){var t=e.width,o=e.height,i=e.x,l=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:h,easing:f},N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(i,l,t,o,d),ref:r})))}):N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(l,s,c,u,d)}))};function or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class oa extends Map{get(e){return super.get(oi(this,e))}has(e){return super.has(oi(this,e))}set(e,t){return super.set(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}(this,e),t)}delete(e){return super.delete(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}(this,e))}constructor(e,t=ol){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}}function oi(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):t}function ol(e){return null!==e&&"object"==typeof e?e.valueOf():e}let os=Symbol("implicit");function oc(){var e=new oa,t=[],n=[],r=os;function o(o){let a=e.get(o);if(void 0===a){if(r!==os)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new oa,n))e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oc(t,n).unknown(r)},or.apply(o,arguments),o}function ou(){var e,t,n=oc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||nj.isSsr)return{width:0,height:0};var r=(Object.keys(t=om({},n)).forEach(function(e){t[e]||delete t[e]}),t),o=JSON.stringify({text:e,copyStyle:r});if(og.widthCache[o])return og.widthCache[o];try{var a=document.getElementById(ob);a||((a=document.createElement("span")).setAttribute("id",ob),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=om(om({},oh),r);Object.assign(a.style,i),a.textContent="".concat(e);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return og.widthCache[o]=s,++og.cacheCount>2e3&&(og.cacheCount=0,og.widthCache={}),s}catch(e){return{width:0,height:0}}};function oy(e){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},m=0,g=l.length-1,h=0;m<=g&&h<=l.length-1;){var b=Math.floor((m+g)/2),v=oj(f(b-1),2),y=v[0],E=v[1],S=oj(f(b),1)[0];if(y||S||(m=b+1),y&&S&&(g=b-1),!y&&S){a=E;break}h++}return a||p},oz=function(e){return[{words:en()(e)?[]:e.toString().split(oB)}]},oH=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!nj.isSsr){var l=oU({breakAll:a,children:r,style:o});return l?oZ({breakAll:a,children:r,maxLines:i,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):oz(r)}return oz(r)},oG="#808080",o$=function(e){var t,n=e.x,r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,i=e.lineHeight,l=void 0===i?"1em":i,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,f=e.verticalAnchor,m=e.fill,g=void 0===m?oG:m,h=oD(e,oP),b=(0,N.useMemo)(function(){return oH({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:d,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,d,h.style,h.width]),v=h.dx,y=h.dy,E=h.angle,S=h.className,w=h.breakAll,x=oD(h,oM);if(!W(r)||!W(a))return null;var O=r+($(v)?v:0),k=a+($(y)?y:0);switch(void 0===f?"end":f){case"start":t=o_("calc(".concat(c,")"));break;case"middle":t=o_("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:t=o_("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(d){var T=b[0].width,A=h.width;C.push("scale(".concat(($(A)?A/T:1)/T,")"))}return E&&C.push("rotate(".concat(E,", ").concat(O,", ").concat(k,")")),C.length&&(x.transform=C.join(" ")),N.createElement("text",oL({},eA(x,!0),{x:O,y:k,className:R("recharts-text",S),textAnchor:void 0===p?"start":p,fill:g.includes("url")?oG:g}),b.map(function(e,n){var r=e.words.join(w?"":" ");return N.createElement("tspan",{x:O,dy:0===n?t:l,key:r},r)}))};let oW=Math.sqrt(50),oV=Math.sqrt(10),oq=Math.sqrt(2);function oY(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(i)),s=i/Math.pow(10,l),c=s>=oW?10:s>=oV?5:s>=oq?2:1;return(l<0?(r=Math.round(e*(a=Math.pow(10,-l)/c)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,l)*c)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=a-o+1,s=Array(l);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function o0(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o1(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ooJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===oJ||e===o0?e:o2,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?am(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?am(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ar.exec(e))?new ah(t[1],t[2],t[3],1):(t=ao.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aa.exec(e))?am(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?am(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=al.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=as.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ac.hasOwnProperty(e)?af(ac[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function af(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function am(e,t,n,r){return r<=0&&(e=t=n=NaN),new ah(e,t,n,r)}function ag(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof o9||(o=ap(o)),o)?new ah((o=o.rgb()).r,o.g,o.b,o.opacity):new ah:new ah(e,t,n,null==r?1:r)}function ah(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ab(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b))}function av(){let e=ay(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aE(this.r),", ").concat(aE(this.g),", ").concat(aE(this.b)).concat(1===e?")":", ".concat(e,")"))}function ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aS(e){return((e=aE(e))<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aO(e,t,n,r)}function ax(e){if(e instanceof aO)return new aO(e.h,e.s,e.l,e.opacity);if(e instanceof o9||(e=ap(e)),!e)return new aO;if(e instanceof aO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+(n0&&s<1?0:i,new aO(i,l,s,e.opacity)}function aO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ak(e){return(e=(e||0)%360)<0?e+360:e}function aC(e){return Math.max(0,Math.min(1,e||0))}function aT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function aA(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}o5(o9,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ax(this).formatHsl()},formatRgb:ad,toString:ad}),o5(ah,ag,o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(aE(this.r),aE(this.g),aE(this.b),ay(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ab,formatHex:ab,formatHex8:function(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b)).concat(aS((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:av,toString:av})),o5(aO,function(e,t,n,r){return 1==arguments.length?ax(e):new aO(e,t,n,null==r?1:r)},o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new aO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ah(aT(e>=240?e-240:e+120,o,r),aT(e,o,r),aT(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new aO(ak(this.h),aC(this.s),aC(this.l),ay(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ay(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ak(this.h),", ").concat(100*aC(this.s),"%, ").concat(100*aC(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var aI=e=>()=>e;function aN(e,t){var n=t-e;return n?function(t){return e+t*n}:aI(isNaN(e)?t:e)}var aR=function e(t){var n,r=1==(n=+(n=t))?aN:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):aI(isNaN(e)?t:e)};function o(e,t){var n=r((e=ag(e)).r,(t=ag(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=aN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function a_(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=rl&&(i=t.slice(l,i),c[s]?c[s]+=i:c[++s]=i),(o=o[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,u.push({i:s,x:aP(o,a)})),l=aL.lastIndex;return lt&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=s>2?aH:az,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(l,i.map(e),aP)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,aF),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=aj,u()},d.clamp=function(e){return arguments.length?(c=!!e||aU,u()):c!==aU},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function aW(){return a$()(aU,aU)}var aV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aq(e){var t;if(!(t=aV.exec(e)))throw Error("invalid format: "+e);return new aY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aY(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function aK(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aX(e){return(e=aK(Math.abs(e)))?e[1]:NaN}function aQ(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}aq.prototype=aY.prototype,aY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var aJ={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aQ(100*e,t),r:aQ,s:function(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(b=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+aK(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a0(e){return e}var a1=Array.prototype.map,a2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a4(e,t,n,r){var o,a,i=oQ(e,t,n);switch((r=aq(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aX(l)/3)))-aX(Math.abs(i))))||(r.precision=a),E(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,aX(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=i)))-aX(o))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-aX(Math.abs(i))))||(r.precision=a-("%"===r.type)*2)}return y(r)}function a3(e){var t=e.domain;return e.ticks=function(e){var n=t();return oK(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return a4(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],c=a[l],u=10;for(c0;){if((o=oX(s,c,n))===r)return a[i]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else if(o<0)s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function a6(){var e=aW();return e.copy=function(){return aG(e,a6())},or.apply(e,arguments),a3(e)}function a5(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function io(e){let t,n;let r=e(a8,a9),o=r.domain,a=10;function i(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?it:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=ir(t),n=ir(n),e(a7,ie)):e(a8,a9),r}return r.base=function(e){return arguments.length?(a=+e,i()):a},r.domain=function(e){return arguments.length?(o(e),i()):o()},r.ticks=e=>{let r,i;let l=o(),s=l[0],c=l[l.length-1],u=c0){for(;d<=p;++d)for(r=1;rc)break;m.push(i)}}else for(;d<=p;++d)for(r=a-1;r>=1;--r)if(!((i=d>0?r/n(-d):r*n(d))c)break;m.push(i)}2*m.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=aq(o)).precision||(o.trim=!0),o=y(o)),e===1/0)return o;let i=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(a5(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ia(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ii(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function il(e){var t=1,n=e(ia(1),ii(t));return n.constant=function(n){return arguments.length?e(ia(t=+n),ii(t)):t},a3(n)}function is(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ic(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iu(e){return e<0?-e*e:e*e}function id(e){var t=e(aU,aU),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(aU,aU):.5===n?e(ic,iu):e(is(n),is(1/n)):n},a3(t)}function ip(){var e=id(a$());return e.copy=function(){return aG(e,ip()).exponent(e.exponent())},or.apply(e,arguments),e}function im(){return ip.apply(null,arguments).exponent(.5)}function ig(e){return Math.sign(e)*e*e}function ih(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function ib(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function iv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function iy(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}y=(v=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?a0:(t=a1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?a0:(r=a1.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=aq(e)).fill,n=e.align,r=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,h=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):aJ[y]||(void 0===h&&(h=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",S="$"===p?i:/[%p]/.test(y)?c:"",w=aJ[y],x=/[defgprs%]/.test(y);function O(e){var a,i,c,p=E,O=S;if("c"===y)O=w(e)+O,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),h),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==r&&(k=!1),p=(k?"("===r?r:u:"-"===r||"("===r?"":r)+p,O=("s"===y?a2[8+b/3]:"")+O+(k&&"("===r?")":""),x){for(a=-1,i=e.length;++a(c=e.charCodeAt(a))||c>57){O=(46===c?l+e.slice(a+1):e.slice(a))+O,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+O.length,T=C>1)+p+e+O+T.slice(C);break;default:e=T+p+e+O}return s(e)}return h=void 0===h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),O.toString=function(){return e+""},O}return{format:p,formatPrefix:function(e,t){var n=p(((e=aq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(aX(t)/3))),o=Math.pow(10,-r),a=a2[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,E=v.formatPrefix;let iE=new Date,iS=new Date;function iw(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let l=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return l;do l.push(i=new Date(+n)),t(n,a),e(n);while(iiw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(iE.setTime(+t),iS.setTime(+r),e(iE),e(iS),Math.floor(n(iE,iS))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ix=iw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ix.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?iw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ix:null,ix.range;let iO=iw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());iO.range;let ik=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());ik.range;let iC=iw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());iC.range;let iT=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());iT.range;let iA=iw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());iA.range;let iI=iw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);iI.range;let iN=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);iN.range;let iR=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function i_(e){return iw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}iR.range;let iP=i_(0),iM=i_(1),iL=i_(2),iD=i_(3),ij=i_(4),iF=i_(5),iB=i_(6);function iU(e){return iw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}iP.range,iM.range,iL.range,iD.range,ij.range,iF.range,iB.range;let iZ=iU(0),iz=iU(1),iH=iU(2),iG=iU(3),i$=iU(4),iW=iU(5),iV=iU(6);iZ.range,iz.range,iH.range,iG.range,i$.range,iW.range,iV.range;let iq=iw(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iq.range;let iY=iw(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());iY.range;let iK=iw(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());iK.every=e=>isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,iK.range;let iX=iw(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function iQ(e,t,n,r,o,a){let i=[[iO,1,1e3],[iO,5,5e3],[iO,15,15e3],[iO,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,a=o1(e=>{let[,,t]=e;return t}).right(i,o);if(a===i.length)return e.every(oQ(t/31536e6,n/31536e6,r));if(0===a)return ix.every(Math.max(oQ(t,n,r),1));let[l,s]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,iX.range;let[iJ,i0]=iQ(iX,iY,iZ,iR,iA,iC),[i1,i2]=iQ(iK,iq,iP,iI,iT,ik);function i4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i6(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var i5={"-":"",_:" ",0:"0"},i8=/^\s*\d+/,i9=/^%/,i7=/[\\^$*+?|[\]().{}]/g;function le(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function lo(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function la(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function li(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lc(e,t,n){var r=i8.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ld(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lp(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lf(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lm(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lh(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=i8.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lS(e,t,n){var r=i9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lw(e,t,n){var r=i8.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=i8.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lO(e,t){return le(e.getDate(),t,2)}function lk(e,t){return le(e.getHours(),t,2)}function lC(e,t){return le(e.getHours()%12||12,t,2)}function lT(e,t){return le(1+iI.count(iK(e),e),t,3)}function lA(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return lA(e,t)+"000"}function lN(e,t){return le(e.getMonth()+1,t,2)}function lR(e,t){return le(e.getMinutes(),t,2)}function l_(e,t){return le(e.getSeconds(),t,2)}function lP(e){var t=e.getDay();return 0===t?7:t}function lM(e,t){return le(iP.count(iK(e)-1,e),t,2)}function lL(e){var t=e.getDay();return t>=4||0===t?ij(e):ij.ceil(e)}function lD(e,t){return e=lL(e),le(ij.count(iK(e),e)+(4===iK(e).getDay()),t,2)}function lj(e){return e.getDay()}function lF(e,t){return le(iM.count(iK(e)-1,e),t,2)}function lB(e,t){return le(e.getFullYear()%100,t,2)}function lU(e,t){return le((e=lL(e)).getFullYear()%100,t,2)}function lZ(e,t){return le(e.getFullYear()%1e4,t,4)}function lz(e,t){var n=e.getDay();return le((e=n>=4||0===n?ij(e):ij.ceil(e)).getFullYear()%1e4,t,4)}function lH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function lG(e,t){return le(e.getUTCDate(),t,2)}function l$(e,t){return le(e.getUTCHours(),t,2)}function lW(e,t){return le(e.getUTCHours()%12||12,t,2)}function lV(e,t){return le(1+iN.count(iX(e),e),t,3)}function lq(e,t){return le(e.getUTCMilliseconds(),t,3)}function lY(e,t){return lq(e,t)+"000"}function lK(e,t){return le(e.getUTCMonth()+1,t,2)}function lX(e,t){return le(e.getUTCMinutes(),t,2)}function lQ(e,t){return le(e.getUTCSeconds(),t,2)}function lJ(e){var t=e.getUTCDay();return 0===t?7:t}function l0(e,t){return le(iZ.count(iX(e)-1,e),t,2)}function l1(e){var t=e.getUTCDay();return t>=4||0===t?i$(e):i$.ceil(e)}function l2(e,t){return e=l1(e),le(i$.count(iX(e),e)+(4===iX(e).getUTCDay()),t,2)}function l4(e){return e.getUTCDay()}function l3(e,t){return le(iz.count(iX(e)-1,e),t,2)}function l6(e,t){return le(e.getUTCFullYear()%100,t,2)}function l5(e,t){return le((e=l1(e)).getUTCFullYear()%100,t,2)}function l8(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var n=e.getUTCDay();return le((e=n>=4||0===n?i$(e):i$.ceil(e)).getUTCFullYear()%1e4,t,4)}function l7(){return"+0000"}function se(){return"%"}function st(e){return+e}function sn(e){return Math.floor(+e/1e3)}function sr(e){return new Date(e)}function so(e){return e instanceof Date?+e:+new Date(+e)}function sa(e,t,n,r,o,a,i,l,s,c){var u=aW(),d=u.invert,p=u.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),E=c("%Y");function S(e){return(s(e)1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a=0;)n[t]=t;return n}function sv(e,t){return e[t]}function sy(e){let t=[];return t.key=e,t}w=(S=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,c=ln(o),u=lr(o),d=ln(a),p=lr(a),f=ln(i),m=lr(i),g=ln(l),h=lr(l),b=ln(s),v=lr(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:lO,e:lO,f:lI,g:lU,G:lz,H:lk,I:lC,j:lT,L:lA,m:lN,M:lR,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:st,s:sn,S:l_,u:lP,U:lM,V:lD,w:lj,W:lF,x:null,X:null,y:lB,Y:lZ,Z:lH,"%":se},E={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lG,e:lG,f:lY,g:l5,G:l9,H:l$,I:lW,j:lV,L:lq,m:lK,M:lX,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:st,s:sn,S:lQ,u:lJ,U:l0,V:l2,w:l4,W:l3,x:null,X:null,y:l6,Y:l8,Z:l7,"%":se},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:lm,e:lm,f:lE,g:lu,G:lc,H:lh,I:lh,j:lg,L:ly,m:lf,M:lb,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:lp,Q:lw,s:lx,S:lv,u:la,U:li,V:ll,w:lo,W:ls,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:lu,Y:lc,Z:ld,"%":lS};function w(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=i3(i6(a.y,0,1))).getUTCDay())>4||0===o?iz.ceil(r):iz(r),r=iN.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=i4(i6(a.y,0,1))).getDay())>4||0===o?iM.ceil(r):iM(r),r=iI.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?i3(i6(a.y,0,1)).getUTCDay():i4(i6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,i3(a)):i4(a)}}function O(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i=s)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=S[(o=t.charAt(i++))in i5?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),E.x=w(n,E),E.X=w(r,E),E.c=w(t,E),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,S.parse,x=S.utcFormat,S.utcParse,Array.prototype.slice;var sE=n(5037),sS=n.n(sE),sw=n(30264),sx=n.n(sw),sO=n(20734),sk=n.n(sO),sC=n(93574),sT=n.n(sC),sA=n(6122),sI=n.n(sA);function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,sM(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function sV(e,t,n){if(e.lte(0))return new(sI())(0);var r=sZ.getDigitCount(e.toNumber()),o=new(sI())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,l=new(sI())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?l:new(sI())(Math.ceil(l))}function sq(e,t,n){var r=1,o=new(sI())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(sI())(10).pow(sZ.getDigitCount(e)-1),o=new(sI())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(sI())(Math.floor(e)))}else 0===e?o=new(sI())(Math.floor((t-1)/2)):n||(o=new(sI())(Math.floor(e)));var i=Math.floor((t-1)/2);return sF(sj(function(e){return o.add(new(sI())(e-i).mul(r)).toNumber()}),sD)(0,t)}var sY=sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(sz(sD(0,o-1).map(function(){return 1/0}))):[].concat(sz(sD(0,o-1).map(function(){return-1/0})),[c]);return n>r?sB(u):u}if(s===c)return sq(s,o,a);var d=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(sI())(0),tickMin:new(sI())(0),tickMax:new(sI())(0)};var l=sV(new(sI())(n).sub(t).div(r-1),o,i),s=Math.ceil((a=t<=0&&n>=0?new(sI())(0):(a=new(sI())(t).add(n).div(2)).sub(new(sI())(a).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(sI())(n).sub(a).div(l).toNumber()),u=s+c+1;return u>r?e(t,n,r,o,i+1):(u0?c+(r-u):c,s=n>0?s:s+(r-u)),{step:l,tickMin:a.sub(new(sI())(s).mul(l)),tickMax:a.add(new(sI())(c).mul(l))})}(s,c,i,a),p=d.step,f=d.tickMin,m=d.tickMax,g=sZ.rangeStep(f,m.add(new(sI())(.1).mul(p)),p);return n>r?sB(g):g});sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[n,r];if(s===c)return sq(s,o,a);var u=sV(new(sI())(c).sub(s).div(i-1),a,0),d=sF(sj(function(e){return new(sI())(s).add(new(sI())(e).mul(u)).toNumber()}),sD)(0,i).filter(function(e){return e>=s&&e<=c});return n>r?sB(d):d});var sK=sU(function(e,t){var n=sH(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=sH(sW([r,o]),2),l=i[0],s=i[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=sV(new(sI())(s).sub(l).div(Math.max(t,2)-1),a,0),u=[].concat(sz(sZ.rangeStep(new(sI())(l),new(sI())(s).sub(new(sI())(.99).mul(c)),c)),[s]);return r>o?sB(u):u}),sX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sQ(){return(sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sX),!1);"x"===e.direction&&"number"!==l.type&&eW(!1);var u=a.map(function(e){var a,u,d=i(e,o),p=d.x,f=d.y,m=d.value,g=d.errorVal;if(!g)return null;var h=[];if(Array.isArray(g)){var b=function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(g,2)||function(e,t){if(e){if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=b[0],u=b[1]}else a=u=g;if("vertical"===n){var v=l.scale,y=f+t,E=y+r,S=y-r,w=v(m-a),x=v(m+u);h.push({x1:x,y1:E,x2:x,y2:S}),h.push({x1:w,y1:y,x2:x,y2:y}),h.push({x1:w,y1:E,x2:w,y2:S})}else if("horizontal"===n){var O=s.scale,k=p+t,C=k-r,T=k+r,A=O(m-a),I=O(m+u);h.push({x1:C,y1:I,x2:T,y2:I}),h.push({x1:k,y1:A,x2:k,y2:I}),h.push({x1:C,y1:A,x2:T,y2:A})}return N.createElement(eQ,sQ({className:"recharts-errorBar",key:"bar-".concat(h.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},c),h.map(function(e){return N.createElement("line",sQ({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return N.createElement(eQ,{className:"recharts-errorBars"},u)}function s1(e){return(s1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,s=0;s0?r[s-1].coordinate:r[i-1].coordinate,u=r[s].coordinate,d=s>=i-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(H(u-c)!==H(d-u)){var f=[];if(H(d-u)===H(l[1]-l[0])){p=d;var m=u+l[1]-l[0];f[0]=Math.min(m,(m+c)/2),f[1]=Math.max(m,(m+c)/2)}else{p=c;var g=d+l[1]-l[0];f[0]=Math.min(u,(g+u)/2),f[1]=Math.max(u,(g+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){a=r[s].index;break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){a=r[s].index;break}}}else for(var y=0;y0&&y(n[y].coordinate+n[y-1].coordinate)/2&&e<=(n[y].coordinate+n[y+1].coordinate)/2||y===i-1&&e>(n[y].coordinate+n[y-1].coordinate)/2){a=n[y].index;break}return a},co=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ca=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,l=a.length;i=0});if(g&&g.length){var h=g[0].props.barSize,b=g[0].props[m];o[b]||(o[b]=[]),o[b].push({item:g[0],stackList:g.slice(1),barSize:en()(h)?t:h})}}return o},ci=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,s=i.length;if(s<1)return null;var c=Y(n,o,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=o/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=o&&(f-=(s-1)*c,c=0),f>=o&&p>0&&(d=!0,p*=.9,f=s*p);var m={offset:((o-f)/2>>0)-c,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?p:t.barSize}},r=[].concat(s7(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var g=Y(r,o,0,!0);o-2*g-(s-1)*c<=0&&(c=0);var h=(o-2*g-(s-1)*c)/s;h>1&&(h>>=0);var b=l===+l?Math.min(h,l):h;t=i.reduce(function(e,t,n){var r=[].concat(s7(e),[{item:t.item,position:{offset:g+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return t},cl=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,l=s3({children:o,legendWidth:a-(i.left||0)-(i.right||0)});if(l){var s=r||{},c=s.width,u=s.height,d=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==d&&$(e[d]))return s8(s8({},e),{},s9({},d,e[d]+(c||0)));if(("horizontal"===f||"vertical"===f&&"center"===d)&&"middle"!==p&&$(e[p]))return s8(s8({},e),{},s9({},p,e[p]+(u||0)))}return e},cs=function(e,t,n,r,o){var a=ex(t.props.children,s0).filter(function(e){var t;return t=e.props.direction,!!en()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=ct(t,n,0),o=Array.isArray(r)?[sx()(r),sS()(r)]:[r,r],a=i.reduce(function(e,n){var r=ct(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},cc=function(e,t,n,r,o){var a=t.map(function(t){return cs(e,t,n,o,r)}).filter(function(e){return!en()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},cu=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&cs(e,t,a,r)||cn(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*H(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+s,value:e,offset:s}}).filter(function(e){return!F()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+s,value:e,offset:s}}):r.domain().map(function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}})},cm=new WeakMap,cg=function(e,t){if("function"!=typeof t)return e;cm.has(e)||cm.set(e,new WeakMap);var n=cm.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},ch=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:ou(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:a6(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:od(),realScaleType:"point"}:"category"===o?{scale:ou(),realScaleType:"band"}:{scale:a6(),realScaleType:"linear"};if(D()(r)){var l="scale".concat(nQ()(r));return{scale:(O[l]||od)(),realScaleType:O[l]?l:"point"}}return eo()(r)?{scale:r}:{scale:od(),realScaleType:"point"}},cb=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),l=e(t[n-1]);(ia||la)&&e.domain([t[0],t[n-1]])}},cv=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+l,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+l,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},cS=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=cE[n];return(function(){var e=ro([]),t=sb,n=sg,r=sv;function o(o){var a,i,l=Array.from(e.apply(this,arguments),sy),s=l.length,c=-1;for(let e of o)for(a=0,++c;a=0?0:o<0?o:r}return n[0]},cC=function(e,t){var n=e.props.stackId;if(W(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},cT=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[sx()(t.concat([e[0]]).filter($)),sS()(t.concat([e[1]]).filter($))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},cA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=function(e,t,n){if(eo()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if($(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cA.test(e[0])){var o=+cA.exec(e[0])[1];r[0]=t[0]-o}else eo()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if($(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cI.test(e[1])){var a=+cI.exec(e[1])[1];r[1]=t[1]+a}else eo()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cR=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=eZ()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;i0&&t.handleDrag(e.changedTouches[0])}),cq(cW(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),cq(cW(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),cq(cW(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),cq(cW(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),cq(cW(t),"handleSlideDragStart",function(e){var n=cX(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cW(t),"startX"),endX:t.handleTravellerDragStart.bind(cW(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,l=o.data.length-1,s=a.getIndexInRange(r,Math.min(t,n)),c=a.getIndexInRange(r,Math.max(t,n));return{startIndex:s-s%i,endIndex:c===l?l:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ct(n[e],o,e);return eo()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,s=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+l-s-o,i+l-s-r):p<0&&(p=Math.max(p,i-r,i-o));var f=this.getIndex({startX:r+p,endX:o+p});(f.startIndex!==c||f.endIndex!==u)&&d&&d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=cX(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,d=s.travellerWidth,p=s.onChange,f=s.gap,m=s.data,g={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,c+u-d-l):h<0&&(h=Math.max(h,c-l)),g[o]=l+h;var b=this.getIndex(g),v=b.startIndex,y=b.endIndex,E=function(){var e=m.length-1;return"startX"===o&&(a>i?v%f==0:y%f==0)||ai?y%f==0:v%f==0)||a>i&&y===e};this.setState((cq(t={},o,l+h),cq(t,"brushMoveStartX",e.pageX),t),function(){p&&E()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(-1!==c&&!(c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(cq({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return N.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,s=N.Children.only(i);return s?N.cloneElement(s,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,l=r.height,s=r.traveller,c=r.ariaLabel,u=r.data,d=r.startIndex,p=r.endIndex,f=Math.max(e,this.props.x),m=cH(cH({},eA(this.props,!1)),{},{x:f,y:o,width:i,height:l}),g=c||"Min value: ".concat(u[d].name,", Max value: ").concat(u[p].name);return N.createElement(eQ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(s,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,s=l.startX,c=l.endX,u={pointerEvents:"none",fill:i};return N.createElement(eQ,{className:"recharts-brush-texts"},N.createElement(o$,cZ({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},u),this.getTextOfTick(t)),N.createElement(o$,cZ({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,s=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,p=c.isTextActive,f=c.isSlideMoving,m=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!$(o)||!$(a)||!$(i)||!$(l)||i<=0||l<=0)return null;var h=R("recharts-brush",n),b=1===N.Children.count(r),v=cB("userSelect","none");return N.createElement(eQ,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(p||f||m||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),N.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return cH({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?cK({data:n,width:r,x:o,travellerWidth:a,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&cG(a.prototype,n),r&&cG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function cJ(e){return(cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c1(e){for(var t=1;ta&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},c5=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},c8=function(e,t){var n,r=c6({x:e.x,y:e.y},t),o=r.radius,a=r.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var s=c5(t),c=s.startAngle,u=s.endAngle,d=a;if(c<=u){for(;d>u;)d-=360;for(;d=c&&d<=u}else{for(;d>c;)d-=360;for(;d=u&&d<=c}return n?c1(c1({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null};function c9(e){return(c9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c7=["offset"];function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===a?(r=f+v*l,o=g):"insideEnd"===a?(r=m-v*l,o=!g):"end"===a&&(r=m+v*l,o=g),o=b<=0?o:!o;var y=c4(c,u,h,r),E=c4(c,u,h,r+(o?1:-1)*359),S="M".concat(y.x,",").concat(y.y,"\n A").concat(h,",").concat(h,",0,1,").concat(o?0:1,",\n ").concat(E.x,",").concat(E.y),w=en()(e.id)?q("recharts-radial-line-"):e.id;return N.createElement("text",ur({},n,{dominantBaseline:"central",className:R("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:w,d:S})),N.createElement("textPath",{xlinkHref:"#".concat(w)},t))},ui=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=c4(o,a,l+n,s),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=c4(o,a,(i+l)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},ul=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,l=t.width,s=t.height,c=s>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",f=l>=0?1:-1,m=f*r,g=f>0?"end":"start",h=f>0?"start":"end";if("top"===o)return un(un({},{x:a+l/2,y:i-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(i-n.y,0),width:l}:{});if("bottom"===o)return un(un({},{x:a+l/2,y:i+s+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(i+s),0),width:l}:{});if("left"===o){var b={x:a-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"};return un(un({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===o){var v={x:a+l+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"};return un(un({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:s}:{})}var y=n?{width:l,height:s}:{};return"insideLeft"===o?un({x:a+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"},y):"insideRight"===o?un({x:a+l-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"},y):"insideTop"===o?un({x:a+l/2,y:i+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===o?un({x:a+l/2,y:i+s-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===o?un({x:a+m,y:i+u,textAnchor:h,verticalAnchor:p},y):"insideTopRight"===o?un({x:a+l-m,y:i+u,textAnchor:g,verticalAnchor:p},y):"insideBottomLeft"===o?un({x:a+m,y:i+s-u,textAnchor:h,verticalAnchor:d},y):"insideBottomRight"===o?un({x:a+l-m,y:i+s-u,textAnchor:g,verticalAnchor:d},y):ei()(o)&&($(o.x)||G(o.x))&&($(o.y)||G(o.y))?un({x:a+Y(o.x,l),y:i+Y(o.y,s),textAnchor:"end",verticalAnchor:"end"},y):un({x:a+l/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"},y)};function us(e){var t,n=e.offset,r=un({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c7)),o=r.viewBox,a=r.position,i=r.value,l=r.children,s=r.content,c=r.className,u=r.textBreakAll;if(!o||en()(i)&&en()(l)&&!(0,N.isValidElement)(s)&&!eo()(s))return null;if((0,N.isValidElement)(s))return(0,N.cloneElement)(s,r);if(eo()(s)){if(t=(0,N.createElement)(s,r),(0,N.isValidElement)(t))return t}else t=uo(r);var d="cx"in o&&$(o.cx),p=eA(r,!0);if(d&&("insideStart"===a||"insideEnd"===a||"end"===a))return ua(r,t,p);var f=d?ui(r):ul(r);return N.createElement(o$,ur({className:R("recharts-label",void 0===c?"":c)},p,f,{breakAll:u}),t)}us.displayName="Label";var uc=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,m=e.width,g=e.height,h=e.clockWise,b=e.labelViewBox;if(b)return b;if($(m)&&$(g)){if($(u)&&$(d))return{x:u,y:d,width:m,height:g};if($(p)&&$(f))return{x:p,y:f,width:m,height:g}}return $(u)&&$(d)?{x:u,y:d,width:0,height:0}:$(t)&&$(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:s||0,outerRadius:c||l||i||0,clockWise:h}:e.viewBox?e.viewBox:{}};us.parseViewBox=uc,us.renderCallByParent=function(e,t){var n,r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=uc(e),l=ex(a,us).map(function(e,n){return(0,N.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return o?[(n=e.label,r=t||i,n?!0===n?N.createElement(us,{key:"label-implicit",viewBox:r}):W(n)?N.createElement(us,{key:"label-implicit",viewBox:r,value:n}):(0,N.isValidElement)(n)?n.type===us?(0,N.cloneElement)(n,{key:"label-implicit",viewBox:r}):N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):eo()(n)?N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):ei()(n)?N.createElement(us,ur({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return ue(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l};var uu=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},ud=n(50924),up=n.n(ud),uf=function(e){return null};uf.displayName="Cell";var um=n(36887),ug=n.n(um);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ub=["valueAccessor"],uv=["data","dataKey","clockWise","id","textBreakAll"];function uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uO=function(e){return Array.isArray(e.value)?ug()(e.value):e.value};function uk(e){var t=e.valueAccessor,n=void 0===t?uO:t,r=ux(e,ub),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,s=r.textBreakAll,c=ux(r,uv);return o&&o.length?N.createElement(eQ,{className:"recharts-label-list"},o.map(function(e,t){var r=en()(a)?n(e,t):ct(e&&e.payload,a),o=en()(l)?{}:{id:"".concat(l,"-").concat(t)};return N.createElement(us,uE({},eA(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:us.parseViewBox(en()(i)?e:uw(uw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}uk.displayName="LabelList",uk.renderCallByParent=function(e,t){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=ex(e.children,uk).map(function(e,n){return(0,N.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return r?[(n=e.label)?!0===n?N.createElement(uk,{key:"labelList-implicit",data:t}):N.isValidElement(n)||eo()(n)?N.createElement(uk,{key:"labelList-implicit",data:t,content:n}):ei()(n)?N.createElement(uk,uE({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return uy(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(e,t)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var uC=n(23393),uT=n.n(uC),uA=n(90849),uI=n.n(uA);function uN(e){return(uN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uR(){return(uR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:u,height:d,x:l,y:s},duration:m,animationEasing:f,isActive:h},function(e){var t=e.upperWidth,o=e.lowerWidth,i=e.height,l=e.x,s=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:f},N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,t,o,i),ref:r})))}):N.createElement("g",null,N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,c,u,d)})))};function uF(e){return(uF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uB(){return(uB=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(o>0){var p=c4(n,r,o,i),f=c4(n,r,o,s);d+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},uG=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=H(c-s),d=uz({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,f=d.lineTangency,m=d.theta,g=uz({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,v=g.theta,y=l?Math.abs(s-c):Math.abs(s-c)-m-v;if(y<0)return i?"M ".concat(f.x,",").concat(f.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):uH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var E="M ".concat(f.x,",").concat(f.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var S=uz({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=S.circleTangency,x=S.lineTangency,O=S.theta,k=uz({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=k.circleTangency,T=k.lineTangency,A=k.theta,I=l?Math.abs(s-c):Math.abs(s-c)-O-A;if(I<0&&0===a)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},u$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uW=function(e){var t,n=uZ(uZ({},u$),e),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,p=n.className;if(i0&&360>Math.abs(u-d)?uG({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):uH({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d}),N.createElement("path",uB({},eA(n,!0),{className:f,d:t,role:"img"}))},uV=["option","shapeType","propTransformer","activeClassName","isActive"];function uq(e){return(uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uV);if((0,N.isValidElement)(n))t=(0,N.cloneElement)(n,uK(uK({},l),(0,N.isValidElement)(n)?n.props:n));else if(eo()(n))t=n(l);else if(uT()(n)&&!uI()(n)){var s=(void 0===o?function(e,t){return uK(uK({},t),e)}:o)(n,l);t=N.createElement(uX,{shapeType:r,elementProps:s})}else t=N.createElement(uX,{shapeType:r,elementProps:l});return i?N.createElement(eQ,{className:void 0===a?"recharts-active-shape":a},t):t}function uJ(e,t){return null!=t&&"trapezoids"in e.props}function u0(e,t){return null!=t&&"sectors"in e.props}function u1(e,t){return null!=t&&"points"in e.props}function u2(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function u4(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function u3(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function u6(e){return(u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u5=["x","y"];function u8(){return(u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u5),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),s=parseInt("".concat(t.width||o.width),10);return u7(u7(u7(u7(u7({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:l,width:s,name:t.name,radius:t.radius})}function dt(e){return N.createElement(uQ,u8({shapeType:"rectangle",propTransformer:de,activeClassName:"recharts-active-bar"},e))}var dn=["value","background"];function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(){return(da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,dn);if(!i)return null;var s=dl(dl(dl(dl(dl({},l),{},{fill:"#eee"},i),a),em(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return N.createElement(dt,da({option:e.props.background,isActive:n===o},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ex(n.children,s0);if(!l)return null;var s="vertical"===i?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ct(e,t)}};return N.createElement(eQ,{clipPath:e?"url(#clipPath-".concat(t,")"):null},l.map(function(e){return N.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:s,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,s=e.width,c=e.height,u=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,m=R("recharts-bar",r),g=o&&o.allowDataOverflow,h=a&&a.allowDataOverflow,b=g||h,v=en()(p)?this.id:p;return N.createElement(eQ,{className:m},g||h?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(v)},N.createElement("rect",{x:g?i:i-s/2,y:h?l:l-c/2,width:g?s:2*s,height:h?c:2*c}))):null,N.createElement(eQ,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,v),(!u||f)&&uk.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&ds(a.prototype,n),r&&ds(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){for(var n=0;n0&&Math.abs(b)0&&Math.abs(g)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&dh(n.prototype,e),t&&dh(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();dy(dw,"EPS",1e-4);var dx=function(e){var t=Object.keys(e).reduce(function(t,n){return dv(dv({},t),{},dy({},n,dw.create(e[n])))},{});return dv(dv({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return up()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return e$()(e,function(e,n){return t[n].isInRange(e)})}})},dO=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=d;--p)l.point(b[p],v[p]);l.lineEnd(),l.areaEnd()}}h&&(b[u]=+e(f,u,c),v[u]=+t(f,u,c),l.point(r?+r(f,u,c):b[u],n?+n(f,u,c):v[u]))}if(m)return l=null,m+""||null}function u(){return pT().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?pk:ro(+e),t="function"==typeof t?t:void 0===t?ro(0):ro(+t),n="function"==typeof n?n:void 0===n?pC:ro(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ro(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ro(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:ro(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),c):a},c}function pI(e){return(pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pN(){return(pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var pP={curveBasisClosed:function(e){return new pu(e)},curveBasisOpen:function(e){return new pd(e)},curveBasis:function(e){return new pc(e)},curveBumpX:function(e){return new pp(e,!0)},curveBumpY:function(e){return new pp(e,!1)},curveLinearClosed:function(e){return new pf(e)},curveLinear:pg,curveMonotoneX:function(e){return new py(e)},curveMonotoneY:function(e){return new pE(e)},curveNatural:function(e){return new pw(e)},curveStep:function(e){return new pO(e,.5)},curveStepAfter:function(e){return new pO(e,1)},curveStepBefore:function(e){return new pO(e,0)}},pM=function(e){return e.x===+e.x&&e.y===+e.y},pL=function(e){return e.x},pD=function(e){return e.y},pj=function(e,t){if(eo()(e))return e;var n="curve".concat(nQ()(e));return("curveMonotone"===n||"curveBump"===n)&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||pg},pF=function(e){var t,n=e.type,r=e.points,o=void 0===r?[]:r,a=e.baseLine,i=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=pj(void 0===n?"linear":n,i),u=s?o.filter(function(e){return pM(e)}):o;if(Array.isArray(a)){var d=s?a.filter(function(e){return pM(e)}):a,p=u.map(function(e,t){return p_(p_({},e),{},{base:d[t]})});return(t="vertical"===i?pA().y(pD).x1(pL).x0(function(e){return e.base.x}):pA().x(pL).y1(pD).y0(function(e){return e.base.y})).defined(pM).curve(c),t(p)}return(t="vertical"===i&&$(a)?pA().y(pD).x1(pL).x0(a):$(a)?pA().x(pL).y1(pD).y0(a):pT().x(pL).y(pD)).defined(pM).curve(c),t(u)},pB=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?pF(e):r;return N.createElement("path",pN({},eA(e,!1),ef(e),{className:R("recharts-curve",t),d:a,ref:o}))};function pU(e){return(pU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pZ=["x","y","top","left","width","height","className"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pZ));return $(n)&&$(o)&&$(u)&&$(p)&&$(i)&&$(s)?N.createElement("path",pz({},eA(m,!0),{className:R("recharts-cross",f),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(s,",").concat(o,"h").concat(u)})):null};function p$(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[c4(t,n,r,o),c4(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function pW(e){return(pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p2(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&$(r)&&$(o)?e.slice(r,o+1):[]};function fc(e){return"number"===e?[0,"auto"]:void 0}var fu=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=fs(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;return(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?J(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(p5(o),[cP(l,c)]):o},[])},fd=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=cr(a,i,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=fu(e,t,c,u),p=fl(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},fp=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=cd(c,o);return n.reduce(function(t,n){var f=n.props,m=f.type,g=f.dataKey,h=f.allowDataOverflow,b=f.allowDuplicatedCategory,v=f.scale,y=f.ticks,E=f.includeHidden,S=n.props[a];if(t[S])return t;var w=fs(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===S}),dataStartIndex:l,dataEndIndex:s}),x=w.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&$(r)&&$(o))return!0}return!1})(n.props.domain,h,m)&&(C=cN(n.props.domain,null,h),p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category")));var O=fc(m);if(!C||0===C.length){var k,C,T,A,I,N=null!==(I=n.props.domain)&&void 0!==I?I:O;if(g){if(C=cn(w,g,m),"category"===m&&p){var R=X(C);b&&R?(T=C,C=eB()(0,x)):b||(C=c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(p5(e),[t])},[]))}else if("category"===m)C=b?C.filter(function(e){return""!==e&&!en()(e)}):c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||en()(t)?e:[].concat(p5(e),[t])},[]);else if("number"===m){var _=cc(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),g,o,c);_&&(C=_)}p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category"))}else C=p?eB()(0,x):i&&i[S]&&i[S].hasStack&&"number"===m?"expand"===d?[0,1]:cT(i[S].stackGroups,l,s):cu(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),m,c,!0);"number"===m?(C=d9(u,C,S,o,y),N&&(C=cN(N,C,h))):"category"===m&&N&&C.every(function(e){return N.indexOf(e)>=0})&&(C=N)}return fe(fe({},t),{},ft({},S,fe(fe({},n.props),{},{axisType:o,domain:C,categoricalDomain:A,duplicateDomain:T,originalDomain:null!==(k=n.props.domain)&&void 0!==k?k:O,isCategorical:p,layout:c})))},{})},ff=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=fs(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),p=d.length,f=cd(c,o),m=-1;return n.reduce(function(e,t){var g,h=t.props[a],b=fc("number");return e[h]?e:(m++,g=f?eB()(0,p):i&&i[h]&&i[h].hasStack?d9(u,g=cT(i[h].stackGroups,l,s),h,o):d9(u,g=cN(b,cu(d,n.filter(function(e){return e.props[a]===h&&!e.props.hide}),"number",c),r.defaultProps.allowDataOverflow),h,o),fe(fe({},e),{},ft({},h,fe(fe({axisType:o},r.defaultProps),{},{hide:!0,orientation:U()(fr,"".concat(o,".").concat(m%2),null),domain:g,originalDomain:b,isCategorical:f,layout:c}))))},{})},fm=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ex(c,o),p={};return d&&d.length?p=fp(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=ff(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s})),p},fg=function(e){var t=K(e),n=cf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eZ()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cR(t,n)}},fh=function(e){var t=e.children,n=e.defaultShowTooltip,r=eO(t,cQ),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},fb=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fv=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,d=n.margin||{},p=eO(u,cQ),f=eO(u,r1),m=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,e[r]+n.width))},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,U()(e,"".concat(r))+n.height))},{top:d.top||0,bottom:d.bottom||0}),h=fe(fe({},g),m),b=h.bottom;p&&(h.bottom+=p.props.height||cQ.defaultProps.height),f&&t&&(h=cl(h,r,n,t));var v=s-h.left-h.right,y=c-h.top-h.bottom;return fe(fe({brushBottom:b},h),{},{width:Math.max(v,0),height:Math.max(y,0)})};function fy(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t=2?H(c[1].coordinate-c[0].coordinate):1,S=(r="width"===b,o=u.x,a=u.y,i=u.width,l=u.height,1===E?{start:r?o:a,end:r?o+i:a+l}:{start:r?o+i:a+l,end:r?o:a});return"equidistantPreserveStart"===f?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l;u<=i.length;)if(a=function(){var t,a=null==r?void 0:r[c];if(void 0===a)return{v:fy(r,u)};var i=c,p=function(){return void 0===t&&(t=n(a,i)),t},f=a.coordinate,m=0===c||fE(e,f,p,d,s);m||(c=0,d=l,u+=1),m&&(d=f+e*(p()/2+o),c+=u)}())return a.v;return[]}(E,S,y,c,d):("preserveStart"===f||"preserveStartEnd"===f?function(e,t,n,r,o,a){var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end;if(a){var u=r[l-1],d=n(u,l-1),p=e*(u.coordinate+e*d/2-c);i[l-1]=u=fx(fx({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),fE(e,u.tickCoord,function(){return d},s,c)&&(c=u.tickCoord-e*(d/2+o),i[l-1]=fx(fx({},u),{},{isShow:!0}))}for(var f=a?l-1:l,m=function(t){var r,a=i[t],l=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*l()/2-s);i[t]=a=fx(fx({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=fx(fx({},a),{},{tickCoord:a.coordinate});fE(e,a.tickCoord,l,s,c)&&(s=a.tickCoord+e*(l()/2+o),i[t]=fx(fx({},a),{},{isShow:!0}))},g=0;g0?c.coordinate-d*e:c.coordinate})}else a[t]=c=fx(fx({},c),{},{tickCoord:c.coordinate});fE(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),a[t]=fx(fx({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(E,S,y,c,d)).filter(function(e){return e.isShow})}var fk=["viewBox"],fC=["viewBox"],fT=["ticks"];function fA(e){return(fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(){return(fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fP(e,t){for(var n=0;n0?this.props:c)),r<=0||o<=0||!u||!u.length)?null:N.createElement(eQ,{className:R("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),us.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):N.createElement(o$,fI({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&fP(a.prototype,n),r&&fP(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function fB(){return(fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(O=Math.min((e||0)-(k[t-1]||0),O))});var C=O/x,T="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var A=Y(e.barCategoryGap,C*T),I=C*T/2;s=I-A-(I-A)/T*A}}c="xAxis"===r?[n.left+(y.left||0)+(s||0),n.left+n.width-(y.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(s||0),n.top+n.height-(y.bottom||0)-(s||0)]:g.range,S&&(c=[c[1],c[0]]);var N=ch(g,o,d),R=N.scale,_=N.realScaleType;R.domain(b).range(c),cb(R);var P=cx(R,dv(dv({},g),{},{realScaleType:_}));"xAxis"===r?(m="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-m*g.height):"yAxis"===r&&(m="left"===h&&!E||"right"===h&&E,p=u[w]-m*g.width,f=n.top);var M=dv(dv(dv({},g),P),{},{realScaleType:_,x:p,y:f,scale:R,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return M.bandSize=cR(M,P),g.hide||"xAxis"!==r?g.hide||(u[w]+=(m?-1:1)*M.width):u[w]+=(m?-1:1)*M.height,dv(dv({},a),{},dy({},i,M))},{})}}).chartName,i=r.GraphicalChild,s=void 0===(l=r.defaultTooltipEventType)?"axis":l,u=void 0===(c=r.validateTooltipEventTypes)?["axis"]:c,d=r.axisComponents,p=r.legendContent,f=r.formatAxisMap,m=r.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,m=fb(c),g=m.numericAxisName,h=m.cateAxisName,b=!!n&&!!n.length&&n.some(function(e){var t=ey(e&&e.type);return t&&t.indexOf("Bar")>=0})&&ca({barSize:s,stackGroups:r}),v=[];return n.forEach(function(n,s){var m,y=fs(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:l}),E=n.props,S=E.dataKey,w=E.maxBarSize,x=n.props["".concat(g,"Id")],O=n.props["".concat(h,"Id")],k=d.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||eW(!1);var l=a[i];return fe(fe({},e),{},(ft(o={},r.axisType,l),ft(o,"".concat(r.axisType,"Ticks"),cf(l)),o))},{}),C=k[h],T=k["".concat(h,"Ticks")],A=r&&r[x]&&r[x].hasStack&&cC(n,r[x].stackGroups),I=ey(n.type).indexOf("Bar")>=0,N=cR(C,T),R=[];if(I){var _,P,M=en()(w)?f:w,L=null!==(_=null!==(P=cR(C,T,!0))&&void 0!==P?P:M)&&void 0!==_?_:0;R=ci({barGap:u,barCategoryGap:p,bandSize:L!==N?L:N,sizeList:b[O],maxBarSize:M}),L!==N&&(R=R.map(function(e){return fe(fe({},e),{},{position:fe(fe({},e.position),{},{offset:e.position.offset-L/2})})}))}var D=n&&n.type&&n.type.getComposedData;D&&v.push({props:fe(fe({},D(fe(fe({},k),{},{displayedData:y,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:o,stackedData:A,layout:c,dataStartIndex:i,dataEndIndex:l}))),{},(ft(m={key:n.key||"item-".concat(s)},g,k[g]),ft(m,h,k[h]),ft(m,"animationId",a),m)),childIndex:ew(e.children).indexOf(n),item:n})}),v},h=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,l=e.updateId;if(!ek({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,p=n.data,m=n.reverseStackOrder,h=fb(c),b=h.numericAxisName,v=h.cateAxisName,y=ex(s,i),E=cw(p,y,"".concat(b,"Id"),"".concat(v,"Id"),u,m),S=d.reduce(function(e,t){var a="".concat(t.axisType,"Map");return fe(fe({},e),{},ft({},a,fm(n,fe(fe({},t),{},{graphicalItems:y,stackGroups:t.axisType===b&&E,dataStartIndex:r,dataEndIndex:o}))))},{}),w=fv(fe(fe({},S),{},{props:n,graphicalItems:y}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),a)});var x=fg(S["".concat(v,"Map")]),O=g(n,fe(fe({},S),{},{dataStartIndex:r,dataEndIndex:o,updateId:l,graphicalItems:y,stackGroups:E,offset:w}));return fe(fe({formattedGraphicalItems:O,graphicalItems:y,offset:w,stackGroups:E},x),S)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p4(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p6(i);if(t){var r=p6(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===pQ(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p3(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),ft(p3(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(p3(r),"accessibilityManager",new pi),ft(p3(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(fe({legendBBox:e},h({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},fe(fe({},r.state),{},{legendBBox:e}))))}}),ft(p3(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),ft(p3(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return fe({dataStartIndex:t,dataEndIndex:n},h({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),ft(p3(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;eo()(o)&&o(n,e)}}),ft(p3(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?fe(fe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;eo()(o)&&o(n,e)}),ft(p3(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ft(p3(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),ft(p3(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),ft(p3(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;eo()(n)&&n(t,e)}),ft(p3(r),"handleOuterEvent",function(e){var t,n=e_(e),o=U()(r.props,"".concat(n));n&&eo()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),ft(p3(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;eo()(o)&&o(n,e)}}),ft(p3(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ft(p3(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),ft(p3(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),ft(p3(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&pe.emit(pt,r.props.syncId,e,r.eventEmitterSymbol)}),ft(p3(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(fe({dataStartIndex:i,dataEndIndex:l},h({props:r.props,dataStartIndex:i,dataEndIndex:l,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof o)u=o(f,e);else if("value"===o){u=-1;for(var m=0;m=0){if(s.dataKey&&!s.allowDuplicatedCategory){var x="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=J(f,x,u),C=m&&g&&J(g,x,u)}else k=null==f?void 0:f[c],C=m&&g&&g[c];if(E||y){var O=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,N.cloneElement)(e,fe(fe(fe({},o.props),S),{},{activeIndex:O})),null,null]}if(!en()(k))return[w].concat(p5(r.renderActivePoints({item:o,activePoint:k,basePoint:C,childIndex:c,isRange:m})))}else{var k,C,T,A=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:w}).graphicalItem,I=A.item,R=void 0===I?e:I,_=A.childIndex,P=fe(fe(fe({},o.props),S),{},{activeIndex:_});return[(0,N.cloneElement)(R,P),null,null]}}return m?[w,null,null]:[w,null]}),ft(p3(r),"renderCustomized",function(e,t,n){return(0,N.cloneElement)(e,fe(fe({key:"recharts-customized-".concat(n)},r.props),r.state))}),ft(p3(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fi},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fi},YAxis:{handler:fi},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:q("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=eO(t,nK);if(a){var i=a.props.defaultIndex;if("number"==typeof i&&!(i<0)&&!(i>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=fu(this.state,n,i,l),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=fe(fe({},d),p.props.points[i].tooltipPosition),s=p.props.points[i].tooltipPayload);var f={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(f),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){eI([eO(e.children,nK)],[eO(this.props.children,nK)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eO(this.props.children,nK);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var l=this.state,s=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=K(s).scale,d=K(c).scale,p=u&&u.invert?u.invert(o.chartX):null,f=d&&d.invert?d.invert(o.chartY):null;return fe(fe({},o),{},{xValue:p,yValue:f})}var m=fd(this.state,this.props.data,this.props.layout,i);return m?fe(fe({},o),m):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;return s&&c?c8({x:o,y:a},K(s)):null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=eO(e,nK),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),fe(fe({},ef(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pe.on(pt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pe.removeListener(pt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height;return N.createElement("rect",{x:r,y:o,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fQ(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(eo()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,s=eA(fK(t,fG),!1),c=(s.offset,fK(s,f$));n=N.createElement("line",fY({},c,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function fJ(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function f0(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function f1(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,l){var s=c[l+1]?c[l+1]-e:o+i-e;if(s<=0)return null;var u=l%t.length;return N.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:s,width:a,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function f2(e){var t=e.vertical,n=e.verticalFill,r=e.fillOpacity,o=e.x,a=e.y,i=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:o+i-e;if(s<=0)return null;var u=t%n.length;return N.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:n[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var f4=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},f3=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},f6={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f5(e){var t,n,r,o,a,i,l=d$(),s=dW(),c=(0,N.useContext)(dF),u=fq(fq({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:f6.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:f6.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:f6.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:f6.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:f6.vertical,verticalFill:null!==(i=e.verticalFill)&&void 0!==i?i:f6.verticalFill}),d=u.x,p=u.y,f=u.width,m=u.height,g=u.xAxis,h=u.yAxis,b=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues;if(!$(f)||f<=0||!$(m)||m<=0||!$(d)||d!==+d||!$(p)||p!==+p)return null;var E=u.verticalCoordinatesGenerator||f4,S=u.horizontalCoordinatesGenerator||f3,w=u.horizontalPoints,x=u.verticalPoints;if((!w||!w.length)&&eo()(S)){var O=v&&v.length,k=S({yAxis:h?fq(fq({},h),{},{ticks:O?v:h.ticks}):void 0,width:l,height:s,offset:c},!!O||b);ee(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fW(k),"]")),Array.isArray(k)&&(w=k)}if((!x||!x.length)&&eo()(E)){var C=y&&y.length,T=E({xAxis:g?fq(fq({},g),{},{ticks:C?y:g.ticks}):void 0,width:l,height:s,offset:c},!!C||b);ee(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fW(T),"]")),Array.isArray(T)&&(x=T)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(fX,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height}),N.createElement(fJ,fY({},u,{offset:c,horizontalPoints:w})),N.createElement(f0,fY({},u,{offset:c,verticalPoints:x})),N.createElement(f1,fY({},u,{horizontalPoints:w})),N.createElement(f2,fY({},u,{verticalPoints:x})))}f5.displayName="CartesianGrid";let f8=(e,t)=>{let[n,r]=(0,N.useState)(t);(0,N.useEffect)(()=>{let t=()=>{r(window.innerWidth),e()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n])},f9=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M8 12L14 6V18L8 12Z"}))},f7=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M16 12L10 18V6L16 12Z"}))},me=(0,I.fn)("Legend"),mt=e=>{let{name:t,color:n,onClick:r,activeLegend:o}=e,a=!!r;return N.createElement("li",{className:(0,A.q)(me("legendItem"),"group inline-flex items-center px-2 py-0.5 rounded-tremor-small transition whitespace-nowrap",a?"cursor-pointer":"cursor-default","text-tremor-content",a?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",a?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:e=>{e.stopPropagation(),null==r||r(t,n)}},N.createElement("svg",{className:(0,A.q)("flex-none h-2 w-2 mr-1.5",(0,I.bM)(n,T.K.text).textColor,o&&o!==t?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},N.createElement("circle",{cx:4,cy:4,r:4})),N.createElement("p",{className:(0,A.q)("whitespace-nowrap truncate text-tremor-default","text-tremor-content",a?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",o&&o!==t?"opacity-40":"opacity-100",a?"dark:group-hover:text-dark-tremor-content-emphasis":"")},t))},mn=e=>{let{icon:t,onClick:n,disabled:r}=e,[o,a]=N.useState(!1),i=N.useRef(null);return N.useEffect(()=>(o?i.current=setInterval(()=>{null==n||n()},300):clearInterval(i.current),()=>clearInterval(i.current)),[o,n]),(0,N.useEffect)(()=>{r&&(clearInterval(i.current),a(!1))},[r]),N.createElement("button",{type:"button",className:(0,A.q)(me("legendSliderButton"),"w-5 group inline-flex items-center truncate rounded-tremor-small transition",r?"cursor-not-allowed":"cursor-pointer",r?"text-tremor-content-subtle":"text-tremor-content hover:text-tremor-content-emphasis hover:bg-tremor-background-subtle",r?"dark:text-dark-tremor-subtle":"dark:text-dark-tremor dark:hover:text-tremor-content-emphasis dark:hover:bg-dark-tremor-background-subtle"),disabled:r,onClick:e=>{e.stopPropagation(),null==n||n()},onMouseDown:e=>{e.stopPropagation(),a(!0)},onMouseUp:e=>{e.stopPropagation(),a(!1)}},N.createElement(t,{className:"w-full"}))},mr=N.forwardRef((e,t)=>{var n,r;let{categories:o,colors:a=T.s,className:i,onClickLegendItem:l,activeLegend:s,enableLegendSlider:c=!1}=e,u=(0,k._T)(e,["categories","colors","className","onClickLegendItem","activeLegend","enableLegendSlider"]),d=N.useRef(null),[p,f]=N.useState(null),[m,g]=N.useState(null),h=N.useRef(null),b=(0,N.useCallback)(()=>{let e=null==d?void 0:d.current;e&&f({left:e.scrollLeft>0,right:e.scrollWidth-e.clientWidth>e.scrollLeft})},[f]),v=(0,N.useCallback)(e=>{var t;let n=null==d?void 0:d.current,r=null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0;n&&c&&(n.scrollTo({left:"left"===e?n.scrollLeft-r:n.scrollLeft+r,behavior:"smooth"}),setTimeout(()=>{b()},400))},[c,b]);N.useEffect(()=>{let e=e=>{"ArrowLeft"===e?v("left"):"ArrowRight"===e&&v("right")};return m?(e(m),h.current=setInterval(()=>{e(m)},300)):clearInterval(h.current),()=>clearInterval(h.current)},[m,v]);let y=e=>{e.stopPropagation(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),g(e.key))},E=e=>{e.stopPropagation(),g(null)};return N.useEffect(()=>{let e=null==d?void 0:d.current;return c&&(b(),null==e||e.addEventListener("keydown",y),null==e||e.addEventListener("keyup",E)),()=>{null==e||e.removeEventListener("keydown",y),null==e||e.removeEventListener("keyup",E)}},[b,c]),N.createElement("ol",Object.assign({ref:t,className:(0,A.q)(me("root"),"relative overflow-hidden",i)},u),N.createElement("div",{ref:d,tabIndex:0,className:(0,A.q)("h-full flex",c?(null==p?void 0:p.right)||(null==p?void 0:p.left)?"pl-4 pr-12 items-center overflow-auto snap-mandatory [&::-webkit-scrollbar]:hidden [scrollbar-width:none]":"":"flex-wrap")},o.map((e,t)=>N.createElement(mt,{key:"item-".concat(t),name:e,color:a[t],onClick:l,activeLegend:s}))),c&&((null==p?void 0:p.right)||(null==p?void 0:p.left))?N.createElement(N.Fragment,null,N.createElement("div",{className:(0,A.q)("from-tremor-background","dark:from-dark-tremor-background","absolute top-0 bottom-0 left-0 w-4 bg-gradient-to-r to-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("to-tremor-background","dark:to-dark-tremor-background","absolute top-0 bottom-0 right-10 w-4 bg-gradient-to-r from-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("bg-tremor-background","dark:bg-dark-tremor-background","absolute flex top-0 pr-1 bottom-0 right-0 items-center justify-center h-full")},N.createElement(mn,{icon:f9,onClick:()=>{g(null),v("left")},disabled:!(null==p?void 0:p.left)}),N.createElement(mn,{icon:f7,onClick:()=>{g(null),v("right")},disabled:!(null==p?void 0:p.right)}))):null)});mr.displayName="Legend";let mo=(e,t,n,r,o,a)=>{let{payload:i}=e,l=(0,N.useRef)(null);f8(()=>{var e,t;n((t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60)});let s=i.filter(e=>"none"!==e.type);return N.createElement("div",{ref:l,className:"flex items-center justify-end"},N.createElement(mr,{categories:s.map(e=>e.value),colors:s.map(e=>t.get(e.value)),onClickLegendItem:o,activeLegend:r,enableLegendSlider:a}))},ma=e=>{let{children:t}=e;return N.createElement("div",{className:(0,A.q)("rounded-tremor-default text-tremor-default border","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border")},t)},mi=e=>{let{value:t,name:n,color:r}=e;return N.createElement("div",{className:"flex items-center justify-between space-x-8"},N.createElement("div",{className:"flex items-center space-x-2"},N.createElement("span",{className:(0,A.q)("shrink-0 rounded-tremor-full border-2 h-3 w-3","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",(0,I.bM)(r,T.K.background).bgColor)}),N.createElement("p",{className:(0,A.q)("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},n)),N.createElement("p",{className:(0,A.q)("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},t))},ml=e=>{let{active:t,payload:n,label:r,categoryColors:o,valueFormatter:a}=e;if(t&&n){let e=n.filter(e=>"none"!==e.type);return N.createElement(ma,null,N.createElement("div",{className:(0,A.q)("border-tremor-border border-b px-4 py-2","dark:border-dark-tremor-border")},N.createElement("p",{className:(0,A.q)("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),N.createElement("div",{className:(0,A.q)("px-4 py-2 space-y-1")},e.map((e,t)=>{var n;let{value:r,name:i}=e;return N.createElement(mi,{key:"id-".concat(t),value:a(r),name:i,color:null!==(n=o.get(i))&&void 0!==n?n:C.fr.Blue})})))}return null},ms=(0,I.fn)("Flex"),mc={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},mu={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},mp=N.forwardRef((e,t)=>{let{flexDirection:n="row",justifyContent:r="between",alignItems:o="center",children:a,className:i}=e,l=(0,k._T)(e,["flexDirection","justifyContent","alignItems","children","className"]);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)(ms("root"),"flex w-full",md[n],mc[r],mu[o],i)},l),a)});mp.displayName="Flex";var mf=n(71801);let mm=e=>{let{noDataText:t="No data"}=e;return N.createElement(mp,{alignItems:"center",justifyContent:"center",className:(0,A.q)("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},N.createElement(mf.Z,{className:(0,A.q)("text-tremor-content","dark:text-dark-tremor-content")},t))},mg=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{n.set(e,t[r])}),n},mh=(e,t,n)=>[e?"auto":null!=t?t:0,null!=n?n:"auto"];function mb(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!mb(e[o],t[o]))return!1;return!0}let mv=N.forwardRef((e,t)=>{let{data:n=[],categories:r=[],index:o,colors:a=T.s,valueFormatter:i=I.Cj,layout:l="horizontal",stack:s=!1,relative:c=!1,startEndOnly:u=!1,animationDuration:d=900,showAnimation:p=!1,showXAxis:f=!0,showYAxis:m=!0,yAxisWidth:g=56,intervalType:h="equidistantPreserveStart",showTooltip:b=!0,showLegend:v=!0,showGridLines:y=!0,autoMinValue:E=!1,minValue:S,maxValue:w,allowDecimals:x=!0,noDataText:O,onValueChange:R,enableLegendSlider:_=!1,customTooltip:P,rotateLabelX:M,tickGap:L=5,className:D}=e,j=(0,k._T)(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","enableLegendSlider","customTooltip","rotateLabelX","tickGap","className"]),F=f||m?20:0,[B,U]=(0,N.useState)(60),Z=mg(r,a),[z,H]=N.useState(void 0),[G,$]=(0,N.useState)(void 0),W=!!R;function V(e,t,n){var r,o,a,i;n.stopPropagation(),R&&(mb(z,Object.assign(Object.assign({},e.payload),{value:e.value}))?($(void 0),H(void 0),null==R||R(null)):($(null===(o=null===(r=e.tooltipPayload)||void 0===r?void 0:r[0])||void 0===o?void 0:o.dataKey),H(Object.assign(Object.assign({},e.payload),{value:e.value})),null==R||R(Object.assign({eventType:"bar",categoryClicked:null===(i=null===(a=e.tooltipPayload)||void 0===a?void 0:a[0])||void 0===i?void 0:i.dataKey},e.payload))))}let q=mh(E,S,w);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)("w-full h-80",D)},j),N.createElement(ej,{className:"h-full w-full"},(null==n?void 0:n.length)?N.createElement(fH,{data:n,stackOffset:s?"sign":c?"expand":"none",layout:"vertical"===l?"vertical":"horizontal",onClick:W&&(G||z)?()=>{H(void 0),$(void 0),null==R||R(null)}:void 0},y?N.createElement(f5,{className:(0,A.q)("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==l,vertical:"vertical"===l}):null,"vertical"!==l?N.createElement(fU,{padding:{left:F,right:F},hide:!f,dataKey:o,interval:u?"preserveStartEnd":h,tick:{transform:"translate(0, 6)"},ticks:u?[n[0][o],n[n.length-1][o]]:void 0,fill:"",stroke:"",className:(0,A.q)("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight,minTickGap:L}):N.createElement(fU,{hide:!f,type:"number",tick:{transform:"translate(-3, 0)"},domain:q,fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:i,minTickGap:L,allowDecimals:x,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight}),"vertical"!==l?N.createElement(fz,{width:g,hide:!m,axisLine:!1,tickLine:!1,type:"number",domain:q,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:c?e=>"".concat((100*e).toString()," %"):i,allowDecimals:x}):N.createElement(fz,{width:g,hide:!m,dataKey:o,axisLine:!1,tickLine:!1,ticks:u?[n[0][o],n[n.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),N.createElement(nK,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?e=>{let{active:t,payload:n,label:r}=e;return P?N.createElement(P,{payload:null==n?void 0:n.map(e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=Z.get(e.dataKey))&&void 0!==t?t:C.fr.Gray})}),active:t,label:r}):N.createElement(ml,{active:t,payload:n,label:r,valueFormatter:i,categoryColors:Z})}:N.createElement(N.Fragment,null),position:{y:0}}),v?N.createElement(r1,{verticalAlign:"top",height:B,content:e=>{let{payload:t}=e;return mo({payload:t},Z,U,G,W?e=>{W&&(e!==G||z?($(e),null==R||R({eventType:"category",categoryClicked:e})):($(void 0),null==R||R(null)),H(void 0))}:void 0,_)}}):null,r.map(e=>{var t;return N.createElement(dm,{className:(0,A.q)((0,I.bM)(null!==(t=Z.get(e))&&void 0!==t?t:C.fr.Gray,T.K.background).fillColor,R?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:s||c?"a":void 0,dataKey:e,fill:"",isAnimationActive:p,animationDuration:d,shape:e=>((e,t,n,r)=>{let{fillOpacity:o,name:a,payload:i,value:l}=e,{x:s,width:c,y:u,height:d}=e;return"horizontal"===r&&d<0?(u+=d,d=Math.abs(d)):"vertical"===r&&c<0&&(s+=c,c=Math.abs(c)),N.createElement("rect",{x:s,y:u,width:c,height:d,opacity:t||n&&n!==a?mb(t,Object.assign(Object.assign({},i),{value:l}))?o:.3:o})})(e,z,G,l),onClick:V})})):N.createElement(mm,{noDataText:O})))});mv.displayName="BarChart"},5:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(2898),s=n(99250),c=n(65492);let u={xs:{paddingX:"px-2",paddingY:"py-0.5",fontSize:"text-xs"},sm:{paddingX:"px-2.5",paddingY:"py-0.5",fontSize:"text-sm"},md:{paddingX:"px-3",paddingY:"py-0.5",fontSize:"text-md"},lg:{paddingX:"px-3.5",paddingY:"py-0.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-1",fontSize:"text-xl"}},d={xs:{height:"h-4",width:"w-4"},sm:{height:"h-4",width:"w-4"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"}},p=(0,c.fn)("Badge"),f=o.forwardRef((e,t)=>{let{color:n,icon:f,size:m=i.u8.SM,tooltip:g,className:h,children:b}=e,v=(0,r._T)(e,["color","icon","size","tooltip","className","children"]),y=f||null,{tooltipProps:E,getReferenceProps:S}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,c.lq)([t,E.refs.setReference]),className:(0,s.q)(p("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",n?(0,s.q)((0,c.bM)(n,l.K.background).bgColor,(0,c.bM)(n,l.K.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):(0,s.q)("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),u[m].paddingX,u[m].paddingY,u[m].fontSize,h)},S,v),o.createElement(a.Z,Object.assign({text:g},E)),y?o.createElement(y,{className:(0,s.q)(p("icon"),"shrink-0 -ml-1 mr-1.5",d[m].height,d[m].width)}):null,o.createElement("p",{className:(0,s.q)(p("text"),"text-sm whitespace-nowrap")},b))});f.displayName="Badge"},61244:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(99250),s=n(65492),c=n(2898);let u={xs:{paddingX:"px-1.5",paddingY:"py-1.5"},sm:{paddingX:"px-1.5",paddingY:"py-1.5"},md:{paddingX:"px-2",paddingY:"py-2"},lg:{paddingX:"px-2",paddingY:"py-2"},xl:{paddingX:"px-2.5",paddingY:"py-2.5"}},d={xs:{height:"h-3",width:"w-3"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-7",width:"w-7"},xl:{height:"h-9",width:"w-9"}},p={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:"border",ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:"border-2",ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:"border",ring:"ring-2",shadow:""}},f=(e,t)=>{switch(e){case"simple":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:t?(0,s.bM)(t,c.K.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:t?(0,l.q)((0,s.bM)(t,c.K.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}},m=(0,s.fn)("Icon"),g=o.forwardRef((e,t)=>{let{icon:n,variant:c="simple",tooltip:g,size:h=i.u8.SM,color:b,className:v}=e,y=(0,r._T)(e,["icon","variant","tooltip","size","color","className"]),E=f(c,b),{tooltipProps:S,getReferenceProps:w}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,s.lq)([t,S.refs.setReference]),className:(0,l.q)(m("root"),"inline-flex flex-shrink-0 items-center",E.bgColor,E.textColor,E.borderColor,E.ringColor,p[c].rounded,p[c].border,p[c].shadow,p[c].ring,u[h].paddingX,u[h].paddingY,v)},w,y),o.createElement(a.Z,Object.assign({text:g},S)),o.createElement(n,{className:(0,l.q)(m("icon"),"shrink-0",d[h].height,d[h].width)}))});g.displayName="Icon"},2179:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(69703),o=n(58437),a=n(64090);let i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],l=e=>({_s:e,status:i[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),s=e=>e?6:5,c=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return s(t)}},u=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],d=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),p=(e,t,n,r,o)=>{clearTimeout(r.current);let a=l(e);t(a),n.current=a,o&&o({current:a})},f=function(){let{enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:f,unmountOnExit:m,onStateChange:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,b]=(0,a.useState)(()=>l(i?2:s(f))),v=(0,a.useRef)(h),y=(0,a.useRef)(),[E,S]=u(o),w=(0,a.useCallback)(()=>{let e=c(v.current._s,m);e&&p(e,b,v,y,g)},[g,m]),x=(0,a.useCallback)(o=>{let a=e=>{switch(p(e,b,v,y,g),e){case 1:E>=0&&(y.current=setTimeout(w,E));break;case 4:S>=0&&(y.current=setTimeout(w,S));break;case 0:case 3:y.current=d(a,e)}},i=v.current.isEnter;"boolean"!=typeof o&&(o=!i),o?i||a(e?n?0:1:2):i&&a(t?r?3:4:s(m))},[w,g,e,t,n,r,E,S,m]);return(0,a.useEffect)(()=>()=>clearTimeout(y.current),[]),[h,x,w]};var m=n(54942),g=n(99250),h=n(65492);let b=e=>{var t=(0,r._T)(e,[]);return a.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};var v=n(2898);let y={xs:{height:"h-4",width:"w-4"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-6",width:"w-6"},xl:{height:"h-6",width:"w-6"}},E=e=>"light"!==e?{xs:{paddingX:"px-2.5",paddingY:"py-1.5",fontSize:"text-xs"},sm:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-sm"},md:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-md"},lg:{paddingX:"px-4",paddingY:"py-2.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-3",fontSize:"text-xl"}}:{xs:{paddingX:"",paddingY:"",fontSize:"text-xs"},sm:{paddingX:"",paddingY:"",fontSize:"text-sm"},md:{paddingX:"",paddingY:"",fontSize:"text-md"},lg:{paddingX:"",paddingY:"",fontSize:"text-lg"},xl:{paddingX:"",paddingY:"",fontSize:"text-xl"}},S=(e,t)=>{switch(e){case"primary":return{textColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,h.bM)(t,v.K.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:t?(0,h.bM)(t,v.K.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:t?(0,h.bM)(t,v.K.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,hoverBgColor:t?(0,g.q)((0,h.bM)(t,v.K.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,borderColor:"",hoverBorderColor:""}}},w=(0,h.fn)("Button"),x=e=>{let{loading:t,iconSize:n,iconPosition:r,Icon:o,needMargin:i,transitionStatus:l}=e,s=i?r===m.zS.Left?(0,g.q)("-ml-1","mr-1.5"):(0,g.q)("-mr-1","ml-1.5"):"",c=(0,g.q)("w-0 h-0"),u={default:c,entering:c,entered:n,exiting:n,exited:c};return t?a.createElement(b,{className:(0,g.q)(w("icon"),"animate-spin shrink-0",s,u.default,u[l]),style:{transition:"width 150ms"}}):a.createElement(o,{className:(0,g.q)(w("icon"),"shrink-0",n,s)})},O=a.forwardRef((e,t)=>{let{icon:n,iconPosition:i=m.zS.Left,size:l=m.u8.SM,color:s,variant:c="primary",disabled:u,loading:d=!1,loadingText:p,children:b,tooltip:v,className:O}=e,k=(0,r._T)(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),C=d||u,T=void 0!==n||d,A=d&&p,I=!(!b&&!A),N=(0,g.q)(y[l].height,y[l].width),R="light"!==c?(0,g.q)("rounded-tremor-default border","shadow-tremor-input","dark:shadow-dark-tremor-input"):"",_=S(c,s),P=E(c)[l],{tooltipProps:M,getReferenceProps:L}=(0,o.l)(300),[D,j]=f({timeout:50});return(0,a.useEffect)(()=>{j(d)},[d]),a.createElement("button",Object.assign({ref:(0,h.lq)([t,M.refs.setReference]),className:(0,g.q)(w("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",R,P.paddingX,P.paddingY,P.fontSize,_.textColor,_.bgColor,_.borderColor,_.hoverBorderColor,C?"opacity-50 cursor-not-allowed":(0,g.q)(S(c,s).hoverTextColor,S(c,s).hoverBgColor,S(c,s).hoverBorderColor),O),disabled:C},L,k),a.createElement(o.Z,Object.assign({text:v},M)),T&&i!==m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null,A||b?a.createElement("span",{className:(0,g.q)(w("text"),"text-tremor-default whitespace-nowrap")},A?p:b):null,T&&i===m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null)});O.displayName="Button"},47047:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(69703),o=n(64090);n(50027),n(18174),n(21871);var a=n(41213),i=n(46457),l=n(54518);let s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))};var c=n(8903),u=n(63416),d=n(70129);let p=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};var f=n(99250),m=n(65492),g=n(91753);let h=(0,m.fn)("MultiSelect"),b=o.forwardRef((e,t)=>{let{defaultValue:n,value:m,onValueChange:b,placeholder:v="Select...",placeholderSearch:y="Search",disabled:E=!1,icon:S,children:w,className:x}=e,O=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),[k,C]=(0,i.Z)(n,m),{reactElementChildren:T,optionsAvailable:A}=(0,o.useMemo)(()=>{let e=o.Children.toArray(w).filter(o.isValidElement);return{reactElementChildren:e,optionsAvailable:(0,g.n0)("",e)}},[w]),[I,N]=(0,o.useState)(""),R=(null!=k?k:[]).length>0,_=(0,o.useMemo)(()=>I?(0,g.n0)(I,T):A,[I,T,A]),P=()=>{N("")};return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:k,value:k,onChange:e=>{null==b||b(e),C(e)},disabled:E,className:(0,f.q)("w-full min-w-[10rem] relative text-tremor-default",x)},O,{multiple:!0}),e=>{let{value:t}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,f.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",S?"pl-11 -ml-0.5":"pl-3",(0,g.um)(t.length>0,E))},S&&o.createElement("span",{className:(0,f.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(S,{className:(0,f.q)(h("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("div",{className:"h-6 flex items-center"},t.length>0?o.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},A.filter(e=>t.includes(e.props.value)).map((e,n)=>{var r;return o.createElement("div",{key:n,className:(0,f.q)("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},o.createElement("div",{className:"text-xs truncate "},null!==(r=e.props.children)&&void 0!==r?r:e.props.value),o.createElement("div",{onClick:n=>{n.preventDefault();let r=t.filter(t=>t!==e.props.value);null==b||b(r),C(r)}},o.createElement(p,{className:(0,f.q)(h("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))})):o.createElement("span",null,v)),o.createElement("span",{className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-2.5")},o.createElement(l.Z,{className:(0,f.q)(h("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),R&&!E?o.createElement("button",{type:"button",className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),C([]),null==b||b([])}},o.createElement(c.Z,{className:(0,f.q)(h("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,f.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},o.createElement("div",{className:(0,f.q)("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},o.createElement("span",null,o.createElement(s,{className:(0,f.q)("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:y,className:(0,f.q)("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation()},onChange:e=>N(e.target.value),value:I})),o.createElement(a.Z.Provider,Object.assign({},{onBlur:{handleResetSearch:P}},{value:{selectedValue:t}}),_))))})});b.displayName="MultiSelect"},76628:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027),n(18174),n(21871);var o=n(41213),a=n(64090),i=n(99250),l=n(65492),s=n(63416);let c=(0,l.fn)("MultiSelectItem"),u=a.forwardRef((e,t)=>{let{value:n,className:u,children:d}=e,p=(0,r._T)(e,["value","className","children"]),{selectedValue:f}=(0,a.useContext)(o.Z),m=(0,l.NZ)(n,f);return a.createElement(s.R.Option,Object.assign({className:(0,i.q)(c("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",u),ref:t,key:n,value:n},p),a.createElement("input",{type:"checkbox",className:(0,i.q)(c("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:m,readOnly:!0}),a.createElement("span",{className:"whitespace-nowrap truncate"},null!=d?d:n))});u.displayName="MultiSelectItem"},95093:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(69703),o=n(64090),a=n(54518),i=n(8903),l=n(99250),s=n(65492),c=n(91753),u=n(63416),d=n(70129),p=n(46457);let f=(0,s.fn)("Select"),m=o.forwardRef((e,t)=>{let{defaultValue:n,value:s,onValueChange:m,placeholder:g="Select...",disabled:h=!1,icon:b,enableClear:v=!0,children:y,className:E}=e,S=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[w,x]=(0,p.Z)(n,s),O=(0,o.useMemo)(()=>{let e=o.Children.toArray(y).filter(o.isValidElement);return(0,c.sl)(e)},[y]);return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:w,value:w,onChange:e=>{null==m||m(e),x(e)},disabled:h,className:(0,l.q)("w-full min-w-[10rem] relative text-tremor-default",E)},S),e=>{var t;let{value:n}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,l.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",b?"pl-10":"pl-3",(0,c.um)((0,c.Uh)(n),h))},b&&o.createElement("span",{className:(0,l.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(b,{className:(0,l.q)(f("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("span",{className:"w-[90%] block truncate"},n&&null!==(t=O.get(n))&&void 0!==t?t:g),o.createElement("span",{className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-3")},o.createElement(a.Z,{className:(0,l.q)(f("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),v&&w?o.createElement("button",{type:"button",className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),x(""),null==m||m("")}},o.createElement(i.Z,{className:(0,l.q)(f("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,l.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},y)))})});m.displayName="Select"},27166:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(63416),i=n(99250);let l=(0,n(65492).fn)("SelectItem"),s=o.forwardRef((e,t)=>{let{value:n,icon:s,className:c,children:u}=e,d=(0,r._T)(e,["value","icon","className","children"]);return o.createElement(a.R.Option,Object.assign({className:(0,i.q)(l("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",c),ref:t,key:n,value:n},d),s&&o.createElement(s,{className:(0,i.q)(l("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),o.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:n))});s.displayName="SelectItem"},92836:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(69703),o=n(80991),a=n(2898),i=n(99250),l=n(65492),s=n(64090),c=n(41608),u=n(50027);n(18174),n(21871),n(41213);let d=(0,l.fn)("Tab"),p=s.forwardRef((e,t)=>{let{icon:n,className:p,children:f}=e,m=(0,r._T)(e,["icon","className","children"]),g=(0,s.useContext)(c.O),h=(0,s.useContext)(u.Z);return s.createElement(o.O,Object.assign({ref:t,className:(0,i.q)(d("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",h?(0,l.bM)(h,a.K.text).selectTextColor:"solid"===g?"ui-selected:text-tremor-content-emphasis dark:ui-selected:text-dark-tremor-content-emphasis":"ui-selected:text-tremor-brand dark:ui-selected:text-dark-tremor-brand",function(e,t){switch(e){case"line":return(0,i.q)("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","hover:border-tremor-content hover:text-tremor-content-emphasis text-tremor-content","dark:hover:border-dark-tremor-content-emphasis dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",t?(0,l.bM)(t,a.K.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return(0,i.q)("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","dark:ui-selected:border-dark-tremor-border dark:ui-selected:bg-dark-tremor-background dark:ui-selected:shadow-dark-tremor-input dark:hover:text-dark-tremor-content-emphasis dark:ui-selected:text-dark-tremor-brand",t?(0,l.bM)(t,a.K.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}(g,h),p)},m),n?s.createElement(n,{className:(0,i.q)(d("icon"),"flex-none h-5 w-5",f?"mr-2":"")}):null,f?s.createElement("span",null,f):null)});p.displayName="Tab"},26734:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(80991),a=n(99250),i=n(65492),l=n(64090);let s=(0,i.fn)("TabGroup"),c=l.forwardRef((e,t)=>{let{defaultIndex:n,index:i,onIndexChange:c,children:u,className:d}=e,p=(0,r._T)(e,["defaultIndex","index","onIndexChange","children","className"]);return l.createElement(o.O.Group,Object.assign({as:"div",ref:t,defaultIndex:n,selectedIndex:i,onChange:c,className:(0,a.q)(s("root"),"w-full",d)},p),u)});c.displayName="TabGroup"},41608:function(e,t,n){n.d(t,{O:function(){return c},Z:function(){return d}});var r=n(69703),o=n(64090),a=n(50027);n(18174),n(21871),n(41213);var i=n(80991),l=n(99250);let s=(0,n(65492).fn)("TabList"),c=(0,o.createContext)("line"),u={line:(0,l.q)("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:(0,l.q)("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},d=o.forwardRef((e,t)=>{let{color:n,variant:d="line",children:p,className:f}=e,m=(0,r._T)(e,["color","variant","children","className"]);return o.createElement(i.O.List,Object.assign({ref:t,className:(0,l.q)(s("root"),"justify-start overflow-x-clip",u[d],f)},m),o.createElement(c.Provider,{value:d},o.createElement(a.Z.Provider,{value:n},p)))});d.displayName="TabList"},32126:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027);var o=n(18174);n(21871);var a=n(41213),i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("TabPanel"),u=s.forwardRef((e,t)=>{let{children:n,className:l}=e,u=(0,r._T)(e,["children","className"]),{selectedValue:d}=(0,s.useContext)(a.Z),p=d===(0,s.useContext)(o.Z);return s.createElement("div",Object.assign({ref:t,className:(0,i.q)(c("root"),"w-full mt-2",p?"":"hidden",l),"aria-selected":p?"true":"false"},u),n)});u.displayName="TabPanel"},23682:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(80991);n(50027);var a=n(18174);n(21871);var i=n(41213),l=n(99250),s=n(65492),c=n(64090);let u=(0,s.fn)("TabPanels"),d=c.forwardRef((e,t)=>{let{children:n,className:s}=e,d=(0,r._T)(e,["children","className"]);return c.createElement(o.O.Panels,Object.assign({as:"div",ref:t,className:(0,l.q)(u("root"),"w-full",s)},d),e=>{let{selectedIndex:t}=e;return c.createElement(i.Z.Provider,{value:{selectedValue:t}},c.Children.map(n,(e,t)=>c.createElement(a.Z.Provider,{value:t},e)))})});d.displayName="TabPanels"},52273:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(99250),i=n(65492);let l=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}))},s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12ZM12.0003 17C14.7617 17 17.0003 14.7614 17.0003 12C17.0003 9.23858 14.7617 7 12.0003 7C9.23884 7 7.00026 9.23858 7.00026 12C7.00026 14.7614 9.23884 17 12.0003 17ZM12.0003 15C10.3434 15 9.00026 13.6569 9.00026 12C9.00026 10.3431 10.3434 9 12.0003 9C13.6571 9 15.0003 10.3431 15.0003 12C15.0003 13.6569 13.6571 15 12.0003 15Z"}))},c=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457ZM14.7577 16.1718L13.2937 14.7078C12.902 14.8952 12.4634 15.0002 12.0003 15.0002C10.3434 15.0002 9.00026 13.657 9.00026 12.0002C9.00026 11.537 9.10522 11.0984 9.29263 10.7067L7.82866 9.24277C7.30514 10.0332 7.00026 10.9811 7.00026 12.0002C7.00026 14.7616 9.23884 17.0002 12.0003 17.0002C13.0193 17.0002 13.9672 16.6953 14.7577 16.1718ZM7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925L16.947 12.7327C16.9821 12.4936 17.0003 12.249 17.0003 12.0002C17.0003 9.23873 14.7617 7.00016 12.0003 7.00016C11.7514 7.00016 11.5068 7.01833 11.2677 7.05343L7.97446 3.76015Z"}))};var u=n(91753);let d=o.forwardRef((e,t)=>{let{value:n,defaultValue:d,type:p,placeholder:f="Type...",icon:m,error:g=!1,errorMessage:h,disabled:b=!1,stepper:v,makeInputClassName:y,className:E,onChange:S,onValueChange:w,autoFocus:x}=e,O=(0,r._T)(e,["value","defaultValue","type","placeholder","icon","error","errorMessage","disabled","stepper","makeInputClassName","className","onChange","onValueChange","autoFocus"]),[k,C]=(0,o.useState)(x||!1),[T,A]=(0,o.useState)(!1),I=(0,o.useCallback)(()=>A(!T),[T,A]),N=(0,o.useRef)(null),R=(0,u.Uh)(n||d);return o.useEffect(()=>{let e=()=>C(!0),t=()=>C(!1),n=N.current;return n&&(n.addEventListener("focus",e),n.addEventListener("blur",t),x&&n.focus()),()=>{n&&(n.removeEventListener("focus",e),n.removeEventListener("blur",t))}},[x]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,a.q)(y("root"),"relative w-full flex items-center min-w-[10rem] outline-none rounded-tremor-default transition duration-100 border","shadow-tremor-input","dark:shadow-dark-tremor-input",(0,u.um)(R,b,g),k&&(0,a.q)("ring-2","border-tremor-brand-subtle ring-tremor-brand-muted","dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted"),E)},m?o.createElement(m,{className:(0,a.q)(y("icon"),"shrink-0 h-5 w-5 ml-2.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}):null,o.createElement("input",Object.assign({ref:(0,i.lq)([N,t]),defaultValue:d,value:n,type:T?"text":p,className:(0,a.q)(y("input"),"w-full focus:outline-none focus:ring-0 border-none bg-transparent text-tremor-default rounded-tremor-default transition duration-100 py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",m?"pl-2":"pl-3",g?"pr-3":"pr-4",b?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content"),placeholder:f,disabled:b,"data-testid":"base-input",onChange:e=>{null==S||S(e),null==w||w(e.target.value)}},O)),"password"!==p||b?null:o.createElement("button",{className:(0,a.q)(y("toggleButton"),"mr-2"),type:"button",onClick:()=>I(),"aria-label":T?"Hide password":"Show Password"},T?o.createElement(c,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0}):o.createElement(s,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0})),g?o.createElement(l,{className:(0,a.q)(y("errorIcon"),"text-red-500 shrink-0 w-5 h-5 mr-2.5")}):null,null!=v?v:null),g&&h?o.createElement("p",{className:(0,a.q)(y("errorMessage"),"text-sm text-red-500 mt-1")},h):null)});d.displayName="BaseInput";let p=(0,i.fn)("TextInput"),f=o.forwardRef((e,t)=>{let{type:n="text"}=e,a=(0,r._T)(e,["type"]);return o.createElement(d,Object.assign({ref:t,type:n,makeInputClassName:p},a))});f.displayName="TextInput"},91753:function(e,t,n){n.d(t,{Uh:function(){return c},n0:function(){return l},sl:function(){return i},um:function(){return s}});var r=n(99250),o=n(64090);let a=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(a).join(""):"object"==typeof e&&e?a(e.props.children):void 0;function i(e){let t=new Map;return o.Children.map(e,e=>{var n;t.set(e.props.value,null!==(n=a(e))&&void 0!==n?n:e.props.value)}),t}function l(e,t){return o.Children.map(t,t=>{var n;if((null!==(n=a(t))&&void 0!==n?n:t.props.value).toLowerCase().includes(e.toLowerCase()))return t})}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.q)(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",n&&"text-red-500",n?"border-red-500":"border-tremor-border dark:border-dark-tremor-border")};function c(e){return null!=e&&""!==e}},13810:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(54942),i=n(2898),l=n(99250),s=n(65492);let c=(0,s.fn)("Card"),u=e=>{if(!e)return"";switch(e){case a.zS.Left:return"border-l-4";case a.m.Top:return"border-t-4";case a.zS.Right:return"border-r-4";case a.m.Bottom:return"border-b-4";default:return""}},d=o.forwardRef((e,t)=>{let{decoration:n="",decorationColor:a,children:d,className:p}=e,f=(0,r._T)(e,["decoration","decorationColor","children","className"]);return o.createElement("div",Object.assign({ref:t,className:(0,l.q)(c("root"),"relative w-full text-left ring-1 rounded-tremor-default p-6","bg-tremor-background ring-tremor-ring shadow-tremor-card","dark:bg-dark-tremor-background dark:ring-dark-tremor-ring dark:shadow-dark-tremor-card",a?(0,s.bM)(a,i.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",u(n),p)},f),d)});d.displayName="Card"},39290:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250);let s=(0,n(65492).fn)("dialog"),c=o.forwardRef((e,t)=>{let{children:n,className:c}=e,u=(0,r._T)(e,["children","className"]);return o.createElement(a.u,{as:o.Fragment,appear:!0,show:e.open},o.createElement(i.V,Object.assign({as:"div",ref:t},u,{className:(0,l.q)(s("root"),"relative z-50",c)}),o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},o.createElement("div",{className:(0,l.q)("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),o.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},o.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},n))))});c.displayName="Dialog"},66952:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250),s=n(65492);n(50027),n(18174);var c=n(21871);n(41213);let u=(0,s.fn)("dialog"),d=o.forwardRef((e,t)=>{var n;let{children:s,className:d}=e,p=(0,r._T)(e,["children","className"]),f=null!==(n=o.useContext(c.Z))&&void 0!==n?n:(0,l.q)("rounded-tremor-default p-6");return o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},o.createElement(i.V.Panel,Object.assign({ref:t,className:(0,l.q)(u("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),s))});d.displayName="DialogPanel"},10384:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Col"),c=i.forwardRef((e,t)=>{let{numColSpan:n=1,numColSpanSm:a,numColSpanMd:c,numColSpanLg:u,children:d,className:p}=e,f=(0,r._T)(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),m=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"";return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),(()=>{let e=m(n,l.PT),t=m(a,l.SP),r=m(c,l.VS),i=m(u,l._w);return(0,o.q)(e,t,r,i)})(),p)},f),d)});c.displayName="Col"},46453:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Grid"),c=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"",u=i.forwardRef((e,t)=>{let{numItems:n=1,numItemsSm:a,numItemsMd:u,numItemsLg:d,children:p,className:f}=e,m=(0,r._T)(e,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),g=c(n,l._m),h=c(a,l.LH),b=c(u,l.l5),v=c(d,l.N4),y=(0,o.q)(g,h,b,v);return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),"grid",y,f)},m),p)});u.displayName="Grid"},50217:function(e,t,n){n.d(t,{LH:function(){return o},N4:function(){return i},PT:function(){return l},SP:function(){return s},VS:function(){return c},_m:function(){return r},_w:function(){return u},l5:function(){return a}});let r={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},o={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},a={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},i={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},l={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},s={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},c={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},u={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"}},10827:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("Table"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement("div",{className:(0,a.q)(i("root"),"overflow-auto",l)},o.createElement("table",Object.assign({ref:t,className:(0,a.q)(i("table"),"w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content")},s),n))});l.displayName="Table"},3851:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableBody"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tbody",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-top divide-y","divide-tremor-border","dark:divide-dark-tremor-border",l)},s),n))});l.displayName="TableBody"},2044:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("td",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-middle whitespace-nowrap text-left p-4",l)},s),n))});l.displayName="TableCell"},64167:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHead"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("thead",Object.assign({ref:t,className:(0,a.q)(i("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHead"},74480:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHeaderCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("th",Object.assign({ref:t,className:(0,a.q)(i("root"),"whitespace-nowrap text-left font-semibold top-0 px-4 py-3.5","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHeaderCell"},7178:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableRow"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tr",Object.assign({ref:t,className:(0,a.q)(i("row"),l)},s),n))});l.displayName="TableRow"},18190:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("Callout"),c=o.forwardRef((e,t)=>{let{title:n,icon:c,color:u,className:d,children:p}=e,f=(0,r._T)(e,["title","icon","color","className","children"]);return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default border-l-4 py-3 pr-3 pl-4",u?(0,i.q)((0,l.bM)(u,a.K.background).bgColor,(0,l.bM)(u,a.K.darkBorder).borderColor,(0,l.bM)(u,a.K.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):(0,i.q)("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),d)},f),o.createElement("div",{className:(0,i.q)(s("header"),"flex items-start")},c?o.createElement(c,{className:(0,i.q)(s("icon"),"flex-none h-5 w-5 mr-1.5")}):null,o.createElement("h4",{className:(0,i.q)(s("title"),"font-semibold")},n)),o.createElement("p",{className:(0,i.q)(s("body"),"overflow-y-auto",p?"mt-2":"")},p))});c.displayName="Callout"},71801:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2898),o=n(99250),a=n(65492),i=n(64090);let l=i.forwardRef((e,t)=>{let{color:n,className:l,children:s}=e;return i.createElement("p",{ref:t,className:(0,o.q)("text-tremor-default",n?(0,a.bM)(n,r.K.text).textColor:(0,o.q)("text-tremor-content","dark:text-dark-tremor-content"),l)},s)});l.displayName="Text"},42440:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(2898),a=n(99250),i=n(65492),l=n(64090);let s=l.forwardRef((e,t)=>{let{color:n,children:s,className:c}=e,u=(0,r._T)(e,["color","children","className"]);return l.createElement("p",Object.assign({ref:t,className:(0,a.q)("font-medium text-tremor-title",n?(0,i.bM)(n,o.K.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},u),s)});s.displayName="Title"},58437:function(e,t,n){n.d(t,{Z:function(){return eU},l:function(){return eB}});var r=n(64090),o=n.t(r,2),a=n(89542);function i(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return e instanceof Node||e instanceof l(e).Node}function u(e){return e instanceof Element||e instanceof l(e).Element}function d(e){return e instanceof HTMLElement||e instanceof l(e).HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function m(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=E(e);for(;d(t)&&!b(t);){if(m(t))return t;t=E(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function b(e){return["html","body","#document"].includes(i(e))}function v(e){return l(e).getComputedStyle(e)}function y(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function E(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||s(e);return p(t)?t.host:t}function S(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=E(t);return b(n)?t.ownerDocument?t.ownerDocument.body:t.body:d(n)&&f(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=l(o);return a?t.concat(i,i.visualViewport||[],f(o)?o:[],i.frameElement&&n?S(i.frameElement):[]):t.concat(o,S(o,[],n))}let w=Math.min,x=Math.max,O=Math.round,k=Math.floor,C=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}function M(e){return["top","bottom"].includes(N(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>A[e])}function D(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F(e,t,n){let r,{reference:o,floating:a}=e,i=M(t),l=_(M(t)),s=P(l),c=N(t),u="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-a.width,y:p};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[l]-=f*(n&&u?-1:1);break;case"end":r[l]+=f*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=F(c,r,s),p=r,f={},m=0;for(let n=0;n{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)});let o=g(e);if(t&&o){let e=o.getBoundingClientRect();n=e.x,r=e.y}return[t,n,r]}function K(e){return V(s(e)).left+y(e).scrollLeft}function X(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=l(e),r=s(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;let e=h();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:c,y:u}}(e,n);else if("document"===t)r=function(e){let t=s(e),n=y(e),r=e.ownerDocument.body,o=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+K(e),l=-n.scrollTop;return"rtl"===v(r).direction&&(i+=x(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(u(t))r=function(e,t){let n=V(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=d(e)?G(e):C(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{let n=W(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return j(r)}function Q(e,t){return d(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function J(e,t){let n=l(e);if(!d(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(i(r))&&"static"===v(r).position;)r=Q(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===v(r).position&&!m(r))?n:r||g(e)||n}let ee=async function(e){let t=this.getOffsetParent||J,n=this.getDimensions;return{reference:function(e,t,n,r){let o=d(t),a=s(t),l="fixed"===n,c=V(e,!0,l,t),u={scrollLeft:0,scrollTop:0},p=C(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(u=y(t)),o){let e=V(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=K(a))}let m=c.left+u.scrollLeft-p.x,g=c.top+u.scrollTop-p.y,[h,b,v]=Y(r);return h&&(m+=b,g+=v,o&&(m+=t.clientLeft,g+=t.clientTop)),{x:m,y:g,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a=s(r),[l]=t?Y(t.floating):[!1];if(r===a||l)return n;let c={scrollLeft:0,scrollTop:0},u=C(1),p=C(0),m=d(r);if((m||!m&&"fixed"!==o)&&(("body"!==i(r)||f(a))&&(c=y(r)),d(r))){let e=V(r);u=G(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=S(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===v(e).position,l=a?E(e):e;for(;u(l)&&!b(l);){let t=v(l),n=m(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(l)&&!n&&function e(t,n){let r=E(t);return!(r===n||!u(r)||b(r))&&("fixed"===v(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=E(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((e,n)=>{let r=X(t,n,o);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},X(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:J,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:G,isElement:u,isRTL:function(e){return"rtl"===v(e).direction}};function en(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=H(e),p=a||i?[...d?S(d):[],...S(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=d&&c?function(e,t){let n,r=null,o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let f=k(u),m=k(o.clientWidth-(c+d)),g={rootMargin:-f+"px "+-m+"px "+-k(o.clientHeight-(u+p))+"px "+-k(c)+"px",threshold:x(0,w(1,s))||1},h=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),a}(d,n):null,m=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let h=u?V(e):null;return u&&function t(){let r=V(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(o)}}let er=(e,t,n)=>{let r=new Map,o={platform:et,...n},a={...o.platform,_c:r};return B(e,t,{...o,platform:a})};var eo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ea(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ei(e){let t=r.useRef(e);return eo(()=>{t.current=e}),t}var el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let es=!1,ec=0,eu=()=>"floating-ui-"+ec++,ed=o["useId".toString()]||function(){let[e,t]=r.useState(()=>es?eu():void 0);return el(()=>{null==e&&t(eu())},[]),r.useEffect(()=>{es||(es=!0)},[]),e},ep=r.createContext(null),ef=r.createContext(null),em=()=>{var e;return(null==(e=r.useContext(ep))?void 0:e.id)||null},eg=()=>r.useContext(ef);function eh(e){return(null==e?void 0:e.ownerDocument)||document}function eb(e){return eh(e).defaultView||window}function ev(e){return!!e&&e instanceof eb(e).Element}function ey(e){return!!e&&e instanceof eb(e).HTMLElement}function eE(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eS(e){let t=(0,r.useRef)(e);return el(()=>{t.current=e}),t}let ew="data-floating-ui-safe-polygon";function ex(e,t,n){return n&&!eE(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let eO=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:a=null,mouseOnly:i=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t,{open:c,onOpenChange:u,dataRef:d,events:p,elements:{domReference:f,floating:m},refs:g}=e,h=eg(),b=em(),v=eS(a),y=eS(o),E=r.useRef(),S=r.useRef(),w=r.useRef(),x=r.useRef(),O=r.useRef(!0),k=r.useRef(!1),C=r.useRef(()=>{}),T=r.useCallback(()=>{var e;let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);r.useEffect(()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(S.current),clearTimeout(x.current),O.current=!0}},[n,p]),r.useEffect(()=>{if(!n||!v.current||!c)return;function e(){T()&&u(!1)}let t=eh(m).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[m,c,u,n,v,d,T]);let A=r.useCallback(function(e){void 0===e&&(e=!0);let t=ex(y.current,"close",E.current);t&&!w.current?(clearTimeout(S.current),S.current=setTimeout(()=>u(!1),t)):e&&(clearTimeout(S.current),u(!1))},[y,u]),I=r.useCallback(()=>{C.current(),w.current=void 0},[]),N=r.useCallback(()=>{if(k.current){let e=eh(g.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ew),k.current=!1}},[g]);return r.useEffect(()=>{if(n&&ev(f))return c&&f.addEventListener("mouseleave",a),null==m||m.addEventListener("mouseleave",a),s&&f.addEventListener("mousemove",r,{once:!0}),f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",o),()=>{c&&f.removeEventListener("mouseleave",a),null==m||m.removeEventListener("mouseleave",a),s&&f.removeEventListener("mousemove",r),f.removeEventListener("mouseenter",r),f.removeEventListener("mouseleave",o)};function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(S.current),O.current=!1,i&&!eE(E.current)||l>0&&0===ex(y.current,"open"))return;d.current.openEvent=e;let t=ex(y.current,"open",E.current);t?S.current=setTimeout(()=>{u(!0)},t):u(!0)}function o(n){if(t())return;C.current();let r=eh(m);if(clearTimeout(x.current),v.current){c||clearTimeout(S.current),w.current=v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}});let t=w.current;r.addEventListener("mousemove",t),C.current=()=>{r.removeEventListener("mousemove",t)};return}A()}function a(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}})(n)}},[f,m,n,e,i,l,s,A,I,N,u,c,h,y,v,d]),el(()=>{var e,t,r;if(n&&c&&null!=(e=v.current)&&e.__options.blockPointerEvents&&T()){let e=eh(m).body;if(e.setAttribute(ew,""),e.style.pointerEvents="none",k.current=!0,ev(f)&&m){let e=null==h?void 0:null==(t=h.nodesRef.current.find(e=>e.id===b))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),f.style.pointerEvents="auto",m.style.pointerEvents="auto",()=>{f.style.pointerEvents="",m.style.pointerEvents=""}}}},[n,c,b,m,f,h,v,d,T]),el(()=>{c||(E.current=void 0,I(),N())},[c,I,N]),r.useEffect(()=>()=>{I(),clearTimeout(S.current),clearTimeout(x.current),N()},[n,I,N]),r.useMemo(()=>{if(!n)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===l||(clearTimeout(x.current),x.current=setTimeout(()=>{O.current||u(!0)},l))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[p,n,l,c,u,A])};function ek(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=eb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function eC(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})||[],r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})})||[],n=n.concat(r);return n}let eT=o["useInsertionEffect".toString()]||(e=>e());function eA(e){let t=r.useRef(()=>{});return eT(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r!1),x="function"==typeof f?w:f,O=r.useRef(!1),{escapeKeyBubbles:k,outsidePressBubbles:C}=e_(v);return r.useEffect(()=>{if(!n||!d)return;function e(e){if("Escape"===e.key){let e=y?eC(y.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if(null!=(n=e.context)&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1)}}function t(e){var t;let n=O.current;if(O.current=!1,n||"function"==typeof x&&!x(e))return;let r="composedPath"in e?e.composedPath()[0]:e.target;if(ey(r)&&c){let t=c.ownerDocument.defaultView||window,n=r.scrollWidth>r.clientWidth,o=r.scrollHeight>r.clientHeight,a=o&&e.offsetX>r.clientWidth;if(o&&"rtl"===t.getComputedStyle(r).direction&&(a=e.offsetX<=r.offsetWidth-r.clientWidth),a||n&&e.offsetY>r.clientHeight)return}let l=y&&eC(y.nodesRef.current,i).some(t=>{var n;return eI(e,null==(n=t.context)?void 0:n.elements.floating)});if(eI(e,c)||eI(e,s)||l)return;let u=y?eC(y.nodesRef.current,i):[];if(u.length>0){let e=!0;if(u.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:E?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(e)||0===(t=e).width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"!==t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail}}),o(!1)}function r(){o(!1)}u.current.__escapeKeyBubbles=k,u.current.__outsidePressBubbles=C;let f=eh(c);p&&f.addEventListener("keydown",e),x&&f.addEventListener(m,t);let g=[];return b&&(ev(s)&&(g=S(s)),ev(c)&&(g=g.concat(S(c))),!ev(l)&&l&&l.contextElement&&(g=g.concat(S(l.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",r,{passive:!0})}),()=>{p&&f.removeEventListener("keydown",e),x&&f.removeEventListener(m,t),g.forEach(e=>{e.removeEventListener("scroll",r)})}},[u,c,s,l,p,x,m,a,y,i,n,o,b,d,k,C,E]),r.useEffect(()=>{O.current=!1},[x,m]),r.useMemo(()=>d?{reference:{[eN[h]]:()=>{g&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1))}},floating:{[eR[m]]:()=>{O.current=!0}}}:{},[d,a,g,m,h,o])},eM=function(e,t){let{open:n,onOpenChange:o,dataRef:a,events:i,refs:l,elements:{floating:s,domReference:c}}=e,{enabled:u=!0,keyboardOnly:d=!0}=void 0===t?{}:t,p=r.useRef(""),f=r.useRef(!1),m=r.useRef();return r.useEffect(()=>{if(!u)return;let e=eh(s).defaultView||window;function t(){!n&&ey(c)&&c===function(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}(eh(c))&&(f.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[s,c,n,u]),r.useEffect(()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(f.current=!0)}},[i,u]),r.useEffect(()=>()=>{clearTimeout(m.current)},[]),r.useMemo(()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;p.current=t,f.current=!!(t&&d)},onMouseLeave(){f.current=!1},onFocus(e){var t;f.current||"focus"===e.type&&(null==(t=a.current.openEvent)?void 0:t.type)==="mousedown"&&a.current.openEvent&&eI(a.current.openEvent,c)||(a.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){f.current=!1;let t=e.relatedTarget,n=ev(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");m.current=setTimeout(()=>{ek(l.floating.current,t)||ek(c,t)||n||o(!1)})}}}:{},[u,d,c,l,a,o])},eL=function(e,t){let{open:n}=e,{enabled:o=!0,role:a="dialog"}=void 0===t?{}:t,i=ed(),l=ed();return r.useMemo(()=>{let e={id:i,role:a};return o?"tooltip"===a?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":n?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}:{}},[o,a,n,i,l])};function eD(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),a=0;ae(...o))}}}else e[n]=o}),e),{})}}let ej=function(e){void 0===e&&(e=[]);let t=e,n=r.useCallback(t=>eD(t,e,"reference"),t),o=r.useCallback(t=>eD(t,e,"floating"),t),a=r.useCallback(t=>eD(t,e,"item"),e.map(e=>null==e?void 0:e.item));return r.useMemo(()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a}),[n,o,a])};var eF=n(99250);let eB=e=>{var t,n;let[o,i]=(0,r.useState)(!1),[l,s]=(0,r.useState)(),{x:c,y:u,refs:d,strategy:p,context:f}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:o}=e,i=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,whileElementsMounted:l,open:s}=e,[c,u]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=r.useState(o);ea(d,o)||p(o);let f=r.useRef(null),m=r.useRef(null),g=r.useRef(c),h=ei(l),b=ei(i),[v,y]=r.useState(null),[E,S]=r.useState(null),w=r.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),x=r.useCallback(e=>{m.current!==e&&(m.current=e,S(e))},[]),O=r.useCallback(()=>{if(!f.current||!m.current)return;let e={placement:t,strategy:n,middleware:d};b.current&&(e.platform=b.current),er(f.current,m.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!ea(g.current,t)&&(g.current=t,a.flushSync(()=>{u(t)}))})},[d,t,n,b]);eo(()=>{!1===s&&g.current.isPositioned&&(g.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let k=r.useRef(!1);eo(()=>(k.current=!0,()=>{k.current=!1}),[]),eo(()=>{if(v&&E){if(h.current)return h.current(v,E,O);O()}},[v,E,O,h]);let C=r.useMemo(()=>({reference:f,floating:m,setReference:w,setFloating:x}),[w,x]),T=r.useMemo(()=>({reference:v,floating:E}),[v,E]);return r.useMemo(()=>({...c,update:O,refs:C,elements:T,reference:w,floating:x}),[c,O,C,T,w,x])}(e),l=eg(),s=r.useRef(null),c=r.useRef({}),u=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],[d,p]=r.useState(null),f=r.useCallback(e=>{let t=ev(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),m=r.useCallback(e=>{(ev(e)||null===e)&&(s.current=e,p(e)),(ev(i.refs.reference.current)||null===i.refs.reference.current||null!==e&&!ev(e))&&i.refs.setReference(e)},[i.refs]),g=r.useMemo(()=>({...i.refs,setReference:m,setPositionReference:f,domReference:s}),[i.refs,m,f]),h=r.useMemo(()=>({...i.elements,domReference:d}),[i.elements,d]),b=eA(n),v=r.useMemo(()=>({...i,refs:g,elements:h,dataRef:c,nodeId:o,events:u,open:t,onOpenChange:b}),[i,o,u,t,b,g,h]);return el(()=>{let e=null==l?void 0:l.nodesRef.current.find(e=>e.id===o);e&&(e.context=v)}),r.useMemo(()=>({...i,context:v,refs:g,reference:m,positionReference:f}),[i,g,v,m,f])}({open:o,onOpenChange:t=>{t&&e?s(setTimeout(()=>{i(t)},e)):(clearTimeout(l),i(t))},placement:"top",whileElementsMounted:en,middleware:[{name:"offset",options:5,async fn(e){var t,n;let{x:r,y:o,placement:a,middlewareData:i}=e,l=await Z(e,5);return a===(null==(t=i.offset)?void 0:t.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}},{name:"flip",options:t={fallbackAxisSideDirection:"start"},async fn(e){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=I(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=N(l),S=N(u)===u,w=await (null==d.isRTL?void 0:d.isRTL(p.floating)),x=g||(S||!v?[D(u)]:function(e){let t=D(e);return[L(e),t,L(t)]}(u));g||"none"===b||x.push(...function(e,t,n,r){let o=R(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(N(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(L)))),a}(u,v,b,w));let O=[u,...x],k=await U(e,y),C=[],T=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&C.push(k[E]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=_(M(e)),a=P(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=D(i)),[i,D(i)]}(l,c,w);C.push(k[e[0]],k[e[1]])}if(T=[...T,{placement:l,overflows:C}],!C.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(a=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=T.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}},(void 0===n&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=I(n,e),c={x:t,y:r},u=await U(e,s),d=M(N(o)),p=_(d),f=c[p],m=c[d];if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+u[e],r=f-u[t];f=x(n,w(f,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+u[e],r=m-u[t];m=x(n,w(m,r))}let g=l.fn({...e,[p]:f,[d]:m});return{...g,data:{x:g.x-t,y:g.y-r}}}})]}),m=eO(f,{move:!1}),{getReferenceProps:g,getFloatingProps:h}=ej([m,eM(f),eP(f),eL(f,{role:"tooltip"})]);return{tooltipProps:{open:o,x:c,y:u,refs:d,strategy:p,getFloatingProps:h},getReferenceProps:g}},eU=e=>{let{text:t,open:n,x:o,y:a,refs:i,strategy:l,getFloatingProps:s}=e;return n&&t?r.createElement("div",Object.assign({className:(0,eF.q)("max-w-xs text-sm z-20 rounded-tremor-default opacity-100 px-2.5 py-1","text-white bg-tremor-background-emphasis","text-white dark:bg-dark-tremor-background-subtle"),ref:i.setFloating,style:{position:l,top:null!=a?a:0,left:null!=o?o:0}},s()),t):null};eU.displayName="Tooltip"},67989:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("BarList"),c=o.forwardRef((e,t)=>{var n;let c;let{data:u=[],color:d,valueFormatter:p=l.Cj,showAnimation:f=!1,className:m}=e,g=(0,r._T)(e,["data","color","valueFormatter","showAnimation","className"]),h=(n=u.map(e=>e.value),c=-1/0,n.forEach(e=>{c=Math.max(c,e)}),n.map(e=>0===e?0:Math.max(e/c*100,1)));return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex justify-between space-x-6",m)},g),o.createElement("div",{className:(0,i.q)(s("bars"),"relative w-full")},u.map((e,t)=>{var n,r,c;let p=e.icon;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("bar"),"flex items-center rounded-tremor-small bg-opacity-30","h-9",e.color||d?(0,l.bM)(null!==(r=e.color)&&void 0!==r?r:d,a.K.background).bgColor:"bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle dark:bg-opacity-30",t===u.length-1?"mb-0":"mb-2"),style:{width:"".concat(h[t],"%"),transition:f?"all 1s":""}},o.createElement("div",{className:(0,i.q)("absolute max-w-full flex left-2")},p?o.createElement(p,{className:(0,i.q)(s("barIcon"),"flex-none h-5 w-5 mr-2","text-tremor-content","dark:text-dark-tremor-content")}):null,e.href?o.createElement("a",{href:e.href,target:null!==(c=e.target)&&void 0!==c?c:"_blank",rel:"noreferrer",className:(0,i.q)(s("barLink"),"whitespace-nowrap hover:underline truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name):o.createElement("p",{className:(0,i.q)(s("barText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name)))})),o.createElement("div",{className:"text-right min-w-min"},u.map((e,t)=>{var n;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("labelWrapper"),"flex justify-end items-center","h-9",t===u.length-1?"mb-0":"mb-2")},o.createElement("p",{className:(0,i.q)(s("labelText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},p(e.value)))})))});c.displayName="BarList"},50027:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(64090),o=n(54942);n(99250);let a=(0,r.createContext)(o.fr.Blue)},18174:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(0)},21871:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(void 0)},41213:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)({selectedValue:void 0,handleValueChange:void 0})},46457:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);let o=(e,t)=>{let n=void 0!==t,[o,a]=(0,r.useState)(e);return[n?t:o,e=>{n||a(e)}]}},54942:function(e,t,n){n.d(t,{fr:function(){return r},m:function(){return i},u8:function(){return o},zS:function(){return a}});let r={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},o={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},a={Left:"left",Right:"right"},i={Top:"top",Bottom:"bottom"}},2898:function(e,t,n){n.d(t,{K:function(){return o},s:function(){return a}});var r=n(54942);let o={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},a=[r.fr.Blue,r.fr.Cyan,r.fr.Sky,r.fr.Indigo,r.fr.Violet,r.fr.Purple,r.fr.Fuchsia,r.fr.Slate,r.fr.Gray,r.fr.Zinc,r.fr.Neutral,r.fr.Stone,r.fr.Red,r.fr.Orange,r.fr.Amber,r.fr.Yellow,r.fr.Lime,r.fr.Green,r.fr.Emerald,r.fr.Teal,r.fr.Pink,r.fr.Rose]},99250:function(e,t,n){n.d(t,{q:function(){return j}});var r=/^\[(.+)\]$/;function o(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var a=/\s+/;function i(){for(var e,t,n=0,r="";ne&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,a=t[0],i=t.length,function(e){for(var r,o=[],l=0,s=0,c=0;cs?r-s:void 0}}),...(u=e.theme,d=e.prefix,p={nextPart:new Map,validators:[]},(f=Object.entries(e.classGroups),d?f.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):f).forEach(function(e){var t=e[0];(function e(t,n,r,a){t.forEach(function(t){if("string"==typeof t){(""===t?n:o(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(a),n,r,a);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],o(n,i),r,a)})})})(e[1],p,t,u)}),l=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r,o=t[0],a=n.nextPart.get(o),i=a?e(t.slice(1),a):void 0;if(i)return i;if(0!==n.validators.length){var l=t.join("-");return null===(r=n.validators.find(function(e){return(0,e.validator)(l)}))||void 0===r?void 0:r.classGroupId}}(t,p)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=l[e]||[];return t&&c[e]?[].concat(n,c[e]):n}})}}(s.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,n=e.cache.set,u=d,d(a)};function d(r){var o,i,l,s,c,u=t(r);if(u)return u;var d=(i=(o=e).splitModifiers,l=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,r.trim().split(a).map(function(e){var t=i(e),n=t.modifiers,r=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,s=l(a?o.substring(0,a):o),c=!!a;if(!s){if(!a||!(s=l(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,o=t+n;return!c.has(o)&&(c.add(o),s(n,r).forEach(function(e){return c.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return u(i.apply(null,arguments))}}function s(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(e){return S(e)||d.has(e)||u.test(e)||h(e)}function h(e){return A(e,"length",I)}function b(e){return A(e,"size",N)}function v(e){return A(e,"position",N)}function y(e){return A(e,"url",R)}function E(e){return A(e,"number",S)}function S(e){return!Number.isNaN(Number(e))}function w(e){return e.endsWith("%")&&S(e.slice(0,-1))}function x(e){return _(e)||A(e,"number",_)}function O(e){return c.test(e)}function k(){return!0}function C(e){return p.test(e)}function T(e){return A(e,"",P)}function A(e,t,n){var r=c.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return f.test(e)}function N(){return!1}function R(e){return e.startsWith("url(")}function _(e){return Number.isInteger(Number(e))}function P(e){return m.test(e)}function M(){var e=s("colors"),t=s("spacing"),n=s("blur"),r=s("brightness"),o=s("borderColor"),a=s("borderRadius"),i=s("borderSpacing"),l=s("borderWidth"),c=s("contrast"),u=s("grayscale"),d=s("hueRotate"),p=s("invert"),f=s("gap"),m=s("gradientColorStops"),A=s("gradientColorStopPositions"),I=s("inset"),N=s("margin"),R=s("opacity"),_=s("padding"),P=s("saturate"),M=s("scale"),L=s("sepia"),D=s("skew"),j=s("space"),F=s("translate"),B=function(){return["auto","contain","none"]},U=function(){return["auto","hidden","clip","visible","scroll"]},Z=function(){return["auto",O,t]},z=function(){return[O,t]},H=function(){return["",g]},G=function(){return["auto",S,O]},$=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",O]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[S,E]},Q=function(){return[S,O]};return{cacheSize:500,theme:{colors:[k],spacing:[g],blur:["none","",C,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",C,O],borderSpacing:z(),borderWidth:H(),contrast:X(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,h],inset:Z(),margin:Z(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Y(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat($(),[O])}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",x]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",x]},O]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[x]},O]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",O,t]}],"min-w":[{"min-w":["min","max","fit",O,g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,O]}],h:[{h:[O,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",O,g]}],"max-h":[{"max-h":[O,t,"min","max","fit"]}],"font-size":[{text:["base",C,h]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",S,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,g]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",O,g]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat($(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[O,g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,O]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[x,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,E]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var L=Object.prototype.hasOwnProperty,D=new Set(["string","number","boolean"]);let j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rr.includes(e),a=e=>e.toString(),i=(e,t)=>{for(let n=0;n{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function s(e){return t=>"tremor-".concat(e,"-").concat(t)}function c(e,t){let n=o(e);if("white"===e||"black"===e||"transparent"===e||!t||!n){let t=e.includes("#")||e.includes("--")||e.includes("rgb")?"[".concat(e,"]"):e;return{bgColor:"bg-".concat(t),hoverBgColor:"hover:bg-".concat(t),selectBgColor:"ui-selected:bg-".concat(t),textColor:"text-".concat(t),selectTextColor:"ui-selected:text-".concat(t),hoverTextColor:"hover:text-".concat(t),borderColor:"border-".concat(t),selectBorderColor:"ui-selected:border-".concat(t),hoverBorderColor:"hover:border-".concat(t),ringColor:"ring-".concat(t),strokeColor:"stroke-".concat(t),fillColor:"fill-".concat(t)}}return{bgColor:"bg-".concat(e,"-").concat(t),selectBgColor:"ui-selected:bg-".concat(e,"-").concat(t),hoverBgColor:"hover:bg-".concat(e,"-").concat(t),textColor:"text-".concat(e,"-").concat(t),selectTextColor:"ui-selected:text-".concat(e,"-").concat(t),hoverTextColor:"hover:text-".concat(e,"-").concat(t),borderColor:"border-".concat(e,"-").concat(t),selectBorderColor:"ui-selected:border-".concat(e,"-").concat(t),hoverBorderColor:"hover:border-".concat(e,"-").concat(t),ringColor:"ring-".concat(e,"-").concat(t),strokeColor:"stroke-".concat(e,"-").concat(t),fillColor:"fill-".concat(e,"-").concat(t)}}},21467:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(64090),o=n(44329),a=n(54165),i=n(57499);function l(e){return t=>r.createElement(a.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,a)=>l(l=>{let{prefixCls:s,style:c}=l,u=r.useRef(null),[d,p]=r.useState(0),[f,m]=r.useState(0),[g,h]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:b}=r.useContext(i.E_),v=b(t||"select",s);r.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?".".concat(n(v)):".".concat(v,"-dropdown"),a=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return a&&(y=a(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:f}},r.createElement(e,Object.assign({},y)))})},51761:function(e,t,n){n.d(t,{Cn:function(){return c},u6:function(){return i}});var r=n(64090),o=n(24750),a=n(86718);let i=1e3,l={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e,t){let[,n]=(0,o.ZP)(),c=r.useContext(a.Z);if(void 0!==t)return[t,t];let u=null!=c?c:0;return e in l?(u+=(c?0:n.zIndexPopupBase)+l[e],u=Math.min(u,n.zIndexPopupBase+i)):u+=s[e],[void 0===c?t:u,u]}},47387:function(e,t,n){n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},67966:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(89869);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},i=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach(e=>{let f=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(p[e]=f,i.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=d+s}let m=(0,r.wZ)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-d;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+d}f.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(f.htmlRegion="visibleFirst")}),p}},65823:function(e,t,n){n.d(t,{M2:function(){return i},Tm:function(){return l},l$:function(){return a}});var r,o=n(64090);let{isValidElement:a}=r||(r=n.t(o,2));function i(e){return e&&a(e)&&e.type===o.Fragment}function l(e,t){return a(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},47794:function(e,t,n){n.d(t,{F:function(){return i},Z:function(){return a}});var r=n(16480),o=n.n(r);function a(e,t,n){return o()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}let i=(e,t)=>t||e},76564:function(e,t,n){n.d(t,{G8:function(){return a},ln:function(){return i}});var r=n(64090);function o(){}n(53850);let a=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e}},86718:function(e,t,n){let r=n(64090).createContext(void 0);t.Z=r},51350:function(e,t,n){n.d(t,{Te:function(){return c},aG:function(){return i},hU:function(){return u},nx:function(){return l}});var r=n(64090),o=n(65823);let a=/^[\u4e00-\u9fa5]{2}$/,i=a.test.bind(a);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1,a=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=a.length-1,n=a[t];a[t]="".concat(n).concat(e)}else a.push(e);n=r}),r.Children.map(a,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&i(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?i(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e})(e,t))}},1861:function(e,t,n){n.d(t,{ZP:function(){return eb}});var r=n(64090),o=n(16480),a=n.n(o),i=n(35704),l=n(74084),s=n(73193),c=n(57499),u=n(65823),d=n(76585);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var f=(0,d.ZP)("Wave",e=>[p(e)]),m=n(48563),g=n(19223),h=n(49367),b=n(37274);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let y="ant-wave-target";function E(e){return Number.isNaN(e)?0:e}let S=e=>{let{className:t,target:n,component:o}=e,i=r.useRef(null),[l,s]=r.useState(null),[c,u]=r.useState([]),[d,p]=r.useState(0),[f,m]=r.useState(0),[S,w]=r.useState(0),[x,O]=r.useState(0),[k,C]=r.useState(!1),T={left:d,top:f,width:S,height:x,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function A(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:E(-parseFloat(r))),m(t?n.offsetTop:E(-parseFloat(o))),w(n.offsetWidth),O(n.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([a,i,c,l].map(e=>E(parseFloat(e))))}if(l&&(T["--wave-color"]=l),r.useEffect(()=>{if(n){let e;let t=(0,g.Z)(()=>{A(),C(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(A)).observe(n),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(h.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,b.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return r.createElement("div",{ref:i,className:a()(t,{"wave-quick":I},n),style:T})})};var w=(e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",null==e||e.insertBefore(a,null==e?void 0:e.firstChild),(0,b.s)(r.createElement(S,Object.assign({},t,{target:e})),a)},x=n(24750),O=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),p=i("wave"),[,h]=f(p),b=function(e,t,n){let{wave:o}=r.useContext(c.E_),[,a,i]=(0,x.ZP)(),l=(0,m.zX)(r=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(".".concat(y))||l,{showEffect:c}=o||{};(c||w)(s,{className:t,token:a,component:n,event:r,hashId:i})}),s=r.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(d,a()(p,h),o);if(r.useEffect(()=>{let e=d.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let v=(0,l.Yr)(t)?(0,l.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:v})},k=n(17094),C=n(10693),T=n(92801),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I=r.createContext(void 0);var N=n(51350);let R=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:i,prefixCls:l}=e,s=a()("".concat(l,"-icon"),n);return r.createElement("span",{ref:t,className:s,style:o},i)});var _=n(66155);let P=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:i,iconClassName:l}=e,s=a()("".concat(n,"-loading-icon"),o);return r.createElement(R,{prefixCls:n,className:s,style:i,ref:t},r.createElement(_.Z,{className:l}))}),M=()=>({width:0,opacity:0,transform:"scale(0)"}),L=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var D=e=>{let{prefixCls:t,loading:n,existIcon:o,className:a,style:i}=e,l=!!n;return o?r.createElement(P,{prefixCls:t,className:a,style:i}):r.createElement(h.ZP,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:M,onAppearActive:L,onEnterStart:M,onEnterActive:L,onLeaveStart:L,onLeaveActive:M},(e,n)=>{let{className:o,style:l}=e;return r.createElement(P,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:o})})},j=n(8985),F=n(11303),B=n(80316);let U=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Z=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},U("".concat(t,"-primary"),o),U("".concat(t,"-danger"),a)]}},z=n(49202);let H=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,B.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},G=e=>{var t,n,r,o,a,i;let l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,z.D)(l),d=null!==(a=e.contentLineHeightSM)&&void 0!==a?a:(0,z.D)(s),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,z.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},$=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,j.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,F.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},W=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Y=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),K=(e,t,n,r,o,a,i,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},W(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),X=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Y(e))}),Q=e=>Object.assign({},X(e)),J=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),W(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},W(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),X(e))}),et=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),W(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},W(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),X(e))}),en=e=>Object.assign(Object.assign({},ee(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},W(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},W(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),J(e))}),eo=e=>Object.assign(Object.assign(Object.assign({},W(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},J(e)),W(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ea=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:ee(e),["".concat(t,"-primary")]:et(e),["".concat(t,"-dashed")]:en(e),["".concat(t,"-link")]:er(e),["".concat(t,"-text")]:eo(e),["".concat(t,"-ghost")]:K(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(n).concat(t)]:{fontSize:o,lineHeight:a,height:r,padding:"".concat((0,j.bf)(c)," ").concat((0,j.bf)(l)),borderRadius:i,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:V(e)},{["".concat(n).concat(n,"-round").concat(t)]:q(e)}]},el=e=>ei((0,B.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),es=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),ec=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),eu=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var ed=(0,d.I$)("Button",e=>{let t=H(e);return[$(t),es(t),el(t),ec(t),eu(t),ea(t),Z(t)]},G,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ep=n(12288);let ef=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var em=(0,d.bk)(["Button","compact"],e=>{let t=H(e);return[(0,ep.c)(t),function(e){var t;let n="".concat(e.componentCls,"-compact-vertical");return{[n]:Object.assign(Object.assign({},{["&-item:not(".concat(n,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{["&-item:not(".concat(n,"-first-item):not(").concat(n,"-last-item)")]:{borderRadius:0},["&-item".concat(n,"-first-item:not(").concat(n,"-last-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(n,"-last-item:not(").concat(n,"-first-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),ef(t)]},G),eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eh=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:s=!1,prefixCls:u,type:d="default",danger:p,shape:f="default",size:m,styles:g,disabled:h,className:b,rootClassName:v,children:y,icon:E,ghost:S=!1,block:w=!1,htmlType:x="button",classNames:A,style:_={}}=e,P=eg(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:L,direction:j,button:F}=(0,r.useContext)(c.E_),B=M("btn",u),[U,Z,z]=ed(B),H=(0,r.useContext)(k.Z),G=null!=h?h:H,$=(0,r.useContext)(I),W=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(s),[s]),[V,q]=(0,r.useState)(W.loading),[Y,K]=(0,r.useState)(!1),X=(0,r.createRef)(),Q=(0,l.sQ)(t,X),J=1===r.Children.count(y)&&!E&&!(0,N.Te)(d);(0,r.useEffect)(()=>{let e=null;return W.delay>0?e=setTimeout(()=>{e=null,q(!0)},W.delay):q(W.loading),function(){e&&(clearTimeout(e),e=null)}},[W]),(0,r.useEffect)(()=>{if(!Q||!Q.current||!1===L)return;let e=Q.current.textContent;J&&(0,N.aG)(e)?Y||K(!0):Y&&K(!1)},[Q]);let ee=t=>{let{onClick:n}=e;if(V||G){t.preventDefault();return}null==n||n(t)},et=!1!==L,{compactSize:en,compactItemClassnames:er}=(0,T.ri)(B,j),eo=(0,C.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=m?m:en)&&void 0!==t?t:$)&&void 0!==n?n:e}),ea=eo&&({large:"lg",small:"sm",middle:void 0})[eo]||"",ei=V?"loading":E,el=(0,i.Z)(P,["navigate"]),es=a()(B,Z,z,{["".concat(B,"-").concat(f)]:"default"!==f&&f,["".concat(B,"-").concat(d)]:d,["".concat(B,"-").concat(ea)]:ea,["".concat(B,"-icon-only")]:!y&&0!==y&&!!ei,["".concat(B,"-background-ghost")]:S&&!(0,N.Te)(d),["".concat(B,"-loading")]:V,["".concat(B,"-two-chinese-chars")]:Y&&et&&!V,["".concat(B,"-block")]:w,["".concat(B,"-dangerous")]:!!p,["".concat(B,"-rtl")]:"rtl"===j},er,b,v,null==F?void 0:F.className),ec=Object.assign(Object.assign({},null==F?void 0:F.style),_),eu=a()(null==A?void 0:A.icon,null===(n=null==F?void 0:F.classNames)||void 0===n?void 0:n.icon),ep=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==F?void 0:F.styles)||void 0===o?void 0:o.icon)||{}),ef=E&&!V?r.createElement(R,{prefixCls:B,className:eu,style:ep},E):r.createElement(D,{existIcon:!!E,prefixCls:B,loading:!!V}),eh=y||0===y?(0,N.hU)(y,J&&et):null;if(void 0!==el.href)return U(r.createElement("a",Object.assign({},el,{className:a()(es,{["".concat(B,"-disabled")]:G}),href:G?void 0:el.href,style:ec,onClick:ee,ref:Q,tabIndex:G?-1:0}),ef,eh));let eb=r.createElement("button",Object.assign({},P,{type:x,className:es,style:ec,onClick:ee,disabled:G,ref:Q}),ef,eh,!!er&&r.createElement(em,{key:"compact",prefixCls:B}));return(0,N.Te)(d)||(eb=r.createElement(O,{component:"Button",disabled:!!V},eb)),U(eb)});eh.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:i,className:l}=e,s=A(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,x.ZP)(),p="";switch(i){case"large":p="lg";break;case"small":p="sm"}let f=a()(u,{["".concat(u,"-").concat(p)]:p,["".concat(u,"-rtl")]:"rtl"===n},l,d);return r.createElement(I.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:f})))},eh.__ANT_BUTTON=!0;var eb=eh},28683:function(e,t,n){var r=n(90791);t.Z=r.Z},17094:function(e,t,n){n.d(t,{n:function(){return a}});var r=n(64090);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},97303:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(64090);let o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:n||a},t)};t.Z=o},57499:function(e,t,n){n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(64090);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?"ant-".concat(e):"ant"),iconPrefixCls:o}),{Consumer:i}=a},92935:function(e,t,n){var r=n(24750);t.Z=e=>{let[,,,,t]=(0,r.ZP)();return t?"".concat(e,"-css-var"):""}},10693:function(e,t,n){var r=n(64090),o=n(97303);t.Z=e=>{let t=r.useContext(o.Z);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])}},54165:function(e,t,n){let r,o,a,i;n.d(t,{ZP:function(){return G},w6:function(){return Z}});var l=n(64090),s=n.t(l,2),c=n(8985),u=n(67689),d=n(61475),p=n(36597),f=n(76564),m=n(12519),g=n(4678),h=n(33302),b=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>(0,g.f)(t&&t.Modal),[t]);let o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(h.Z.Provider,{value:o},n)},v=n(79474),y=n(43345),E=n(46864),S=n(57499),w=n(12215),x=n(6336),O=n(22127),k=n(24050);let C="-ant-".concat(Date.now(),"-").concat(Math.random());var T=n(17094),A=n(97303),I=n(92536);let{useId:N}=Object.assign({},s);var R=void 0===N?()=>"":N,_=n(49367),P=n(24750);function M(e){let{children:t}=e,[,n]=(0,P.ZP)(),{motion:r}=n,o=l.useRef(!1);return(o.current=o.current||!1===r,o.current)?l.createElement(_.zt,{motion:r},t):t}var L=()=>null,D=n(28030),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function B(){return r||"ant"}function U(){return o||S.oR}let Z=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(B(),"-").concat(e):B()),getIconPrefixCls:U,getRootPrefixCls:()=>r||B(),getTheme:()=>a,holderRender:i}),z=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:g,direction:h,space:w,virtual:x,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:C,legacyLocale:N,parentContext:_,iconPrefixCls:P,theme:B,componentDisabled:U,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,input:ep,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD}=e,ej=l.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[_.getPrefixCls,e.prefixCls]),eF=P||_.iconPrefixCls||S.oR,eB=n||_.csp;(0,D.Z)(eF,eB);let eU=function(e,t){(0,f.ln)("ConfigProvider");let n=e||{},r=!1!==n.inherit&&t?t:y.u_,o=R();return(0,d.Z)(()=>{var a,i;if(!e)return t;let l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});let s="css-var-".concat(o.replace(/:/g,"")),c=(null!==(a=n.cssVar)&&void 0!==a?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,I.Z)(e,r,!0)}))}(B,_.theme),eZ={csp:eB,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||N,direction:h,space:w,virtual:x,popupMatchSelectWidth:null!=k?k:O,popupOverflow:C,getPrefixCls:ej,iconPrefixCls:eF,theme:eU,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,input:ep,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD},ez=Object.assign({},_);Object.keys(eZ).forEach(e=>{void 0!==eZ[e]&&(ez[e]=eZ[e])}),F.forEach(t=>{let n=e[t];n&&(ez[t]=n)});let eH=(0,d.Z)(()=>ez,ez,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eG=l.useMemo(()=>({prefixCls:eF,csp:eB}),[eF,eB]),e$=l.createElement(l.Fragment,null,l.createElement(L,{dropdownMatchSelectWidth:O}),t),eW=l.useMemo(()=>{var e,t,n,r;return(0,p.T)((null===(e=v.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eH.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eH.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})},[eH,null==i?void 0:i.validateMessages]);Object.keys(eW).length>0&&(e$=l.createElement(m.Z.Provider,{value:eW},e$)),s&&(e$=l.createElement(b,{locale:s,_ANT_MARK__:"internalMark"},e$)),(eF||eB)&&(e$=l.createElement(u.Z.Provider,{value:eG},e$)),g&&(e$=l.createElement(A.q,{size:g},e$)),e$=l.createElement(M,null,e$);let eV=l.useMemo(()=>{let e=eU||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=j(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,c.jG)(t):y.uH,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,c.jG)(r.algorithm)),delete r.algorithm),l[t]=r});let s=Object.assign(Object.assign({},E.Z),n);return Object.assign(Object.assign({},a),{theme:i,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[eU]);return B&&(e$=l.createElement(y.Mj.Provider,{value:eV},e$)),eH.warning&&(e$=l.createElement(f.G8.Provider,{value:eH.warning},e$)),void 0!==U&&(e$=l.createElement(T.n,{disabled:U},e$)),l.createElement(S.E_.Provider,{value:eH},e$)},H=e=>{let t=l.useContext(S.E_),n=l.useContext(h.Z);return l.createElement(z,Object.assign({parentContext:t,legacyLocale:n},e))};H.ConfigContext=S.E_,H.SizeContext=A.Z,H.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:s}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=s),l&&(Object.keys(l).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,w.R_)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=a[1],n["".concat(t,"-color-hover")]=a[4],n["".concat(t,"-color-active")]=a[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=a[0],n["".concat(t,"-color-deprecated-border")]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,w.R_)(e.toRgbString());a.forEach((e,t)=>{n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";"));return"\n :root {\n ".concat(a.join("\n"),"\n }\n ").trim()}(e,t);(0,O.Z)()&&(0,k.hq)(n,"".concat(C,"-dynamic-theme"))}(B(),l):a=l)},H.useConfig=function(){return{componentDisabled:(0,l.useContext)(T.Z),componentSize:(0,l.useContext)(A.Z)}},Object.defineProperty(H,"SizeContext",{get:()=>A.Z});var G=H},40491:function(e,t,n){n.d(t,{Z:function(){return er}});var r=n(64090),o=n(50459),a=n(16480),i=n.n(a),l=n(14749),s=n(50833),c=n(80406),u=n(6787),d=n(44101),p=n(74084),f=n(4295),m=n(19223),g=f.Z.ESC,h=f.Z.TAB,b=(0,r.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,i=(0,r.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,p.sQ)(t,null==i?void 0:i.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(a,"-arrow")}),r.cloneElement(i,{ref:(0,p.Yr)(i)?l:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],E={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},S=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=r.forwardRef(function(e,t){var n,o,a,f,v,y,w,x,O,k,C,T,A,I,N=e.arrow,R=void 0!==N&&N,_=e.prefixCls,P=void 0===_?"rc-dropdown":_,M=e.transitionName,L=e.animation,D=e.align,j=e.placement,F=e.placements,B=e.getPopupContainer,U=e.showAction,Z=e.hideAction,z=e.overlayClassName,H=e.overlayStyle,G=e.visible,$=e.trigger,W=void 0===$?["hover"]:$,V=e.autoFocus,q=e.overlay,Y=e.children,K=e.onVisibleChange,X=(0,u.Z)(e,S),Q=r.useState(),J=(0,c.Z)(Q,2),ee=J[0],et=J[1],en="visible"in e?G:ee,er=r.useRef(null),eo=r.useRef(null),ea=r.useRef(null);r.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==K||K(e)};o=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:V,overlayRef:eo}).visible,a=n.triggerRef,f=n.onVisibleChange,v=n.autoFocus,y=n.overlayRef,w=r.useRef(!1),x=function(){if(o){var e,t;null===(e=a.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==f||f(!1)}},O=function(){var e;return null!==(e=y.current)&&void 0!==e&&!!e.focus&&(y.current.focus(),w.current=!0,!0)},k=function(e){switch(e.keyCode){case g:x();break;case h:var t=!1;w.current||(t=O()),t?e.preventDefault():x()}},r.useEffect(function(){return o?(window.addEventListener("keydown",k),v&&(0,m.Z)(O,3),function(){window.removeEventListener("keydown",k),w.current=!1}):function(){w.current=!1}},[o]);var el=function(){return r.createElement(b,{ref:eo,overlay:q,prefixCls:P,arrow:R})},es=r.cloneElement(Y,{className:i()(null===(I=Y.props)||void 0===I?void 0:I.className,en&&(void 0!==(C=e.openClassName)?C:"".concat(P,"-open"))),ref:(0,p.Yr)(Y)?(0,p.sQ)(ea,Y.ref):void 0}),ec=Z;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),r.createElement(d.Z,(0,l.Z)({builtinPlacements:void 0===F?E:F},X,{prefixCls:P,ref:er,popupClassName:i()(z,(0,s.Z)({},"".concat(P,"-show-arrow"),R)),popupStyle:H,action:W,showAction:U,hideAction:ec,popupPlacement:void 0===j?"bottomLeft":j,popupAlign:D,popupTransitionName:M,popupAnimation:L,popupVisible:en,stretch:(T=e.minOverlayWidthMatchTrigger,A=e.alignPoint,"minOverlayWidthMatchTrigger"in e?T:!A)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),es)}),x=n(48563),O=n(44329),k=n(35704),C=n(51761),T=n(67966),A=n(21467),I=n(65823),N=n(76564),R=n(86718),_=n(57499),P=n(95781),M=n(81642),L=n(24750),D=n(11303),j=n(202),F=n(25926),B=n(58854),U=n(89869),Z=n(76585),z=n(80316),H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(a)]:{["&".concat(a,"-danger:not(").concat(a,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},G=n(2638),$=n(8985);let W=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(i,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(i,"-btn-icon > ").concat(l,"-down")]:{fontSize:f}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(l,"-down")]:{fontSize:f},["".concat(l,"-down::before")]:{transition:"transform ".concat(s)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:j.fJ},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:j.Qt},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:j.Uw},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:j.ly}})},(0,U.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,D.Qy)(e)),{["".concat(n,"-item-group-title")]:{padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorTextDescription,transition:"all ".concat(s)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(s),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(s),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,D.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat((0,$.bf)(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat((0,$.bf)(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:p,backgroundColor:g,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})}},[(0,j.oN)(e,"slide-up"),(0,j.oN)(e,"slide-down"),(0,F.Fm)(e,"move-up"),(0,F.Fm)(e,"move-down"),(0,B._y)(e,"zoom-big")]]};var V=(0,Z.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=(0,z.TS)(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[W(a),H(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,U.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,G.w)(e))),q=n(92935);let Y=e=>{let t;let{menu:n,arrow:a,prefixCls:l,children:s,trigger:c,disabled:u,dropdownRender:d,getPopupContainer:p,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:E=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:A=!0,placement:D="",overlay:j,transitionName:F}=e,{getPopupContainer:B,getPrefixCls:U,direction:Z,dropdown:z}=r.useContext(_.E_);(0,N.ln)("Dropdown");let H=r.useMemo(()=>{let e=U();return void 0!==F?F:D.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")},[U,D,F]),G=r.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===Z?"bottomRight":"bottomLeft",[D,Z]),$=U("dropdown",l),W=(0,q.Z)($),[Y,K,X]=V($,W),[,Q]=(0,L.ZP)(),J=r.Children.only(s),ee=(0,I.Tm)(J,{className:i()("".concat($,"-trigger"),{["".concat($,"-rtl")]:"rtl"===Z},J.props.className),disabled:u}),et=u?[]:c;et&&et.includes("contextMenu")&&(t=!0);let[en,er]=(0,O.Z)(!1,{value:null!=h?h:v}),eo=(0,x.zX)(e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),er(e)}),ea=i()(f,m,K,X,W,null==z?void 0:z.className,{["".concat($,"-rtl")]:"rtl"===Z}),ei=(0,T.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:A,offset:Q.marginXXS,arrowWidth:a?Q.sizePopupArrow:0,borderRadius:Q.borderRadius}),el=r.useCallback(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==b||b(!1,{source:"menu"}),er(!1))},[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[es,ec]=(0,C.Cn)("Dropdown",null==g?void 0:g.zIndex),eu=r.createElement(w,Object.assign({alignPoint:t},(0,k.Z)(e,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:S,visible:en,builtinPlacements:ei,arrow:!!a,overlayClassName:ea,prefixCls:$,getPopupContainer:p||B,transitionName:H,trigger:et,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(P.Z,Object.assign({},n)):"function"==typeof j?j():j,d&&(e=d(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(M.J,{prefixCls:"".concat($,"-menu"),rootClassName:i()(X,W),expandIcon:r.createElement("span",{className:"".concat($,"-menu-submenu-arrow")},r.createElement(o.Z,{className:"".concat($,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:el,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:eo,overlayStyle:Object.assign(Object.assign(Object.assign({},null==z?void 0:z.style),g),{zIndex:es})}),ee);return es&&(eu=r.createElement(R.Z.Provider,{value:ec},eu)),Y(eu)},K=(0,A.Z)(Y,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});Y._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(K,Object.assign({},e),r.createElement("span",null));var X=n(31413),Q=n(1861),J=n(65270),ee=n(92801),et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let en=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(_.E_),{prefixCls:a,type:l="default",danger:s,disabled:c,loading:u,onClick:d,htmlType:p,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:v,trigger:y,align:E,open:S,onOpenChange:w,placement:x,getPopupContainer:O,href:k,icon:C=r.createElement(X.Z,null),title:T,buttonsRender:A=e=>e,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L}=e,D=et(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",a),F={menu:g,arrow:h,autoFocus:b,align:E,disabled:c,trigger:c?[]:y,onOpenChange:w,getPopupContainer:O||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L},{compactSize:B,compactItemClassnames:U}=(0,ee.ri)(j,o),Z=i()("".concat(j,"-button"),U,m);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement="rtl"===o?"bottomLeft":"bottomRight";let[z,H]=A([r.createElement(Q.ZP,{type:l,danger:s,disabled:c,loading:u,onClick:d,htmlType:p,href:k,title:T},f),r.createElement(Q.ZP,{type:l,danger:s,icon:C})]);return r.createElement(J.Z.Compact,Object.assign({className:Z,size:B,block:!0},D),z,r.createElement(Y,Object.assign({},F),H))};en.__ANT_BUTTON=!0,Y.Button=en;var er=Y},47137:function(e,t,n){n.d(t,{RV:function(){return s},Rk:function(){return c},Ux:function(){return d},aM:function(){return u},pg:function(){return p},q3:function(){return i},qI:function(){return l}});var r=n(64090),o=n(76570),a=n(35704);let i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),s=e=>{let t=(0,a.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},c=r.createContext({prefixCls:""}),u=r.createContext({}),d=e=>{let{children:t,status:n,override:o}=e,a=(0,r.useContext)(u),i=(0,r.useMemo)(()=>{let e=Object.assign({},a);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,a]);return r.createElement(u.Provider,{value:i},t)},p=(0,r.createContext)(void 0)},8443:function(e,t,n){var r=n(64090),o=n(47137);let a=["outlined","borderless","filled"];t.Z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=(0,r.useContext)(o.pg);t=void 0!==e?e:!1===n?"borderless":null!=i?i:"outlined";let l=a.includes(t);return[t,l]}},81583:function(e,t,n){n.d(t,{Z:function(){return eD}});var r=n(63787),o=n(16480),a=n.n(o),i=n(49367),l=n(64090),s=n(47387),c=n(47137);function u(e){let[t,n]=l.useState(e);return l.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var d=n(8985),p=n(11303),f=n(58854),m=n(46154),g=n(80316),h=n(76585),b=e=>{let{componentCls:t}=e,n="".concat(t,"-show-help"),r="".concat(t,"-show-help-item");return{[n]:{transition:"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:"height ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n transform ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut," !important"),["&".concat(r,"-appear, &").concat(r,"-enter")]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},["&".concat(r,"-leave-active")]:{transform:"translateY(-5px)"}}}}};let v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:"".concat((0,d.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:"0 0 0 ".concat((0,d.bf)(e.controlOutlineWidth)," ").concat(e.controlOutline)},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{let{formItemCls:n}=e;return{[n]:{["".concat(n,"-label > label")]:{height:t},["".concat(n,"-control-input")]:{minHeight:t}}}},E=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),v(e)),{["".concat(t,"-text")]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},S=e=>{let{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},["&-hidden,\n &-hidden.".concat(o,"-row")]:{display:"none"},"&-has-warning":{["".concat(t,"-split")]:{color:e.colorError}},"&-has-error":{["".concat(t,"-split")]:{color:e.colorWarning}},["".concat(t,"-label")]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,["> ".concat(n)]:{fontSize:e.fontSize,verticalAlign:"top"},["&".concat(t,"-required:not(").concat(t,"-required-mark-optional)::before")]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-optional")]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-tooltip")]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},["&".concat(t,"-no-colon::after")]:{content:'"\\a0"'}}},["".concat(t,"-control")]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,["&:first-child:not([class^=\"'".concat(o,"-col-'\"]):not([class*=\"' ").concat(o,"-col-'\"])")]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:"color ".concat(e.motionDurationMid," ").concat(e.motionEaseOut)},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},["&-with-help ".concat(t,"-explain")]:{height:"auto",opacity:1},["".concat(t,"-feedback-icon")]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-horizontal")]:{["".concat(n,"-label")]:{flexGrow:0},["".concat(n,"-control")]:{flex:"1 1 0",minWidth:0},["".concat(n,"-label[class$='-24'], ").concat(n,"-label[class*='-24 ']")]:{["& + ".concat(n,"-control")]:{minWidth:"unset"}}}}},x=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-inline")]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},["> ".concat(n,"-label,\n > ").concat(n,"-control")]:{display:"inline-block",verticalAlign:"top"},["> ".concat(n,"-label")]:{flex:"none"},["".concat(t,"-text")]:{display:"inline-block"},["".concat(n,"-has-feedback")]:{display:"inline-block"}}}}},O=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(n," ").concat(n,"-label")]:O(e),["".concat(t,":not(").concat(t,"-inline)")]:{[n]:{flexWrap:"wrap",["".concat(n,"-label, ").concat(n,"-control")]:{['&:not([class*=" '.concat(r,'-col-xs"])')]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},C=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(t,"-vertical")]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},["".concat(t,"-item-control")]:{width:"100%"}}},["".concat(t,"-vertical ").concat(n,"-label,\n .").concat(r,"-col-24").concat(n,"-label,\n .").concat(r,"-col-xl-24").concat(n,"-label")]:O(e),["@media (max-width: ".concat((0,d.bf)(e.screenXSMax),")")]:[k(e),{[t]:{[".".concat(r,"-col-xs-24").concat(n,"-label")]:O(e)}}],["@media (max-width: ".concat((0,d.bf)(e.screenSMMax),")")]:{[t]:{[".".concat(r,"-col-sm-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenMDMax),")")]:{[t]:{[".".concat(r,"-col-md-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenLGMax),")")]:{[t]:{[".".concat(r,"-col-lg-24").concat(n,"-label")]:O(e)}}}},T=(e,t)=>(0,g.TS)(e,{formItemCls:"".concat(e.componentCls,"-item"),rootPrefixCls:t});var A=(0,h.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t,r=T(e,n);return[E(r),S(r),b(r),w(r),x(r),C(r),(0,m.Z)(r),f.kr]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:"0 0 ".concat(e.paddingXS,"px"),verticalLabelMargin:0}),{order:-1e3}),I=n(92935);let N=[];function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:"".concat(t,"-").concat(r),error:e,errorStatus:n}}var _=e=>{let{help:t,helpStatus:n,errors:o=N,warnings:d=N,className:p,fieldId:f,onVisibleChanged:m}=e,{prefixCls:g}=l.useContext(c.Rk),h="".concat(g,"-item-explain"),b=(0,I.Z)(g),[v,y,E]=A(g,b),S=(0,l.useMemo)(()=>(0,s.Z)(g),[g]),w=u(o),x=u(d),O=l.useMemo(()=>null!=t?[R(t,"help",n)]:[].concat((0,r.Z)(w.map((e,t)=>R(e,"error","error",t))),(0,r.Z)(x.map((e,t)=>R(e,"warning","warning",t)))),[t,n,w,x]),k={};return f&&(k.id="".concat(f,"_help")),v(l.createElement(i.ZP,{motionDeadline:S.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!O.length,onVisibleChanged:m},e=>{let{className:t,style:n}=e;return l.createElement("div",Object.assign({},k,{className:a()(h,t,E,b,p,y),style:n,role:"alert"}),l.createElement(i.V4,Object.assign({keys:O},(0,s.Z)(g),{motionName:"".concat(g,"-show-help-item"),component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:i}=e;return l.createElement("div",{key:t,className:a()(o,{["".concat(h,"-").concat(r)]:r}),style:i},n)}))}))},P=n(76570),M=n(57499),L=n(17094),D=n(10693),j=n(97303);let F=e=>"object"==typeof e&&null!=e&&1===e.nodeType,B=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,U=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,z=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},H=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];let{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!F(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,f=[],m=e;for(;F(m)&&d(m);){if((m=z(m))===p){f.push(m);break}null!=m&&m===document.body&&U(m)&&!U(document.documentElement)||null!=m&&U(m,u)&&f.push(m)}let g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:E,top:S,right:w,bottom:x,left:O}=e.getBoundingClientRect(),{top:k,right:C,bottom:T,left:A}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===l||"nearest"===l?S-k:"end"===l?x+T:S+y/2-k+T,N="center"===s?O+E/2-A+C:"end"===s?w+C:O-A,R=[];for(let e=0;e=0&&O>=0&&x<=h&&w<=g&&S>=o&&x<=c&&O>=u&&w<=a)break;let d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),A=0,_=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-T:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===l?I:"end"===l?I-h:"nearest"===l?Z(v,v+h,h,k,T,v+I,v+I+y,y):I-h/2,_="start"===s?N:"center"===s?N-g/2:"end"===s?N-g:Z(b,b+g,g,m,C,b+N,b+N+E,E),A=Math.max(0,A+v),_=Math.max(0,_+b);else{A="start"===l?I-o-k:"end"===l?I-c+T+M:"nearest"===l?Z(o,c,n,k,T+M,I,I+y,y):I-(o+n/2)+M/2,_="start"===s?N-u-m:"center"===s?N-(u+r/2)+P/2:"end"===s?N-a+C+P:Z(u,a,r,m,C+P,N,N+E,E);let{scrollLeft:e,scrollTop:i}=t;A=0===D?0:Math.max(0,Math.min(i+A/D,t.scrollHeight-n/D+M)),_=0===L?0:Math.max(0,Math.min(e+_/L,t.scrollWidth-r/L+P)),I+=i-A,N+=e-_}R.push({el:t,top:A,left:_})}return R},G=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"},$=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function V(e,t){if(!e.length)return;let n=e.join("_");return t?"".concat(t,"_").concat(n):$.includes(n)?"".concat("form_item","_").concat(n):n}function q(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function Y(e){return W(e).join("_")}function K(e){let[t]=(0,P.cI)(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let r=Y(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=V(W(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(H(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:a,left:i}of H(e,G(t))){let e=a-n.top+n.bottom,t=i-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{let t=Y(e);return n.current[t]}}),[e,t]);return[r]}var X=n(12519),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=l.forwardRef((e,t)=>{let n=l.useContext(L.Z),{getPrefixCls:r,direction:o,form:i}=l.useContext(M.E_),{prefixCls:s,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:b,labelCol:v,wrapperCol:y,hideRequiredMark:E,layout:S="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:O,name:k,style:C,feedbackIcons:T,variant:N}=e,R=Q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=(0,D.Z)(p),F=l.useContext(X.Z),B=(0,l.useMemo)(()=>void 0!==x?x:!E&&(!i||void 0===i.requiredMark||i.requiredMark),[E,x,i]),U=null!=g?g:null==i?void 0:i.colon,Z=r("form",s),z=(0,I.Z)(Z),[H,G,$]=A(Z,z),W=a()(Z,"".concat(Z,"-").concat(S),{["".concat(Z,"-hide-required-mark")]:!1===B,["".concat(Z,"-rtl")]:"rtl"===o,["".concat(Z,"-").concat(_)]:_},$,z,G,null==i?void 0:i.className,u,d),[V]=K(m),{__INTERNAL__:q}=V;q.name=k;let Y=(0,l.useMemo)(()=>({name:k,labelAlign:h,labelCol:v,labelWrap:b,wrapperCol:y,vertical:"vertical"===S,colon:U,requiredMark:B,itemRef:q.itemRef,form:V,feedbackIcons:T}),[k,h,v,y,S,U,B,V,T]);l.useImperativeHandle(t,()=>V);let J=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),V.scrollToField(t,n)}};return H(l.createElement(c.pg.Provider,{value:N},l.createElement(L.n,{disabled:f},l.createElement(j.Z.Provider,{value:_},l.createElement(c.RV,{validateMessages:F},l.createElement(c.q3.Provider,{value:Y},l.createElement(P.ZP,Object.assign({id:k},R,{name:k,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==w){J(w,t);return}i&&void 0!==i.scrollToFirstError&&J(i.scrollToFirstError,t)}},form:V,style:Object.assign(Object.assign({},null==i?void 0:i.style),C),className:W}))))))))});var ee=n(89211),et=n(74084),en=n(65823),er=n(76564),eo=n(33054);let ea=()=>{let{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(c.aM);return{status:e,errors:t,warnings:n}};ea.Context=c.aM;var ei=n(19223),el=n(73193),es=n(24800),ec=n(35704),eu=n(5056),ed=n(90791);let ep=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{["".concat(t,"-control")]:{display:"flex"}}}};var ef=(0,h.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;return[ep(T(e,n))]}),em=e=>{let{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:s,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h="".concat(t,"-item"),b=l.useContext(c.q3),v=r||b.wrapperCol||{},y=a()("".concat(h,"-control"),v.className),E=l.useMemo(()=>Object.assign({},b),[b]);delete E.labelCol,delete E.wrapperCol;let S=l.createElement("div",{className:"".concat(h,"-control-input")},l.createElement("div",{className:"".concat(h,"-control-input-content")},o)),w=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=null!==m||i.length||s.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(c.Rk.Provider,{value:w},l.createElement(_,{fieldId:f,errors:i,warnings:s,help:p,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,O={};f&&(O.id="".concat(f,"_extra"));let k=d?l.createElement("div",Object.assign({},O,{className:"".concat(h,"-extra")}),d):null,C=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:S,errorList:x,extra:k}):l.createElement(l.Fragment,null,S,x,k);return l.createElement(c.q3.Provider,{value:E},l.createElement(ed.Z,Object.assign({},v,{className:y}),C),l.createElement(ef,{prefixCls:t}))},eg=n(14749),eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},eb=n(60688),ev=l.forwardRef(function(e,t){return l.createElement(eb.Z,(0,eg.Z)({},e,{ref:t,icon:eh}))}),ey=n(79474),eE=n(70595),eS=n(1460),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ex=e=>{var t;let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:s,colon:u,required:d,requiredMark:p,tooltip:f}=e,[m]=(0,eE.Z)("Form"),{vertical:g,labelAlign:h,labelCol:b,labelWrap:v,colon:y}=l.useContext(c.q3);if(!r)return null;let E=i||b||{},S="".concat(n,"-item-label"),w=a()(S,"left"===(s||h)&&"".concat(S,"-left"),E.className,{["".concat(S,"-wrap")]:!!v}),x=r,O=!0===u||!1!==y&&!1!==u;O&&!g&&"string"==typeof r&&""!==r.trim()&&(x=r.replace(/[:|:]\s*$/,""));let k=f?"object"!=typeof f||l.isValidElement(f)?{title:f}:f:null;if(k){let{icon:e=l.createElement(ev,null)}=k,t=ew(k,["icon"]),r=l.createElement(eS.Z,Object.assign({},t),l.cloneElement(e,{className:"".concat(n,"-item-tooltip"),title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,r)}let C="optional"===p,T="function"==typeof p;T?x=p(x,{required:!!d}):C&&!d&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:"".concat(n,"-item-optional"),title:""},(null==m?void 0:m.optional)||(null===(t=ey.Z.Form)||void 0===t?void 0:t.optional))));let A=a()({["".concat(n,"-item-required")]:d,["".concat(n,"-item-required-mark-optional")]:C||T,["".concat(n,"-item-no-colon")]:!O});return l.createElement(ed.Z,Object.assign({},E,{className:w}),l.createElement("label",{htmlFor:o,className:A,title:"string"==typeof r?r:""},x))},eO=n(99537),ek=n(77136),eC=n(20653),eT=n(66155);let eA={success:eO.Z,warning:eC.Z,error:ek.Z,validating:eT.Z};function eI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:s,meta:u,noStyle:d}=e,p="".concat(s,"-item"),{feedbackIcons:f}=l.useContext(c.q3),m=q(n,r,u,null,!!o,i),{isFormItemInput:g,status:h,hasFeedback:b,feedbackIcon:v}=l.useContext(c.aM),y=l.useMemo(()=>{var e;let t;if(o){let i=!0!==o&&o.icons||f,s=m&&(null===(e=null==i?void 0:i({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),c=m&&eA[m];t=!1!==s&&c?l.createElement("span",{className:a()("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(m))},s||l.createElement(c,null)):null}let i={status:m||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return d&&(i.status=(null!=m?m:h)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=o?o:b),i.feedbackIcon=void 0!==o?i.feedbackIcon:v),i},[m,o,d,g,h]);return l.createElement(c.aM.Provider,{value:y},t)}var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eR(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:s,warnings:d,validateStatus:p,meta:f,hasFeedback:m,hidden:g,children:h,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:E}=e,S=eN(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),w="".concat(t,"-item"),{requiredMark:x}=l.useContext(c.q3),O=l.useRef(null),k=u(s),C=u(d),T=null!=i,A=!!(T||s.length||d.length),I=!!O.current&&(0,el.Z)(O.current),[N,R]=l.useState(null);(0,es.Z)(()=>{A&&O.current&&R(parseInt(getComputedStyle(O.current).marginBottom,10))},[A,I]);let _=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return q(e?k:f.errors,e?C:f.warnings,f,"",!!m,p)}(),P=a()(w,n,r,{["".concat(w,"-with-help")]:T||k.length||C.length,["".concat(w,"-has-feedback")]:_&&m,["".concat(w,"-has-success")]:"success"===_,["".concat(w,"-has-warning")]:"warning"===_,["".concat(w,"-has-error")]:"error"===_,["".concat(w,"-is-validating")]:"validating"===_,["".concat(w,"-hidden")]:g});return l.createElement("div",{className:P,style:o,ref:O},l.createElement(eu.Z,Object.assign({className:"".concat(w,"-row")},(0,ec.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(ex,Object.assign({htmlFor:b},e,{requiredMark:x,required:null!=v?v:y,prefixCls:t})),l.createElement(em,Object.assign({},e,f,{errors:k,warnings:C,prefixCls:t,status:_,help:i,marginBottom:N,onErrorVisibleChanged:e=>{e||R(null)}}),l.createElement(c.qI.Provider,{value:E},l.createElement(eI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:_},h)))),!!N&&l.createElement("div",{className:"".concat(w,"-margin-offset"),style:{marginBottom:-N}}))}let e_=l.memo(e=>{let{children:t}=e;return t},(e,t)=>(function(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function eP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eM=function(e){let{name:t,noStyle:n,className:o,dependencies:i,prefixCls:s,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:b,hidden:v,help:y}=e,{getPrefixCls:E}=l.useContext(M.E_),{name:S}=l.useContext(c.q3),w=function(e){if("function"==typeof e)return e;let t=(0,eo.Z)(e);return t.length<=1?t[0]:t}(p),x="function"==typeof w,O=l.useContext(c.qI),{validateTrigger:k}=l.useContext(P.zb),C=void 0!==b?b:k,T=null!=t,N=E("form",s),R=(0,I.Z)(N),[_,L,D]=A(N,R);(0,er.ln)("Form.Item");let j=l.useContext(P.ZM),F=l.useRef(),[B,U]=function(e){let[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),a=(0,l.useRef)(!1);return l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ei.Z.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=(0,ei.Z)(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[Z,z]=(0,ee.Z)(()=>eP()),H=(e,t)=>{U(n=>{let o=Object.assign({},n),a=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[a]:o[a]=e,o})},[G,$]=l.useMemo(()=>{let e=(0,r.Z)(Z.errors),t=(0,r.Z)(Z.warnings);return Object.values(B).forEach(n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))}),[e,t]},[B,Z.errors,Z.warnings]),q=function(){let{itemRef:e}=l.useContext(c.q3),t=l.useRef({});return function(n,r){let o=r&&"object"==typeof r&&r.ref,a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=(0,et.sQ)(e(n),o)),t.current.ref}}();function Y(t,r,i){return n&&!v?l.createElement(eI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:Z,errors:G,warnings:$,noStyle:!0},t):l.createElement(eR,Object.assign({key:"row"},e,{className:a()(o,D,R,L),prefixCls:N,fieldId:r,isRequired:i,errors:G,warnings:$,meta:Z,onSubItemMetaChange:H}),t)}if(!T&&!x&&!i)return _(Y(w));let K={};return"string"==typeof m?K.label=m:t&&(K.label=String(t)),g&&(K=Object.assign(Object.assign({},K),g)),_(l.createElement(P.gN,Object.assign({},e,{messageVariables:K,trigger:h,validateTrigger:C,onMetaChange:e=>{let t=null==j?void 0:j.getKey(e.name);if(z(e.destroy?eP():e,!0),n&&!1!==y&&O){let n=e.name;if(e.destroy)n=F.current||n;else if(void 0!==t){let[e,o]=t;n=[e].concat((0,r.Z)(o)),F.current=n}O(e,n)}}}),(n,o,a)=>{let s=W(t).length&&o?o.name:[],c=V(s,S),p=void 0!==f?f:!!(d&&d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return t&&t.required&&!t.warningOnly}return!1})),m=Object.assign({},n),g=null;if(Array.isArray(w)&&T)g=w;else if(x&&(!(u||i)||T));else if(!i||x||T){if((0,en.l$)(w)){let t=Object.assign(Object.assign({},w.props),m);if(t.id||(t.id=c),y||G.length>0||$.length>0||e.extra){let n=[];(y||G.length>0)&&n.push("".concat(c,"_help")),e.extra&&n.push("".concat(c,"_extra")),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,et.Yr)(w)&&(t.ref=q(s,w)),new Set([].concat((0,r.Z)(W(h)),(0,r.Z)(W(C)))).forEach(e=>{t[e]=function(){for(var t,n,r,o=arguments.length,a=Array(o),i=0;it.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};J.Item=eM,J.List=e=>{var{prefixCls:t,children:n}=e,r=eL(e,["prefixCls","children"]);let{getPrefixCls:o}=l.useContext(M.E_),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(P.aV,Object.assign({},r),(e,t,r)=>l.createElement(c.Rk.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},J.ErrorList=_,J.useForm=K,J.useFormInstance=function(){let{form:e}=(0,l.useContext)(c.q3);return e},J.useWatch=P.qo,J.Provider=c.RV,J.create=()=>{};var eD=J},12519:function(e,t,n){var r=n(64090);t.Z=(0,r.createContext)(void 0)},24305:function(e,t,n){let r=(0,n(64090).createContext)({});t.Z=r},90791:function(e,t,n){var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(24305),s=n(37148),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let u=["xs","sm","md","lg","xl","xxl"],d=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o}=r.useContext(i.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:b,pull:v,className:y,children:E,flex:S,style:w}=e,x=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=n("col",f),[k,C,T]=(0,s.cG)(O),A={};u.forEach(t=>{let n={},r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete x[t],A=Object.assign(Object.assign({},A),{["".concat(O,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(O,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(O,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(O,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(O,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(O,"-").concat(t,"-flex-").concat(n.flex)]:n.flex||"auto"===n.flex,["".concat(O,"-rtl")]:"rtl"===o})});let I=a()(O,{["".concat(O,"-").concat(m)]:void 0!==m,["".concat(O,"-order-").concat(g)]:g,["".concat(O,"-offset-").concat(h)]:h,["".concat(O,"-push-").concat(b)]:b,["".concat(O,"-pull-").concat(v)]:v},y,A,C,T),N={};if(d&&d[0]>0){let e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return S&&(N.flex="number"==typeof S?"".concat(S," ").concat(S," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(S)?"0 0 ".concat(S):S,!1!==p||N.minWidth||(N.minWidth=0)),k(r.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},N),w),className:I,ref:t}),E))});t.Z=d},5056:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(64090),o=n(16480),a=n.n(o),i=n(24750);let l=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),c=e=>{let t=[].concat(l).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),a="screen".concat(o,"Min"),i="screen".concat(o);if(!(e[a]<=e[i]))throw Error("".concat(a,"<=").concat(i," fails : !(").concat(e[a],"<=").concat(e[i],")"));if(rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m(e,t){let[n,o]=r.useState("string"==typeof e?e:""),a=()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{a()},[JSON.stringify(e),t]),n}var g=r.forwardRef((e,t)=>{let{prefixCls:n,justify:o,align:g,className:h,style:b,children:v,gutter:y=0,wrap:E}=e,S=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=r.useContext(u.E_),[O,k]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,T]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=m(g,C),I=m(o,C),N=r.useRef(y),R=function(){let[,e]=(0,i.ZP)(),t=s(c(e));return r.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}();r.useEffect(()=>{let e=R.subscribe(e=>{T(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&k(e)});return()=>R.unsubscribe(e)},[]);let _=w("row",n),[P,M,L]=(0,p.VM)(_),D=(()=>{let e=[void 0,void 0];return(Array.isArray(y)?y:[y,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(D[0]/2):void 0;B&&(F.marginLeft=B,F.marginRight=B),[,F.rowGap]=D;let[U,Z]=D,z=r.useMemo(()=>({gutter:[U,Z],wrap:E}),[U,Z,E]);return P(r.createElement(d.Z.Provider,{value:z},r.createElement("div",Object.assign({},S,{className:j,style:Object.assign(Object.assign({},F),b),ref:t}),v)))})},37148:function(e,t,n){n.d(t,{VM:function(){return u},cG:function(){return d}});var r=n(8985),o=n(76585),a=n(80316);let i=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{let{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o["".concat(n).concat(t,"-").concat(e)]={display:"none"},o["".concat(n,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:0},o["".concat(n).concat(t,"-order-").concat(e)]={order:0}):(o["".concat(n).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/r*100,"%"),maxWidth:"".concat(e/r*100,"%")}],o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-order-").concat(e)]={order:e});return o},s=(e,t)=>l(e,t),c=(e,t,n)=>({["@media (min-width: ".concat((0,r.bf)(t),")")]:Object.assign({},s(e,n))}),u=(0,o.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),d=(0,o.I$)("Grid",e=>{let t=(0,a.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>c(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},88707:function(e,t,n){n.d(t,{Z:function(){return em}});var r=n(64090),o=n(20383),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c=n(16480),u=n.n(c),d=n(50833),p=n(6976),f=n(80406),m=n(6787),g=n(47365),h=n(65127);function b(){return"function"==typeof BigInt}function v(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function y(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function E(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function S(e){var t=String(e);if(E(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(E(e)){if(e>Number.MAX_SAFE_INTEGER)return String(b()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":y("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),k=function(){function e(t){if((0,g.Z)(this,e),(0,d.Z)(this,"origin",""),(0,d.Z)(this,"number",void 0),(0,d.Z)(this,"empty",void 0),v(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,h.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}();function C(e){return b()?new O(e):new k(e)}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=y(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?T(C(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var A=n(90089),I=n(24800),N=n(74084),R=n(53850),_=n(76158),P=function(){var e=(0,r.useState)(!1),t=(0,f.Z)(e,2),n=t[0],o=t[1];return(0,I.Z)(function(){o((0,_.Z)())},[]),n},M=n(19223);function L(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,l=e.downDisabled,s=e.onStep,c=r.useRef(),p=r.useRef([]),f=r.useRef();f.current=s;var m=function(){clearTimeout(c.current)},g=function(e,t){e.preventDefault(),m(),f.current(t),c.current=setTimeout(function e(){f.current(t),c.current=setTimeout(e,200)},600)};if(r.useEffect(function(){return function(){m(),p.current.forEach(function(e){return M.Z.cancel(e)})}},[]),P())return null;var h="".concat(t,"-handler"),b=u()(h,"".concat(h,"-up"),(0,d.Z)({},"".concat(h,"-up-disabled"),i)),v=u()(h,"".concat(h,"-down"),(0,d.Z)({},"".concat(h,"-down-disabled"),l)),y=function(){return p.current.push((0,M.Z)(m))},E={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:b}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:v}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function D(e){var t="number"==typeof e?w(e):y(e).fullStr;return t.includes(".")?y(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var j=n(8002),F=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],B=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],U=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Z=function(e){var t=C(e);return t.isInvalidate()?null:t},z=r.forwardRef(function(e,t){var n,o,i,l,s,c=e.prefixCls,g=void 0===c?"rc-input-number":c,h=e.className,b=e.style,v=e.min,y=e.max,E=e.step,O=void 0===E?1:E,k=e.defaultValue,A=e.value,_=e.disabled,P=e.readOnly,j=e.upHandler,B=e.downHandler,z=e.keyboard,H=e.wheel,G=e.controls,$=(e.classNames,e.stringMode),W=e.parser,V=e.formatter,q=e.precision,Y=e.decimalSeparator,K=e.onChange,X=e.onInput,Q=e.onPressEnter,J=e.onStep,ee=e.changeOnBlur,et=void 0===ee||ee,en=(0,m.Z)(e,F),er="".concat(g,"-input"),eo=r.useRef(null),ea=r.useState(!1),ei=(0,f.Z)(ea,2),el=ei[0],es=ei[1],ec=r.useRef(!1),eu=r.useRef(!1),ed=r.useRef(!1),ep=r.useState(function(){return C(null!=A?A:k)}),ef=(0,f.Z)(ep,2),em=ef[0],eg=ef[1],eh=r.useCallback(function(e,t){return t?void 0:q>=0?q:Math.max(S(e),S(O))},[q,O]),eb=r.useCallback(function(e){var t=String(e);if(W)return W(t);var n=t;return Y&&(n=n.replace(Y,".")),n.replace(/[^\w.-]+/g,"")},[W,Y]),ev=r.useRef(""),ey=r.useCallback(function(e,t){if(V)return V(e,{userTyping:t,input:String(ev.current)});var n="number"==typeof e?w(e):e;if(!t){var r=eh(n,t);x(n)&&(Y||r>=0)&&(n=T(n,Y||".",r))}return n},[V,eh,Y]),eE=r.useState(function(){var e=null!=k?k:A;return em.isInvalidate()&&["string","number"].includes((0,p.Z)(e))?Number.isNaN(e)?"":e:ey(em.toString(),!1)}),eS=(0,f.Z)(eE,2),ew=eS[0],ex=eS[1];function eO(e,t){ex(ey(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ev.current=ew;var ek=r.useMemo(function(){return Z(y)},[y,q]),eC=r.useMemo(function(){return Z(v)},[v,q]),eT=r.useMemo(function(){return!(!ek||!em||em.isInvalidate())&&ek.lessEquals(em)},[ek,em]),eA=r.useMemo(function(){return!(!eC||!em||em.isInvalidate())&&em.lessEquals(eC)},[eC,em]),eI=(n=eo.current,o=(0,r.useRef)(null),[function(){try{var e=n.selectionStart,t=n.selectionEnd,r=n.value,a=r.substring(0,e),i=r.substring(t);o.current={start:e,end:t,value:r,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(n&&o.current&&el)try{var e=n.value,t=o.current,r=t.beforeTxt,a=t.afterTxt,i=t.start,l=e.length;if(e.endsWith(a))l=e.length-o.current.afterTxt.length;else if(e.startsWith(r))l=r.length;else{var s=r[i-1],c=e.indexOf(s,i-1);-1!==c&&(l=c+1)}n.setSelectionRange(l,l)}catch(e){(0,R.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),eN=(0,f.Z)(eI,2),eR=eN[0],e_=eN[1],eP=function(e){return ek&&!e.lessEquals(ek)?ek:eC&&!eC.lessEquals(e)?eC:null},eM=function(e){return!eP(e)},eL=function(e,t){var n=e,r=eM(n)||n.isEmpty();if(n.isEmpty()||t||(n=eP(n)||n,r=!0),!P&&!_&&r){var o,a=n.toString(),i=eh(a,t);return i>=0&&!eM(n=C(T(a,".",i)))&&(n=C(T(a,".",i,!0))),n.equals(em)||(o=n,void 0===A&&eg(o),null==K||K(n.isEmpty()?null:U($,n)),void 0===A&&eO(n,t)),n}return em},eD=(i=(0,r.useRef)(0),l=function(){M.Z.cancel(i.current)},(0,r.useEffect)(function(){return l},[]),function(e){l(),i.current=(0,M.Z)(function(){e()})}),ej=function e(t){if(eR(),ev.current=t,ex(t),!eu.current){var n=C(eb(t));n.isNaN()||eL(n,!0)}null==X||X(t),eD(function(){var n=t;W||(n=t.replace(/。/g,".")),n!==t&&e(n)})},eF=function(e){if((!e||!eT)&&(e||!eA)){ec.current=!1;var t,n=C(ed.current?D(O):O);e||(n=n.negate());var r=eL((em||C(0)).add(n.toString()),!1);null==J||J(U($,r),{offset:ed.current?D(O):O,type:e?"up":"down"}),null===(t=eo.current)||void 0===t||t.focus()}},eB=function(e){var t=C(eb(ew)),n=t;n=t.isNaN()?eL(em,e):eL(t,e),void 0!==A?eO(em,!1):n.isNaN()||eO(n,!1)};return r.useEffect(function(){var e=function(e){!1!==H&&(eF(e.deltaY<0),e.preventDefault())},t=eo.current;if(t)return t.addEventListener("wheel",e),function(){return t.removeEventListener("wheel",e)}},[eF]),(0,I.o)(function(){em.isInvalidate()||eO(em,!1)},[q,V]),(0,I.o)(function(){var e=C(A);eg(e);var t=C(eb(ew));e.equals(t)&&ec.current&&!V||eO(e,ec.current)},[A]),(0,I.o)(function(){V&&e_()},[ew]),r.createElement("div",{className:u()(g,h,(s={},(0,d.Z)(s,"".concat(g,"-focused"),el),(0,d.Z)(s,"".concat(g,"-disabled"),_),(0,d.Z)(s,"".concat(g,"-readonly"),P),(0,d.Z)(s,"".concat(g,"-not-a-number"),em.isNaN()),(0,d.Z)(s,"".concat(g,"-out-of-range"),!em.isInvalidate()&&!eM(em)),s)),style:b,onFocus:function(){es(!0)},onBlur:function(){et&&eB(!1),es(!1),ec.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;ec.current=!0,ed.current=n,"Enter"===t&&(eu.current||(ec.current=!1),eB(!1),null==Q||Q(e)),!1!==z&&!eu.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eF("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){ec.current=!1,ed.current=!1},onCompositionStart:function(){eu.current=!0},onCompositionEnd:function(){eu.current=!1,ej(eo.current.value)},onBeforeInput:function(){ec.current=!0}},(void 0===G||G)&&r.createElement(L,{prefixCls:g,upNode:j,downNode:B,upDisabled:eT,downDisabled:eA,onStep:eF}),r.createElement("div",{className:"".concat(er,"-wrap")},r.createElement("input",(0,a.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":em.isInvalidate()?null:em.toString(),step:O},en,{ref:(0,N.sQ)(eo,t),className:er,value:ew,onChange:function(e){ej(e.target.value)},disabled:_,readOnly:P}))))}),H=r.forwardRef(function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,f=e.classNames,g=(0,m.Z)(e,B),h=r.useRef(null);return r.createElement(A.Q,{className:p,triggerFocus:function(e){h.current&&(0,j.nH)(h.current,e)},prefixCls:i,value:l,disabled:n,style:o,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},r.createElement(z,(0,a.Z)({prefixCls:i,disabled:n,ref:(0,N.sQ)(h,t),className:null==f?void 0:f.input},g)))});H.displayName="InputNumber";var G=n(47794),$=n(57499),W=n(54165),V=n(17094),q=n(92935),Y=n(10693),K=n(47137),X=n(8443),Q=n(92801),J=n(8985),ee=n(94759),et=n(85980),en=n(61892),er=n(11303),eo=n(12288),ea=n(76585),ei=n(80316),el=n(6336);let es=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e,a="lg"===t?o:r;return{["&-".concat(t)]:{["".concat(n,"-handler-wrap")]:{borderStartEndRadius:a,borderEndEndRadius:a},["".concat(n,"-handler-up")]:{borderStartEndRadius:a},["".concat(n,"-handler-down")]:{borderEndEndRadius:a}}}},ec=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:b,handleBg:v,handleActiveBg:y,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:w,controlWidth:x,handleOpacity:O,handleBorderColor:k,filledHandleBg:C,lineHeightLG:T,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.ik)(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:o}),(0,en.qG)(e,{["".concat(t,"-handler-wrap")]:{background:v,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}}})),(0,en.H8)(e,{["".concat(t,"-handler-wrap")]:{background:C,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}},"&:focus-within":{["".concat(t,"-handler-wrap")]:{background:v}}})),(0,en.Mu)(e)),{"&-rtl":{direction:"rtl",["".concat(t,"-input")]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:w,["input".concat(t,"-input")]:{height:A(i).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(d)," ").concat((0,J.bf)(p))}},"&-sm":{padding:0,borderRadius:S,["input".concat(t,"-input")]:{height:A(l).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(u)," ").concat((0,J.bf)(c))}},"&-out-of-range":{["".concat(t,"-input-wrap")]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",["".concat(t,"-affix-wrapper")]:{width:"100%"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:S}}},(0,en.ir)(e)),(0,en.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled ".concat(t,"-input")]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),{width:"100%",padding:"".concat((0,J.bf)(b)," ").concat((0,J.bf)(h)),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:"all ".concat(m," linear"),appearance:"textfield",fontSize:"inherit"}),(0,ee.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({["&:hover ".concat(t,"-handler-wrap, &-focused ").concat(t,"-handler-wrap")]:{opacity:1},["".concat(t,"-handler-wrap")]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity ".concat(m," linear ").concat(m),["".concat(t,"-handler")]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},["".concat(t,"-handler")]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k),transition:"all ".concat(m," linear"),"&:active":{background:y},"&:hover":{height:"60%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,er.Ro)()),{color:f,transition:"all ".concat(m," linear"),userSelect:"none"})},["".concat(t,"-handler-up")]:{borderStartEndRadius:o},["".concat(t,"-handler-down")]:{borderEndEndRadius:o}},es(e,"lg")),es(e,"sm")),{"&-disabled, &-readonly":{["".concat(t,"-handler-wrap")]:{display:"none"},["".concat(t,"-input")]:{color:"inherit"}},["\n ".concat(t,"-handler-up-disabled,\n ").concat(t,"-handler-down-disabled\n ")]:{cursor:"not-allowed"},["\n ".concat(t,"-handler-up-disabled:hover &-handler-up-inner,\n ").concat(t,"-handler-down-disabled:hover &-handler-down-inner\n ")]:{color:E}})}]},eu=e=>{let{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign({["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(n)," 0")}},(0,ee.ik)(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(u)," 0")}},"&-sm":{borderRadius:l,paddingInlineStart:c,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(d)," 0")}},["&:not(".concat(t,"-disabled):hover")]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > ".concat(t,"-disabled")]:{background:"transparent"},["> div".concat(t)]:{width:"100%",border:"none",outline:"none",["&".concat(t,"-focused")]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t,"-handler-wrap")]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}};var ed=(0,ea.I$)("InputNumber",e=>{let t=(0,ei.TS)(e,(0,et.e)(e));return[ec(t),eu(t),(0,eo.c)(t)]},e=>{var t;let n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,et.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new el.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})},{unitless:{handleOpacity:!0}}),ep=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ef=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:a}=r.useContext($.E_),i=r.useRef(null);r.useImperativeHandle(t,()=>i.current);let{className:l,rootClassName:c,size:d,disabled:p,prefixCls:f,addonBefore:m,addonAfter:g,prefix:h,bordered:b,readOnly:v,status:y,controls:E,variant:S}=e,w=ep(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),x=n("input-number",f),O=(0,q.Z)(x),[k,C,T]=ed(x,O),{compactSize:A,compactItemClassnames:I}=(0,Q.ri)(x,a),N=r.createElement(s,{className:"".concat(x,"-handler-up-inner")}),R=r.createElement(o.Z,{className:"".concat(x,"-handler-down-inner")});"object"==typeof E&&(N=void 0===E.upIcon?N:r.createElement("span",{className:"".concat(x,"-handler-up-inner")},E.upIcon),R=void 0===E.downIcon?R:r.createElement("span",{className:"".concat(x,"-handler-down-inner")},E.downIcon));let{hasFeedback:_,status:P,isFormItemInput:M,feedbackIcon:L}=r.useContext(K.aM),D=(0,G.F)(P,y),j=(0,Y.Z)(e=>{var t;return null!==(t=null!=d?d:A)&&void 0!==t?t:e}),F=r.useContext(V.Z),[B,U]=(0,X.Z)(S,b),Z=_&&r.createElement(r.Fragment,null,L),z=u()({["".concat(x,"-lg")]:"large"===j,["".concat(x,"-sm")]:"small"===j,["".concat(x,"-rtl")]:"rtl"===a,["".concat(x,"-in-form-item")]:M},C),W="".concat(x,"-group");return k(r.createElement(H,Object.assign({ref:i,disabled:null!=p?p:F,className:u()(T,O,l,c,I),upHandler:N,downHandler:R,prefixCls:x,readOnly:v,controls:"boolean"==typeof E?E:void 0,prefix:h,suffix:Z,addonAfter:g&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},g)),addonBefore:m&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},m)),classNames:{input:z,variant:u()({["".concat(x,"-").concat(B)]:U},(0,G.Z)(x,D,_)),affixWrapper:u()({["".concat(x,"-affix-wrapper-sm")]:"small"===j,["".concat(x,"-affix-wrapper-lg")]:"large"===j,["".concat(x,"-affix-wrapper-rtl")]:"rtl"===a},C),wrapper:u()({["".concat(W,"-rtl")]:"rtl"===a},C),groupWrapper:u()({["".concat(x,"-group-wrapper-sm")]:"small"===j,["".concat(x,"-group-wrapper-lg")]:"large"===j,["".concat(x,"-group-wrapper-rtl")]:"rtl"===a,["".concat(x,"-group-wrapper-").concat(B)]:U},(0,G.Z)("".concat(x,"-group-wrapper"),D,_),C)}},w)))});ef._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(W.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(ef,Object.assign({},e)));var em=ef},88921:function(e,t,n){n.d(t,{Z:function(){return w},n:function(){return S}});var r=n(64090),o=n(16480),a=n.n(o),i=n(90089),l=n(74084),s=n(47794),c=n(57499),u=n(17094),d=n(10693),p=n(47137),f=n(92801),m=n(52274),g=n(94759),h=n(92935),b=n(8443),v=n(77136),y=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(v.Z,null)}),t},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function S(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var w=(0,r.forwardRef)((e,t)=>{var n;let{prefixCls:o,bordered:v=!0,status:S,size:w,disabled:x,onBlur:O,onFocus:k,suffix:C,allowClear:T,addonAfter:A,addonBefore:I,className:N,style:R,styles:_,rootClassName:P,onChange:M,classNames:L,variant:D}=e,j=E(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:F,direction:B,input:U}=r.useContext(c.E_),Z=F("input",o),z=(0,r.useRef)(null),H=(0,h.Z)(Z),[G,$,W]=(0,g.ZP)(Z,H),{compactSize:V,compactItemClassnames:q}=(0,f.ri)(Z,B),Y=(0,d.Z)(e=>{var t;return null!==(t=null!=w?w:V)&&void 0!==t?t:e}),K=r.useContext(u.Z),{status:X,hasFeedback:Q,feedbackIcon:J}=(0,r.useContext)(p.aM),ee=(0,s.F)(X,S),et=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!Q;(0,r.useRef)(et);let en=(0,m.Z)(z,!0),er=(Q||C)&&r.createElement(r.Fragment,null,C,Q&&J),eo=y(T),[ea,ei]=(0,b.Z)(D,v);return G(r.createElement(i.Z,Object.assign({ref:(0,l.sQ)(t,z),prefixCls:Z,autoComplete:null==U?void 0:U.autoComplete},j,{disabled:null!=x?x:K,onBlur:e=>{en(),null==O||O(e)},onFocus:e=>{en(),null==k||k(e)},style:Object.assign(Object.assign({},null==U?void 0:U.style),R),styles:Object.assign(Object.assign({},null==U?void 0:U.styles),_),suffix:er,allowClear:eo,className:a()(N,P,W,H,q,null==U?void 0:U.className),onChange:e=>{en(),null==M||M(e)},addonAfter:A&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},A)),addonBefore:I&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},L),null==U?void 0:U.classNames),{input:a()({["".concat(Z,"-sm")]:"small"===Y,["".concat(Z,"-lg")]:"large"===Y,["".concat(Z,"-rtl")]:"rtl"===B},null==L?void 0:L.input,null===(n=null==U?void 0:U.classNames)||void 0===n?void 0:n.input,$),variant:a()({["".concat(Z,"-").concat(ea)]:ei},(0,s.Z)(Z,ee)),affixWrapper:a()({["".concat(Z,"-affix-wrapper-sm")]:"small"===Y,["".concat(Z,"-affix-wrapper-lg")]:"large"===Y,["".concat(Z,"-affix-wrapper-rtl")]:"rtl"===B},$),wrapper:a()({["".concat(Z,"-group-rtl")]:"rtl"===B},$),groupWrapper:a()({["".concat(Z,"-group-wrapper-sm")]:"small"===Y,["".concat(Z,"-group-wrapper-lg")]:"large"===Y,["".concat(Z,"-group-wrapper-rtl")]:"rtl"===B,["".concat(Z,"-group-wrapper-").concat(ea)]:ei},(0,s.Z)("".concat(Z,"-group-wrapper"),ee,Q),$)})})))})},78578:function(e,t,n){n.d(t,{Z:function(){return F}});var r,o=n(64090),a=n(77136),i=n(16480),l=n.n(i),s=n(14749),c=n(50833),u=n(5239),d=n(63787),p=n(80406),f=n(6787),m=n(90089),g=n(44607),h=n(8002),b=n(44329),v=n(6976),y=n(46505),E=n(24800),S=n(19223),w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={},O=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=o.forwardRef(function(e,t){var n=e.prefixCls,a=(e.onPressEnter,e.defaultValue),i=e.value,d=e.autoSize,m=e.onResize,g=e.className,h=e.style,k=e.disabled,C=e.onChange,T=(e.onInternalAutoSize,(0,f.Z)(e,O)),A=(0,b.Z)(a,{value:i,postState:function(e){return null!=e?e:""}}),I=(0,p.Z)(A,2),N=I[0],R=I[1],_=o.useRef();o.useImperativeHandle(t,function(){return{textArea:_.current}});var P=o.useMemo(function(){return d&&"object"===(0,v.Z)(d)?[d.minRows,d.maxRows]:[]},[d]),M=(0,p.Z)(P,2),L=M[0],D=M[1],j=!!d,F=function(){try{if(document.activeElement===_.current){var e=_.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;_.current.setSelectionRange(t,n),_.current.scrollTop=r}}catch(e){}},B=o.useState(2),U=(0,p.Z)(B,2),Z=U[0],z=U[1],H=o.useState(),G=(0,p.Z)(H,2),$=G[0],W=G[1],V=function(){z(0)};(0,E.Z)(function(){j&&V()},[i,L,D,j]),(0,E.Z)(function(){if(0===Z)z(1);else if(1===Z){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:w.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(x[n]=l),l}(e,n),l=i.paddingSize,s=i.borderSize,c=i.boxSizing,u=i.sizingStyle;r.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=l),null!==o||null!==a){r.value=" ";var m=r.scrollHeight-l;null!==o&&(d=m*o,"border-box"===c&&(d=d+l+s),f=Math.max(d,f)),null!==a&&(p=m*a,"border-box"===c&&(p=p+l+s),t=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:t,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(_.current,!1,L,D);z(2),W(e)}else F()},[Z]);var q=o.useRef(),Y=function(){S.Z.cancel(q.current)};o.useEffect(function(){return Y},[]);var K=(0,u.Z)((0,u.Z)({},h),j?$:null);return(0===Z||1===Z)&&(K.overflowY="hidden",K.overflowX="hidden"),o.createElement(y.Z,{onResize:function(e){2===Z&&(null==m||m(e),d&&(Y(),q.current=(0,S.Z)(function(){V()})))},disabled:!(d||m)},o.createElement("textarea",(0,s.Z)({},T,{ref:_,style:K,className:l()(n,g,(0,c.Z)({},"".concat(n,"-disabled"),k)),disabled:k,value:N,onChange:function(e){R(e.target.value),null==C||C(e)}})))}),C=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],T=o.forwardRef(function(e,t){var n,r,a,i=e.defaultValue,v=e.value,y=e.onFocus,E=e.onBlur,S=e.onChange,w=e.allowClear,x=e.maxLength,O=e.onCompositionStart,T=e.onCompositionEnd,A=e.suffix,I=e.prefixCls,N=void 0===I?"rc-textarea":I,R=e.showCount,_=e.count,P=e.className,M=e.style,L=e.disabled,D=e.hidden,j=e.classNames,F=e.styles,B=e.onResize,U=(0,f.Z)(e,C),Z=(0,b.Z)(i,{value:v,defaultValue:i}),z=(0,p.Z)(Z,2),H=z[0],G=z[1],$=null==H?"":String(H),W=o.useState(!1),V=(0,p.Z)(W,2),q=V[0],Y=V[1],K=o.useRef(!1),X=o.useState(null),Q=(0,p.Z)(X,2),J=Q[0],ee=Q[1],et=(0,o.useRef)(null),en=function(){var e;return null===(e=et.current)||void 0===e?void 0:e.textArea},er=function(){en().focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:et.current,focus:er,blur:function(){en().blur()}}}),(0,o.useEffect)(function(){Y(function(e){return!L&&e})},[L]);var eo=o.useState(null),ea=(0,p.Z)(eo,2),ei=ea[0],el=ea[1];o.useEffect(function(){if(ei){var e;(e=en()).setSelectionRange.apply(e,(0,d.Z)(ei))}},[ei]);var es=(0,g.Z)(_,R),ec=null!==(n=es.max)&&void 0!==n?n:x,eu=Number(ec)>0,ed=es.strategy($),ep=!!ec&&ed>ec,ef=function(e,t){var n=t;!K.current&&es.exceedFormatter&&es.max&&es.strategy(t)>es.max&&(n=es.exceedFormatter(t,{max:es.max}),t!==n&&el([en().selectionStart||0,en().selectionEnd||0])),G(n),(0,h.rJ)(e.currentTarget,e,S,n)},em=A;es.show&&(a=es.showFormatter?es.showFormatter({value:$,count:ed,maxLength:ec}):"".concat(ed).concat(eu?" / ".concat(ec):""),em=o.createElement(o.Fragment,null,em,o.createElement("span",{className:l()("".concat(N,"-data-count"),null==j?void 0:j.count),style:null==F?void 0:F.count},a)));var eg=!U.autoSize&&!R&&!w;return o.createElement(m.Q,{value:$,allowClear:w,handleReset:function(e){G(""),er(),(0,h.rJ)(en(),e,S)},suffix:em,prefixCls:N,classNames:(0,u.Z)((0,u.Z)({},j),{},{affixWrapper:l()(null==j?void 0:j.affixWrapper,(r={},(0,c.Z)(r,"".concat(N,"-show-count"),R),(0,c.Z)(r,"".concat(N,"-textarea-allow-clear"),w),r))}),disabled:L,focused:q,className:l()(P,ep&&"".concat(N,"-out-of-range")),style:(0,u.Z)((0,u.Z)({},M),J&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof a?a:void 0}},hidden:D},o.createElement(k,(0,s.Z)({},U,{maxLength:x,onKeyDown:function(e){var t=U.onPressEnter,n=U.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){ef(e,e.target.value)},onFocus:function(e){Y(!0),null==y||y(e)},onBlur:function(e){Y(!1),null==E||E(e)},onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:function(e){K.current=!1,ef(e,e.currentTarget.value),null==T||T(e)},className:l()(null==j?void 0:j.textarea),style:(0,u.Z)((0,u.Z)({},null==F?void 0:F.textarea),{},{resize:null==M?void 0:M.resize}),disabled:L,prefixCls:N,onResize:function(e){var t;null==B||B(e),null!==(t=en())&&void 0!==t&&t.style.height&&ee(!0)},ref:et})))}),A=n(47794),I=n(57499),N=n(17094),R=n(10693),_=n(47137),P=n(88921),M=n(94759),L=n(92935),D=n(8443),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},F=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:i,bordered:s=!0,size:c,disabled:u,status:d,allowClear:p,classNames:f,rootClassName:m,className:g,variant:h}=e,b=j(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:v,direction:y}=o.useContext(I.E_),E=(0,R.Z)(c),S=o.useContext(N.Z),{status:w,hasFeedback:x,feedbackIcon:O}=o.useContext(_.aM),k=(0,A.F)(w,d),C=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,P.n)(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}});let F=v("input",i);"object"==typeof p&&(null==p?void 0:p.clearIcon)?r=p:p&&(r={clearIcon:o.createElement(a.Z,null)});let B=(0,L.Z)(F),[U,Z,z]=(0,M.ZP)(F,B),[H,G]=(0,D.Z)(h,s);return U(o.createElement(T,Object.assign({},b,{disabled:null!=u?u:S,allowClear:r,className:l()(z,B,g,m),classNames:Object.assign(Object.assign({},f),{textarea:l()({["".concat(F,"-sm")]:"small"===E,["".concat(F,"-lg")]:"large"===E},Z,null==f?void 0:f.textarea),variant:l()({["".concat(F,"-").concat(H)]:G},(0,A.Z)(F,k)),affixWrapper:l()("".concat(F,"-textarea-affix-wrapper"),{["".concat(F,"-affix-wrapper-rtl")]:"rtl"===y,["".concat(F,"-affix-wrapper-sm")]:"small"===E,["".concat(F,"-affix-wrapper-lg")]:"large"===E,["".concat(F,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},Z)}),prefixCls:F,suffix:x&&o.createElement("span",{className:"".concat(F,"-textarea-suffix")},O),ref:C})))})},52274:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);function o(e,t){let n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}},44839:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(47137),s=n(94759),c=n(88921),u=n(14749),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=n(60688),f=r.forwardRef(function(e,t){return r.createElement(p.Z,(0,u.Z)({},e,{ref:t,icon:d}))}),m=n(41311),g=n(35704),h=n(74084),b=n(52274),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=e=>e?r.createElement(m.Z,null):r.createElement(f,null),E={click:"onClick",hover:"onMouseOver"},S=r.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[l,s]=(0,r.useState)(()=>!!o&&n.visible),u=(0,r.useRef)(null);r.useEffect(()=>{o&&s(n.visible)},[o,n]);let d=(0,b.Z)(u),p=()=>{let{disabled:t}=e;t||(l&&d(),s(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:f,prefixCls:m,inputPrefixCls:S,size:w}=e,x=v(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=r.useContext(i.E_),k=O("input",S),C=O("input-password",m),T=n&&(t=>{let{action:n="click",iconRender:o=y}=e,a=E[n]||"",i=o(l);return r.cloneElement(r.isValidElement(i)?i:r.createElement("span",null,i),{[a]:p,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}})})(C),A=a()(C,f,{["".concat(C,"-").concat(w)]:!!w}),I=Object.assign(Object.assign({},(0,g.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:A,prefixCls:k,suffix:T});return w&&(I.size=w),r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(t,u)},I))});var w=n(96871),x=n(65823),O=n(1861),k=n(10693),C=n(92801),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=r.forwardRef((e,t)=>{let n;let{prefixCls:o,inputPrefixCls:l,className:s,size:u,suffix:d,enterButton:p=!1,addonAfter:f,loading:m,disabled:g,onSearch:b,onChange:v,onCompositionStart:y,onCompositionEnd:E}=e,S=T(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:A,direction:I}=r.useContext(i.E_),N=r.useRef(!1),R=A("input-search",o),_=A("input",l),{compactSize:P}=(0,C.ri)(R,I),M=(0,k.Z)(e=>{var t;return null!==(t=null!=u?u:P)&&void 0!==t?t:e}),L=r.useRef(null),D=e=>{var t;document.activeElement===(null===(t=L.current)||void 0===t?void 0:t.input)&&e.preventDefault()},j=e=>{var t,n;b&&b(null===(n=null===(t=L.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},F="boolean"==typeof p?r.createElement(w.Z,null):null,B="".concat(R,"-button"),U=p||{},Z=U.type&&!0===U.type.__ANT_BUTTON;n=Z||"button"===U.type?(0,x.Tm)(U,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==U?void 0:U.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),j(e)},key:"enterButton"},Z?{className:B,size:M}:{})):r.createElement(O.ZP,{className:B,type:p?"primary":void 0,size:M,disabled:g,key:"enterButton",onMouseDown:D,onClick:j,loading:m,icon:F},p),f&&(n=[n,(0,x.Tm)(f,{key:"addonAfter"})]);let z=a()(R,{["".concat(R,"-rtl")]:"rtl"===I,["".concat(R,"-").concat(M)]:!!M,["".concat(R,"-with-button")]:!!p},s);return r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(L,t),onPressEnter:e=>{N.current||m||j(e)}},S,{size:M,onCompositionStart:e=>{N.current=!0,null==y||y(e)},onCompositionEnd:e=>{N.current=!1,null==E||E(e)},prefixCls:_,addonAfter:n,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),v&&v(e)},className:z,disabled:g}))});var I=n(78578);let N=c.Z;N.Group=e=>{let{getPrefixCls:t,direction:n}=(0,r.useContext)(i.E_),{prefixCls:o,className:c}=e,u=t("input-group",o),d=t("input"),[p,f]=(0,s.ZP)(d),m=a()(u,{["".concat(u,"-lg")]:"large"===e.size,["".concat(u,"-sm")]:"small"===e.size,["".concat(u,"-compact")]:e.compact,["".concat(u,"-rtl")]:"rtl"===n},f,c),g=(0,r.useContext)(l.aM),h=(0,r.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return p(r.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(l.aM.Provider,{value:h},e.children)))},N.Search=A,N.TextArea=I.Z,N.Password=S;var R=N},94759:function(e,t,n){n.d(t,{ik:function(){return f},nz:function(){return u},s7:function(){return m}});var r=n(8985),o=n(11303),a=n(12288),i=n(76585),l=n(80316),s=n(85980),c=n(61892);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:"".concat((0,r.bf)(t)," ").concat((0,r.bf)(a)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},p=e=>({padding:"".concat((0,r.bf)(e.paddingBlockSM)," ").concat((0,r.bf)(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat((0,r.bf)(e.paddingBlock)," ").concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},u(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},d(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},p(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat((0,r.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),f(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat((0,r.bf)(e.inputAffixPadding))}}}},b=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},f(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{["".concat(l).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:i}}})}},v=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},(0,c.ir)(e)),(0,c.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{let{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover,&:focus,&:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},E=e=>{let{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{["> ".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(r,"-has-feedback")]:{["".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},S=e=>{let{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}};t.ZP=(0,i.I$)("Input",e=>{let t=(0,l.TS)(e,(0,s.e)(e));return[g(t),E(t),b(t),v(t),y(t),S(t),(0,a.c)(t)]},s.T)},85980:function(e,t,n){n.d(t,{T:function(){return a},e:function(){return o}});var r=n(80316);function o(e){return(0,r.TS)(e,{inputAffixPadding:e.paddingXXS})}let a=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:"0 0 0 ".concat(g,"px ").concat(h),errorActiveShadow:"0 0 0 ".concat(g,"px ").concat(b),warningActiveShadow:"0 0 0 ".concat(g,"px ").concat(v),hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}}},61892:function(e,t,n){n.d(t,{H8:function(){return g},Mu:function(){return p},S5:function(){return b},ir:function(){return d},qG:function(){return c}});var r=n(8985),o=n(80316);let a=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},a((0,o.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},l(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},i(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),f=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},f(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})})},8407:function(e,t,n){let r;n.d(t,{D:function(){return E},Z:function(){return w}});var o=n(64090),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},l=n(60688),s=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},u=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(50459),p=n(16480),f=n.n(p),m=n(35704),g=e=>!isNaN(parseFloat(e))&&isFinite(e),h=n(57499),b=n(31747),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=o.createContext({}),S=(r=0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r+=1,"".concat(e).concat(r)});var w=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:l=!1,theme:c="dark",style:p={},collapsible:w=!1,reverseArrow:x=!1,width:O=200,collapsedWidth:k=80,zeroWidthTriggerStyle:C,breakpoint:T,onCollapse:A,onBreakpoint:I}=e,N=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:R}=(0,o.useContext)(b.V),[_,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[M,L]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);let D=(t,n)=>{"collapsed"in e||P(t),null==A||A(t,n)},j=(0,o.useRef)();j.current=e=>{L(e.matches),null==I||I(e.matches),_!==e.matches&&D(e.matches,"responsive")},(0,o.useEffect)(()=>{let e;function t(e){return j.current(e)}{let{matchMedia:n}=window;if(n&&T&&T in y){e=n("screen and (max-width: ".concat(y[T],")"));try{e.addEventListener("change",t)}catch(n){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(n){null==e||e.removeListener(t)}}},[T]),(0,o.useEffect)(()=>{let e=S("ant-sider-");return R.addSider(e),()=>R.removeSider(e)},[]);let F=()=>{D(!_,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(h.E_),U=o.useMemo(()=>({siderCollapsed:_}),[_]);return o.createElement(E.Provider,{value:U},(()=>{let e=B("layout-sider",n),l=(0,m.Z)(N,["collapsed"]),h=_?k:O,b=g(h)?"".concat(h,"px"):String(h),v=0===parseFloat(String(k||0))?o.createElement("span",{onClick:F,className:f()("".concat(e,"-zero-width-trigger"),"".concat(e,"-zero-width-trigger-").concat(x?"right":"left")),style:C},a||o.createElement(s,null)):null,y={expanded:x?o.createElement(d.Z,null):o.createElement(u,null),collapsed:x?o.createElement(u,null):o.createElement(d.Z,null)}[_?"collapsed":"expanded"],E=null!==a?v||o.createElement("div",{className:"".concat(e,"-trigger"),onClick:F,style:{width:b}},a||y):null,S=Object.assign(Object.assign({},p),{flex:"0 0 ".concat(b),maxWidth:b,minWidth:b,width:b}),T=f()(e,"".concat(e,"-").concat(c),{["".concat(e,"-collapsed")]:!!_,["".concat(e,"-has-trigger")]:w&&null!==a&&!v,["".concat(e,"-below")]:!!M,["".concat(e,"-zero-width")]:0===parseFloat(b)},r);return o.createElement("aside",Object.assign({className:T},l,{style:S,ref:t}),o.createElement("div",{className:"".concat(e,"-children")},i),w||M&&v?E:null)})())})},31747:function(e,t,n){n.d(t,{V:function(){return r}});let r=n(64090).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},33509:function(e,t,n){n.d(t,{default:function(){return k}});var r=n(63787),o=n(64090),a=n(16480),i=n.n(a),l=n(35704),s=n(57499),c=n(31747),u=n(33054),d=n(8407),p=n(8985),f=n(76585),m=e=>{let{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{["".concat(t,"-sider-light")]:{background:r,["".concat(t,"-sider-trigger")]:{color:a,background:o},["".concat(t,"-sider-zero-width-trigger")]:{color:a,background:o,border:"1px solid ".concat(n),borderInlineStart:0}}}};let g=e=>{let{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:v,borderRadius:y,bodyBg:E,headerBg:S,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(h,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:(0,p.bf)(d),textAlign:"center",background:i,cursor:"pointer",transition:"all ".concat(h)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(b," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(b),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},m(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:l,padding:s,color:c,lineHeight:(0,p.bf)(l),background:S,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:r,fontSize:v,background:a},["".concat(n,"-content")]:{flex:"auto",minHeight:0}}};var h=(0,f.I$)("Layout",e=>[g(e)],e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(c,"px"),headerColor:o,footerPadding:"".concat(a,"px ").concat(c,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef((r,a)=>o.createElement(e,Object.assign({ref:a,suffixCls:t,tagName:n},r)))}let y=o.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=b(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=o.useContext(s.E_),d=u("layout",n),[p,f,m]=h(d),g=r?"".concat(d,"-").concat(r):d;return p(o.createElement(l,Object.assign({className:i()(n||g,a,f,m),ref:t},c)))}),E=o.forwardRef((e,t)=>{let{direction:n}=o.useContext(s.E_),[a,p]=o.useState([]),{prefixCls:f,className:m,rootClassName:g,children:v,hasSider:y,tagName:E,style:S}=e,w=b(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,l.Z)(w,["suffixCls"]),{getPrefixCls:O,layout:k}=o.useContext(s.E_),C=O("layout",f),T="boolean"==typeof y?y:!!a.length||(0,u.Z)(v).some(e=>e.type===d.Z),[A,I,N]=h(C),R=i()(C,{["".concat(C,"-has-sider")]:T,["".concat(C,"-rtl")]:"rtl"===n},null==k?void 0:k.className,m,g,I,N),_=o.useMemo(()=>({siderHook:{addSider:e=>{p(t=>[].concat((0,r.Z)(t),[e]))},removeSider:e=>{p(t=>t.filter(t=>t!==e))}}}),[]);return A(o.createElement(c.V.Provider,{value:_},o.createElement(E,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},null==k?void 0:k.style),S)},x),v)))}),S=v({tagName:"div",displayName:"Layout"})(E),w=v({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=v({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),O=v({suffixCls:"content",tagName:"main",displayName:"Content"})(y);S.Header=w,S.Footer=x,S.Content=O,S.Sider=d.Z,S._InternalSiderContext=d.D;var k=S},33302:function(e,t,n){let r=(0,n(64090).createContext)(void 0);t.Z=r},79474:function(e,t,n){n.d(t,{Z:function(){return i}});var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let o={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},r)},a="${label} is not a valid ${type}";var i={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:o,TimePicker:r,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},70595:function(e,t,n){var r=n(64090),o=n(33302),a=n(79474);t.Z=(e,t)=>{let n=r.useContext(o.Z);return[r.useMemo(()=>{var r;let o=t||a.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?a.Z.locale:e},[n])]}},81642:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(64090),o=n(48563),a=n(92801),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let l=r.createContext(null),s=r.forwardRef((e,t)=>{let{children:n}=e,s=i(e,["children"]),c=r.useContext(l),u=r.useMemo(()=>Object.assign(Object.assign({},c),s),[c,s.prefixCls,s.mode,s.selectable,s.rootClassName]),d=(0,o.t4)(n),p=(0,o.x1)(t,d?n.ref:null);return r.createElement(l.Provider,{value:u},r.createElement(a.BR,null,d?r.cloneElement(n,{ref:p}):n))});t.Z=l},95781:function(e,t,n){n.d(t,{Z:function(){return tg}});var r=n(64090),o=n(14749),a=n(50833),i=n(5239),l=n(63787),s=n(80406),c=n(6787),u=n(16480),d=n.n(u),p=n(54739),f=n(44329),m=n(92536),g=n(53850),h=n(89542),b=r.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(r.useContext(b),e)}var E=n(61475),S=["children","locked"],w=r.createContext(null);function x(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,S),a=r.useContext(w),l=(0,E.Z)(function(){var e;return e=(0,i.Z)({},a),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[a,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,m.Z)(e[1],t[1],!0))});return r.createElement(w.Provider,{value:l},t)}var O=r.createContext(null);function k(){return r.useContext(O)}var C=r.createContext([]);function T(e){var t=r.useContext(C);return r.useMemo(function(){return void 0!==e?[].concat((0,l.Z)(t),[e]):t},[t,e])}var A=r.createContext(null),I=r.createContext({}),N=n(73193);function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var _=n(4295),P=n(19223),M=_.Z.LEFT,L=_.Z.RIGHT,D=_.Z.UP,j=_.Z.DOWN,F=_.Z.ENTER,B=_.Z.ESC,U=_.Z.HOME,Z=_.Z.END,z=[D,j,M,L];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,l.Z)(e.querySelectorAll("*")).filter(function(e){return R(e,t)});return R(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var $=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(v(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},W="__RC_UTIL_PATH_SPLIT__",V=function(e){return e.join(W)},q="rc-menu-more";function Y(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(O.motionAppear=!1);var k=O.onVisibleChanged;return(O.onVisibleChanged=function(e){return h.current||e||E(!0),null==k?void 0:k(e)},y)?null:r.createElement(x,{mode:c,locked:!h.current},r.createElement(eC.ZP,(0,o.Z)({visible:S},O,{forceRender:p,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(e){var n=e.className,o=e.style;return r.createElement(eh,{id:t,className:n,style:o},l)}))}var eA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eI=["active"],eN=function(e){var t,n=e.style,l=e.className,u=e.title,f=e.eventKey,m=(e.warnKey,e.disabled),g=e.internalPopupClose,h=e.children,b=e.itemIcon,v=e.expandIcon,E=e.popupClassName,S=e.popupOffset,O=e.popupStyle,k=e.onClick,C=e.onMouseEnter,N=e.onMouseLeave,R=e.onTitleClick,_=e.onTitleMouseEnter,P=e.onTitleMouseLeave,M=(0,c.Z)(e,eA),L=y(f),D=r.useContext(w),j=D.prefixCls,F=D.mode,B=D.openKeys,U=D.disabled,Z=D.overflowDisabled,z=D.activeKey,H=D.selectedKeys,G=D.itemIcon,$=D.expandIcon,W=D.onItemClick,V=D.onOpenChange,q=D.onActive,K=r.useContext(I)._internalRenderSubMenuItem,X=r.useContext(A).isSubPathKey,Q=T(),J="".concat(j,"-submenu"),ee=U||m,et=r.useRef(),en=r.useRef(),er=null!=v?v:$,el=B.includes(f),ec=!Z&&el,eu=X(H,f),ed=eo(f,ee,_,P),ep=ed.active,ef=(0,c.Z)(ed,eI),em=r.useState(!1),eg=(0,s.Z)(em,2),eb=eg[0],ev=eg[1],ey=function(e){ee||ev(e)},eE=r.useMemo(function(){return ep||"inline"!==F&&(eb||X([z],f))},[F,ep,z,eb,f,X]),eS=ea(Q.length),ew=Y(function(e){null==k||k(es(e)),W(e)}),ex=L&&"".concat(L,"-popup"),eO=r.createElement("div",(0,o.Z)({role:"menuitem",style:eS,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":Z&&L?null:L,"aria-expanded":ec,"aria-haspopup":!0,"aria-controls":ex,"aria-disabled":ee,onClick:function(e){ee||(null==R||R({key:f,domEvent:e}),"inline"===F&&V(f,!el))},onFocus:function(){q(f)}},ef),u,r.createElement(ei,{icon:"horizontal"!==F?er:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ec,isSubMenu:!0})},r.createElement("i",{className:"".concat(J,"-arrow")}))),eC=r.useRef(F);if("inline"!==F&&Q.length>1?eC.current="vertical":eC.current=F,!Z){var eN=eC.current;eO=r.createElement(ek,{mode:eN,prefixCls:J,visible:!g&&ec&&"inline"!==F,popupClassName:E,popupOffset:S,popupStyle:O,popup:r.createElement(x,{mode:"horizontal"===eN?"vertical":eN},r.createElement(eh,{id:ex,ref:en},h)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(f,e)}},eO)}var eR=r.createElement(p.Z.Item,(0,o.Z)({role:"none"},M,{component:"li",style:n,className:d()(J,"".concat(J,"-").concat(F),l,(t={},(0,a.Z)(t,"".concat(J,"-open"),ec),(0,a.Z)(t,"".concat(J,"-active"),eE),(0,a.Z)(t,"".concat(J,"-selected"),eu),(0,a.Z)(t,"".concat(J,"-disabled"),ee),t)),onMouseEnter:function(e){ey(!0),null==C||C({key:f,domEvent:e})},onMouseLeave:function(e){ey(!1),null==N||N({key:f,domEvent:e})}}),eO,!Z&&r.createElement(eT,{id:ex,open:ec,keyPath:Q},h));return K&&(eR=K(eR,e,{selected:eu,active:eE,open:ec,disabled:ee})),r.createElement(x,{onItemClick:ew,mode:"horizontal"===F?"vertical":F,itemIcon:null!=b?b:G,expandIcon:er},eR)};function eR(e){var t,n=e.eventKey,o=e.children,a=T(n),i=ev(o,a),l=k();return r.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]),t=l?i:r.createElement(eN,e,i),r.createElement(C.Provider,{value:a},t)}var e_=n(6976),eP=["className","title","eventKey","children"],eM=["children"],eL=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=(0,c.Z)(e,eP),l=r.useContext(w).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},a))};function eD(e){var t=e.children,n=(0,c.Z)(e,eM),o=ev(t,T(n.eventKey));return k()?o:r.createElement(eL,(0,en.Z)(n,["warnKey"]),o)}function ej(e){var t=e.className,n=e.style,o=r.useContext(w).prefixCls;return k()?null:r.createElement("li",{role:"separator",className:d()("".concat(o,"-item-divider"),t),style:n})}var eF=["label","children","key","type"],eB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eU=[],eZ=r.forwardRef(function(e,t){var n,u,g,v,y,E,S,w,k,C,T,N,R,_,Q,J,ee,et,en,er,eo,ea,ei,el,ec,eu,ed,ep=e.prefixCls,ef=void 0===ep?"rc-menu":ep,eg=e.rootClassName,eh=e.style,eb=e.className,ey=e.tabIndex,eE=e.items,eS=e.children,ew=e.direction,ex=e.id,eO=e.mode,ek=void 0===eO?"vertical":eO,eC=e.inlineCollapsed,eT=e.disabled,eA=e.disabledOverflow,eI=e.subMenuOpenDelay,eN=e.subMenuCloseDelay,eP=e.forceSubMenuRender,eM=e.defaultOpenKeys,eL=e.openKeys,eZ=e.activeKey,ez=e.defaultActiveFirst,eH=e.selectable,eG=void 0===eH||eH,e$=e.multiple,eW=void 0!==e$&&e$,eV=e.defaultSelectedKeys,eq=e.selectedKeys,eY=e.onSelect,eK=e.onDeselect,eX=e.inlineIndent,eQ=e.motion,eJ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e4=e.expandIcon,e3=e.overflowedIndicator,e6=void 0===e3?"...":e3,e5=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e9=e.onClick,e7=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,c.Z)(e,eB),to=r.useMemo(function(){var e;return e=eS,eE&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,e_.Z)(t)){var a=t.label,i=t.children,l=t.key,s=t.type,u=(0,c.Z)(t,eF),d=null!=l?l:"tmp-".concat(n);return i||"group"===s?"group"===s?r.createElement(eD,(0,o.Z)({key:d},u,{title:a}),e(i)):r.createElement(eR,(0,o.Z)({key:d},u,{title:a}),e(i)):"divider"===s?r.createElement(ej,(0,o.Z)({key:d},u)):r.createElement(em,(0,o.Z)({key:d},u),a)}return null}).filter(function(e){return e})}(eE)),ev(e,eU)},[eS,eE]),ta=r.useState(!1),ti=(0,s.Z)(ta,2),tl=ti[0],ts=ti[1],tc=r.useRef(),tu=(n=(0,f.Z)(ex,{value:ex}),g=(u=(0,s.Z)(n,2))[0],v=u[1],r.useEffect(function(){X+=1;var e="".concat(K,"-").concat(X);v("rc-menu-uuid-".concat(e))},[]),g),td="rtl"===ew,tp=(0,f.Z)(eM,{value:eL,postState:function(e){return e||eU}}),tf=(0,s.Z)(tp,2),tm=tf[0],tg=tf[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tg(e),null==e7||e7(e)}t?(0,h.flushSync)(n):n()},tb=r.useState(tm),tv=(0,s.Z)(tb,2),ty=tv[0],tE=tv[1],tS=r.useRef(!1),tw=r.useMemo(function(){return("inline"===ek||"vertical"===ek)&&eC?["vertical",eC]:[ek,!1]},[ek,eC]),tx=(0,s.Z)(tw,2),tO=tx[0],tk=tx[1],tC="inline"===tO,tT=r.useState(tO),tA=(0,s.Z)(tT,2),tI=tA[0],tN=tA[1],tR=r.useState(tk),t_=(0,s.Z)(tR,2),tP=t_[0],tM=t_[1];r.useEffect(function(){tN(tO),tM(tk),tS.current&&(tC?tg(ty):th(eU))},[tO,tk]);var tL=r.useState(0),tD=(0,s.Z)(tL,2),tj=tD[0],tF=tD[1],tB=tj>=to.length-1||"horizontal"!==tI||eA;r.useEffect(function(){tC&&tE(tm)},[tm]),r.useEffect(function(){return tS.current=!0,function(){tS.current=!1}},[]);var tU=(y=r.useState({}),E=(0,s.Z)(y,2)[1],S=(0,r.useRef)(new Map),w=(0,r.useRef)(new Map),k=r.useState([]),T=(C=(0,s.Z)(k,2))[0],N=C[1],R=(0,r.useRef)(0),_=(0,r.useRef)(!1),Q=function(){_.current||E({})},J=(0,r.useCallback)(function(e,t){var n=V(t);w.current.set(n,e),S.current.set(e,n),R.current+=1;var r=R.current;Promise.resolve().then(function(){r===R.current&&Q()})},[]),ee=(0,r.useCallback)(function(e,t){var n=V(t);w.current.delete(n),S.current.delete(e)},[]),et=(0,r.useCallback)(function(e){N(e)},[]),en=(0,r.useCallback)(function(e,t){var n=(S.current.get(e)||"").split(W);return t&&T.includes(n[0])&&n.unshift(q),n},[T]),er=(0,r.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,r.useCallback)(function(e){var t="".concat(S.current.get(e)).concat(W),n=new Set;return(0,l.Z)(w.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(w.current.get(e))}),n},[]),r.useEffect(function(){return function(){_.current=!0}},[]),{registerPath:J,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,l.Z)(S.current.keys());return T.length&&e.push(q),e},getSubPathKeys:eo}),tZ=tU.registerPath,tz=tU.unregisterPath,tH=tU.refreshOverflowKeys,tG=tU.isSubPathKey,t$=tU.getKeyPath,tW=tU.getKeys,tV=tU.getSubPathKeys,tq=r.useMemo(function(){return{registerPath:tZ,unregisterPath:tz}},[tZ,tz]),tY=r.useMemo(function(){return{isSubPathKey:tG}},[tG]);r.useEffect(function(){tH(tB?eU:to.slice(tj+1).map(function(e){return e.key}))},[tj,tB]);var tK=(0,f.Z)(eZ||ez&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:eZ}),tX=(0,s.Z)(tK,2),tQ=tX[0],tJ=tX[1],t0=Y(function(e){tJ(e)}),t1=Y(function(){tJ(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r=$(tW(),tu),o=r.elements,a=r.key2element,i=r.element2key,l=H(tc.current,o),s=null!=tQ?tQ:l[0]?i.get(l[0]):null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,c=a.get(s);s&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}});var t2=(0,f.Z)(eV||[],{value:eq,postState:function(e){return Array.isArray(e)?e:null==e?eU:[e]}}),t4=(0,s.Z)(t2,2),t3=t4[0],t6=t4[1],t5=function(e){if(eG){var t,n=e.key,r=t3.includes(n);t6(t=eW?r?t3.filter(function(e){return e!==n}):[].concat((0,l.Z)(t3),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eK||eK(o):null==eY||eY(o)}!eW&&tm.length&&"inline"!==tI&&th(eU)},t8=Y(function(e){null==e9||e9(es(e)),t5(e)}),t9=Y(function(e,t){var n=tm.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tI){var r=tV(e);n=n.filter(function(e){return!r.has(e)})}(0,m.Z)(tm,n,!0)||th(n,!0)}),t7=(ea=function(e,t){var n=null!=t?t:!tm.includes(e);t9(e,n)},ei=r.useRef(),(el=r.useRef()).current=tQ,ec=function(){P.Z.cancel(ei.current)},r.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(z,[F,B,U,Z]).includes(t)){var n=tW(),r=$(n,tu),o=r,i=o.elements,l=o.key2element,s=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(tQ),i),u=s.get(c),d=function(e,t,n,r){var o,i,l,s,c="prev",u="next",d="children",p="parent";if("inline"===e&&r===F)return{inlineTrigger:!0};var f=(o={},(0,a.Z)(o,D,c),(0,a.Z)(o,j,u),o),m=(i={},(0,a.Z)(i,M,n?u:c),(0,a.Z)(i,L,n?c:u),(0,a.Z)(i,j,d),(0,a.Z)(i,F,d),i),g=(l={},(0,a.Z)(l,D,c),(0,a.Z)(l,j,u),(0,a.Z)(l,F,d),(0,a.Z)(l,B,p),(0,a.Z)(l,M,n?d:p),(0,a.Z)(l,L,n?p:d),l);switch(null===(s=({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(tI,1===t$(u,!0).length,td,t);if(!d&&t!==U&&t!==Z)return;(z.includes(t)||[U,Z].includes(t))&&e.preventDefault();var p=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=s.get(e);tJ(r),ec(),ei.current=(0,P.Z)(function(){el.current===r&&t.focus()})}};if([U,Z].includes(t)||d.sibling||!c){var f,m=H(f=c&&"inline"!==tI?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):tc.current,i);p(t===U?m[0]:t===Z?m[m.length-1]:G(f,i,c,d.offset))}else if(d.inlineTrigger)ea(u);else if(d.offset>0)ea(u,!0),ec(),ei.current=(0,P.Z)(function(){r=$(n,tu);var e=c.getAttribute("aria-controls");p(G(document.getElementById(e),r.elements))},5);else if(d.offset<0){var g=t$(u,!0),h=g[g.length-2],b=l.get(h);ea(h,!1),p(b)}}null==te||te(e)});r.useEffect(function(){ts(!0)},[]);var ne=r.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tI||eA?to:to.map(function(e,t){return r.createElement(x,{key:e.key,overflowDisabled:t>tj},e)}),nn=r.createElement(p.Z,(0,o.Z)({id:ex,ref:tc,prefixCls:"".concat(ef,"-overflow"),component:"ul",itemComponent:em,className:d()(ef,"".concat(ef,"-root"),"".concat(ef,"-").concat(tI),eb,(ed={},(0,a.Z)(ed,"".concat(ef,"-inline-collapsed"),tP),(0,a.Z)(ed,"".concat(ef,"-rtl"),td),ed),eg),dir:ew,style:eh,role:"menu",tabIndex:void 0===ey?0:ey,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return r.createElement(eR,{eventKey:q,title:e6,disabled:tB,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tI||eA?p.Z.INVALIDATE:p.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tF(e)},onKeyDown:t7},tr));return r.createElement(I.Provider,{value:ne},r.createElement(b.Provider,{value:tu},r.createElement(x,{prefixCls:ef,rootClassName:eg,mode:tI,openKeys:tm,rtl:td,disabled:eT,motion:tl?eQ:null,defaultMotions:tl?eJ:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t3,inlineIndent:void 0===eX?24:eX,subMenuOpenDelay:void 0===eI?.1:eI,subMenuCloseDelay:void 0===eN?.1:eN,forceSubMenuRender:eP,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e4,onItemClick:t8,onOpenChange:t9},r.createElement(A.Provider,{value:tY},nn),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(O.Provider,{value:tq},to)))))});eZ.Item=em,eZ.SubMenu=eR,eZ.ItemGroup=eD,eZ.Divider=ej;var ez=n(8407),eH=n(31413),eG=n(48563),e$=n(47387),eW=n(65823),eV=n(57499),eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eY=e=>{let{prefixCls:t,className:n,dashed:o}=e,a=eq(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=r.useContext(eV.E_),l=i("menu",t),s=d()({["".concat(l,"-item-divider-dashed")]:!!o},n);return r.createElement(ej,Object.assign({className:s},a))},eK=n(1460);let eX=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var eQ=e=>{var t;let{className:n,children:o,icon:a,title:i,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(eX),{siderCollapsed:m}=r.useContext(ez.D),g=i;void 0===i?g=c?o:"":!1===i&&(g="");let h={title:g};m||f||(h.title=null,h.open=!1);let b=(0,eb.Z)(o).length,v=r.createElement(em,Object.assign({},(0,en.Z)(e,["title","icon","danger"]),{className:d()({["".concat(s,"-item-danger")]:l,["".concat(s,"-item-only-child")]:(a?b+1:b)===1},n),title:"string"==typeof i?i:void 0}),(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),(e=>{let t=r.createElement("span",{className:"".concat(s,"-title-content")},o);return(!a||(0,eW.l$)(o)&&"span"===o.type)&&o&&e&&c&&"string"==typeof o?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},o.charAt(0)):t})(f));return p||(v=r.createElement(eK.Z,Object.assign({},h,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),v)),v},eJ=n(51761),e0=e=>{var t;let n;let{popupClassName:o,icon:a,title:i,theme:l}=e,s=r.useContext(eX),{prefixCls:c,inlineCollapsed:u,theme:p}=s,f=T();if(a){let e=(0,eW.l$)(i)&&"span"===i.type;n=r.createElement(r.Fragment,null,(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),e?i:r.createElement("span",{className:"".concat(c,"-title-content")},i))}else n=u&&!f.length&&i&&"string"==typeof i?r.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},i.charAt(0)):r.createElement("span",{className:"".concat(c,"-title-content")},i);let m=r.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=(0,eJ.Cn)("Menu");return r.createElement(eX.Provider,{value:m},r.createElement(eR,Object.assign({},(0,en.Z)(e,["icon"]),{title:n,popupClassName:d()(c,o,"".concat(c,"-").concat(l||p)),popupStyle:{zIndex:g}})))},e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},e2=n(81642),e4=n(8985),e3=n(6336),e6=n(11303),e5=n(46154),e8=n(202),e9=n(58854),e7=n(76585),te=n(80316),tt=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat((0,e4.bf)(a)," ").concat(i," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},tn=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(n),")")}}}}};let tr=e=>Object.assign({},(0,e6.oN)(e));var to=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:O,dangerItemSelectedBg:k,popupBg:C,itemHoverBg:T,itemActiveBg:A,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:P}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:i,["&".concat(n,"-root:focus-visible")]:Object.assign({},tr(e)),["".concat(n,"-item-group-title")]:{color:a},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(E," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:b}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}}},["".concat(n,"-item-danger")]:{color:S,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:w}},["&".concat(n,"-item:active")]:{background:O}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:x},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:s,["&".concat(n,"-item-danger")]:{backgroundColor:k}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},tr(e))},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:I},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:"".concat((0,e4.bf)(c)," solid transparent"),transition:"border-color ".concat(p," ").concat(f),content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat((0,e4.bf)(d)," ").concat(v," ").concat(y)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat((0,e4.bf)(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(h," ").concat(m),"opacity ".concat(h," ").concat(m)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:x}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(h," ").concat(f),"opacity ".concat(h," ").concat(f)].join(",")}}}}}};let ta=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(a).add(o).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:c}}};var ti=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:(0,e4.bf)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ta(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ta(e)),{boxShadow:m})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:a,maxHeight:"calc(100vh - ".concat((0,e4.bf)(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(p),"background ".concat(p),"padding ".concat(l," ").concat(s)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:b,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:b}},{["".concat(t,"-inline-collapsed")]:{width:g,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat((0,e4.bf)(e.calc(d).div(2).equal())," - ").concat((0,e4.bf)(u),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:h,lineHeight:(0,e4.bf)(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},e6.vS),{paddingInline:f})}}]};let tl=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(r," ").concat(a),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},(0,e6.Ro)()),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},ts=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(i),")")}}}}},tc=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},(0,e6.dF)()),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,e6.Wf)(e)),(0,e6.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat((0,e4.bf)(l)," ").concat((0,e4.bf)(s)),fontSize:y,lineHeight:v,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(i),"padding ".concat(o," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(o),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tl(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat((0,e4.bf)(e.calc(r).mul(2).equal())," ").concat((0,e4.bf)(s))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:"".concat((0,e4.bf)(b)," 0 0"),zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:p},tl(e)),ts(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:f},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(i)}})}}),ts(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(g),")")},"&::after":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat((0,e4.bf)(e.calc(m).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(g),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},tu=e=>{var t,n,r;let{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:E,padding:S,fontSize:w,controlHeightSM:x,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:C}=e,T=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new e3.C(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:"".concat(1.15*b,"px"),iconSize:w,iconMarginInlineEnd:x-w,collapsedIconSize:O,groupTitleFontSize:w,darkItemDisabledColor:new e3.C(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:a,itemWidth:T?"calc(100% + ".concat(A,"px)"):"calc(100% - ".concat(2*I,"px)")}};var td=n(92935),tp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tf=(0,r.forwardRef)((e,t)=>{var n,o;let a;let i=r.useContext(e2.Z),l=i||{},{getPrefixCls:s,getPopupContainer:c,direction:u,menu:p}=r.useContext(eV.E_),f=s(),{prefixCls:m,className:g,style:h,theme:b="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:E,siderCollapsed:S,items:w,children:x,rootClassName:O,mode:k,selectable:C,onClick:T,overflowedIndicatorPopupClassName:A}=e,I=tp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=(0,en.Z)(I,["collapsedWidth"]),R=r.useMemo(()=>w?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:o,children:a,key:i,type:l}=t,s=e1(t,["label","children","key","type"]),c=null!=i?i:"tmp-".concat(n);return a||"group"===l?"group"===l?r.createElement(eD,Object.assign({key:c},s,{title:o}),e(a)):r.createElement(e0,Object.assign({key:c},s,{title:o}),e(a)):"divider"===l?r.createElement(eY,Object.assign({key:c},s)):r.createElement(eQ,Object.assign({key:c},s),o)}return null}).filter(e=>e)}(w):w,[w])||x;null===(n=l.validator)||void 0===n||n.call(l,{mode:k});let _=(0,eG.zX)(function(){var e;null==T||T.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)}),P=l.mode||k,M=null!=C?C:l.selectable,L=r.useMemo(()=>void 0!==S?S:E,[E,S]),D={horizontal:{motionName:"".concat(f,"-slide-up")},inline:(0,e$.Z)(f),other:{motionName:"".concat(f,"-zoom-big")}},j=s("menu",m||l.prefixCls),F=(0,td.Z)(j),[B,U,Z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,e7.I$)("Menu",e=>{let{colorBgElevated:t,colorPrimary:n,colorTextLightSolid:r,controlHeightLG:o,fontSize:a,darkItemColor:i,darkDangerItemColor:l,darkItemBg:s,darkSubMenuItemBg:c,darkItemSelectedColor:u,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:f,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:h,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:y,popupBg:E,darkPopupBg:S}=e,w=e.calc(a).div(7).mul(5).equal(),x=(0,te.TS)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:t,calc:e.calc,popupBg:E}),O=(0,te.TS)(x,{itemColor:i,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:u,itemBg:s,popupBg:S,subMenuItemBg:c,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:h,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:v,dangerItemActiveBg:y,dangerItemSelectedBg:p,menuSubMenuBg:c,horizontalItemSelectedColor:r,horizontalItemSelectedBg:n});return[tc(x),tt(x),ti(x),to(x,"light"),to(O,"dark"),tn(x),(0,e5.Z)(x),(0,e8.oN)(x,"slide-up"),(0,e8.oN)(x,"slide-down"),(0,e9._y)(x,"zoom-big")]},tu,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}(j,F,!i),z=d()("".concat(j,"-").concat(b),null==p?void 0:p.className,g);if("function"==typeof v)a=v;else if(null===v||!1===v)a=null;else if(null===l.expandIcon||!1===l.expandIcon)a=null;else{let e=null!=v?v:l.expandIcon;a=(0,eW.Tm)(e,{className:d()("".concat(j,"-submenu-expand-icon"),(0,eW.l$)(e)?null===(o=e.props)||void 0===o?void 0:o.className:"")})}let H=r.useMemo(()=>({prefixCls:j,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:y}),[j,L,u,y,b]);return B(r.createElement(e2.Z.Provider,{value:null},r.createElement(eX.Provider,{value:H},r.createElement(eZ,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(eH.Z,null),overflowedIndicatorPopupClassName:d()(j,"".concat(j,"-").concat(b),A),mode:P,selectable:M,onClick:_},N,{inlineCollapsed:L,style:Object.assign(Object.assign({},null==p?void 0:p.style),h),className:z,prefixCls:j,direction:u,defaultMotions:D,expandIcon:a,ref:t,rootClassName:d()(O,U,l.rootClassName,Z,F)}),R))))}),tm=(0,r.forwardRef)((e,t)=>{let n=(0,r.useRef)(null),o=r.useContext(ez.D);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),r.createElement(tf,Object.assign({ref:n},e,o))});tm.Item=eQ,tm.SubMenu=e0,tm.Divider=eY,tm.ItemGroup=eD;var tg=tm},80588:function(e,t,n){n.d(t,{ZP:function(){return eu}});var r=n(63787),o=n(64090),a=n(37274);let i=o.createContext({});var l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(66155),m=n(16480),g=n.n(m),h=n(80406),b=n(6787),v=n(5239),y=n(89542),E=n(14749),S=n(50833),w=n(49367),x=n(4295),O=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,l=void 0===i?4.5:i,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=e.props,f=e.onClick,m=e.onNoticeClose,b=e.times,v=e.hovering,y=o.useState(!1),w=(0,h.Z)(y,2),O=w[0],k=w[1],C=v||O,T=function(){m(s)};o.useEffect(function(){if(!C&&l>0){var e=setTimeout(function(){T()},1e3*l);return function(){clearTimeout(e)}}},[l,C,b]);var A="".concat(n,"-notice");return o.createElement("div",(0,E.Z)({},p,{ref:t,className:g()(A,a,(0,S.Z)({},"".concat(A,"-closable"),u)),style:r,onMouseEnter:function(e){var t;k(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;k(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:f}),o.createElement("div",{className:"".concat(A,"-content")},c),u&&o.createElement("a",{tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===x.Z.ENTER)&&T()},onClick:function(e){e.preventDefault(),e.stopPropagation(),T()}},void 0===d?"x":d))}),k=o.createContext({}),C=function(e){var t=e.children,n=e.classNames;return o.createElement(k.Provider,{value:{classNames:n}},t)},T=n(6976),A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,T.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},I=["className","style","classNames","styles"],N=function(e){var t,n=e.configList,a=e.placement,i=e.prefixCls,l=e.className,s=e.style,c=e.motion,u=e.onAllNoticeRemoved,d=e.onNoticeClose,p=e.stack,f=(0,o.useContext)(k).classNames,m=(0,o.useRef)({}),y=(0,o.useState)(null),x=(0,h.Z)(y,2),C=x[0],T=x[1],N=(0,o.useState)([]),R=(0,h.Z)(N,2),_=R[0],P=R[1],M=n.map(function(e){return{config:e,key:String(e.key)}}),L=A(p),D=(0,h.Z)(L,2),j=D[0],F=D[1],B=F.offset,U=F.threshold,Z=F.gap,z=j&&(_.length>0||M.length<=U),H="function"==typeof c?c(a):c;return(0,o.useEffect)(function(){j&&_.length>1&&P(function(e){return e.filter(function(e){return M.some(function(t){return e===t.key})})})},[_,M,j]),(0,o.useEffect)(function(){var e,t;j&&m.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&T(m.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])},[M,j]),o.createElement(w.V4,(0,E.Z)({key:a,className:g()(i,"".concat(i,"-").concat(a),null==f?void 0:f.list,l,(t={},(0,S.Z)(t,"".concat(i,"-stack"),!!j),(0,S.Z)(t,"".concat(i,"-stack-expanded"),z),t)),style:s,keys:M,motionAppear:!0},H,{onAllRemoved:function(){u(a)}}),function(e,t){var n=e.config,l=e.className,s=e.style,c=e.index,u=n.key,p=n.times,h=String(u),y=n.className,S=n.style,w=n.classNames,x=n.styles,k=(0,b.Z)(n,I),T=M.findIndex(function(e){return e.key===h}),A={};if(j){var N=M.length-1-(T>-1?T:c-1),R="top"===a||"bottom"===a?"-50%":"0";if(N>0){A.height=z?null===(L=m.current[h])||void 0===L?void 0:L.offsetHeight:null==C?void 0:C.offsetHeight;for(var L,D,F,U,H=0,G=0;G-1?m.current[h]=e:delete m.current[h]},prefixCls:i,classNames:w,styles:x,className:g()(y,null==f?void 0:f.notice),style:S,times:p,key:u,eventKey:u,onNoticeClose:d,hovering:j&&_.length>0})))})},R=o.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,i=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,p=e.stack,f=e.renderNotifications,m=o.useState([]),g=(0,h.Z)(m,2),b=g[0],E=g[1],S=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),E(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){E(function(t){var n,o=(0,r.Z)(t),a=o.findIndex(function(t){return t.key===e.key}),i=(0,v.Z)({},e);return a>=0?(i.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,o[a]=i):(i.times=0,o.push(i)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){E([])}}});var w=o.useState({}),x=(0,h.Z)(w,2),O=x[0],k=x[1];o.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(O).forEach(function(t){e[t]=e[t]||[]}),k(e)},[b]);var C=function(e){k(function(t){var n=(0,v.Z)({},t);return(n[e]||[]).length||delete n[e],n})},T=o.useRef(!1);if(o.useEffect(function(){Object.keys(O).length>0?T.current=!0:T.current&&(null==d||d(),T.current=!1)},[O]),!i)return null;var A=Object.keys(O);return(0,y.createPortal)(o.createElement(o.Fragment,null,A.map(function(e){var t=O[e],n=o.createElement(N,{key:e,configList:t,placement:e,prefixCls:a,className:null==c?void 0:c(e),style:null==u?void 0:u(e),motion:l,onNoticeClose:S,onAllNoticeRemoved:C,stack:p});return f?f(n,{prefixCls:a,key:e}):n})),i)}),_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],P=function(){return document.body},M=0,L=n(8985),D=n(51761),j=n(11303),F=n(76585),B=n(80316);let U=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,v="".concat(t,"-notice"),y=new L.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),E=new L.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:f,textAlign:"center",["".concat(t,"-custom-content > ").concat(n)]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},["".concat(v,"-content")]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:a},["".concat(t,"-error > ").concat(n)]:{color:i},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(v,"-wrapper")]:Object.assign({},S)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var Z=(0,F.I$)("Message",e=>[U((0,B.TS)(e,{height:150}))],e=>({zIndexPopup:e.zIndexPopupBase+D.u6+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})),z=n(92935),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let G={info:o.createElement(p.Z,null),success:o.createElement(c.Z,null),error:o.createElement(u.Z,null),warning:o.createElement(d.Z,null),loading:o.createElement(f.Z,null)},$=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return o.createElement("div",{className:g()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||G[n],o.createElement("span",null,a))};var W=n(81303),V=n(76564);function q(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let K=e=>{let{children:t,prefixCls:n}=e,r=(0,z.Z)(n),[a,i,l]=Z(n,r);return a(o.createElement(C,{classNames:{list:g()(i,l,r)}},t))},X=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(K,{prefixCls:n,key:r},e)},Q=o.forwardRef((e,t)=>{let{top:n,prefixCls:a,getContainer:i,maxCount:s,duration:c=3,rtl:u,transitionName:d,onAllRemoved:p}=e,{getPrefixCls:f,getPopupContainer:m,message:v,direction:y}=o.useContext(l.E_),E=a||f("message"),S=o.createElement("span",{className:"".concat(E,"-close-x")},o.createElement(W.Z,{className:"".concat(E,"-close-icon")})),[w,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?P:t,a=e.motion,i=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,f=(0,b.Z)(e,_),m=o.useState(),g=(0,h.Z)(m,2),v=g[0],y=g[1],E=o.useRef(),S=o.createElement(R,{container:v,ref:E,prefixCls:i,motion:a,maxCount:l,className:s,style:c,onAllRemoved:u,stack:d,renderNotifications:p}),w=o.useState([]),x=(0,h.Z)(w,2),O=x[0],k=x[1],C=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>g()({["".concat(E,"-rtl")]:null!=u?u:"rtl"===y}),motion:()=>({motionName:null!=d?d:"".concat(E,"-move-up")}),closable:!1,closeIcon:S,duration:c,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:p,renderNotifications:X});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:E,message:v})),x}),J=0;function ee(e){let t=o.useRef(null);return(0,V.ln)("Message"),[o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:a,message:i}=t.current,l="".concat(a,"-notice"),{content:s,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,h=Y(n,["content","icon","type","key","className","style","onClose"]),b=d;return null==b&&(J+=1,b="antd-message-".concat(J)),q(t=>(r(Object.assign(Object.assign({},h),{key:b,content:o.createElement($,{prefixCls:a,type:u,icon:c},s),placement:"top",className:g()(u&&"".concat(l,"-").concat(u),p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(b)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i;return"function"==typeof r?i=r:(a=r,i=o),n(Object.assign(Object.assign({onClose:i,duration:a},t&&"object"==typeof t&&"content"in t?t:{content:t}),{type:e}))}}),r},[]),o.createElement(Q,Object.assign({key:"message-holder"},e,{ref:t}))]}let et=null,en=e=>e(),er=[],eo={};function ea(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=eo,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}let ei=o.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:a}=(0,o.useContext)(l.E_),s=eo.prefixCls||a("message"),c=(0,o.useContext)(i),[u,d]=ee(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),c.message));return o.useImperativeHandle(t,()=>{let e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}}),{instance:e,sync:r}}),d}),el=o.forwardRef((e,t)=>{let[n,r]=o.useState(ea),a=()=>{r(ea)};o.useEffect(a,[]);let i=(0,s.w6)(),l=i.getRootPrefixCls(),c=i.getIconPrefixCls(),u=i.getTheme(),d=o.createElement(ei,{ref:t,sync:a,messageConfig:n});return o.createElement(s.ZP,{prefixCls:l,iconPrefixCls:c,theme:u},i.holderRender?i.holderRender(d):d)});function es(){if(!et){let e=document.createDocumentFragment(),t={fragment:e};et=t,en(()=>{(0,a.s)(o.createElement(el,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,es())})}}),e)});return}et.instance&&(er.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":en(()=>{let t=et.instance.open(Object.assign(Object.assign({},eo),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":en(()=>{null==et||et.instance.destroy(e.key)});break;default:en(()=>{var n;let o=(n=et.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),er=[])}let ec={open:function(e){let t=q(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return er.push(r),()=>{n?en(()=>{n()}):r.skipped=!0}});return es(),t},destroy:function(e){er.push({type:"destroy",key:e}),es()},config:function(e){eo=Object.assign(Object.assign({},eo),e),en(()=>{var e;null===(e=null==et?void 0:et.sync)||void 0===e||e.call(et)})},useMessage:function(e){return ee(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:a,content:i}=e,s=H(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=o.useContext(l.E_),u=t||c("message"),d=(0,z.Z)(u),[p,f,m]=Z(u,d);return p(o.createElement(O,Object.assign({},s,{prefixCls:u,className:g()(n,f,"".concat(u,"-notice-pure-panel"),m,d),eventKey:"pure",duration:null,content:o.createElement($,{prefixCls:u,type:r,icon:a},i)})))}};["success","info","warning","error","loading"].forEach(e=>{ec[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return er.push(o),()=>{r?en(()=>{r()}):o.skipped=!0}});return es(),n}(e,n)}});var eu=ec},99129:function(e,t,n){let r;n.d(t,{Z:function(){return eq}});var o=n(63787),a=n(64090),i=n(37274),l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(16480),m=n.n(f),g=n(51761),h=n(47387),b=n(70595),v=n(24750),y=n(89211),E=n(1861),S=n(51350),w=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=a.useRef(!1),f=a.useRef(null),[m,g]=(0,y.Z)(!1),h=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(g(!0),e.then(function(){g(!1,!0),h.apply(void 0,arguments),p.current=!1},e=>{if(g(!1,!0),p.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(E.ZP,Object.assign({},(0,S.nx)(t),{onClick:e=>{let t;if(!p.current){if(p.current=!0,!d){h();return}if(s){var n;if(t=d(e),u&&!((n=t)&&n.then)){p.current=!1,h(e);return}}else if(d.length)t=d(i),p.current=!1;else if(!(t=d())){h();return}b(t)}},loading:m,prefixCls:r},o,{ref:f}),n)};let x=a.createContext({}),{Provider:O}=x;var k=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=(0,a.useContext)(x);return o?a.createElement(w,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(i,"-btn")},n):null},C=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=(0,a.useContext)(x);return a.createElement(w,{isSilent:n,type:l||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:"".concat(o,"-btn")},i)},T=n(81303),A=n(14749),I=n(80406),N=n(88804),R=a.createContext({}),_=n(5239),P=n(31506),M=n(91010),L=n(4295),D=n(72480);function j(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function F(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var B=n(49367),U=n(74084),Z=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),z={width:0,height:0,overflow:"hidden",outline:"none"},H=a.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,d=e.footer,p=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,v=e.bodyProps,y=e.modalRender,E=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,x=e.visible,O=e.forceRender,k=e.width,C=e.height,T=e.classNames,I=e.styles,N=a.useContext(R).panel,P=(0,U.x1)(w,N),M=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?M.current.focus():e||t!==M.current||L.current.focus()}}});var D={};void 0!==k&&(D.width=k),void 0!==C&&(D.height=C),d&&(n=a.createElement("div",{className:m()("".concat(i,"-footer"),null==T?void 0:T.footer),style:(0,_.Z)({},null==I?void 0:I.footer)},d)),c&&(r=a.createElement("div",{className:m()("".concat(i,"-header"),null==T?void 0:T.header),style:(0,_.Z)({},null==I?void 0:I.header)},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),p&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},f||a.createElement("span",{className:"".concat(i,"-close-x")})));var j=a.createElement("div",{className:m()("".concat(i,"-content"),null==T?void 0:T.content),style:null==I?void 0:I.content},o,r,a.createElement("div",(0,A.Z)({className:m()("".concat(i,"-body"),null==T?void 0:T.body),style:(0,_.Z)((0,_.Z)({},b),null==I?void 0:I.body)},v),h),n);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:P,style:(0,_.Z)((0,_.Z)({},s),D),className:m()(i,l),onMouseDown:E,onMouseUp:S},a.createElement("div",{tabIndex:0,ref:M,style:z,"aria-hidden":"true"}),a.createElement(Z,{shouldUpdate:x||O},y?y(j):j),a.createElement("div",{tabIndex:0,ref:L,style:z,"aria-hidden":"true"}))}),G=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,g=(0,a.useRef)(),h=a.useState(),b=(0,I.Z)(h,2),v=b[0],y=b[1],E={};function S(){var e,t,n,r,o,a=(n={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=F(o),n.top+=F(o,!0),n);y(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return v&&(E.transformOrigin=v),a.createElement(B.ZP,{visible:l,onVisibleChanged:p,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(H,(0,A.Z)({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:s,style:(0,_.Z)((0,_.Z)((0,_.Z)({},u),o),E),className:m()(i,c)}))})});function $(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,l=e.className;return a.createElement(B.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,s=e.style;return a.createElement("div",(0,A.Z)({ref:r,style:(0,_.Z)((0,_.Z)({},s),n),className:m()("".concat(t,"-mask"),i,l)},o))})}function W(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,g=e.onClose,h=e.afterOpenChange,b=e.afterClose,v=e.transitionName,y=e.animation,E=e.closable,S=e.mask,w=void 0===S||S,x=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,C=e.maskStyle,T=e.maskProps,N=e.rootClassName,R=e.classNames,F=e.styles,B=(0,a.useRef)(),U=(0,a.useRef)(),Z=(0,a.useRef)(),z=a.useState(i),H=(0,I.Z)(z,2),W=H[0],V=H[1],q=(0,M.Z)();function Y(e){null==g||g(e)}var K=(0,a.useRef)(!1),X=(0,a.useRef)(),Q=null;return(void 0===k||k)&&(Q=function(e){K.current?K.current=!1:U.current===e.target&&Y(e)}),(0,a.useEffect)(function(){i&&(V(!0),(0,P.Z)(U.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(X.current)}},[]),a.createElement("div",(0,A.Z)({className:m()("".concat(n,"-root"),N)},(0,D.Z)(e,{data:!0})),a.createElement($,{prefixCls:n,visible:w&&i,motionName:j(n,x,O),style:(0,_.Z)((0,_.Z)({zIndex:r},C),null==F?void 0:F.mask),maskProps:T,className:null==R?void 0:R.mask}),a.createElement("div",(0,A.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===L.Z.ESC){e.stopPropagation(),Y(e);return}i&&e.keyCode===L.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:m()("".concat(n,"-wrap"),p,null==R?void 0:R.wrapper),ref:U,onClick:Q,style:(0,_.Z)((0,_.Z)((0,_.Z)({zIndex:r},d),null==F?void 0:F.wrapper),{},{display:W?null:"none"})},f),a.createElement(G,(0,A.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),K.current=!0},onMouseUp:function(){X.current=setTimeout(function(){K.current=!1})},ref:Z,closable:void 0===E||E,ariaId:q,prefixCls:n,visible:i&&W,onClose:Y,onVisibleChanged:function(e){if(e)!function(){if(!(0,P.Z)(U.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(V(!1),w&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==b||b())}null==h||h(e)},motionName:j(n,v,y)}))))}G.displayName="Content",n(53850);var V=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=e.panelRef,c=a.useState(t),u=(0,I.Z)(c,2),d=u[0],p=u[1],f=a.useMemo(function(){return{panel:s}},[s]);return(a.useEffect(function(){t&&p(!0)},[t]),r||!i||d)?a.createElement(R.Provider,{value:f},a.createElement(N.Z,{open:t||r||d,autoDestroy:!1,getContainer:n,autoLock:t||d},a.createElement(W,(0,A.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),p(!1)}})))):null};V.displayName="Dialog";var q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.createElement(T.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("boolean"==typeof e?!e:void 0===t?!o:!1===t||null===t)return[!1,null];let i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]},Y=n(22127),K=n(86718),X=n(47137),Q=n(92801),J=n(48563);function ee(){}let et=a.createContext({add:ee,remove:ee});var en=n(17094),er=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({onClick:n},e),t)},eo=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({},(0,S.nx)(n),{loading:e,onClick:o},t),r)},ea=n(4678);function ei(e,t){return a.createElement("span",{className:"".concat(e,"-close-x")},t||a.createElement(T.Z,{className:"".concat(e,"-close-icon")}))}let el=e=>{let t;let{okText:n,okType:r="primary",cancelText:i,confirmLoading:l,onOk:s,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:p}=e,[f]=(0,b.Z)("Modal",(0,ea.A)()),m={confirmLoading:l,okButtonProps:u,cancelButtonProps:d,okTextLocale:n||(null==f?void 0:f.okText),cancelTextLocale:i||(null==f?void 0:f.cancelText),okType:r,onOk:s,onCancel:c},g=a.useMemo(()=>m,(0,o.Z)(Object.values(m)));return"function"==typeof p||void 0===p?(t=a.createElement(a.Fragment,null,a.createElement(er,null),a.createElement(eo,null)),"function"==typeof p&&(t=p(t,{OkBtn:eo,CancelBtn:er})),t=a.createElement(O,{value:g},t)):t=p,a.createElement(en.n,{disabled:!1},t)};var es=n(11303),ec=n(13703),eu=n(58854),ed=n(80316),ep=n(76585),ef=n(8985);function em(e){return{position:e,inset:0}}let eg=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",["&:has(".concat(t).concat(n,"-zoom-enter), &:has(").concat(t).concat(n,"-zoom-appear)")]:{pointerEvents:"none"}})}},{["".concat(t,"-root")]:(0,ec.J$)(e)}]},eh=e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,ef.bf)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,es.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,ef.bf)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:"".concat((0,ef.bf)(e.modalCloseBtnSize)),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,es.Qy)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},eb=e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},ev=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ed.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ey=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:"".concat((0,ef.bf)(e.paddingMD)," ").concat((0,ef.bf)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,ef.bf)(e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,ef.bf)(e.paddingXS)," ").concat((0,ef.bf)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var eE=(0,ep.I$)("Modal",e=>{let t=ev(e);return[eh(t),eb(t),eg(t),(0,eu._y)(t,"zoom")]},ey,{unitless:{titleLineHeight:!0}}),eS=n(92935),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,Y.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var ex=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:s}=a.useContext(l.E_),c=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:u,className:d,rootClassName:p,open:f,wrapClassName:b,centered:v,getContainer:y,closeIcon:E,closable:S,focusTriggerAfterClose:w=!0,style:x,visible:O,width:k=520,footer:C,classNames:A,styles:I}=e,N=ew(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),R=o("modal",u),_=o(),P=(0,eS.Z)(R),[M,L,D]=eE(R,P),j=m()(b,{["".concat(R,"-centered")]:!!v,["".concat(R,"-wrap-rtl")]:"rtl"===i}),F=null!==C&&a.createElement(el,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:c})),[B,U]=q(S,E,e=>ei(R,e),a.createElement(T.Z,{className:"".concat(R,"-close-icon")}),!0),Z=function(e){let t=a.useContext(et),n=a.useRef();return(0,J.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(".".concat(R,"-content")),[z,H]=(0,g.Cn)("Modal",N.zIndex);return M(a.createElement(Q.BR,null,a.createElement(X.Ux,{status:!0,override:!0},a.createElement(K.Z.Provider,{value:H},a.createElement(V,Object.assign({width:k},N,{zIndex:z,getContainer:void 0===y?n:y,prefixCls:R,rootClassName:m()(L,p,D,P),footer:F,visible:null!=f?f:O,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:c,closable:B,closeIcon:U,focusTriggerAfterClose:w,transitionName:(0,h.m)(_,"zoom",e.transitionName),maskTransitionName:(0,h.m)(_,"fade",e.maskTransitionName),className:m()(L,d,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),x),classNames:Object.assign(Object.assign({wrapper:j},null==s?void 0:s.classNames),A),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),I),panelRef:Z}))))))};let eO=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,es.dF)()),["&".concat(t," ").concat(t,"-body")]:{padding:c},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:"calc(100% - ".concat((0,ef.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:a,lineHeight:i},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}};var ek=(0,ep.bk)(["Modal","confirm"],e=>[eO(ev(e))],ey,{order:-1e3}),eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eT(e){let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:s,okCancel:f,footer:g,locale:h}=e,v=eC(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),y=n;if(!n&&null!==n)switch(s){case"info":y=a.createElement(p.Z,null);break;case"success":y=a.createElement(c.Z,null);break;case"error":y=a.createElement(u.Z,null);break;default:y=a.createElement(d.Z,null)}let E=null!=f?f:"confirm"===s,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[w]=(0,b.Z)("Modal"),x=h||w,T=r||(E?null==x?void 0:x.okText:null==x?void 0:x.justOkText),A=Object.assign({autoFocusButton:S,cancelTextLocale:i||(null==x?void 0:x.cancelText),okTextLocale:T,mergedOkCancel:E},v),I=a.useMemo(()=>A,(0,o.Z)(Object.values(A))),N=a.createElement(a.Fragment,null,a.createElement(k,null),a.createElement(C,null)),R=void 0!==e.title&&null!==e.title,_="".concat(l,"-body");return a.createElement("div",{className:"".concat(l,"-body-wrapper")},a.createElement("div",{className:m()(_,{["".concat(_,"-has-title")]:R})},y,a.createElement("div",{className:"".concat(l,"-paragraph")},R&&a.createElement("span",{className:"".concat(l,"-title")},e.title),a.createElement("div",{className:"".concat(l,"-content")},e.content))),void 0===g||"function"==typeof g?a.createElement(O,{value:I},a.createElement("div",{className:"".concat(l,"-btns")},"function"==typeof g?g(N,{OkBtn:C,CancelBtn:k}):N)):g,a.createElement(ek,{prefixCls:t}))}let eA=e=>{let{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:l,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:b,closable:y=!1,closeIcon:E,modalRender:S,focusTriggerAfterClose:w,onConfirm:x,styles:O}=e,k="".concat(d,"-confirm"),C=e.width||416,T=e.style||{},A=void 0===e.mask||e.mask,I=void 0!==e.maskClosable&&e.maskClosable,N=m()(k,"".concat(k,"-").concat(e.type),{["".concat(k,"-rtl")]:"rtl"===u},e.className),[,R]=(0,v.ZP)(),_=a.useMemo(()=>void 0!==n?n:R.zIndexPopupBase+g.u6,[n,R]);return a.createElement(ex,{prefixCls:d,className:N,wrapClassName:m()({["".concat(k,"-centered")]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:o,title:"",footer:null,transitionName:(0,h.m)(f||"","zoom",e.transitionName),maskTransitionName:(0,h.m)(f||"","fade",e.maskTransitionName),mask:A,maskClosable:I,style:T,styles:Object.assign({body:b,mask:c},O),width:C,zIndex:_,afterClose:r,keyboard:i,centered:l,getContainer:s,closable:y,closeIcon:E,modalRender:S,focusTriggerAfterClose:w},a.createElement(eT,Object.assign({},e,{confirmPrefixCls:k})))};var eI=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(eA,Object.assign({},e)))},eN=[];let eR="",e_=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:i}=e,s=(0,ea.A)(),c=(0,a.useContext)(l.E_),u=eR||c.getPrefixCls(),d=r||"".concat(u,"-modal"),p=o;return!1===p&&(p=void 0),a.createElement(eI,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=i?i:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:p}))};function eP(e){let t;let n=(0,s.w6)(),r=document.createDocumentFragment(),l=Object.assign(Object.assign({},e),{close:d,open:!0});function c(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let t=n.getPrefixCls(void 0,eR),o=n.getIconPrefixCls(),l=n.getTheme(),c=a.createElement(e_,Object.assign({},e));(0,i.s)(a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:o,theme:l},n.holderRender?n.holderRender(c):c),r)})}function d(){for(var t=arguments.length,n=Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,n)}})).visible&&delete l.visible,u(l)}return u(l),eN.push(d),{destroy:d,update:function(e){u(l="function"==typeof e?e(l):Object.assign(Object.assign({},l),e))}}}function eM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eL(e){return Object.assign(Object.assign({},e),{type:"info"})}function eD(e){return Object.assign(Object.assign({},e),{type:"success"})}function ej(e){return Object.assign(Object.assign({},e),{type:"error"})}function eF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eB=n(21467),eU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eZ=(0,eB.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:c,footer:u}=e,d=eU(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(l.E_),f=p(),g=t||p("modal"),h=(0,eS.Z)(f),[b,v,y]=eE(g,h),E="".concat(g,"-confirm"),S={};return S=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(eT,Object.assign({},e,{prefixCls:g,confirmPrefixCls:E,rootPrefixCls:f,content:c}))}:{closable:null==o||o,title:s,footer:null!==u&&a.createElement(el,Object.assign({},e)),children:c},b(a.createElement(H,Object.assign({prefixCls:g,className:m()(v,"".concat(g,"-pure-panel"),i&&E,i&&"".concat(E,"-").concat(i),n,y,h)},d,{closeIcon:ei(g,r),closable:o},S)))}),ez=n(79474),eH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eG=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,s=eH(e,["afterClose","config"]);let[c,u]=a.useState(!0),[d,p]=a.useState(i),{direction:f,getPrefixCls:m}=a.useContext(l.E_),g=m("modal"),h=m(),v=function(){u(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);d.onCancel&&r&&d.onCancel.apply(d,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:v,update:e=>{p(t=>Object.assign(Object.assign({},t),e))}}));let y=null!==(n=d.okCancel)&&void 0!==n?n:"confirm"===d.type,[E]=(0,b.Z)("Modal",ez.Z.Modal);return a.createElement(eI,Object.assign({prefixCls:g,rootPrefixCls:h},d,{close:v,open:c,afterClose:()=>{var e;r(),null===(e=d.afterClose)||void 0===e||e.call(d)},okText:d.okText||(y?null==E?void 0:E.okText:null==E?void 0:E.justOkText),direction:d.direction||f,cancelText:d.cancelText||(null==E?void 0:E.cancelText)},s))});let e$=0,eW=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function eV(e){return eP(eM(e))}ex.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&((0,o.Z)(t).forEach(e=>{e()}),n([]))},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;e$+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),d=!1,p=a.createElement(eG,{key:"modal-".concat(e$),config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(p))&&eN.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,u.then(e))}},[]);return[a.useMemo(()=>({info:r(eL),success:r(eD),error:r(ej),warning:r(eM),confirm:r(eF)}),[]),a.createElement(eW,{key:"modal-holder",ref:e})]},ex.info=function(e){return eP(eL(e))},ex.success=function(e){return eP(eD(e))},ex.error=function(e){return eP(ej(e))},ex.warning=eV,ex.warn=eV,ex.confirm=function(e){return eP(eF(e))},ex.destroyAll=function(){for(;eN.length;){let e=eN.pop();e&&e()}},ex.config=function(e){let{rootPrefixCls:t}=e;eR=t},ex._InternalPanelDoNotUseOrYouWillBeFired=eZ;var eq=ex},4678:function(e,t,n){n.d(t,{A:function(){return s},f:function(){return l}});var r=n(79474);let o=Object.assign({},r.Z.Modal),a=[],i=()=>a.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},38302:function(e,t,n){var r=n(5056);t.Z=r.Z},50670:function(e,t,n){n.d(t,{default:function(){return tT}});var r=n(64090),o=n(16480),a=n.n(o),i=n(14749),l=n(63787),s=n(50833),c=n(5239),u=n(80406),d=n(6787),p=n(6976),f=n(44329),m=n(53850),g=n(24800),h=n(76158),b=n(4295),v=n(74084),y=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,l=e.onMouseDown,s=e.onClick,c="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:r.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))},E=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=r.useMemo(function(){return"object"===(0,p.Z)(o)?o.clearIcon:a||void 0},[o,a]);return{allowClear:r.useMemo(function(){return!i&&!!o&&(!!n.length||!!l)&&!("combobox"===s&&""===l)},[o,i,n.length,l,s]),clearIcon:r.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},S=r.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var x=n(72480),O=n(54739),k=r.forwardRef(function(e,t){var n,o=e.prefixCls,i=e.id,l=e.inputElement,s=e.disabled,u=e.tabIndex,d=e.autoFocus,p=e.autoComplete,f=e.editable,g=e.activeDescendantId,h=e.value,b=e.maxLength,y=e.onKeyDown,E=e.onMouseDown,S=e.onChange,w=e.onPaste,x=e.onCompositionStart,O=e.onCompositionEnd,k=e.open,C=e.attrs,T=l||r.createElement("input",null),A=T,I=A.ref,N=A.props,R=N.onKeyDown,_=N.onChange,P=N.onMouseDown,M=N.onCompositionStart,L=N.onCompositionEnd,D=N.style;return(0,m.Kp)(!("maxLength"in T.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),T=r.cloneElement(T,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},N),{},{id:i,ref:(0,v.sQ)(t,I),disabled:s,tabIndex:u,autoComplete:p||"off",autoFocus:d,className:a()("".concat(o,"-selection-search-input"),null===(n=T)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?g:void 0},C),{},{value:f?h:"",maxLength:b,readOnly:!f,unselectable:f?null:"on",style:(0,c.Z)((0,c.Z)({},D),{},{opacity:f?null:0}),onKeyDown:function(e){y(e),R&&R(e)},onMouseDown:function(e){E(e),P&&P(e)},onChange:function(e){S(e),_&&_(e)},onCompositionStart:function(e){x(e),M&&M(e)},onCompositionEnd:function(e){O(e),L&&L(e)},onPaste:w}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T=window.document&&window.document.documentElement;function A(e){return["string","number"].includes((0,p.Z)(e))}function I(e){var t=void 0;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var R=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,c=e.open,d=e.searchValue,p=e.autoClearSearchValue,f=e.inputRef,m=e.placeholder,g=e.disabled,h=e.mode,b=e.showSearch,v=e.autoFocus,E=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,C=e.removeIcon,A=e.maxTagCount,_=e.maxTagTextLength,P=e.maxTagPlaceholder,M=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,L=e.tagRender,D=e.onToggleOpen,j=e.onRemove,F=e.onInputChange,B=e.onInputPaste,U=e.onInputKeyDown,Z=e.onInputMouseDown,z=e.onInputCompositionStart,H=e.onInputCompositionEnd,G=r.useRef(null),$=(0,r.useState)(0),W=(0,u.Z)($,2),V=W[0],q=W[1],Y=(0,r.useState)(!1),K=(0,u.Z)(Y,2),X=K[0],Q=K[1],J="".concat(i,"-selection"),ee=c||"multiple"===h&&!1===p||"tags"===h?d:"",et="tags"===h||"multiple"===h&&!1===p||b&&(c||X);t=function(){q(G.current.scrollWidth)},n=[ee],T?r.useLayoutEffect(t,n):r.useEffect(t,n);var en=function(e,t,n,o,i){return r.createElement("span",{title:I(e),className:a()("".concat(J,"-item"),(0,s.Z)({},"".concat(J,"-item-disabled"),n))},r.createElement("span",{className:"".concat(J,"-item-content")},t),o&&r.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:R,onClick:i,customizeIcon:C},"\xd7"))},er=r.createElement("div",{className:"".concat(J,"-search"),style:{width:V},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},r.createElement(k,{ref:f,open:c,prefixCls:i,id:o,inputElement:null,disabled:g,autoFocus:v,autoComplete:E,editable:et,activeDescendantId:S,value:ee,onKeyDown:U,onMouseDown:Z,onChange:F,onPaste:B,onCompositionStart:z,onCompositionEnd:H,tabIndex:w,attrs:(0,x.Z)(e,!0)}),r.createElement("span",{ref:G,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),eo=r.createElement(O.Z,{prefixCls:"".concat(J,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,o=e.label,a=e.value,i=!g&&!n,l=o;if("number"==typeof _&&("string"==typeof o||"number"==typeof o)){var s=String(l);s.length>_&&(l="".concat(s.slice(0,_),"..."))}var u=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof L?(t=l,r.createElement("span",{onMouseDown:function(e){R(e),D(!c)}},L({label:t,value:a,disabled:n,closable:i,onClose:u}))):en(e,l,n,i,u)},renderRest:function(e){var t="function"==typeof M?M(e):M;return en({title:t},t,!1)},suffix:er,itemKey:N,maxCount:A});return r.createElement(r.Fragment,null,eo,!l.length&&!ee&&r.createElement("span",{className:"".concat(J,"-placeholder")},m))},P=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,d=e.mode,p=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,E=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,O=e.onInputPaste,C=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=e.title,N=r.useState(!1),R=(0,u.Z)(N,2),_=R[0],P=R[1],M="combobox"===d,L=M||h,D=f[0],j=b||"";M&&v&&!_&&(j=v),r.useEffect(function(){M&&P(!1)},[M,v]);var F=("combobox"===d||!!p||!!h)&&!!j,B=void 0===A?I(D):A,U=r.useMemo(function(){return D?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},m)},[D,F,m,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(k,{ref:a,prefixCls:n,id:o,open:p,inputElement:t,disabled:i,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:c,value:j,onKeyDown:E,onMouseDown:S,onChange:function(e){P(!0),w(e)},onPaste:O,onCompositionStart:C,onCompositionEnd:T,tabIndex:g,attrs:(0,x.Z)(e,!0),maxLength:M?y:void 0})),!M&&D?r.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:F?{visibility:"hidden"}:void 0},D.label):null,U)},M=r.forwardRef(function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=e.prefixCls,l=e.open,s=e.mode,c=e.showSearch,d=e.tokenWithEnter,p=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=w(0),E=(0,u.Z)(y,2),S=E[0],x=E[1],O=(0,r.useRef)(null),k=function(e){!1!==f(e,!0,o.current)&&g(!0)},C={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===b.Z.UP||t===b.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==b.Z.ENTER||"tags"!==s||o.current||l||null==m||m(e.target.value),[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(d&&O.current&&/[\r\n]/.test(O.current)){var n=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,O.current)}O.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");O.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},T="multiple"===s||"tags"===s?r.createElement(_,(0,i.Z)({},e,C)):r.createElement(P,(0,i.Z)({},e,C));return r.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||c&&t)&&l||(l&&!1!==p&&f("",!0,!1),g())}},T)}),L=n(44101),D=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},F=r.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,u=e.popupElement,p=e.animation,f=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,b=e.placement,v=e.builtinPlacements,y=e.dropdownMatchSelectWidth,E=e.dropdownRender,S=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,O=e.getTriggerDOMNode,k=e.onPopupVisibleChange,C=e.onPopupMouseEnter,T=(0,d.Z)(e,D),A="".concat(n,"-dropdown"),I=u;E&&(I=E(u));var N=r.useMemo(function(){return v||j(y)},[v,y]),R=p?"".concat(A,"-").concat(p):f,_="number"==typeof y,P=r.useMemo(function(){return _?null:!1===y?"minWidth":"width"},[y,_]),M=m;_&&(M=(0,c.Z)((0,c.Z)({},M),{},{width:y}));var F=r.useRef(null);return r.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current}}}),r.createElement(L.Z,(0,i.Z)({},T,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===(void 0===h?"ltr":h)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:A,popupTransitionName:R,popup:r.createElement("div",{ref:F,onMouseEnter:C},I),stretch:P,popupAlign:S,popupVisible:o,getPopupContainer:w,popupClassName:a()(g,(0,s.Z)({},"".concat(A,"-empty"),x)),popupStyle:M,getTriggerDOMNode:O,onPopupVisibleChange:k}),l)}),B=n(56721);function U(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function Z(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function z(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var H=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,B.Z)(n),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},G=r.createContext(null),$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],V=function(e){return"tags"===e||"multiple"===e},q=r.forwardRef(function(e,t){var n,o,m,x,O,k,C,T,A=e.id,I=e.prefixCls,N=e.className,R=e.showSearch,_=e.tagRender,P=e.direction,L=e.omitDomProps,D=e.displayValues,j=e.onDisplayValuesChange,B=e.emptyOptions,U=e.notFoundContent,Z=void 0===U?"Not Found":U,z=e.onClear,q=e.mode,Y=e.disabled,K=e.loading,X=e.getInputElement,Q=e.getRawInputElement,J=e.open,ee=e.defaultOpen,et=e.onDropdownVisibleChange,en=e.activeValue,er=e.onActiveValueChange,eo=e.activeDescendantId,ea=e.searchValue,ei=e.autoClearSearchValue,el=e.onSearch,es=e.onSearchSplit,ec=e.tokenSeparators,eu=e.allowClear,ed=e.suffixIcon,ep=e.clearIcon,ef=e.OptionList,em=e.animation,eg=e.transitionName,eh=e.dropdownStyle,eb=e.dropdownClassName,ev=e.dropdownMatchSelectWidth,ey=e.dropdownRender,eE=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,ex=e.getPopupContainer,eO=e.showAction,ek=void 0===eO?[]:eO,eC=e.onFocus,eT=e.onBlur,eA=e.onKeyUp,eI=e.onKeyDown,eN=e.onMouseDown,eR=(0,d.Z)(e,$),e_=V(q),eP=(void 0!==R?R:e_)||"combobox"===q,eM=(0,c.Z)({},eR);W.forEach(function(e){delete eM[e]}),null==L||L.forEach(function(e){delete eM[e]});var eL=r.useState(!1),eD=(0,u.Z)(eL,2),ej=eD[0],eF=eD[1];r.useEffect(function(){eF((0,h.Z)())},[]);var eB=r.useRef(null),eU=r.useRef(null),eZ=r.useRef(null),ez=r.useRef(null),eH=r.useRef(null),eG=r.useRef(!1),e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,u.Z)(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};return r.useEffect(function(){return l},[]),[o,function(t,n){l(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},l]}(),eW=(0,u.Z)(e$,3),eV=eW[0],eq=eW[1],eY=eW[2];r.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ez.current)||void 0===e?void 0:e.focus,blur:null===(t=ez.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eH.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=r.useMemo(function(){if("combobox"!==q)return ea;var e,t=null===(e=D[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[ea,q,D]),eX="combobox"===q&&"function"==typeof X&&X()||null,eQ="function"==typeof Q&&Q(),eJ=(0,v.x1)(eU,null==eQ||null===(x=eQ.props)||void 0===x?void 0:x.ref),e0=r.useState(!1),e1=(0,u.Z)(e0,2),e2=e1[0],e4=e1[1];(0,g.Z)(function(){e4(!0)},[]);var e3=(0,f.Z)(!1,{defaultValue:ee,value:J}),e6=(0,u.Z)(e3,2),e5=e6[0],e8=e6[1],e9=!!e2&&e5,e7=!Z&&B;(Y||e7&&e9&&"combobox"===q)&&(e9=!1);var te=!e7&&e9,tt=r.useCallback(function(e){var t=void 0!==e?e:!e9;Y||(e8(t),e9!==t&&(null==et||et(t)))},[Y,e9,e8,et]),tn=r.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),tr=r.useContext(G)||{},to=tr.maxCount,ta=tr.rawValues,ti=function(e,t,n){if(!((null==ta?void 0:ta.size)>=to)){var r=!0,o=e;null==er||er(null);var a=H(e,ec,to&&to-ta.size),i=n?null:a;return"combobox"!==q&&i&&(o="",null==es||es(i),tt(!1),r=!1),el&&eK!==o&&el(o,{source:t?"typing":"effect"}),r}};r.useEffect(function(){e9||e_||"combobox"===q||ti("",!1,!1)},[e9]),r.useEffect(function(){e5&&Y&&e8(!1),Y&&!eG.current&&eq(!1)},[Y]);var tl=w(),ts=(0,u.Z)(tl,2),tc=ts[0],tu=ts[1],td=r.useRef(!1),tp=[];r.useEffect(function(){return function(){tp.forEach(function(e){return clearTimeout(e)}),tp.splice(0,tp.length)}},[]);var tf=r.useState({}),tm=(0,u.Z)(tf,2)[1];eQ&&(k=function(e){tt(e)}),n=function(){var e;return[eB.current,null===(e=eZ.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eQ,(m=r.useRef(null)).current={open:te,triggerOpen:tt,customizedTrigger:o},r.useEffect(function(){function e(e){if(null===(t=m.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),m.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&m.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=r.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:Z,open:e9,triggerOpen:te,id:A,showSearch:eP,multiple:e_,toggleOpen:tt})},[e,Z,te,e9,A,eP,e_,tt]),th=!!ed||K;th&&(C=r.createElement(y,{className:a()("".concat(I,"-arrow"),(0,s.Z)({},"".concat(I,"-arrow-loading"),K)),customizeIcon:ed,customizeIconProps:{loading:K,searchValue:eK,open:e9,focused:eV,showSearch:eP}}));var tb=E(I,function(){var e;null==z||z(),null===(e=ez.current)||void 0===e||e.focus(),j([],{type:"clear",values:D}),ti("",!1,!1)},D,eu,ep,Y,eK,q),tv=tb.allowClear,ty=tb.clearIcon,tE=r.createElement(ef,{ref:eH}),tS=a()(I,N,(O={},(0,s.Z)(O,"".concat(I,"-focused"),eV),(0,s.Z)(O,"".concat(I,"-multiple"),e_),(0,s.Z)(O,"".concat(I,"-single"),!e_),(0,s.Z)(O,"".concat(I,"-allow-clear"),eu),(0,s.Z)(O,"".concat(I,"-show-arrow"),th),(0,s.Z)(O,"".concat(I,"-disabled"),Y),(0,s.Z)(O,"".concat(I,"-loading"),K),(0,s.Z)(O,"".concat(I,"-open"),e9),(0,s.Z)(O,"".concat(I,"-customize-input"),eX),(0,s.Z)(O,"".concat(I,"-show-search"),eP),O)),tw=r.createElement(F,{ref:eZ,disabled:Y,prefixCls:I,visible:te,popupElement:tE,animation:em,transitionName:eg,dropdownStyle:eh,dropdownClassName:eb,direction:P,dropdownMatchSelectWidth:ev,dropdownRender:ey,dropdownAlign:eE,placement:eS,builtinPlacements:ew,getPopupContainer:ex,empty:B,getTriggerDOMNode:function(){return eU.current},onPopupVisibleChange:k,onPopupMouseEnter:function(){tm({})}},eQ?r.cloneElement(eQ,{ref:eJ}):r.createElement(M,(0,i.Z)({},e,{domRef:eU,prefixCls:I,inputElement:eX,ref:ez,id:A,showSearch:eP,autoClearSearchValue:ei,mode:q,activeDescendantId:eo,tagRender:_,values:D,open:e9,onToggleOpen:tt,activeValue:en,searchValue:eK,onSearch:ti,onSearchSubmit:function(e){e&&e.trim()&&el(e,{source:"submit"})},onRemove:function(e){j(D.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tn})));return T=eQ?tw:r.createElement("div",(0,i.Z)({className:tS},eM,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eZ.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tp.indexOf(o);-1!==t&&tp.splice(t,1),eY(),ej||r.contains(document.activeElement)||null===(e=ez.current)||void 0===e||e.focus()});tp.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&j(o,{type:"remove",values:[a]})}for(var c=arguments.length,u=Array(c>1?c-1:0),d=1;d1?n-1:0),o=1;o0?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,K.height="100%",K.width=h,_?K.left=H:K.right=H):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,K.width="100%",K.height=h,K.top=H),r.createElement("div",{ref:P,className:a()(q,(n={},(0,s.Z)(n,"".concat(q,"-horizontal"),g),(0,s.Z)(n,"".concat(q,"-vertical"),!g),(0,s.Z)(n,"".concat(q,"-visible"),j),n)),style:(0,c.Z)((0,c.Z)({},Y),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:U},r.createElement("div",{ref:M,className:a()("".concat(q,"-thumb"),(0,s.Z)({},"".concat(q,"-thumb-moving"),w)),style:(0,c.Z)((0,c.Z)({},K),y),onMouseDown:$}))});function ea(e){var t=e.children,n=e.setRef,o=r.useCallback(function(e){n(e)},[]);return r.cloneElement(t,{ref:o})}var ei=n(97472),el=n(47365),es=n(65127),ec=function(){function e(){(0,el.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,es.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eu=n(48563),ed=("undefined"==typeof navigator?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);function ep(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(null),a=(0,r.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&a.current.top||e>0&&a.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):(!r||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&r}}var ef=14/15;function em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var eg=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],eh=[],eb={overflowY:"auto",overflowAnchor:"none"},ev=r.forwardRef(function(e,t){var n,o,l,f,m,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W=e.prefixCls,V=void 0===W?"rc-virtual-list":W,q=e.className,Y=e.height,K=e.itemHeight,X=e.fullHeight,Q=e.style,er=e.data,el=e.children,es=e.itemKey,ev=e.virtual,ey=e.direction,eE=e.scrollWidth,eS=e.component,ew=e.onScroll,ex=e.onVirtualScroll,eO=e.onVisibleChange,ek=e.innerProps,eC=e.extraRender,eT=e.styles,eA=(0,d.Z)(e,eg),eI=!!(!1!==ev&&Y&&K),eN=eI&&er&&(K*er.length>Y||!!eE),eR="rtl"===ey,e_=a()(V,(0,s.Z)({},"".concat(V,"-rtl"),eR),q),eP=er||eh,eM=(0,r.useRef)(),eL=(0,r.useRef)(),eD=(0,r.useState)(0),ej=(0,u.Z)(eD,2),eF=ej[0],eB=ej[1],eU=(0,r.useState)(0),eZ=(0,u.Z)(eU,2),ez=eZ[0],eH=eZ[1],eG=(0,r.useState)(!1),e$=(0,u.Z)(eG,2),eW=e$[0],eV=e$[1],eq=function(){eV(!0)},eY=function(){eV(!1)},eK=r.useCallback(function(e){return"function"==typeof es?es(e):null==e?void 0:e[es]},[es]);function eX(e){eB(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tp.current)||(n=Math.min(n,tp.current)),n=Math.max(n,0));return eM.current.scrollTop=r,r})}var eQ=(0,r.useRef)({start:0,end:eP.length}),eJ=(0,r.useRef)(),e0=(o=r.useState(eP),f=(l=(0,u.Z)(o,2))[0],m=l[1],h=r.useState(null),v=(b=(0,u.Z)(h,2))[0],y=b[1],r.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a0&&void 0!==arguments[0]&&arguments[0];p();var t=function(){s.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,ei.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}}),l(function(e){return e+1})};e?t():d.current=(0,en.Z)(t)}return(0,r.useEffect)(function(){return p},[]),[function(r,o){var a=e(r),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,i]}(eK,null,null),e4=(0,u.Z)(e2,4),e3=e4[0],e6=e4[1],e5=e4[2],e8=e4[3],e9=r.useMemo(function(){if(!eI)return{scrollHeight:void 0,start:0,end:eP.length-1,offset:void 0};if(!eN)return{scrollHeight:(null===(e=eL.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eP.length-1,offset:void 0};for(var e,t,n,r,o=0,a=eP.length,i=0;i=eF&&void 0===t&&(t=i,n=o),c>eF+Y&&void 0===r&&(r=i),o=c}return void 0===t&&(t=0,n=0,r=Math.ceil(Y/K)),void 0===r&&(r=eP.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,eP.length-1),offset:n}},[eN,eI,eF,eP,e8,Y]),e7=e9.scrollHeight,te=e9.start,tt=e9.end,tn=e9.offset;eQ.current.start=te,eQ.current.end=tt;var tr=r.useState({width:0,height:Y}),to=(0,u.Z)(tr,2),ta=to[0],ti=to[1],tl=(0,r.useRef)(),ts=(0,r.useRef)(),tc=r.useMemo(function(){return em(ta.width,eE)},[ta.width,eE]),tu=r.useMemo(function(){return em(ta.height,e7)},[ta.height,e7]),td=e7-Y,tp=(0,r.useRef)(td);tp.current=td;var tf=eF<=0,tm=eF>=td,tg=ep(tf,tm),th=function(){return{x:eR?-ez:ez,y:eF}},tb=(0,r.useRef)(th()),tv=(0,eu.zX)(function(){if(ex){var e=th();(tb.current.x!==e.x||tb.current.y!==e.y)&&(ex(e),tb.current=e)}});function ty(e,t){t?((0,J.flushSync)(function(){eH(e)}),tv()):eX(e)}var tE=function(e){var t=e,n=eE-ta.width;return Math.min(t=Math.max(t,0),n)},tS=(0,eu.zX)(function(e,t){t?((0,J.flushSync)(function(){eH(function(t){return tE(t+(eR?-e:e))})}),tv()):eX(function(t){return t+e})}),tw=(E=!!eE,S=(0,r.useRef)(0),w=(0,r.useRef)(null),x=(0,r.useRef)(null),O=(0,r.useRef)(!1),k=ep(tf,tm),C=(0,r.useRef)(null),T=(0,r.useRef)(null),[function(e){if(eI){en.Z.cancel(T.current),T.current=(0,en.Z)(function(){C.current=null},2);var t,n=e.deltaX,r=e.deltaY,o=e.shiftKey,a=n,i=r;("sx"===C.current||!C.current&&o&&r&&!n)&&(a=r,i=0,C.current="sx");var l=Math.abs(a),s=Math.abs(i);(null===C.current&&(C.current=E&&l>s?"x":"y"),"y"===C.current)?(t=i,en.Z.cancel(w.current),S.current+=t,x.current=t,k(t)||(ed||e.preventDefault(),w.current=(0,en.Z)(function(){var e=O.current?10:1;tS(S.current*e),S.current=0}))):(tS(a,!0),ed||e.preventDefault())}},function(e){eI&&(O.current=e.detail===x.current)}]),tx=(0,u.Z)(tw,2),tO=tx[0],tk=tx[1];A=function(e,t){return!tg(e,t)&&(tO({preventDefault:function(){},deltaY:e}),!0)},N=(0,r.useRef)(!1),R=(0,r.useRef)(0),_=(0,r.useRef)(null),P=(0,r.useRef)(null),M=function(e){if(N.current){var t=Math.ceil(e.touches[0].pageY),n=R.current-t;R.current=t,A(n)&&e.preventDefault(),clearInterval(P.current),P.current=setInterval(function(){(!A(n*=ef,!0)||.1>=Math.abs(n))&&clearInterval(P.current)},16)}},L=function(){N.current=!1,I()},D=function(e){I(),1!==e.touches.length||N.current||(N.current=!0,R.current=Math.ceil(e.touches[0].pageY),_.current=e.target,_.current.addEventListener("touchmove",M),_.current.addEventListener("touchend",L))},I=function(){_.current&&(_.current.removeEventListener("touchmove",M),_.current.removeEventListener("touchend",L))},(0,g.Z)(function(){return eI&&eM.current.addEventListener("touchstart",D),function(){var e;null===(e=eM.current)||void 0===e||e.removeEventListener("touchstart",D),I(),clearInterval(P.current)}},[eI]),(0,g.Z)(function(){function e(e){eI&&e.preventDefault()}var t=eM.current;return t.addEventListener("wheel",tO),t.addEventListener("DOMMouseScroll",tk),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tO),t.removeEventListener("DOMMouseScroll",tk),t.removeEventListener("MozMousePixelScroll",e)}},[eI]),(0,g.Z)(function(){eE&&eH(function(e){return tE(e)})},[ta.width,eE]);var tC=function(){var e,t;null===(e=tl.current)||void 0===e||e.delayHidden(),null===(t=ts.current)||void 0===t||t.delayHidden()},tT=(j=r.useRef(),F=r.useState(null),U=(B=(0,u.Z)(F,2))[0],Z=B[1],(0,g.Z)(function(){if(U&&U.times<10){if(!eM.current){Z(function(e){return(0,c.Z)({},e)});return}e6(!0);var e=U.targetAlign,t=U.originAlign,n=U.index,r=U.offset,o=eM.current.clientHeight,a=!1,i=e,l=null;if(o){for(var s=e||t,u=0,d=0,p=0,f=Math.min(eP.length-1,n),m=0;m<=f;m+=1){var g=eK(eP[m]);d=u;var h=e5.get(g);u=p=d+(void 0===h?K:h)}for(var b="top"===s?r:o-r,v=f;v>=0;v-=1){var y=eK(eP[v]),E=e5.get(y);if(void 0===E){a=!0;break}if((b-=E)<=0)break}switch(s){case"top":l=d-r;break;case"bottom":l=p-o+r;break;default:var S=eM.current.scrollTop;dS+o&&(i="bottom")}null!==l&&eX(l),l!==U.lastTop&&(a=!0)}a&&Z((0,c.Z)((0,c.Z)({},U),{},{times:U.times+1,targetAlign:i,lastTop:l}))}},[U,eM.current]),function(e){if(null==e){tC();return}if(en.Z.cancel(j.current),"number"==typeof e)eX(e);else if(e&&"object"===(0,p.Z)(e)){var t,n=e.align;t="index"in e?e.index:eP.findIndex(function(t){return eK(t)===e.key});var r=e.offset;Z({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});r.useImperativeHandle(t,function(){return{getScrollInfo:th,scrollTo:function(e){e&&"object"===(0,p.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tE(e.left)),tT(e.top)):tT(e)}}}),(0,g.Z)(function(){eO&&eO(eP.slice(te,tt+1),eP)},[te,tt,eP]);var tA=(z=r.useMemo(function(){return[new Map,[]]},[eP,e5.id,K]),G=(H=(0,u.Z)(z,2))[0],$=H[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=G.get(e),r=G.get(t);if(void 0===n||void 0===r)for(var o=eP.length,a=$.length;aY&&r.createElement(eo,{ref:tl,prefixCls:V,scrollOffset:eF,scrollRange:e7,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tu,containerSize:ta.height,style:null==eT?void 0:eT.verticalScrollBar,thumbStyle:null==eT?void 0:eT.verticalScrollBarThumb}),eN&&eE&&r.createElement(eo,{ref:ts,prefixCls:V,scrollOffset:ez,scrollRange:eE,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tc,containerSize:ta.width,horizontal:!0,style:null==eT?void 0:eT.horizontalScrollBar,thumbStyle:null==eT?void 0:eT.horizontalScrollBarThumb}))});ev.displayName="List";var ey=["disabled","title","children","style","className"];function eE(e){return"string"==typeof e||"number"==typeof e}var eS=r.forwardRef(function(e,t){var n=r.useContext(S),o=n.prefixCls,c=n.id,p=n.open,f=n.multiple,m=n.mode,g=n.searchValue,h=n.toggleOpen,v=n.notFoundContent,E=n.onPopupScroll,w=r.useContext(G),O=w.maxCount,k=w.flattenOptions,C=w.onActiveValue,T=w.defaultActiveFirstOption,A=w.onSelect,I=w.menuItemSelectedIcon,N=w.rawValues,R=w.fieldNames,_=w.virtual,P=w.direction,M=w.listHeight,L=w.listItemHeight,D=w.optionRender,j="".concat(o,"-item"),F=(0,X.Z)(function(){return k},[p,k],function(e,t){return t[0]&&e[1]!==t[1]}),B=r.useRef(null),U=r.useMemo(function(){return f&&void 0!==O&&(null==N?void 0:N.size)>=O},[f,O,null==N?void 0:N.size]),Z=function(e){e.preventDefault()},z=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=F[e];if(!r){C(null,-1,n);return}C(r.value,e,n)};(0,r.useEffect)(function(){Y(!1!==T?H(0):-1)},[F.length,g]);var K=r.useCallback(function(e){return N.has(e)&&"combobox"!==m},[m,(0,l.Z)(N).toString(),N.size]);(0,r.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&p&&1===N.size){var e=Array.from(N)[0],t=F.findIndex(function(t){return t.data.value===e});-1!==t&&(Y(t),z(t))}});return p&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[p,g]);var J=function(e){void 0!==e&&A(e,{selected:!N.has(e)}),f||h(!1)};if(r.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var r=0;if(t===b.Z.UP?r=-1:t===b.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?r=1:t===b.Z.P&&(r=-1)),0!==r){var o=H(V+r,r);z(o),Y(o,!0)}break;case b.Z.ENTER:var a,i=F[V];!i||null!=i&&null!==(a=i.data)&&void 0!==a&&a.disabled||U?J(void 0):J(i.value),p&&e.preventDefault();break;case b.Z.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===F.length)return r.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(j,"-empty"),onMouseDown:Z},v);var ee=Object.keys(R).map(function(e){return R[e]}),et=function(e){return e.label};function en(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var er=function(e){var t=F[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,l=(0,x.Z)(n,!0),s=et(t);return t?r.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof s||a?null:s},l,{key:e},en(t,e),{"aria-selected":K(o)}),o):null},eo={role:"listbox",id:"".concat(c,"_list")};return r.createElement(r.Fragment,null,_&&r.createElement("div",(0,i.Z)({},eo,{style:{height:0,width:0,overflow:"hidden"}}),er(V-1),er(V),er(V+1)),r.createElement(ev,{itemKey:"key",ref:B,data:F,height:M,itemHeight:L,fullHeight:!1,onMouseDown:Z,onScroll:E,virtual:_,direction:P,innerProps:_?null:eo},function(e,t){var n=e.group,o=e.groupOption,l=e.data,c=e.label,u=e.value,p=l.key;if(n){var f,m,g=null!==(m=l.title)&&void 0!==m?m:eE(c)?c.toString():void 0;return r.createElement("div",{className:a()(j,"".concat(j,"-group")),title:g},void 0!==c?c:p)}var h=l.disabled,b=l.title,v=(l.children,l.style),E=l.className,S=(0,d.Z)(l,ey),w=(0,Q.Z)(S,ee),O=K(u),k=h||!O&&U,C="".concat(j,"-option"),T=a()(j,C,E,(f={},(0,s.Z)(f,"".concat(C,"-grouped"),o),(0,s.Z)(f,"".concat(C,"-active"),V===t&&!k),(0,s.Z)(f,"".concat(C,"-disabled"),k),(0,s.Z)(f,"".concat(C,"-selected"),O),f)),A=et(e),N=!I||"function"==typeof I||O,R="number"==typeof A?A:A||u,P=eE(R)?R.toString():void 0;return void 0!==b&&(P=b),r.createElement("div",(0,i.Z)({},(0,x.Z)(w),_?{}:en(e,t),{"aria-selected":O,className:T,title:P,onMouseMove:function(){V===t||k||Y(t)},onClick:function(){k||J(u)},style:v}),r.createElement("div",{className:"".concat(C,"-content")},"function"==typeof D?D(e,{index:t}):R),r.isValidElement(I)||O,N&&r.createElement(y,{className:"".concat(j,"-option-state"),customizeIcon:I,customizeIconProps:{value:u,disabled:k,isSelected:O}},O?"✓":null))}))});function ew(e,t){return C(e).join("").toUpperCase().includes(t)}var ex=n(22127),eO=0,ek=(0,ex.Z)(),eC=n(33054),eT=["children","value"],eA=["children"];function eI(e){var t=r.useRef();return t.current=e,r.useCallback(function(){return t.current.apply(t,arguments)},[])}var eN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],eR=["inputValue"],e_=r.forwardRef(function(e,t){var n,o,a,m,g,h,b,v=e.id,y=e.mode,E=e.prefixCls,S=e.backfill,w=e.fieldNames,x=e.inputValue,O=e.searchValue,k=e.onSearch,T=e.autoClearSearchValue,A=void 0===T||T,I=e.onSelect,N=e.onDeselect,R=e.dropdownMatchSelectWidth,_=void 0===R||R,P=e.filterOption,M=e.filterSort,L=e.optionFilterProp,D=e.optionLabelProp,j=e.options,F=e.optionRender,B=e.children,H=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,W=e.virtual,Y=e.direction,K=e.listHeight,X=void 0===K?200:K,Q=e.listItemHeight,J=void 0===Q?20:Q,ee=e.value,et=e.defaultValue,en=e.labelInValue,er=e.onChange,eo=e.maxCount,ea=(0,d.Z)(e,eN),ei=(n=r.useState(),a=(o=(0,u.Z)(n,2))[0],m=o[1],r.useEffect(function(){var e;m("rc_select_".concat((ek?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),v||a),el=V(y),es=!!(!j&&B),ec=r.useMemo(function(){return(void 0!==P||"combobox"!==y)&&P},[P,y]),eu=r.useMemo(function(){return Z(w,es)},[JSON.stringify(w),es]),ed=(0,f.Z)("",{value:void 0!==O?O:x,postState:function(e){return e||""}}),ep=(0,u.Z)(ed,2),ef=ep[0],em=ep[1],eg=r.useMemo(function(){var e=j;j||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eC.Z)(t).map(function(t,o){if(!r.isValidElement(t)||!t.type)return null;var a,i,l,s,u,p=t.type.isSelectOptGroup,f=t.key,m=t.props,g=m.children,h=(0,d.Z)(m,eA);return n||!p?(a=t.key,l=(i=t.props).children,s=i.value,u=(0,d.Z)(i,eT),(0,c.Z)({key:a,value:void 0!==s?s:a,children:l},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===f?o:f,"__"),label:f},h),{},{options:e(g)})}).filter(function(e){return e})}(B));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Z(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&s in t){var a=t[c];void 0===a&&r&&(a=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:a}),e(t[s],!0)}else{var u=t[l];o.push({key:U(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(eH,{fieldNames:eu,childrenAsData:es})},[eH,eu,es]),e$=function(e){var t=ey(e);if(eP(t),er&&(t.length!==eD.length||t.some(function(e,t){var n;return(null===(n=eD[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=en?t:t.map(function(e){return e.value}),r=t.map(function(e){return z(ej(e.value))});er(el?n:n[0],el?r:r[0])}},eW=r.useState(null),eV=(0,u.Z)(eW,2),eq=eV[0],eY=eV[1],eK=r.useState(0),eX=(0,u.Z)(eK,2),eQ=eX[0],eJ=eX[1],e0=void 0!==H?H:"combobox"!==y,e1=r.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eJ(t),S&&"combobox"===y&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eY(String(e))},[S,y]),e2=function(e,t,n){var r=function(){var t,n=ej(e);return[en?{label:null==n?void 0:n[eu.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,z(n)]};if(t&&I){var o=r(),a=(0,u.Z)(o,2);I(a[0],a[1])}else if(!t&&N&&"clear"!==n){var i=r(),l=(0,u.Z)(i,2);N(l[0],l[1])}},e4=eI(function(e,t){var n=!el||t.selected;e$(n?el?[].concat((0,l.Z)(eD),[e]):[e]:eD.filter(function(t){return t.value!==e})),e2(e,n),"combobox"===y?eY(""):(!V||A)&&(em(""),eY(""))}),e3=r.useMemo(function(){var e=!1!==W&&!1!==_;return(0,c.Z)((0,c.Z)({},eg),{},{flattenOptions:eG,onActiveValue:e1,defaultActiveFirstOption:e0,onSelect:e4,menuItemSelectedIcon:$,rawValues:eB,fieldNames:eu,virtual:e,direction:Y,listHeight:X,listItemHeight:J,childrenAsData:es,maxCount:eo,optionRender:F})},[eo,eg,eG,e1,e0,e4,$,eB,eu,W,_,Y,X,J,es,F]);return r.createElement(G.Provider,{value:e3},r.createElement(q,(0,i.Z)({},ea,{id:ei,prefixCls:void 0===E?"rc-select":E,ref:t,omitDomProps:eR,mode:y,displayValues:eF,onDisplayValuesChange:function(e,t){e$(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){e2(e.value,!1,n)})},direction:Y,searchValue:ef,onSearch:function(e,t){if(em(e),eY(null),"submit"===t.source){var n=(e||"").trim();n&&(e$(Array.from(new Set([].concat((0,l.Z)(eB),[n])))),e2(n,!0),em(""));return}"blur"!==t.source&&("combobox"===y&&e$(e),null==k||k(e))},autoClearSearchValue:A,onSearchSplit:function(e){var t=e;"tags"!==y&&(t=e.map(function(e){var t=eb.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(eB),(0,l.Z)(t))));e$(n),n.forEach(function(e){e2(e,!0)})},dropdownMatchSelectWidth:_,OptionList:eS,emptyOptions:!eG.length,activeValue:eq,activeDescendantId:"".concat(ei,"_list_").concat(eQ)})))});e_.Option=K,e_.OptGroup=Y;var eP=n(51761),eM=n(47387),eL=n(21467),eD=n(47794),ej=n(57499),eF=n(70595),eB=n(6336),eU=n(24750),eZ=n(76585),ez=n(80316);let eH=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,["".concat(t,"-description")]:{color:e.colorTextDisabled},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}};var eG=(0,eZ.I$)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return[eH((0,ez.TS)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))]}),e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eW=r.createElement(()=>{let[,e]=(0,eU.ZP)(),t=new eB.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),eV=r.createElement(()=>{let[,e]=(0,eU.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=(0,r.useMemo)(()=>({borderColor:new eB.C(t).onBackground(a).toHexShortString(),shadowColor:new eB.C(n).onBackground(a).toHexShortString(),contentColor:new eB.C(o).onBackground(a).toHexShortString()}),[t,n,o,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:i},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),eq=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=eW,description:l,children:s,imageStyle:c,style:u}=e,d=e$(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:p,direction:f,empty:m}=r.useContext(ej.E_),g=p("empty",o),[h,b,v]=eG(g),[y]=(0,eF.Z)("Empty"),E=void 0!==l?l:null==y?void 0:y.description,S=null;return S="string"==typeof i?r.createElement("img",{alt:"string"==typeof E?E:"empty",src:i}):i,h(r.createElement("div",Object.assign({className:a()(b,v,g,null==m?void 0:m.className,{["".concat(g,"-normal")]:i===eV,["".concat(g,"-rtl")]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==m?void 0:m.style),u)},d),r.createElement("div",{className:"".concat(g,"-image"),style:c},S),E&&r.createElement("div",{className:"".concat(g,"-description")},E),s&&r.createElement("div",{className:"".concat(g,"-footer")},s)))};eq.PRESENTED_IMAGE_DEFAULT=eW,eq.PRESENTED_IMAGE_SIMPLE=eV;var eY=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(ej.E_),o=n("empty");switch(t){case"Table":case"List":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});default:return r.createElement(eq,null)}},eK=n(17094),eX=n(92935),eQ=n(10693),eJ=n(47137),e0=n(8443),e1=n(92801);let e2=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var e4=n(11303),e3=n(12288),e6=n(202),e5=n(25926);let e8=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var e9=e=>{let{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n ".concat(o).concat(l,"bottomLeft,\n ").concat(a).concat(l,"bottomLeft\n ")]:{animationName:e6.fJ},["\n ".concat(o).concat(l,"topLeft,\n ").concat(a).concat(l,"topLeft,\n ").concat(o).concat(l,"topRight,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:e6.Qt},["".concat(i).concat(l,"bottomLeft")]:{animationName:e6.Uw},["\n ".concat(i).concat(l,"topLeft,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:e6.ly},"&-hidden":{display:"none"},["".concat(r)]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e4.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,e6.oN)(e,"slide-up"),(0,e6.oN)(e,"slide-down"),(0,e5.Fm)(e,"move-up"),(0,e5.Fm)(e,"move-down")]},e7=n(8985);let te=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function tt(e,t){let{componentCls:n,iconCls:r}=e,o="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=te(e),l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(i).sub(2).equal(),borderRadius:e.borderRadius,["".concat(n,"-show-search&")]:{cursor:"text"},["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,e7.bf)(2)," 0"),lineHeight:(0,e7.bf)(a),visibility:"hidden",content:'"\\a0"'}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:(0,e7.bf)(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,e4.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(r)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}}var tn=e=>{let{componentCls:t}=e,n=(0,ez.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,ez.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tt(e),tt(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},tt(r,"lg")]};function tr(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,e4.Wf)(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat((0,e7.bf)(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:(0,e7.bf)(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,e7.bf)(r)),"&:after":{display:"none"}}}}}}}let to=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,e7.bf)(o)," ").concat(t.activeShadowColor),outline:0}}}},ta=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},to(e,t))}),ti=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},to(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ta(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ta(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),tl=(e,t)=>{let{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ts=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},tl(e,t))}),tc=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tl(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ts(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ts(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),tu=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}});var td=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ti(e)),tc(e)),tu(e))});let tp=e=>{let{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tf=e=>{let{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tm=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},tp(e)),tf(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e4.vS),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},e4.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,e4.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},tg=e=>{let{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},tm(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tr(e),tr((0,ez.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat((0,e7.bf)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tr((0,ez.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tn(e),e9(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,e3.c)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]};var th=(0,eZ.I$)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,ez.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tg(r),td(r)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:"".concat((r-t*n)/2,"px ").concat(o,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),tb=n(90507),tv=n(77136),ty=n(81303),tE=n(20383),tS=n(66155),tw=n(96871),tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tO="SECRET_COMBOBOX_MODE_DO_NOT_USE",tk=r.forwardRef((e,t)=>{var n,o,i;let l;let{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:p,popupClassName:f,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:b,size:v,disabled:y,notFoundContent:E,status:S,builtinPlacements:w,dropdownMatchSelectWidth:x,popupMatchSelectWidth:O,direction:k,style:C,allowClear:T,variant:A,dropdownStyle:I,transitionName:N,tagRender:R,maxCount:_}=e,P=tx(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:L,renderEmpty:D,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:U,select:Z}=r.useContext(ej.E_),[,z]=(0,eU.ZP)(),H=null!=b?b:null==z?void 0:z.controlHeight,G=L("select",s),$=L(),W=null!=k?k:j,{compactSize:V,compactItemClassnames:q}=(0,e1.ri)(G,W),[Y,K]=(0,e0.Z)(A,c),X=(0,eX.Z)(G),[J,ee,et]=th(G,X),en=r.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===tO?"combobox":t},[e.mode]),er="multiple"===en||"tags"===en,eo=(o=e.suffixIcon,void 0!==(i=e.showArrow)?i:null!==o),ea=null!==(n=null!=O?O:x)&&void 0!==n?n:B,{status:ei,hasFeedback:el,isFormItemInput:es,feedbackIcon:ec}=r.useContext(eJ.aM),eu=(0,eD.F)(ei,S);l=void 0!==E?E:"combobox"===en?null:(null==D?void 0:D("Select"))||r.createElement(eY,{componentName:"Select"});let{suffixIcon:ed,itemIcon:ep,removeIcon:ef,clearIcon:em}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e,m=null!=n?n:r.createElement(tv.Z,null),g=e=>null!==t||s||p?r.createElement(r.Fragment,null,!1!==u&&e,s&&d):null,h=null;if(void 0!==t)h=g(t);else if(i)h=g(r.createElement(tS.Z,{spin:!0}));else{let e="".concat(c,"-suffix");h=t=>{let{open:n,showSearch:o}=t;return n&&o?g(r.createElement(tw.Z,{className:e})):g(r.createElement(tE.Z,{className:e}))}}let b=null;return b=void 0!==o?o:l?r.createElement(tb.Z,null):null,{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:void 0!==a?a:r.createElement(ty.Z,null)}}(Object.assign(Object.assign({},P),{multiple:er,hasFeedback:el,feedbackIcon:ec,showSuffixIcon:eo,prefixCls:G,componentName:"Select"})),eg=(0,Q.Z)(P,["suffixIcon","itemIcon"]),eh=a()(f||m,{["".concat(G,"-dropdown-").concat(W)]:"rtl"===W},d,et,X,ee),eb=(0,eQ.Z)(e=>{var t;return null!==(t=null!=v?v:V)&&void 0!==t?t:e}),ev=r.useContext(eK.Z),ey=a()({["".concat(G,"-lg")]:"large"===eb,["".concat(G,"-sm")]:"small"===eb,["".concat(G,"-rtl")]:"rtl"===W,["".concat(G,"-").concat(Y)]:K,["".concat(G,"-in-form-item")]:es},(0,eD.Z)(G,eu,el),q,null==Z?void 0:Z.className,u,d,et,X,ee),eE=r.useMemo(()=>void 0!==h?h:"rtl"===W?"bottomRight":"bottomLeft",[h,W]),[eS]=(0,eP.Cn)("SelectLike",null==I?void 0:I.zIndex);return J(r.createElement(e_,Object.assign({ref:t,virtual:F,showSearch:null==Z?void 0:Z.showSearch},eg,{style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),dropdownMatchSelectWidth:ea,transitionName:(0,eM.m)($,"slide-up",N),builtinPlacements:w||e2(U),listHeight:g,listItemHeight:H,mode:en,prefixCls:G,placement:eE,direction:W,suffixIcon:ed,menuItemSelectedIcon:ep,removeIcon:ef,allowClear:!0===T?{clearIcon:em}:T,notFoundContent:l,className:ey,getPopupContainer:p||M,dropdownClassName:eh,disabled:null!=y?y:ev,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:eS}),maxCount:er?_:void 0,tagRender:er?R:void 0})))}),tC=(0,eL.Z)(tk);tk.SECRET_COMBOBOX_MODE_DO_NOT_USE=tO,tk.Option=K,tk.OptGroup=Y,tk._InternalPanelDoNotUseOrYouWillBeFired=tC;var tT=tk},92801:function(e,t,n){n.d(t,{BR:function(){return f},ri:function(){return p}});var r=n(16480),o=n.n(r),a=n(33054),i=n(64090),l=n(57499),s=n(10693),c=n(86682),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=i.createContext(null),p=(e,t)=>{let n=i.useContext(d),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:a,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(l,"item"),{["".concat(e,"-compact").concat(l,"first-item")]:a,["".concat(e,"-compact").concat(l,"last-item")]:i,["".concat(e,"-compact").concat(l,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},f=e=>{let{children:t}=e;return i.createElement(d.Provider,{value:null},t)},m=e=>{var{children:t}=e,n=u(e,["children"]);return i.createElement(d.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=i.useContext(l.E_),{size:r,direction:p,block:f,prefixCls:g,className:h,rootClassName:b,children:v}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),E=(0,s.Z)(e=>null!=r?r:e),S=t("space-compact",g),[w,x]=(0,c.Z)(S),O=o()(S,x,{["".concat(S,"-rtl")]:"rtl"===n,["".concat(S,"-block")]:f,["".concat(S,"-vertical")]:"vertical"===p},h,b),k=i.useContext(d),C=(0,a.Z)(v),T=i.useMemo(()=>C.map((e,t)=>{let n=e&&e.key||"".concat(S,"-item-").concat(t);return i.createElement(m,{key:n,compactSize:E,compactDirection:p,isFirstItem:0===t&&(!k||(null==k?void 0:k.isFirstItem)),isLastItem:t===C.length-1&&(!k||(null==k?void 0:k.isLastItem))},e)}),[r,C,k]);return 0===C.length?null:w(i.createElement("div",Object.assign({className:O},y),T))}},65270:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(64090),o=n(16480),a=n.n(o),i=n(33054);function l(e){return["small","middle","large"].includes(e)}function s(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}var c=n(57499),u=n(92801);let d=r.createContext({latestIndex:0}),p=d.Provider;var f=e=>{let{className:t,index:n,children:o,split:a,style:i}=e,{latestIndex:l}=r.useContext(d);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:i},o),nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=r.forwardRef((e,t)=>{var n,o;let{getPrefixCls:u,space:d,direction:h}=r.useContext(c.E_),{size:b=(null==d?void 0:d.size)||"small",align:v,className:y,rootClassName:E,children:S,direction:w="horizontal",prefixCls:x,split:O,style:k,wrap:C=!1,classNames:T,styles:A}=e,I=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,R]=Array.isArray(b)?b:[b,b],_=l(R),P=l(N),M=s(R),L=s(N),D=(0,i.Z)(S,{keepEmpty:!0}),j=void 0===v&&"horizontal"===w?"center":v,F=u("space",x),[B,U,Z]=(0,m.Z)(F),z=a()(F,null==d?void 0:d.className,U,"".concat(F,"-").concat(w),{["".concat(F,"-rtl")]:"rtl"===h,["".concat(F,"-align-").concat(j)]:j,["".concat(F,"-gap-row-").concat(R)]:_,["".concat(F,"-gap-col-").concat(N)]:P},y,E,Z),H=a()("".concat(F,"-item"),null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==d?void 0:d.classNames)||void 0===o?void 0:o.item),G=0,$=D.map((e,t)=>{var n,o;null!=e&&(G=t);let a=e&&e.key||"".concat(H,"-").concat(t);return r.createElement(f,{className:H,key:a,index:t,split:O,style:null!==(n=null==A?void 0:A.item)&&void 0!==n?n:null===(o=null==d?void 0:d.styles)||void 0===o?void 0:o.item},e)}),W=r.useMemo(()=>({latestIndex:G}),[G]);if(0===D.length)return null;let V={};return C&&(V.flexWrap="wrap"),!P&&L&&(V.columnGap=N),!_&&M&&(V.rowGap=R),B(r.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),null==d?void 0:d.style),k)},I),r.createElement(p,{value:W},$)))});h.Compact=u.ZP;var b=h},86682:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(76585),o=n(80316),a=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var s=(0,r.I$)("Space",e=>{let t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),l(t),a(t)]},()=>({}),{resetStyle:!1})},12288:function(e,t,n){n.d(t,{c:function(){return r}});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(i)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(i)]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}},11303:function(e,t,n){n.d(t,{Lx:function(){return s},Qy:function(){return d},Ro:function(){return i},Wf:function(){return a},dF:function(){return l},du:function(){return c},oN:function(){return u},vS:function(){return o}});var r=n(8985);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},46154:function(e,t){t.Z=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}})},13703:function(e,t,n){n.d(t,{J$:function(){return l}});var r=n(8985),o=n(59353);let a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r="".concat(n,"-fade"),l=t?"&":"";return[(0,o.R)(r,a,i,e.motionDurationMid,t),{["\n ".concat(l).concat(r,"-enter,\n ").concat(l).concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(l).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]}},59353:function(e,t,n){n.d(t,{R:function(){return a}});let r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=i?"&":"";return{["\n ".concat(l).concat(e,"-enter,\n ").concat(l).concat(e,"-appear\n ")]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),["".concat(l).concat(e,"-leave")]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),["\n ".concat(l).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(l).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(l).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},25926:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(8985),o=n(59353);let a=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:a,outKeyframes:i},"move-left":{inKeyframes:l,outKeyframes:s},"move-right":{inKeyframes:c,outKeyframes:u}},p=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},202:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return i},fJ:function(){return a},ly:function(){return s},oN:function(){return d}});var r=n(8985),o=n(59353);let a=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},d=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=u[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},58854:function(e,t,n){n.d(t,{_y:function(){return g},kr:function(){return a}});var r=n(8985),o=n(59353);let a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:d,outKeyframes:p},"zoom-right":{inKeyframes:f,outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},g=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=m[t];return[(0,o.R)(r,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},89869:function(e,t,n){n.d(t,{ZP:function(){return i},qN:function(){return o},wZ:function(){return a}});var r=n(2638);let o=8;function a(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o:r}}function i(e,t,n){var o,a,i,l,s,c,u,d;let{componentCls:p,boxShadowPopoverArrow:f,arrowOffsetVertical:m,arrowOffsetHorizontal:g}=e,{arrowDistance:h=0,arrowPlacement:b={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(p,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,f)),{"&:before":{background:t}})]},(o=!!b.top,a={[["&-placement-top > ".concat(p,"-arrow"),"&-placement-topLeft > ".concat(p,"-arrow"),"&-placement-topRight > ".concat(p,"-arrow")].join(",")]:{bottom:h,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-topRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},o?a:{})),(i=!!b.bottom,l={[["&-placement-bottom > ".concat(p,"-arrow"),"&-placement-bottomLeft > ".concat(p,"-arrow"),"&-placement-bottomRight > ".concat(p,"-arrow")].join(",")]:{top:h,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-bottomRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},i?l:{})),(s=!!b.left,c={[["&-placement-left > ".concat(p,"-arrow"),"&-placement-leftTop > ".concat(p,"-arrow"),"&-placement-leftBottom > ".concat(p,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:h},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(p,"-arrow")]:{top:m},["&-placement-leftBottom > ".concat(p,"-arrow")]:{bottom:m}},s?c:{})),(u=!!b.right,d={[["&-placement-right > ".concat(p,"-arrow"),"&-placement-rightTop > ".concat(p,"-arrow"),"&-placement-rightBottom > ".concat(p,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:h},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(p,"-arrow")]:{top:m},["&-placement-rightBottom > ".concat(p,"-arrow")]:{bottom:m}},u?d:{}))}}},2638:function(e,t,n){n.d(t,{W:function(){return a},w:function(){return o}});var r=n(8985);function o(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=1*r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,s=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,c=2*o-l,u=2*o-a,d=2*o-0,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m="polygon(".concat(f,"px 100%, 50% ").concat(f,"px, ").concat(2*o-f,"px 100%, ").concat(f,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(a," ").concat(i," L ").concat(l," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(c," ").concat(s," L ").concat(u," ").concat(i," A ").concat(r," ").concat(r," 0 0 0 ").concat(d," ").concat(o," Z')"),arrowPolygon:m}}let a=(e,t,n)=>{let{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,r.bf)(s)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},43345:function(e,t,n){n.d(t,{Mj:function(){return v},u_:function(){return b},uH:function(){return h}});var r=n(64090),o=n(8985),a=n(12215),i=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},l=n(46864),s=n(6336),c=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};let u=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),d=(e,t)=>new s.C(e).darken(t).toHexString(),p=e=>{let t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgLayout:d(n,4),colorBgContainer:d(n,0),colorBgElevated:d(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:d(n,15),colorBorderSecondary:d(n,6)}};var m=n(49202),g=e=>{let t=(0,m.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};let h=(0,o.jG)(function(e){let t=Object.keys(l.M).map(t=>{let n=(0,a.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t,{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),f=n(o),m=n(a),g=n(i),h=n(l),b=r(u,d),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},b),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new s.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:p,generateNeutralColorPalettes:f})),g(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),i(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},c(r))}(e))}),b={token:l.Z,override:{override:l.Z},hashed:!0},v=r.createContext(b)},46864:function(e,t,n){n.d(t,{M:function(){return r}});let r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},49202:function(e,t,n){function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},24750:function(e,t,n){n.d(t,{ZP:function(){return b},ID:function(){return m},NJ:function(){return f}});var r=n(64090),o=n(8985),a=n(43345),i=n(46864),l=n(6336);function s(e){return e>=0&&e<=255}var c=function(e,t){let{r:n,g:r,b:o,a:a}=new l.C(e).toRgb();if(a<1)return e;let{r:i,g:c,b:u}=new l.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-c*(1-e))/e),d=Math.round((o-u*(1-e))/e);if(s(t)&&s(a)&&s(d))return new l.C({r:t,g:a,b:d,a:Math.round(100*e)/100}).toRgbString()}return new l.C({r:n,g:r,b:o,a:1}).toRgbString()},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d(e){let{override:t}=e,n=u(e,["override"]),r=Object.assign({},t);Object.keys(i.Z).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:c(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:c(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:c(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:c(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new l.C("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new l.C("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new l.C("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},m={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,a=p(t,["override"]),i=Object.assign(Object.assign({},r),{override:o});return i=d(i),a&&Object.entries(a).forEach(e=>{let[t,n]=e,{theme:r}=n,o=p(n,["theme"]),a=o;r&&(a=h(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a}),i};function b(){let{token:e,hashed:t,theme:n,override:l,cssVar:s}=r.useContext(a.Mj),c="".concat("5.13.2","-").concat(t||""),u=n||a.uH,[p,b,v]=(0,o.fp)(u,[i.Z,e],{salt:c,override:l,getComputedToken:h,formatToken:d,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:f,ignore:m,preserve:g}});return[u,v,t?b:"",p,s]}},76585:function(e,t,n){n.d(t,{ZP:function(){return k},I$:function(){return A},bk:function(){return C}});var r=n(64090),o=n(8985);n(48563);var a=n(57499),i=n(11303),l=n(24750),s=n(47365),c=n(65127),u=n(72784),d=n(29676),p=n(68605),f=n(27478);let m=(0,c.Z)(function e(){(0,s.Z)(this,e)}),g=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(m),h="CALC_UNIT";function b(e){return"number"==typeof e?"".concat(e).concat(h):e}let v=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(h),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(m);var y=e=>{let t="css"===e?v:g;return e=>new t(e)},E=n(80316),S=n(28030);let w=(e,t,n)=>{var r;return"function"==typeof n?n((0,E.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},x=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(e=>{a[e]===t[e]&&delete a[e]}),a},O=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function k(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{let[c,p,f,m,g]=(0,l.ZP)(),{getPrefixCls:h,iconPrefixCls:b,csp:v}=(0,r.useContext)(a.E_),k=h(),C=g?"css":"js",T=y(C),{max:A,min:I}="js"===C?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}},N={theme:c,token:m,hashId:f,nonce:()=>null==v?void 0:v.nonce,clientOnly:s.clientOnly,order:s.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",k]}),()=>[{"&":(0,i.Lx)(m)}]),(0,S.Z)(b,v),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,b]}),()=>{if(!1===s.injectStyle)return[];let{token:r,flush:a}=(0,E.ZP)(m),l=w(u,p,n),c=".".concat(e),d=x(u,p,l,{deprecatedTokens:s.deprecatedTokens});g&&Object.keys(l).forEach(e=>{l[e]="var(".concat((0,o.ks)(e,O(u,g.prefix)),")")});let h=(0,E.TS)(r,{componentCls:c,prefixCls:e,iconCls:".".concat(b),antCls:".".concat(k),calc:T,max:A,min:I},g?l:d),v=t(h,{hashId:f,prefixCls:e,rootPrefixCls:k,iconPrefixCls:b});return a(u,d),[!1===s.resetStyle?null:(0,i.du)(h,e),v]}),f]}}let C=(e,t,n,r)=>{let o=k(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n)=>{function a(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:i={},injectStyle:s=!0}=null!=n?n:{},c={[a("zIndexPopup")]:!0};Object.keys(i).forEach(e=>{c[a(e)]=i[e]});let u=r=>{let{rootCls:i,cssVar:s}=r,[,u]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},l.NJ),c),ignore:l.ID,token:u,scope:i},()=>{let r=w(e,u,t),o=x(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[a(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,l.ZP)();return[o=>s&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},A=(e,t,n,r)=>{let o=k(e,t,n,r),a=T(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e),[r,i]=a(t);return[r,n,i]}}},80316:function(e,t,n){n.d(t,{TS:function(){return a}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}t.ZP=e=>{let t;let n=e,a=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{var r;i[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=i[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:a}}},28030:function(e,t,n){var r=n(8985),o=n(11303),a=n(24750);t.Z=(e,t)=>{let[n,i]=(0,a.ZP)();return(0,r.xy)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,o.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])}},1460:function(e,t,n){n.d(t,{Z:function(){return H}});var r=n(64090),o=n(16480),a=n.n(o);function i(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return r.createElement("div",{className:a()("".concat(n,"-content"),l),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}var l=n(14749),s=n(5239),c=n(6787),u=n(44101),d={shiftX:64,adjustY:1},p={adjustX:1,shiftY:!0},f=[0,0],m={left:{points:["cr","cl"],overflow:p,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:p,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:p,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:p,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:p,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:p,offset:[-4,0],targetOffset:f}},g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=(0,r.forwardRef)(function(e,t){var n=e.overlayClassName,o=e.trigger,a=e.mouseEnterDelay,d=e.mouseLeaveDelay,p=e.overlayStyle,f=e.prefixCls,h=void 0===f?"rc-tooltip":f,b=e.children,v=e.onVisibleChange,y=e.afterVisibleChange,E=e.transitionName,S=e.animation,w=e.motion,x=e.placement,O=e.align,k=e.destroyTooltipOnHide,C=e.defaultVisible,T=e.getTooltipContainer,A=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),N=e.id,R=e.showArrow,_=(0,c.Z)(e,g),P=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,function(){return P.current});var M=(0,s.Z)({},_);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(u.Z,(0,l.Z)({popupClassName:n,prefixCls:h,popup:function(){return r.createElement(i,{key:"content",prefixCls:h,id:N,overlayInnerStyle:A},I)},action:void 0===o?["hover"]:o,builtinPlacements:m,popupPlacement:void 0===x?"right":x,ref:P,popupAlign:void 0===O?{}:O,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:E,popupAnimation:S,popupMotion:w,defaultPopupVisible:C,autoDestroy:void 0!==k&&k,mouseLeaveDelay:void 0===d?.1:d,popupStyle:p,mouseEnterDelay:void 0===a?0:a,arrow:void 0===R||R},M),b)}),b=n(44329),v=n(51761),y=n(47387),E=n(67966),S=n(65823),w=n(76564),x=n(86718),O=n(57499),k=n(92801),C=n(24750),T=n(11303),A=n(58854),I=n(89869);let N=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var R=n(80316),_=n(76585),P=n(8985),M=n(2638);let L=e=>{var t;let{componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,P.bf)(e.calc(u).div(2).equal())," ").concat((0,P.bf)(d)),color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:e.min(i,I.qN)}},["".concat(n,"-content")]:{position:"relative"}}),(t=(e,t)=>{let{darkColor:r}=t;return{["&".concat(n,"-").concat(e)]:{["".concat(n,"-inner")]:{backgroundColor:r},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":r}}}},N.reduce((n,r)=>{let o=e["".concat(r,"1")],a=e["".concat(r,"3")],i=e["".concat(r,"6")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{}))),{"&-rtl":{direction:"rtl"}})},(0,I.ZP)(e,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},D=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,I.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,M.w)((0,R.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));function j(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,_.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[L((0,R.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),(0,A._y)(e,"zoom-big-fast")]},D,{resetStyle:!1,injectStyle:t})(e)}var F=n(63787);let B=N.map(e=>"".concat(e,"-inverse"));function U(e,t){let n=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,F.Z)(B),(0,F.Z)(N)).includes(e):N.includes(e)}(t),r=a()({["".concat(e,"-").concat(t)]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=r.forwardRef((e,t)=>{var n,o;let{prefixCls:i,openClassName:l,getTooltipContainer:s,overlayClassName:c,color:u,overlayInnerStyle:d,children:p,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:T=!0,title:A,overlay:I,builtinPlacements:N,arrowPointAtCenter:R=!1,autoAdjustOverflow:_=!0}=e,P=!!T,[,M]=(0,C.ZP)(),{getPopupContainer:L,getPrefixCls:D,direction:F}=r.useContext(O.E_),B=(0,w.ln)("Tooltip"),z=r.useRef(null),H=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>({forceAlign:H,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),H()}}));let[G,$]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),W=!A&&!I&&0!==A,V=r.useMemo(()=>{var e,t;let n=R;return"object"==typeof T&&(n=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:R),N||(0,E.Z)({arrowPointAtCenter:n,autoAdjustOverflow:_,arrowWidth:P?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[R,T,N,M]),q=r.useMemo(()=>0===A?A:I||A||"",[I,A]),Y=r.createElement(k.BR,null,"function"==typeof q?q():q),{getPopupContainer:K,placement:X="top",mouseEnterDelay:Q=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:et}=e,en=Z(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=D("tooltip",i),eo=D(),ea=e["data-popover-inject"],ei=G;"open"in e||"visible"in e||!W||(ei=!1);let el=(0,S.l$)(p)&&!(0,S.M2)(p)?p:r.createElement("span",null,p),es=el.props,ec=es.className&&"string"!=typeof es.className?es.className:a()(es.className,l||"".concat(er,"-open")),[eu,ed,ep]=j(er,!ea),ef=U(er,u),em=ef.arrowStyle,eg=Object.assign(Object.assign({},d),ef.overlayStyle),eh=a()(c,{["".concat(er,"-rtl")]:"rtl"===F},ef.className,et,ed,ep),[eb,ev]=(0,v.Cn)("Tooltip",en.zIndex),ey=r.createElement(h,Object.assign({},en,{zIndex:eb,showArrow:P,placement:X,mouseEnterDelay:Q,mouseLeaveDelay:J,prefixCls:er,overlayClassName:eh,overlayStyle:Object.assign(Object.assign({},em),ee),getTooltipContainer:K||s||L,ref:z,builtinPlacements:V,overlay:Y,visible:ei,onVisibleChange:t=>{var n,r;$(!W&&t),W||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:eg,arrowContent:r.createElement("span",{className:"".concat(er,"-arrow-content")}),motion:{motionName:(0,y.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ei?(0,S.Tm)(el,{className:ec}):el);return eu(r.createElement(x.Z.Provider,{value:ev},ey))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:l,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=r.useContext(O.E_),d=u("tooltip",t),[p,f,m]=j(d),g=U(d,s),h=g.arrowStyle,b=Object.assign(Object.assign({},c),g.overlayStyle),v=a()(f,m,d,"".concat(d,"-pure"),"".concat(d,"-placement-").concat(o),n,g.className);return p(r.createElement("div",{className:v,style:h},r.createElement("div",{className:"".concat(d,"-arrow")}),r.createElement(i,Object.assign({},e,{className:f,prefixCls:d,overlayInnerStyle:b}),l)))};var H=z},36083:function(e,t,n){n.d(t,{default:function(){return eh}});var r=n(64090),o=n(90507),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},u=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(16480),p=n.n(d),f=n(81441),m=n.n(f),g=n(46505),h=n(33054),b=n(24800),v=n(44329),y=n(35704),E=n(74084),S=n(22127),w=function(e){if((0,S.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},x=function(e,t){if(!w(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function O(e,t){return Array.isArray(e)||void 0===t?w(e):x(e,t)}var k=n(4295),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let T={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},A=r.forwardRef((e,t)=>{let{style:n,noStyle:o,disabled:a}=e,i=C(e,["style","noStyle","disabled"]),l={};return o||(l=Object.assign({},T)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),r.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{let{keyCode:t}=e;t===k.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{let{keyCode:n}=t,{onClick:r}=e;n===k.Z.ENTER&&r&&r()},style:l}))});var I=n(57499),N=n(70595),R=n(1460),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},P=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:_}))}),M=n(65823),L=n(78578);let D=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var j=n(76585),F=n(12215),B=n(8985);let U=(e,t,n,r)=>{let{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Z=e=>{let t={};return[1,2,3,4,5].forEach(n=>{t["\n h".concat(n,"&,\n div&-h").concat(n,",\n div&-h").concat(n," > textarea,\n h").concat(n,"\n ")]=U(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)}),t},z=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},D(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:F.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),G=e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:"calc(1em - ".concat((0,B.bf)(n),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),W=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),V=e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Z(e)),{["\n & + h1".concat(t,",\n & + h2").concat(t,",\n & + h3").concat(t,",\n & + h4").concat(t,",\n & + h5").concat(t,"\n ")]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),z(e)),{["\n ".concat(t,"-expand,\n ").concat(t,"-edit,\n ").concat(t,"-copy\n ")]:Object.assign(Object.assign({},D(e)),{marginInlineStart:e.marginXXS})}),G(e)),$(e)),W()),{"&-rtl":{direction:"rtl"}})}};var q=(0,j.I$)("Typography",e=>[V(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Y=e=>{let{prefixCls:t,"aria-label":n,className:o,style:a,direction:i,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=r.createElement(P,null)}=e,h=r.useRef(null),b=r.useRef(!1),v=r.useRef(),[y,E]=r.useState(c);r.useEffect(()=>{E(c)},[c]),r.useEffect(()=>{if(h.current&&h.current.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=()=>{u(y.trim())},w=m?"".concat(t,"-").concat(m):"",[x,O,C]=q(t),T=p()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===i},o,w,O,C);return x(r.createElement("div",{className:T,style:a},r.createElement(L.Z,{ref:h,maxLength:l,value:y,onChange:e=>{let{target:t}=e;E(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;b.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:a}=e;v.current!==t||b.current||n||r||o||a||(t===k.Z.ENTER?(S(),null==f||f()):t===k.Z.ESC&&d())},onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onBlur:()=>{S()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,M.Tm)(g,{className:"".concat(t,"-edit-content-confirm")}):null))};function K(e,t){return r.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var X=(e,t)=>{let n=r.useRef(!1);r.useEffect(()=>{n.current?e():n.current=!0},t)},Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=r.forwardRef((e,t)=>{let{prefixCls:n,component:o="article",className:a,rootClassName:i,setContentRef:l,children:s,direction:c,style:u}=e,d=Q(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=r.useContext(I.E_),h=t;l&&(h=(0,E.sQ)(t,l));let b=f("typography",n),[v,y,S]=q(b),w=p()(b,null==g?void 0:g.className,{["".concat(b,"-rtl")]:"rtl"===(null!=c?c:m)},a,i,y,S),x=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(o,Object.assign({className:w,style:x,ref:h},d),s))});function ee(e){let t=typeof e;return"string"===t||"number"===t}function et(e,t){let n=0,r=[];for(let o=0;ot){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=i}return e}var en=e=>{let{enabledMeasure:t,children:n,text:o,width:a,fontSize:i,rows:l,onEllipsis:s}=e,[[c,u,d],p]=r.useState([0,0,0]),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,E]=r.useState(0),S=r.useRef(null),w=r.useRef(null),x=r.useMemo(()=>(0,h.Z)(o),[o]),O=r.useMemo(()=>{let e;return e=0,x.forEach(t=>{ee(t)?e+=String(t).length:e+=1}),e},[x]),k=r.useMemo(()=>t&&3===g?n(et(x,u),u{t&&a&&i&&O&&(v(1),p([0,Math.ceil(O/2),O]))},[t,a,i,o,O,l]),(0,b.Z)(()=>{var e;1===g&&E((null===(e=S.current)||void 0===e?void 0:e.offsetHeight)||0)},[g]),(0,b.Z)(()=>{var e,t;if(y){if(1===g)((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=l*y?(v(4),s(!1)):v(2);else if(2===g){if(c!==d){let e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0,n=l*y,r=c,o=d;c===d-1?o=c:e<=n?r=u:o=u;let a=Math.ceil((r+o)/2);p([r,a,o])}else v(3),m(u),s(!0)}}},[g,c,d,l,y]);let C=(e,t,n)=>r.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return r.createElement(r.Fragment,null,k,t&&3!==g&&4!==g&&r.createElement(r.Fragment,null,C("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),C(1===g?n(x,!1):n(et(x,u),!0),w,{width:a,whiteSpace:"normal",margin:0,padding:0})))},er=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:a}=e;return(null==a?void 0:a.title)&&t?r.createElement(R.Z,Object.assign({open:!!n&&void 0},a),o):o},eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ea(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ei(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}let el=r.forwardRef((e,t)=>{var n,a,i;let{prefixCls:l,className:c,style:d,type:f,disabled:S,children:w,ellipsis:x,editable:k,copyable:C,component:T,title:_}=e,P=eo(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:L}=r.useContext(I.E_),[D]=(0,N.Z)("Text"),j=r.useRef(null),F=r.useRef(null),B=M("typography",l),U=(0,y.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[Z,z]=K(k),[H,G]=(0,v.Z)(!1,{value:z.editing}),{triggerType:$=["icon"]}=z,W=e=>{var t;e&&(null===(t=z.onStart)||void 0===t||t.call(z)),G(e)};X(()=>{var e;H||null===(e=F.current)||void 0===e||e.focus()},[H]);let V=e=>{null==e||e.preventDefault(),W(!0)},[q,Q]=K(C),[ee,et]=r.useState(!1),el=r.useRef(null),es={};Q.format&&(es.format=Q.format);let ec=()=>{el.current&&clearTimeout(el.current)},eu=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),m()(Q.text||String(w)||"",es),et(!0),ec(),el.current=setTimeout(()=>{et(!1)},3e3),null===(t=Q.onCopy)||void 0===t||t.call(Q,e)};r.useEffect(()=>ec,[]);let[ed,ep]=r.useState(!1),[ef,em]=r.useState(!1),[eg,eh]=r.useState(!1),[eb,ev]=r.useState(!1),[ey,eE]=r.useState(!1),[eS,ew]=r.useState(!0),[ex,eO]=K(x,{expandable:!1}),ek=ex&&!eg,{rows:eC=1}=eO,eT=r.useMemo(()=>!ek||void 0!==eO.suffix||eO.onEllipsis||eO.expandable||Z||q,[ek,eO,Z,q]);(0,b.Z)(()=>{ex&&!eT&&(ep(O("webkitLineClamp")),em(O("textOverflow")))},[eT,ex]);let eA=r.useMemo(()=>!eT&&(1===eC?ef:ed),[eT,ef,ed]),eI=ek&&(eA?ey:eb),eN=ek&&1===eC&&eA,eR=ek&&eC>1&&eA,e_=e=>{var t;eh(!0),null===(t=eO.onExpand)||void 0===t||t.call(eO,e)},[eP,eM]=r.useState(0),[eL,eD]=r.useState(0),ej=e=>{var t;ev(e),eb!==e&&(null===(t=eO.onEllipsis)||void 0===t||t.call(eO,e))};r.useEffect(()=>{let e=j.current;if(ex&&eA&&e){let t=eR?e.offsetHeight{let e=j.current;if("undefined"==typeof IntersectionObserver||!e||!eA||!ek)return;let t=new IntersectionObserver(()=>{ew(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eA,ek]);let eF={};eF=!0===eO.tooltip?{title:null!==(n=z.text)&&void 0!==n?n:w}:r.isValidElement(eO.tooltip)?{title:eO.tooltip}:"object"==typeof eO.tooltip?Object.assign({title:null!==(a=z.text)&&void 0!==a?a:w},eO.tooltip):{title:eO.tooltip};let eB=r.useMemo(()=>{let e=e=>["string","number"].includes(typeof e);return!ex||eA?void 0:e(z.text)?z.text:e(w)?w:e(_)?_:e(eF.title)?eF.title:void 0},[ex,eA,_,eF.title,eI]);if(H)return r.createElement(Y,{value:null!==(i=z.text)&&void 0!==i?i:"string"==typeof w?w:"",onSave:e=>{var t;null===(t=z.onChange)||void 0===t||t.call(z,e),W(!1)},onCancel:()=>{var e;null===(e=z.onCancel)||void 0===e||e.call(z),W(!1)},onEnd:z.onEnd,prefixCls:B,className:c,style:d,direction:L,component:T,maxLength:z.maxLength,autoSize:z.autoSize,enterIcon:z.enterIcon});let eU=()=>{let e;let{expandable:t,symbol:n}=eO;return t?(e=n||(null==D?void 0:D.expand),r.createElement("a",{key:"expand",className:"".concat(B,"-expand"),onClick:e_,"aria-label":null==D?void 0:D.expand},e)):null},eZ=()=>{if(!Z)return;let{icon:e,tooltip:t}=z,n=(0,h.Z)(t)[0]||(null==D?void 0:D.edit),o="string"==typeof n?n:"";return $.includes("icon")?r.createElement(R.Z,{key:"edit",title:!1===t?"":n},r.createElement(A,{ref:F,className:"".concat(B,"-edit"),onClick:V,"aria-label":o},e||r.createElement(u,{role:"button"}))):null},ez=()=>{if(!q)return null;let{tooltips:e,icon:t}=Q,n=ei(e),a=ei(t),i=ee?ea(n[1],null==D?void 0:D.copied):ea(n[0],null==D?void 0:D.copy),l=ee?null==D?void 0:D.copied:null==D?void 0:D.copy,c="string"==typeof i?i:l;return r.createElement(R.Z,{key:"copy",title:i},r.createElement(A,{className:p()("".concat(B,"-copy"),{["".concat(B,"-copy-success")]:ee,["".concat(B,"-copy-icon-only")]:null==w}),onClick:eu,"aria-label":c},ee?ea(a[1],r.createElement(o.Z,null),!0):ea(a[0],r.createElement(s,null),!0)))},eH=e=>[e&&eU(),eZ(),ez()],eG=e=>[e&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),eO.suffix,eH(e)];return r.createElement(g.Z,{onResize:(e,t)=>{var n;let{offsetWidth:r}=e;eM(r),eD(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!ek},n=>r.createElement(er,{tooltipProps:eF,enabledEllipsis:ek,isEllipsis:eI},r.createElement(J,Object.assign({className:p()({["".concat(B,"-").concat(f)]:f,["".concat(B,"-disabled")]:S,["".concat(B,"-ellipsis")]:ex,["".concat(B,"-single-line")]:ek&&1===eC,["".concat(B,"-ellipsis-single-line")]:eN,["".concat(B,"-ellipsis-multiple-line")]:eR},c),prefixCls:l,style:Object.assign(Object.assign({},d),{WebkitLineClamp:eR?eC:void 0}),component:T,ref:(0,E.sQ)(n,j,t),direction:L,onClick:$.includes("text")?V:void 0,"aria-label":null==eB?void 0:eB.toString(),title:_},U),r.createElement(en,{enabledMeasure:ek&&!eA,text:w,rows:eC,width:eP,fontSize:eL,onEllipsis:ej},(t,n)=>{let o=t;return t.length&&n&&eB&&(o=r.createElement("span",{key:"show-content","aria-hidden":!0},o)),function(e,t){let{mark:n,code:o,underline:a,delete:i,strong:l,keyboard:s,italic:c}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",a),d("del",i),d("code",o),d("mark",n),d("kbd",s),d("i",c),u}(e,r.createElement(r.Fragment,null,o,eG(n)))}))))});var es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ec=r.forwardRef((e,t)=>{var{ellipsis:n,rel:o}=e,a=es(e,["ellipsis","rel"]);let i=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete i.navigate,r.createElement(el,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),eu=r.forwardRef((e,t)=>r.createElement(el,Object.assign({ref:t},e,{component:"div"})));var ed=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ep=r.forwardRef((e,t)=>{var{ellipsis:n}=e,o=ed(e,["ellipsis"]);let a=r.useMemo(()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n,[n]);return r.createElement(el,Object.assign({ref:t},o,{ellipsis:a,component:"span"}))}),ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let em=[1,2,3,4,5],eg=r.forwardRef((e,t)=>{let n;let{level:o=1}=e,a=ef(e,["level"]);return n=em.includes(o)?"h".concat(o):"h1",r.createElement(el,Object.assign({ref:t},a,{component:n}))});J.Text=ep,J.Link=ec,J.Title=eg,J.Paragraph=eu;var eh=J},46495:function(e,t,n){n.d(t,{Z:function(){return ts}});var r=n(64090),o=n(63787),a=n(89542),i=n(16480),l=n.n(i),s=n(14749),c=n(47365),u=n(65127),d=n(34951),p=n(27478),f=n(85430),m=n(50833),g=n(5239),h=n(6787),b=n(86926),v=n(6976),y=n(74902),E=n(72480),S=n(53850);function w(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0}function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var O=function(e,t,n){var r=function e(r,o){if(r){if(r.path=o||"",r.isFile)r.file(function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(r.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(o).concat(r.name,"/"))})},i=r.createReader(),l=[],function e(){i.readEntries(function(t){var n=Array.prototype.slice.apply(t);l=l.concat(n),n.length?e():a(l)})}()}}};e.forEach(function(e){r(e.webkitGetAsEntry())})},k=+new Date,C=0;function T(){return"rc-upload-".concat(k,"-").concat(++C)}var A=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],I=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){(0,c.Z)(this,n);for(var e,r,a=arguments.length,i=Array(a),l=0;l0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];if(Array.isArray(r)){r.forEach(function(e){n.append("".concat(t,"[]"),e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var n;return e.onError(((n=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,n.method=e.method,n.url=e.action,n),x(t))}return e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}})({action:o,filename:c,data:n,file:a,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,a)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,a,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,a),delete t.reqs[f]}})}}},{key:"reset",value:function(){this.setState({uid:T()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.prefixCls,a=t.className,i=t.classNames,c=t.disabled,u=t.id,d=t.style,p=t.styles,f=t.multiple,b=t.accept,v=t.capture,y=t.children,S=t.directory,w=t.openFileDialogOnClick,x=t.onMouseEnter,O=t.onMouseLeave,k=t.hasControlInside,C=(0,h.Z)(t,A),T=l()((e={},(0,m.Z)(e,o,!0),(0,m.Z)(e,"".concat(o,"-disabled"),c),(0,m.Z)(e,a,a),e)),I=c?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return r.createElement(n,(0,s.Z)({},I,{className:T,role:k?void 0:"button",style:d}),r.createElement("input",(0,s.Z)({},(0,E.Z)(C,{aria:!0,data:!0}),{id:u,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,g.Z)({display:"none"},(void 0===p?{}:p).input),className:(void 0===i?{}:i).input,accept:b},S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},{multiple:f,onChange:this.onChange},null!=v?{capture:v}:{})),y)}}]),n}(r.Component);function N(){}var R=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=Array(r),a=0;a{let{componentCls:t,iconCls:n}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-drag")]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),[t]:{padding:e.padding},["".concat(t,"-btn")]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:"".concat((0,Z.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder)}},["".concat(t,"-drag-container")]:{display:"table-cell",verticalAlign:"middle"},["\n &:not(".concat(t,"-disabled):hover,\n &-hover:not(").concat(t,"-disabled)\n ")]:{borderColor:e.colorPrimaryHover},["p".concat(t,"-drag-icon")]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},["p".concat(t,"-text")]:{margin:"0 0 ".concat((0,Z.bf)(e.marginXXS)),color:e.colorTextHeading,fontSize:e.fontSizeLG},["p".concat(t,"-hint")]:{color:e.colorTextDescription,fontSize:e.fontSize},["&".concat(t,"-disabled")]:{["p".concat(t,"-drag-icon ").concat(n,",\n p").concat(t,"-text,\n p").concat(t,"-hint\n ")]:{color:e.colorTextDisabled}}}}}},H=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a,calc:i}=e,l="".concat(t,"-list-item"),s="".concat(l,"-actions"),c="".concat(l,"-action"),u=e.fontHeightSM;return{["".concat(t,"-wrapper")]:{["".concat(t,"-list")]:Object.assign(Object.assign({},(0,j.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:"background-color ".concat(e.motionDurationSlow),"&:hover":{backgroundColor:e.controlItemBgHover},["".concat(l,"-name")]:Object.assign(Object.assign({},j.vS),{padding:"0 ".concat((0,Z.bf)(e.paddingXS)),lineHeight:a,flex:"auto",transition:"all ".concat(e.motionDurationSlow)}),[s]:{[c]:{opacity:0},[r]:{color:e.actionsColor,transition:"all ".concat(e.motionDurationSlow)},["\n ".concat(c,":focus-visible,\n &.picture ").concat(c,"\n ")]:{opacity:1},["".concat(c).concat(n,"-btn")]:{height:u,border:0,lineHeight:1}},["".concat(t,"-icon ").concat(r)]:{color:e.colorTextDescription,fontSize:o},["".concat(l,"-progress")]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},["".concat(l,":hover ").concat(c)]:{opacity:1},["".concat(l,"-error")]:{color:e.colorError,["".concat(l,"-name, ").concat(t,"-icon ").concat(r)]:{color:e.colorError},[s]:{["".concat(r,", ").concat(r,":hover")]:{color:e.colorError},[c]:{opacity:1}}},["".concat(t,"-list-item-container")]:{transition:"opacity ".concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},G=n(13703);let $=new Z.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),W=new Z.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var V=e=>{let{componentCls:t}=e,n="".concat(t,"-animate-inline");return[{["".concat(t,"-wrapper")]:{["".concat(n,"-appear, ").concat(n,"-enter, ").concat(n,"-leave")]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},["".concat(n,"-appear, ").concat(n,"-enter")]:{animationName:$},["".concat(n,"-leave")]:{animationName:W}}},{["".concat(t,"-wrapper")]:(0,G.J$)(e)},$,W]},q=n(12215);let Y=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item");return{["".concat(t,"-wrapper")]:{["\n ".concat(i).concat(i,"-picture,\n ").concat(i).concat(i,"-picture-card,\n ").concat(i).concat(i,"-picture-circle\n ")]:{[l]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:"".concat((0,Z.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},["".concat(l,"-thumbnail")]:Object.assign(Object.assign({},j.vS),{width:r,height:r,lineHeight:(0,Z.bf)(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),["".concat(l,"-progress")]:{bottom:o,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingSM).mul(2).equal()),")"),marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},["".concat(l,"-error")]:{borderColor:e.colorError,["".concat(l,"-thumbnail ").concat(n)]:{["svg path[fill='".concat(q.iN[0],"']")]:{fill:e.colorErrorBg},["svg path[fill='".concat(q.iN.primary,"']")]:{fill:e.colorError}}},["".concat(l,"-uploading")]:{borderStyle:"dashed",["".concat(l,"-name")]:{marginBottom:o}}},["".concat(i).concat(i,"-picture-circle ").concat(l)]:{["&, &::before, ".concat(l,"-thumbnail")]:{borderRadius:"50%"}}}}},K=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item"),s=e.uploadPicCardSize;return{["\n ".concat(t,"-wrapper").concat(t,"-picture-card-wrapper,\n ").concat(t,"-wrapper").concat(t,"-picture-circle-wrapper\n ")]:Object.assign(Object.assign({},(0,j.dF)()),{display:"inline-block",width:"100%",["".concat(t).concat(t,"-select")]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),["> ".concat(t)]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},["&:not(".concat(t,"-disabled):hover")]:{borderColor:e.colorPrimary}},["".concat(i).concat(i,"-picture-card, ").concat(i).concat(i,"-picture-circle")]:{["".concat(i,"-item-container")]:{display:"inline-block",width:s,height:s,marginBlock:"0 ".concat((0,Z.bf)(e.marginXS)),marginInline:"0 ".concat((0,Z.bf)(e.marginXS)),verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),height:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),backgroundColor:e.colorBgMask,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'" "'}},["".concat(l,":hover")]:{["&::before, ".concat(l,"-actions")]:{opacity:1}},["".concat(l,"-actions")]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(e.motionDurationSlow),["\n ".concat(n,"-eye,\n ").concat(n,"-download,\n ").concat(n,"-delete\n ")]:{zIndex:10,width:r,margin:"0 ".concat((0,Z.bf)(e.marginXXS)),fontSize:r,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},["".concat(l,"-thumbnail, ").concat(l,"-thumbnail img")]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},["".concat(l,"-name")]:{display:"none",textAlign:"center"},["".concat(l,"-file + ").concat(l,"-name")]:{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")")},["".concat(l,"-uploading")]:{["&".concat(l)]:{backgroundColor:e.colorFillAlter},["&::before, ".concat(n,"-eye, ").concat(n,"-download, ").concat(n,"-delete")]:{display:"none"}},["".concat(l,"-progress")]:{bottom:e.marginXL,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),paddingInlineStart:0}}}),["".concat(t,"-wrapper").concat(t,"-picture-circle-wrapper")]:{["".concat(t).concat(t,"-select")]:{borderRadius:"50%"}}}};var X=e=>{let{componentCls:t}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"}}};let Q=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},(0,j.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},["".concat(t,"-select")]:{display:"inline-block"},["".concat(t,"-disabled")]:{color:n,cursor:"not-allowed"}})}};var J=(0,B.I$)("Upload",e=>{let{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=(0,U.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Q(i),z(i),Y(i),K(i),H(i),V(i),X(i),(0,F.Z)(i)]},e=>({actionsColor:e.colorTextDescription})),ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},et=n(60688),en=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ee}))}),er=n(66155),eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ea=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eo}))}),ei={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},el=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ei}))}),es=n(49367),ec=n(47387),eu=n(65823),ed=n(1861);function ep(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ef(e,t){let n=(0,o.Z)(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return -1===r?n.push(e):n[r]=e,n}function em(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},eh=e=>0===e.indexOf("image/"),eb=e=>{if(e.type&&!e.thumbUrl)return eh(e.type);let t=e.thumbUrl||e.url||"",n=eg(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function ev(e){return new Promise(t=>{if(!e.type||!eh(e.type)){t("");return}let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,s=0,c=0;e>a?c=-((l=200/e*a)-i)/2:s=-((i=200/a*e)-l)/2,r.drawImage(o,s,c,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eE=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ey}))}),eS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ew=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eS}))}),ex=n(41311),eO=n(99537),ek=n(90507),eC=n(77136),eT=n(81303),eA=n(35704),eI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eN=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current},eR=n(80406),e_=n(22127),eP=0,eM=(0,e_.Z)(),eL=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function eD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n);return"".concat(e[n]," ").concat("".concat(Math.floor(r*t),"%"))})}var ej=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.color,a=e.gradientId,i=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=o&&"object"===(0,v.Z)(o),m=d/2,g=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:f?"#FFF":void 0,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!f)return g;var h="".concat(a,"-conic"),b=eD(o,(360-p)/360),y=eD(o,1),E="conic-gradient(from ".concat(p?"".concat(180+p/2,"deg"):"0deg",", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:h},g),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},r.createElement(eL,{bg:S},r.createElement(eL,{bg:E}))))}),eF=function(e,t,n,r,o,a,i,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-r)/100*t;return"round"===s&&100!==r&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+n/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function eU(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eZ=function(e){var t,n,o,a,i,c,u,d,p=(0,g.Z)((0,g.Z)({},eI),e),f=p.id,m=p.prefixCls,b=p.steps,y=p.strokeWidth,E=p.trailWidth,S=p.gapDegree,w=void 0===S?0:S,x=p.gapPosition,O=p.trailColor,k=p.strokeLinecap,C=p.style,T=p.className,A=p.strokeColor,I=p.percent,N=(0,h.Z)(p,eB),R=(t=r.useState(),o=(n=(0,eR.Z)(t,2))[0],a=n[1],r.useEffect(function(){var e;a("rc_progress_".concat((eM?(e=eP,eP+=1):e="TEST_OR_SSR",e)))},[]),f||o),_="".concat(R,"-gradient"),P=50-y/2,M=2*Math.PI*P,L=w>0?90+w/2:-90,D=(360-w)/360*M,j="object"===(0,v.Z)(b)?b:{count:b,space:2},F=j.count,B=j.space,U=eU(I),Z=eU(A),z=Z.find(function(e){return e&&"object"===(0,v.Z)(e)}),H=z&&"object"===(0,v.Z)(z)?"butt":k,G=eF(M,D,0,100,L,w,x,O,H,y),$=eN();return r.createElement("svg",(0,s.Z)({className:l()("".concat(m,"-circle"),T),viewBox:"0 0 ".concat(100," ").concat(100),style:C,id:f,role:"presentation"},N),!F&&r.createElement("circle",{className:"".concat(m,"-circle-trail"),r:P,cx:50,cy:50,stroke:O,strokeLinecap:H,strokeWidth:E||y,style:G}),F?(i=Math.round(U[0]/100*F),c=100/F,u=0,Array(F).fill(null).map(function(e,t){var n=t<=i-1?Z[0]:O,o=n&&"object"===(0,v.Z)(n)?"url(#".concat(_,")"):void 0,a=eF(M,D,u,c,L,w,x,n,"butt",y,B);return u+=(D-a.strokeDashoffset+B)*100/D,r.createElement("circle",{key:t,className:"".concat(m,"-circle-path"),r:P,cx:50,cy:50,stroke:o,strokeWidth:y,opacity:1,style:a,ref:function(e){$[t]=e}})})):(d=0,U.map(function(e,t){var n=Z[t]||Z[Z.length-1],o=eF(M,D,d,e,L,w,x,n,H,y);return d+=e,r.createElement(ej,{key:t,color:n,ptg:e,radius:P,prefixCls:m,gradientId:_,style:o,strokeLinecap:H,strokeWidth:y,gapDegree:w,ref:function(e){$[t]=e},size:100})}).reverse()))},ez=n(1460);function eH(e){return!e||e<0?0:e>100?100:e}function eG(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}let e$=e=>{let{percent:t,success:n,successPercent:r}=e,o=eH(eG({success:n,successPercent:r}));return[o,eH(eH(t)-o)]},eW=e=>{let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||q.ez.green,n||null]},eV=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if("step"===t){let t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=r?r:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=t}else if("line"===t){let t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,s]},eq=e=>3/e*100;var eY=e=>{let{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:a,gapDegree:i,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eV(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eq(f),6));let h=r.useMemo(()=>i||0===i?i:"dashboard"===c?75:void 0,[i,c]),b="[object Object]"===Object.prototype.toString.call(e.strokeColor),v=eW({success:d,strokeColor:e.strokeColor}),y=l()("".concat(t,"-inner"),{["".concat(t,"-circle-gradient")]:b}),E=r.createElement(eZ,{percent:e$(e),strokeWidth:g,trailWidth:g,strokeColor:v,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:a||"dashboard"===c&&"bottom"||void 0});return r.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?r.createElement(ez.Z,{title:u},r.createElement("span",null,E)):r.createElement(r.Fragment,null,E,u))};let eK="--progress-line-stroke-color",eX="--progress-percent",eQ=e=>{let t=e?"100%":"-100%";return new Z.E4("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},["".concat(t,"-outer")]:{display:"inline-block",width:"100%"},["&".concat(t,"-show-info")]:{["".concat(t,"-outer")]:{marginInlineEnd:"calc(-2em - ".concat((0,Z.bf)(e.marginXS),")"),paddingInlineEnd:"calc(2em + ".concat((0,Z.bf)(e.paddingXS),")")}},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(eK,")")]},height:"100%",width:"calc(1 / var(".concat(eX,") * 100%)"),display:"block"}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:eQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:eQ(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},e0=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},e1=e=>{let{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},e2=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}};var e4=(0,B.I$)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=(0,U.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eJ(n),e0(n),e1(n),e2(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})),e3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let e6=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")}).join(", ")},e5=(e,t)=>{let{from:n=q.ez.blue,to:r=q.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,a=e3(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=e6(a),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[eK]:t}}let i="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:i,[eK]:i}};var e8=e=>{let{prefixCls:t,direction:n,percent:o,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=l&&"string"!=typeof l?e5(l,n):{[eK]:l,background:l},f="square"===s||"butt"===s?0:void 0,[m,g]=eV(null!=a?a:[-1,i||("small"===a?6:8)],"line",{strokeWidth:i}),h=Object.assign(Object.assign({width:"".concat(eH(o),"%"),height:g,borderRadius:f},p),{[eX]:eH(o)/100}),b=eG(e),v={width:"".concat(eH(b),"%"),height:g,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(t,"-outer"),style:{width:m<0?"100%":m,height:g}},r.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:u||void 0,borderRadius:f}},r.createElement("div",{className:"".concat(t,"-bg"),style:h}),void 0!==b?r.createElement("div",{className:"".concat(t,"-success-bg"),style:v}):null)),c)},e9=e=>{let{size:t,steps:n,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(o/100*n),[p,f]=eV(null!=t?t:["small"===t?2:14,a],"step",{steps:n,strokeWidth:a}),m=p/n,g=Array(n);for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let te=["normal","exception","active","success"],tt=r.forwardRef((e,t)=>{let n;let{prefixCls:o,className:a,rootClassName:i,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=e7(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=r.useMemo(()=>{var t,n;let r=eG(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=u?u:0)||void 0===n?void 0:n.toString(),10)},[u,e.success,e.successPercent]),y=r.useMemo(()=>!te.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:E,direction:S,progress:w}=r.useContext(P.E_),x=E("progress",o),[O,k,C]=e4(x),T=r.useMemo(()=>{let t;if(!p)return null;let n=eG(e),o=g||(e=>"".concat(e,"%")),a="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eH(u),eH(n)):"exception"===y?t=a?r.createElement(eC.Z,null):r.createElement(eT.Z,null):"success"===y&&(t=a?r.createElement(eO.Z,null):r.createElement(ek.Z,null)),r.createElement("span",{className:"".concat(x,"-text"),title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,x,g]),A=Array.isArray(c)?c[0]:c,I="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?n=s?r.createElement(e9,Object.assign({},e,{strokeColor:I,prefixCls:x,steps:s}),T):r.createElement(e8,Object.assign({},e,{strokeColor:A,prefixCls:x,direction:S}),T):("circle"===f||"dashboard"===f)&&(n=r.createElement(eY,Object.assign({},e,{strokeColor:A,prefixCls:x,progressStatus:y}),T));let N=l()(x,"".concat(x,"-status-").concat(y),"".concat(x,"-").concat("dashboard"===f&&"circle"||s&&"steps"||f),{["".concat(x,"-inline-circle")]:"circle"===f&&eV(d,"circle")[0]<=20,["".concat(x,"-show-info")]:p,["".concat(x,"-").concat(d)]:"string"==typeof d,["".concat(x,"-rtl")]:"rtl"===S},null==w?void 0:w.className,a,i,k,C);return O(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==w?void 0:w.style),h),className:N,role:"progressbar","aria-valuenow":v},(0,eA.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),n))}),tn=r.forwardRef((e,t)=>{var n,o;let{prefixCls:a,className:i,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:E,previewIcon:S,removeIcon:w,downloadIcon:x,onPreview:O,onDownload:k,onClose:C}=e,{status:T}=d,[A,I]=r.useState(T);r.useEffect(()=>{"removed"!==T&&I(T)},[T]);let[N,R]=r.useState(!1);r.useEffect(()=>{let e=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(e)}},[]);let _=m(d),M=r.createElement("div",{className:"".concat(a,"-icon")},_);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==A&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?r.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(a,"-list-item-image"),crossOrigin:d.crossOrigin}):_,t=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:b&&!b(d)});M=r.createElement("a",{className:t,onClick:e=>O(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:"uploading"!==A});M=r.createElement("div",{className:e},_)}}let L=l()("".concat(a,"-list-item"),"".concat(a,"-list-item-").concat(A)),D="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,j=y?g(("function"==typeof w?w(d):w)||r.createElement(eE,null),()=>C(d),a,c.removeFile,!0):null,F=E&&"done"===A?g(("function"==typeof x?x(d):x)||r.createElement(ew,null),()=>k(d),a,c.downloadFile):null,B="picture-card"!==u&&"picture-circle"!==u&&r.createElement("span",{key:"download-delete",className:l()("".concat(a,"-list-item-actions"),{picture:"picture"===u})},F,j),U=l()("".concat(a,"-list-item-name")),Z=d.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:d.name},D,{href:d.url,onClick:e=>O(d,e)}),d.name),B]:[r.createElement("span",{key:"view",className:U,onClick:e=>O(d,e),title:d.name},d.name),B],z=v&&(d.url||d.thumbUrl)?r.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>O(d,e),title:c.previewFile},"function"==typeof S?S(d):S||r.createElement(ex.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==A&&r.createElement("span",{className:"".concat(a,"-list-item-actions")},z,"done"===A&&F,j),{getPrefixCls:G}=r.useContext(P.E_),$=G(),W=r.createElement("div",{className:L},M,Z,H,N&&r.createElement(es.ZP,{motionName:"".concat($,"-fade"),visible:"uploading"===A,motionDeadline:2e3},e=>{let{className:t}=e,n="percent"in d?r.createElement(tt,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return r.createElement("div",{className:l()("".concat(a,"-list-item-progress"),t)},n)})),V=d.response&&"string"==typeof d.response?d.response:(null===(n=d.error)||void 0===n?void 0:n.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,q="error"===A?r.createElement(ez.Z,{title:V,getPopupContainer:e=>e.parentNode},W):W;return r.createElement("div",{className:l()("".concat(a,"-list-item-container"),i),style:s,ref:t},h?h(q,d,p,{download:k.bind(null,d),preview:O.bind(null,d),remove:C.bind(null,d)}):q)}),tr=r.forwardRef((e,t)=>{let{listType:n="text",previewFile:a=ev,onPreview:i,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=eb,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:E,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:x=!0,itemRender:O,disabled:k}=e,C=function(){let[,e]=r.useReducer(e=>e+1,0);return e}(),[T,A]=r.useState(!1);r.useEffect(()=>{("picture"===n||"picture-card"===n||"picture-circle"===n)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",C()}))})},[n,m,a]),r.useEffect(()=>{A(!0)},[]);let I=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},N=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},R=e=>{null==c||c(e)},_=e=>{if(d)return d(e,n);let t="uploading"===e.status,o=p&&p(e)?r.createElement(el,null):r.createElement(en,null),a=t?r.createElement(er.Z,null):r.createElement(ea,null);return"picture"===n?a=t?r.createElement(er.Z,null):o:("picture-card"===n||"picture-circle"===n)&&(a=t?u.uploading:o),a},M=(e,t,n,o,a)=>{let i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,eu.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-action")};if(a&&(i.disabled=k),(0,eu.l$)(e)){let t=(0,eu.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(ed.ZP,Object.assign({},i,{icon:t}))}return r.createElement(ed.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:N}));let{getPrefixCls:L}=r.useContext(P.E_),D=L("upload",f),j=L(),F=l()("".concat(D,"-list"),"".concat(D,"-list-").concat(n)),B=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),U={motionDeadline:2e3,motionName:"".concat(D,"-").concat("picture-card"===n||"picture-circle"===n?"animate-inline":"animate"),keys:B,motionAppear:T},Z=r.useMemo(()=>{let e=Object.assign({},(0,ec.Z)(j));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[j]);return"picture-card"!==n&&"picture-circle"!==n&&(U=Object.assign(Object.assign({},Z),U)),r.createElement("div",{className:F},r.createElement(es.V4,Object.assign({},U,{component:!1}),e=>{let{key:t,file:o,className:a,style:i}=e;return r.createElement(tn,{key:t,locale:u,prefixCls:D,className:a,style:i,file:o,items:m,progress:S,listType:n,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:E,iconRender:_,actionIconRender:M,itemRender:O,onPreview:I,onDownload:N,onClose:R})}),w&&r.createElement(es.ZP,Object.assign({},U,{visible:x,forceRender:!0}),e=>{let{className:t,style:n}=e;return(0,eu.Tm)(w,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))}),to="__LIST_IGNORE_".concat(Date.now(),"__"),ta=r.forwardRef((e,t)=>{let{fileList:n,defaultFileList:i,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:E,prefixCls:S,className:w,type:x="select",children:O,style:k,itemRender:C,maxCount:T,data:A={},multiple:I=!1,hasControlInside:N=!0,action:j="",accept:F="",supportServerRender:B=!0,rootClassName:U}=e,Z=r.useContext(M.Z),z=null!=h?h:Z,[H,G]=(0,_.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[$,W]=r.useState("drop"),V=r.useRef(null);r.useMemo(()=>{let e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))})},[n]);let q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===T?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,a.flushSync)(()=>{G(r)});let l={file:e,fileList:r};n&&(l.event=n),(!i||r.some(t=>t.uid===e.uid))&&(0,a.flushSync)(()=>{null==f||f(l)})},Y=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let n=t.map(e=>ep(e.file)),r=(0,o.Z)(H);n.forEach(e=>{r=ef(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t;let{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}q(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!em(t,H))return;let r=ep(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=ef(r,H);q(r,o)},X=(e,t)=>{if(!em(t,H))return;let n=ep(t);n.status="uploading",n.percent=e.percent;let r=ef(n,H);q(n,r,e)},Q=(e,t,n)=>{if(!em(n,H))return;let r=ep(n);r.error=e,r.response=t,r.status="error";let o=ef(r,H);q(r,o)},ee=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(n=>{var r;if(!1===n)return;let o=function(e,t){let n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))})},et=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};r.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:K,onProgress:X,onError:Q,fileList:H,upload:V.current}));let{getPrefixCls:en,direction:er,upload:eo}=r.useContext(P.E_),ea=en("upload",S),ei=Object.assign(Object.assign({onBatchStart:Y,onError:Q,onProgress:X,onSuccess:K},e),{data:A,multiple:I,action:j,accept:F,supportServerRender:B,prefixCls:ea,disabled:z,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}s((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:N});delete ei.className,delete ei.style,(!O||z)&&delete ei.id;let el="".concat(ea,"-wrapper"),[es,ec,eu]=J(ea,el),[ed]=(0,L.Z)("Upload",D.Z.Upload),{showRemoveIcon:eg,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE}="boolean"==typeof c?{}:c,eS=void 0===eg?!z:!!eg,ew=(e,t)=>c?r.createElement(tr,{prefixCls:ea,listType:u,items:H,previewFile:g,onPreview:d,onDownload:p,onRemove:ee,showRemoveIcon:eS,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:y,progress:E,appendAction:e,appendActionVisible:t,itemRender:C,disabled:z}):e,ex=l()(el,w,U,ec,eu,null==eo?void 0:eo.className,{["".concat(ea,"-rtl")]:"rtl"===er,["".concat(ea,"-picture-card-wrapper")]:"picture-card"===u,["".concat(ea,"-picture-circle-wrapper")]:"picture-circle"===u}),eO=Object.assign(Object.assign({},null==eo?void 0:eo.style),k);if("drag"===x){let e=l()(ec,ea,"".concat(ea,"-drag"),{["".concat(ea,"-drag-uploading")]:H.some(e=>"uploading"===e.status),["".concat(ea,"-drag-hover")]:"dragover"===$,["".concat(ea,"-disabled")]:z,["".concat(ea,"-rtl")]:"rtl"===er});return es(r.createElement("span",{className:ex},r.createElement("div",{className:e,style:eO,onDrop:et,onDragOver:et,onDragLeave:et},r.createElement(R,Object.assign({},ei,{ref:V,className:"".concat(ea,"-btn")}),r.createElement("div",{className:"".concat(ea,"-drag-container")},O))),ew()))}let ek=l()(ea,"".concat(ea,"-select"),{["".concat(ea,"-disabled")]:z}),eC=r.createElement("div",{className:ek,style:O?void 0:{display:"none"}},r.createElement(R,Object.assign({},ei,{ref:V})));return es("picture-card"===u||"picture-circle"===u?r.createElement("span",{className:ex},ew(eC,!!O)):r.createElement("span",{className:ex},eC,ew()))});var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tl=r.forwardRef((e,t)=>{var{style:n,height:o,hasControlInside:a=!1}=e,i=ti(e,["style","height","hasControlInside"]);return r.createElement(ta,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))});ta.Dragger=tl,ta.LIST_IGNORE=to;var ts=ta},81441:function(e,t,n){var r=n(89090),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u,d,p=!1;t||(t={}),i=t.debug||!1;try{if(s=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),s()}return p}},6122:function(e,t,n){var r;!function(o){var a,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,s="[DecimalError] ",c=s+"Invalid argument: ",u=s+"Exponent out of range: ",d=Math.floor,p=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=d(1286742750677284.5),g={};function h(e,t){var n,r,o,a,i,s,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?C(t,p):t;if(c=e.d,u=t.d,i=e.e,o=t.e,c=c.slice(),a=i-o){for(a<0?(r=c,a=-a,s=u.length):(r=u,o=i,s=c.length),a>(s=(i=Math.ceil(p/7))>s?i+1:s+1)&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((s=c.length)-(a=u.length)<0&&(a=s,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/1e7|0,c[a]%=1e7;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,l?C(t,p):t}function b(e,t,n){if(e!==~~e||en)throw Error(c+e)}function v(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},g.dividedBy=g.div=function(e){return y(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return C(y(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return 0>this.cmp(e)},g.lessThanOrEqualTo=g.lte=function(e){return 1>this.cmp(e)},g.logarithm=g.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(a))throw Error(s+"NaN");if(this.s<1)throw Error(s+(this.s?"NaN":"-Infinity"));return this.eq(a)?new n(0):(l=!1,t=y(O(this,o),O(e,o),o),l=!0,C(t,r))},g.minus=g.sub=function(e){return e=new this.constructor(e),this.s==e.s?T(this,e):h(this,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return this.s?(l=!1,t=y(this,e,0,1).times(e),l=!0,this.minus(t)):C(new n(this),r)},g.naturalExponential=g.exp=function(){return E(this)},g.naturalLogarithm=g.ln=function(){return O(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){return e=new this.constructor(e),this.s==e.s?h(this,e):T(this,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(c+e);if(t=S(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,a,i,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(s+"NaN")}for(e=S(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=v(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=i=(n=c.precision)+3;;)if(r=(a=r).plus(y(this,a,i+2)).times(.5),v(a.d).slice(0,i)===(t=v(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(C(a,n+1,0),a.times(a).eq(this)){r=a;break}}else if("9999"!=t)break;i+=4}return l=!0,C(r,n)},g.times=g.mul=function(e){var t,n,r,o,a,i,s,c,u,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(!this.s||!e.s)return new d(0);for(e.s*=this.s,n=this.e+e.e,(c=p.length)<(u=f.length)&&(a=p,p=f,f=a,i=c,c=u,u=i),a=[],r=i=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=a[o]+f[r]*p[o-r-1]+t,a[o--]=s%1e7|0,t=s/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,l?C(e,d.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(b(e,0,1e9),void 0===t?t=r.rounding:b(t,0,8),C(n,e+S(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=A(r,!0):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A(r=C(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?A(this):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A((r=C(new o(this),e+S(this)+1,t)).abs(),!1,e+S(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this.constructor;return C(new e(this),S(this)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,i,c,u=this,p=u.constructor,f=+(e=new p(e));if(!e.s)return new p(a);if(!(u=new p(u)).s){if(e.s<1)throw Error(s+"Infinity");return u}if(u.eq(a))return u;if(r=p.precision,e.eq(a))return C(u,r);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=f<0?-f:f)<=9007199254740991){for(o=new p(a),t=Math.ceil(r/7+4),l=!1;n%2&&I((o=o.times(u)).d,t),0!==(n=d(n/2));)I((u=u.times(u)).d,t);return l=!0,e.s<0?new p(a).div(o):C(o,r)}}else if(i<0)throw Error(s+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,o=e.times(O(u,r+12)),l=!0,(o=E(o)).s=i,o},g.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?(n=S(o),r=A(o,n<=a.toExpNeg||n>=a.toExpPos)):(b(e,1,1e9),void 0===t?t=a.rounding:b(t,0,8),n=S(o=C(new a(o),e,t)),r=A(o,e<=n||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,1e9),void 0===t?t=n.rounding:b(t,0,8)),C(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=S(this),t=this.constructor;return A(this,e<=t.toExpNeg||e>=t.toExpPos)};var y=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,a,i){var l,c,u,d,p,f,m,g,h,b,v,y,E,w,x,O,k,T,A=r.constructor,I=r.s==o.s?1:-1,N=r.d,R=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(s+"Division by zero");for(u=0,c=r.e-o.e,k=R.length,x=N.length,g=(m=new A(I)).d=[];R[u]==(N[u]||0);)++u;if(R[u]>(N[u]||0)&&--c,(y=null==a?a=A.precision:i?a+(S(r)-S(o))+1:a)<0)return new A(0);if(y=y/7+2|0,u=0,1==k)for(d=0,R=R[0],y++;(u1&&(R=e(R,d),N=e(N,d),k=R.length,x=N.length),w=k,b=(h=N.slice(0,k)).length;b=1e7/2&&++O;do d=0,(l=t(R,h,k,b))<0?(v=h[0],k!=b&&(v=1e7*v+(h[1]||0)),(d=v/O|0)>1?(d>=1e7&&(d=1e7-1),f=(p=e(R,d)).length,b=h.length,1==(l=t(p,h,f,b))&&(d--,n(p,k16)throw Error(u+S(e));if(!e.s)return new f(a);for(null==t?(l=!1,s=m):s=t,i=new f(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(s+=Math.log(p(2,d))/Math.LN10*2+5|0,n=r=o=new f(a),f.precision=s;;){if(r=C(r.times(e),s),n=n.times(++c),v((i=o.plus(y(r,n,s))).d).slice(0,s)===v(o.d).slice(0,s)){for(;d--;)o=C(o.times(o),s);return f.precision=m,null==t?(l=!0,C(o,m)):o}o=i}}function S(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function w(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,o,i,c,u,d,p,f,m=1,g=e,h=g.d,b=g.constructor,E=b.precision;if(g.s<1)throw Error(s+(g.s?"NaN":"-Infinity"));if(g.eq(a))return new b(0);if(null==t?(l=!1,p=E):p=t,g.eq(10))return null==t&&(l=!0),w(b,p);if(p+=10,b.precision=p,r=(n=v(h)).charAt(0),!(15e14>Math.abs(i=S(g))))return d=w(b,p+2,E).times(i+""),g=O(new b(r+"."+n.slice(1)),p-10).plus(d),b.precision=E,null==t?(l=!0,C(g,E)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=v((g=g.times(e)).d)).charAt(0),m++;for(i=S(g),r>1?(g=new b("0."+n),i++):g=new b(r+"."+n.slice(1)),u=c=g=y(g.minus(a),g.plus(a),p),f=C(g.times(g),p),o=3;;){if(c=C(c.times(f),p),v((d=u.plus(y(c,new b(o),p))).d).slice(0,p)===v(u.d).slice(0,p))return u=u.times(2),0!==i&&(u=u.plus(w(b,p+2,E).times(i+""))),u=y(u,new b(m),p),b.precision=E,null==t?(l=!0,C(u,E)):u;u=d,o+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rm||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,o,a,i,s,c,f,g,h=e.d;for(i=1,a=h[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,f=h[g=0];else{if((g=Math.ceil((r+1)/7))>=(a=h.length))return e;for(i=1,f=a=h[g];a>=10;a/=10)i++;r%=7,o=r-7+i}if(void 0!==n&&(s=f/(a=p(10,i-o-1))%10|0,c=t<0||void 0!==h[g+1]||f%a,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?f/p(10,i-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(a=S(e),h.length=1,t=t-a-1,h[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(0==r?(h.length=g,a=1,g--):(h.length=g+1,a=p(10,7-r),h[g]=o>0?(f/p(10,i-o)%p(10,o)|0)*a:0),c)for(;;){if(0==g){1e7==(h[0]+=a)&&(h[0]=1,++e.e);break}if(h[g]+=a,1e7!=h[g])break;h[g--]=0,a=1}for(r=h.length;0===h[--r];)h.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+S(e));return e}function T(e,t){var n,r,o,a,i,s,c,u,d,p,f=e.constructor,m=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?C(t,m):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),i=u-r){for((d=i<0)?(n=c,i=-i,s=p.length):(n=p,r=u,s=c.length),i>(o=Math.max(Math.ceil(m/7),s)+2)&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(s=p.length))&&(s=o),o=0;o0;--o)c[s++]=0;for(o=p.length;o>i;){if(c[--o]0?a=a.charAt(0)+"."+a.slice(1)+x(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+x(-o-1)+a,n&&(r=n-i)>0&&(a+=x(r))):o>=i?(a+=x(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+x(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=x(r))),e.s<0?"-"+a:a}function I(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(c+n+": "+r)}if(void 0!==(r=e[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(c+n+": "+r)}return this}(i=function e(t){var n,r,o;function a(e){if(!(this instanceof a))return new a(e);if(this.constructor=a,e instanceof a){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,f.test(e))k(this,e);else throw Error(c+e)}if(a.prototype=g,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=N,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n4&&m.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?g=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=s.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),i+f)),h=o),new h(g,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},31872:function(e,t,n){var r=n(96130),o=n(64730),a=n(61861),i=n(46982),l=n(83671),s=n(53618);e.exports=r([a,o,i,l,s])},83671:function(e,t,n){var r=n(7667),o=n(13585),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},53618:function(e,t,n){var r=n(7667),o=n(13585),a=n(46640),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},46640:function(e,t,n){var r=n(25852);e.exports=function(e,t){return r(e,t.toLowerCase())}},25852:function(e){e.exports=function(e,t){return t in e?e[t]:t}},13585:function(e,t,n){var r=n(39900),o=n(94949),a=n(7478);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},7478:function(e,t,n){var r=n(74108),o=n(7667);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d-1}},64797:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},94410:function(e,t,n){var r=n(320)();e.exports=r},77458:function(e,t,n){var r=n(94410),o=n(39406);e.exports=function(e,t){return e&&r(e,t,o)}},38824:function(e,t,n){var r=n(53066),o=n(217);e.exports=function(e,t){t=r(t,e);for(var n=0,a=t.length;null!=e&&nt}},69959:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77095:function(e,t,n){var r=n(47495),o=n(77562),a=n(48150);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},63686:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},29759:function(e,t,n){var r=n(28685),o=n(19340);e.exports=function e(t,n,a,i,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,a,i,e,l):t!=t&&n!=n)}},28685:function(e,t,n){var r=n(4380),o=n(63859),a=n(41020),i=n(10701),l=n(96770),s=n(95059),c=n(64843),u=n(30484),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,h,b){var v=s(e),y=s(t),E=v?p:l(e),S=y?p:l(t);E=E==d?f:E,S=S==d?f:S;var w=E==f,x=S==f,O=E==S;if(O&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new r),v||u(e)?o(e,t,n,g,h,b):a(e,t,E,n,g,h,b);if(!(1&n)){var k=w&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(k||C){var T=k?e.value():e,A=C?t.value():t;return b||(b=new r),h(T,A,n,g,b)}}return!!O&&(b||(b=new r),i(e,t,n,g,h,b))}},59165:function(e,t,n){var r=n(4380),o=n(29759);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=200){var g=t?null:l(e);if(g)return s(g);p=!1,u=i,m=new r}else m=t?[]:f;t:for(;++c=o?e:r(e,t,n)}},9058:function(e,t,n){var r=n(62704);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e=s)return c;return c*("desc"==n[o]?-1:1)}}return e.index-t.index}},35852:function(e,t,n){var r=n(67741)["__core-js_shared__"];e.exports=r},91502:function(e,t,n){var r=n(10187);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i-1?l[s?t[c]:c]:void 0}}},16519:function(e,t,n){var r=n(67535),o=n(45021),a=n(55038);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?tu))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=-1,g=!0,h=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++m-1&&e%1==0&&e-1}},42572:function(e,t,n){var r=n(89329);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},26528:function(e,t,n){var r=n(68193),o=n(5835),a=n(58246);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},90972:function(e,t,n){var r=n(72080);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},55981:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).get(e)}},76656:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).has(e)}},45541:function(e,t,n){var r=n(72080);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},38737:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},69794:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},53092:function(e,t,n){var r=n(49512);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},83463:function(e,t,n){var r=n(93245)(Object,"create");e.exports=r},51678:function(e,t,n){var r=n(93332)(Object.keys,Object);e.exports=r},16474:function(e,t,n){e=n.nmd(e);var r=n(58584),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},8611:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},93332:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7157:function(e,t,n){var r=n(24821),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4800:function(e,t,n){var r=n(5835);e.exports=function(){this.__data__=new r,this.size=0}},73987:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},59728:function(e){e.exports=function(e){return this.__data__.get(e)}},4146:function(e){e.exports=function(e){return this.__data__.has(e)}},81333:function(e,t,n){var r=n(5835),o=n(58246),a=n(93785);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},48150:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||h&&r>=u}function E(){var e,n,r,a=o();if(y(a))return S(a);p=setTimeout(E,(e=a-f,n=a-m,r=t-e,h?l(r,u-n):r))}function S(e){return(p=void 0,b&&s)?v(e):(s=c=void 0,d)}function w(){var e,n=o(),r=y(n);if(s=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(E,t),g?v(e):d;if(h)return clearTimeout(p),p=setTimeout(E,t),v(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(h="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=f=c=p=void 0},w.flush=function(){return void 0===p?d:S(o())},w}},61595:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72986:function(e,t,n){var r=n(31917),o=n(31062),a=n(49452),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,a(t,3))}},209:function(e,t,n){var r=n(70493)(n(87539));e.exports=r},87539:function(e,t,n){var r=n(47495),o=n(49452),a=n(26018),i=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var s=null==n?0:a(n);return s<0&&(s=i(l+s,0)),r(e,o(t,3),s)}},20734:function(e,t,n){var r=n(9677),o=n(30677);e.exports=function(e,t){return r(o(e,t),1)}},44750:function(e,t,n){var r=n(38824);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},19955:function(e,t,n){var r=n(69959),o=n(24986);e.exports=function(e,t){return null!=e&&o(e,t,r)}},39100:function(e){e.exports=function(e){return e}},99782:function(e,t,n){var r=n(63686),o=n(19340),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},95059:function(e){var t=Array.isArray;e.exports=t},10187:function(e,t,n){var r=n(80509),o=n(54512);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},90849:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},64843:function(e,t,n){e=n.nmd(e);var r=n(67741),o=n(33879),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||o},93574:function(e,t,n){var r=n(29759);e.exports=function(e,t){return r(e,t)}},80509:function(e,t,n){var r=n(7976),o=n(70816);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},54512:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},96240:function(e,t,n){var r=n(39018);e.exports=function(e){return r(e)&&e!=+e}},71292:function(e){e.exports=function(e){return null==e}},39018:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},70816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19340:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},23393:function(e,t,n){var r=n(7976),o=n(28766),a=n(19340),i=Object.prototype,l=Function.prototype.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},96907:function(e,t,n){var r=n(7976),o=n(95059),a=n(19340);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},62704:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},30484:function(e,t,n){var r=n(80043),o=n(43863),a=n(16474),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},39406:function(e,t,n){var r=n(26546),o=n(92916),a=n(10187);e.exports=function(e){return a(e)?r(e):o(e)}},36887:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30677:function(e,t,n){var r=n(83690),o=n(49452),a=n(28245),i=n(95059);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},50924:function(e,t,n){var r=n(30804),o=n(77458),a=n(49452);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},5037:function(e,t,n){var r=n(41764),o=n(92262),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},49512:function(e,t,n){var r=n(93785);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},30264:function(e,t,n){var r=n(41764),o=n(87004),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},67222:function(e){e.exports=function(){}},80128:function(e,t,n){var r=n(67741);e.exports=function(){return r.Date.now()}},62973:function(e,t,n){var r=n(60411),o=n(34831),a=n(55632),i=n(217);e.exports=function(e){return a(e)?r(i(e)):o(e)}},1646:function(e,t,n){var r=n(16519)();e.exports=r},13435:function(e,t,n){var r=n(30927),o=n(49452),a=n(61700),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:a;return n&&l(e,t,n)&&(t=void 0),s(e,o(t,3))}},97572:function(e,t,n){var r=n(9677),o=n(56871),a=n(70712),i=n(45021),l=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=l},30786:function(e){e.exports=function(){return[]}},33879:function(e){e.exports=function(){return!1}},68417:function(e,t,n){var r=n(54525),o=n(70816);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},55038:function(e,t,n){var r=n(89753),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},26018:function(e,t,n){var r=n(55038);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},89753:function(e,t,n){var r=n(33223),o=n(70816),a=n(62704),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?i:+e}},25635:function(e,t,n){var r=n(2218);e.exports=function(e){return null==e?"":r(e)}},98116:function(e,t,n){var r=n(49452),o=n(15375);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},9332:function(e,t,n){var r=n(6551)("toUpperCase");e.exports=r},8792:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(25250),o=n.n(r)},47907:function(e,t,n){var r=n(15313);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},49079:function(e,t,n){var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(13127)},12956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(82139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let E=a.default.forwardRef(function(e,t){let n,r;let{href:s,as:b,children:E,prefetch:S=null,passHref:w,replace:x,shallow:O,scroll:k,locale:C,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:N=!1,...R}=e;n=E,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let _=a.default.useContext(d.RouterContext),P=a.default.useContext(p.AppRouterContext),M=null!=_?_:P,L=!_,D=!1!==S,j=null===S?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:F,as:B}=a.default.useMemo(()=>{if(!_){let e=y(s);return{href:e,as:b?y(b):e}}let[e,t]=(0,i.resolveHref)(_,s,!0);return{href:e,as:b?(0,i.resolveHref)(_,b):t||e}},[_,s,b]),U=a.default.useRef(F),Z=a.default.useRef(B);N&&(r=a.default.Children.only(n));let z=N?r&&"object"==typeof r&&r.ref:t,[H,G,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(Z.current!==B||U.current!==F)&&($(),Z.current=B,U.current=F),H(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,$,H]);a.default.useEffect(()=>{M&&G&&D&&v(M,F,B,{locale:C},{kind:j},L)},[B,F,G,C,D,null==_?void 0:_.locale,M,L,j]);let V={ref:W,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,o,i,s,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?a.default.startTransition(p):p()}(e,M,F,B,x,O,k,C,L)},onMouseEnter(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){N||"function"!=typeof I||I(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,c.isAbsoluteUrl)(B))V.href=B;else if(!N||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);V.href=t||(0,g.addBasePath)((0,u.addLocale)(B,e,null==_?void 0:_.defaultLocale))}return N?a.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(95770),o=n(11030),a=n(24544),i=n(36874),l=n(82139),s=n(17434),c=n(22360),u=n(96735);function d(e,t,n){let d;let p="string"==typeof t?t:(0,o.formatWithValidation)(t),f=p.match(/^[a-zA-Z]{1,}:\/\//),m=f?p.slice(f[0].length):p;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);p=(f?f[0]:"")+t}if(!(0,s.isLocalURL)(p))return n?[p]:p;try{d=new URL(p.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(p,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,u.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(64090),o=n(52185),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),i.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8620:function(e){!function(){var t={675:function(e,t){t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),i=a[0],l=a[1],c=new o((i+l)*3/4-l),u=0,d=l>0?i-4:i;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=0,l=r-o;i>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}(e,i,i+16383>l?l:i+16383));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=a.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){/*! +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[968],{12215:function(e,t,n){n.d(t,{iN:function(){return h},R_:function(){return d},EV:function(){return g},ez:function(){return p}});var r=n(41785),o=n(76991),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=i(r),f=l((0,o.uA)({h:s(p,d,!0),s:c(p,d,!0),v:u(p,d,!0)}));n.push(f)}n.push(l(r));for(var m=1;m<=4;m+=1){var g=i(r),h=l((0,o.uA)({h:s(g,m),s:c(g,m),v:u(g,m)}));n.push(h)}return"dark"===t.theme?a.map(function(e){var r,a,i,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[s]),i=100*c/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},f={},m={};Object.keys(p).forEach(function(e){f[e]=d(p[e]),f[e].primary=f[e][5],m[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),m[e].primary=m[e][5]}),f.red,f.volcano;var g=f.gold;f.orange,f.yellow,f.lime,f.green,f.cyan;var h=f.blue;f.geekblue,f.purple,f.magenta,f.grey,f.grey},8985:function(e,t,n){n.d(t,{E4:function(){return ej},jG:function(){return A},ks:function(){return U},bf:function(){return F},CI:function(){return eD},fp:function(){return X},xy:function(){return eM}});var r,o,a=n(50833),i=n(80406),l=n(63787),s=n(5239),c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},u=n(24050),d=n(64090),p=n.t(d,2);n(61475),n(92536);var f=n(47365),m=n(65127);function g(e){return e.join("%")}var h=function(){function e(t){(0,f.Z)(this,e),(0,a.Z)(this,"instanceId",void 0),(0,a.Z)(this,"cache",new Map),this.instanceId=t}return(0,m.Z)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__",E=d.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new h(e)}(),defaultCache:!0}),S=n(6976),w=n(22127),x=function(){function e(){(0,f.Z)(this,e),(0,a.Z)(this,"cache",void 0),(0,a.Z)(this,"keys",void 0),(0,a.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,m.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,m.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),T=new x;function A(e){var t=Array.isArray(e)?e:[e];return T.has(t)||T.set(t,new C(t)),T.get(t)}var I=new WeakMap,N={},R=new WeakMap;function _(e){var t=R.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,S.Z)(r)?t+=_(r):t+=r}),R.set(e,t)),t}function P(e,t){return c("".concat(t,"_").concat(_(e)))}var M="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),L="_bAmBoO_",D=void 0,j=(0,w.Z)();function F(e){return"number"==typeof e?"".concat(e,"px"):e}function B(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var l=(0,s.Z)((0,s.Z)({},o),{},(r={},(0,a.Z)(r,b,t),(0,a.Z)(r,v,n),r)),c=Object.keys(l).map(function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Z=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];if(null!=n&&null!==(s=n.preserve)&&void 0!==s&&s[r])a[r]=l;else if(("string"==typeof l||"number"==typeof l)&&!(null!=n&&null!==(c=n.ignore)&&void 0!==c&&c[r])){var s,c,u,d=U(r,null==n?void 0:n.prefix);o[d]="number"!=typeof l||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[r]?String(l):"".concat(l,"px"),a[r]="var(".concat(d,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},z=n(24800),H=(0,s.Z)({},p).useInsertionEffect,G=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){d.useMemo(e,n),(0,z.Z)(function(){return t(!0)},n)},$=void 0!==(0,s.Z)({},p).useInsertionEffect?function(e){var t=[],n=!1;return d.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function W(e,t,n,r,o){var a=d.useContext(E).cache,s=g([e].concat((0,l.Z)(t))),c=$([s]),u=function(e){a.opUpdate(s,function(t){var r=(0,i.Z)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};d.useMemo(function(){u()},[s]);var p=a.opGet(s)[1];return G(function(){null==o||o(p)},function(e){return u(function(t){var n=(0,i.Z)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(p)),[r+1,a]}),function(){a.opUpdate(s,function(t){var n=(0,i.Z)(t||[],2),o=n[0],l=void 0===o?0:o,u=n[1];return 0==l-1?(c(function(){(e||!a.opGet(s))&&(null==r||r(u,!1))}),null):[l-1,u]})}},[s]),p}var V={},q=new Map,Y=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,s.Z)((0,s.Z)({},o),t);return r&&(a=r(a)),a},K="token";function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,d.useContext)(E),o=r.cache.instanceId,a=r.container,p=n.salt,f=void 0===p?"":p,m=n.override,g=void 0===m?V:m,h=n.formatToken,S=n.getComputedToken,w=n.cssVar,x=function(e,t){for(var n=I,r=0;r=(q.get(e)||0)}),n.length-r.length>0&&r.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=t[3];if(w&&r){var l=(0,u.hq)(r,c("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:a,priority:-999});l[y]=o,l.setAttribute(b,n._themeKey)}})}var Q=n(14749),J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ee="comm",et="rule",en="decl",er=Math.abs,eo=String.fromCharCode;function ea(e,t,n){return e.replace(t,n)}function ei(e,t){return 0|e.charCodeAt(t)}function el(e,t,n){return e.slice(t,n)}function es(e){return e.length}function ec(e,t){return t.push(e),e}function eu(e,t){for(var n="",r=0;r0?f[v]+" "+y:ea(y,/&\f/g,f[v])).trim())&&(s[b++]=E);return ev(e,t,n,0===o?et:l,s,c,u,d)}function eO(e,t,n,r,o){return ev(e,t,n,en,el(e,0,r),el(e,r+1,-1),r,o)}var ek="data-ant-cssinjs-cache-path",eC="_FILE_STYLE__",eT=!0,eA="_multi_value_";function eI(e){var t,n,r;return eu((r=function e(t,n,r,o,a,i,l,s,c){for(var u,d,p,f=0,m=0,g=l,h=0,b=0,v=0,y=1,E=1,S=1,w=0,x="",O=a,k=i,C=o,T=x;E;)switch(v=w,w=ey()){case 40:if(108!=v&&58==ei(T,g-1)){-1!=(d=T+=ea(ew(w),"&","&\f"),p=er(f?s[f-1]:0),d.indexOf("&\f",p))&&(S=-1);break}case 34:case 39:case 91:T+=ew(w);break;case 9:case 10:case 13:case 32:T+=function(e){for(;eh=eE();)if(eh<33)ey();else break;return eS(e)>2||eS(eh)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&ey()&&!(eh<48)&&!(eh>102)&&(!(eh>57)||!(eh<65))&&(!(eh>70)||!(eh<97)););return n=eg+(t<6&&32==eE()&&32==ey()),el(eb,e,n)}(eg-1,7);continue;case 47:switch(eE()){case 42:case 47:ec(ev(u=function(e,t){for(;ey();)if(e+eh===57)break;else if(e+eh===84&&47===eE())break;return"/*"+el(eb,t,eg-1)+"*"+eo(47===e?e:ey())}(ey(),eg),n,r,ee,eo(eh),el(u,2,-2),0,c),c);break;default:T+="/"}break;case 123*y:s[f++]=es(T)*S;case 125*y:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+m:-1==S&&(T=ea(T,/\f/g,"")),b>0&&es(T)-g&&ec(b>32?eO(T+";",o,r,g-1,c):eO(ea(T," ","")+";",o,r,g-2,c),c);break;case 59:T+=";";default:if(ec(C=ex(T,n,r,f,m,a,s,x,O=[],k=[],g,i),i),123===w){if(0===m)e(T,n,C,C,O,i,g,s,k);else switch(99===h&&110===ei(T,3)?100:h){case 100:case 108:case 109:case 115:e(t,C,C,o&&ec(ex(t,C,C,0,0,a,s,x,a,O=[],g,k),k),a,k,g,s,o?O:k);break;default:e(T,C,C,C,[""],k,0,s,k)}}}f=m=b=0,y=S=1,x=T="",g=l;break;case 58:g=1+es(T),b=v;default:if(y<1){if(123==w)--y;else if(125==w&&0==y++&&125==(eh=eg>0?ei(eb,--eg):0,ef--,10===eh&&(ef=1,ep--),eh))continue}switch(T+=eo(w),w*y){case 38:S=m>0?1:(T+="\f",-1);break;case 44:s[f++]=(es(T)-1)*S,S=1;break;case 64:45===eE()&&(T+=ew(ey())),h=eE(),m=g=es(x=T+=function(e){for(;!eS(eE());)ey();return el(eb,e,eg)}(eg)),w++;break;case 45:45===v&&2==es(T)&&(y=0)}}return i}("",null,null,null,[""],(n=t=e,ep=ef=1,em=es(eb=n),eg=0,t=[]),0,[0],t),eb="",r),ed).replace(/\{%%%\:[^;];}/g,";")}var eN=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,c=r.parentSelectors,d=n.hashId,p=n.layer,f=(n.path,n.hashPriority),m=n.transformers,g=void 0===m?[]:m;n.linters;var h="",b={};function v(t){var r=t.getName(d);if(!b[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.Z)(o,1)[0];b[r]="@keyframes ".concat(t.getName(d)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var u=g.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,S.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,S.Z)(r)&&r&&("_skip_check_"in r||eA in r)){function p(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;J[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(d)),h+="".concat(n,":").concat(r,";")}var m,g=null!==(m=null==r?void 0:r.value)&&void 0!==m?m:r;"object"===(0,S.Z)(r)&&null!=r&&r[eA]&&Array.isArray(g)?g.forEach(function(e){p(t,e)}):p(t,g)}else{var y=!1,E=t.trim(),w=!1;(o||a)&&d?E.startsWith("@")?y=!0:E=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,l.Z)(n.slice(1))).join(" ")}).join(",")}(t,d,f):o&&!d&&("&"===E||""===E)&&(E="",w=!0);var x=e(r,n,{root:w,injectHash:y,parentSelectors:[].concat((0,l.Z)(c),[E])}),O=(0,i.Z)(x,2),k=O[0],C=O[1];b=(0,s.Z)((0,s.Z)({},b),C),h+="".concat(E).concat(k)}})}}),o){if(p&&(void 0===D&&(D=function(e,t,n){if((0,w.Z)()){(0,u.hq)(e,M);var r,o,a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(L);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),(0,u.jL)(M),i}return!1}("@layer ".concat(M," { .").concat(M,' { content: "').concat(L,'"!important; } }'),function(e){e.className=M})),D)){var y=p.split(","),E=y[y.length-1].trim();h="@layer ".concat(E," {").concat(h,"}"),y.length>1&&(h="@layer ".concat(p,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,b]};function eR(e,t){return c("".concat(e.join("%")).concat(t))}function e_(){return null}var eP="style";function eM(e,t){var n=e.token,o=e.path,s=e.hashId,c=e.layer,p=e.nonce,f=e.clientOnly,m=e.order,g=void 0===m?0:m,h=d.useContext(E),S=h.autoClear,x=(h.mock,h.defaultCache),O=h.hashPriority,k=h.container,C=h.ssrInline,T=h.transformers,A=h.linters,I=h.cache,N=n._tokenKey,R=[N].concat((0,l.Z)(o)),_=W(eP,R,function(){var e=R.join("|");if(!function(){if(!r&&(r={},(0,w.Z)())){var e,t=document.createElement("div");t.className=ek,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.Z)(t,2),o=n[0],a=n[1];r[o]=a});var o=document.querySelector("style[".concat(ek,"]"));o&&(eT=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,w.Z)()){if(eT)n=eC;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),a=(0,i.Z)(n,2),l=a[0],u=a[1];if(l)return[l,N,u,{},f,g]}var d=eN(t(),{hashId:s,hashPriority:O,layer:c,path:o.join("-"),transformers:T,linters:A}),p=(0,i.Z)(d,2),m=p[0],h=p[1],b=eI(m),y=eR(R,b);return[b,N,y,h,f,g]},function(e,t){var n=(0,i.Z)(e,3)[2];(t||S)&&j&&(0,u.jL)(n,{mark:v})},function(e){var t=(0,i.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(j&&n!==eC){var a={mark:v,prepend:"queue",attachTo:k,priority:g},l="function"==typeof p?p():p;l&&(a.csp={nonce:l});var s=(0,u.hq)(n,r,a);s[y]=I.instanceId,s.setAttribute(b,N),Object.keys(o).forEach(function(e){(0,u.hq)(eI(o[e]),"_effect-".concat(e),a)})}}),P=(0,i.Z)(_,3),M=P[0],L=P[1],D=P[2];return function(e){var t,n;return t=C&&!j&&x?d.createElement("style",(0,Q.Z)({},(n={},(0,a.Z)(n,b,L),(0,a.Z)(n,v,D),n),{dangerouslySetInnerHTML:{__html:M}})):d.createElement(e_,null),d.createElement(d.Fragment,null,t,e)}}var eL="cssVar",eD=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,p=void 0===c?"":c,f=(0,d.useContext)(E),m=f.cache.instanceId,g=f.container,h=s._tokenKey,S=[].concat((0,l.Z)(e.path),[n,p,h]);return W(eL,S,function(){var e=Z(t(),n,{prefix:r,unitless:o,ignore:a,scope:p}),l=(0,i.Z)(e,2),s=l[0],c=l[1],u=eR(S,c);return[s,c,u,n]},function(e){var t=(0,i.Z)(e,3)[2];j&&(0,u.jL)(t,{mark:v})},function(e){var t=(0,i.Z)(e,3),r=t[1],o=t[2];if(r){var a=(0,u.hq)(r,o,{mark:v,prepend:"queue",attachTo:g,priority:-999});a[y]=m,a.setAttribute(b,n)}})};o={},(0,a.Z)(o,eP,function(e,t,n){var r=(0,i.Z)(e,6),o=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var p=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=B(o,a,l,f,d),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=eI(s[e]);p+=B(n,a,"_effect-".concat(e),f,d)}}),[u,l,p]}),(0,a.Z)(o,K,function(e,t,n){var r=(0,i.Z)(e,5),o=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=o._tokenKey,u=B(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,c,u]}),(0,a.Z)(o,eL,function(e,t,n){var r=(0,i.Z)(e,4),o=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!o)return null;var c=B(o,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,c]});var ej=function(){function e(t,n){(0,f.Z)(this,e),(0,a.Z)(this,"name",void 0),(0,a.Z)(this,"style",void 0),(0,a.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,m.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eF(e){return e.notSplit=!0,e}eF(["borderTop","borderBottom"]),eF(["borderTop"]),eF(["borderBottom"]),eF(["borderLeft","borderRight"]),eF(["borderLeft"]),eF(["borderRight"])},60688:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(14749),o=n(80406),a=n(50833),i=n(6787),l=n(64090),s=n(16480),c=n.n(s),u=n(12215),d=n(67689),p=n(5239),f=n(6976),m=n(24050),g=n(74687),h=n(53850);function b(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(d.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,g.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},O=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,d=(0,i.Z)(e,w),f=l.useRef(),m=x;if(c&&(m={primaryColor:c,secondaryColor:u||y(c)}),S(f),t=b(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!b(r))return null;var g=r;return g&&"function"==typeof g.icon&&(g=(0,p.Z)((0,p.Z)({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,p.Z)((0,p.Z)({key:n},v(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,p.Z)({key:n},v(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,p.Z)((0,p.Z)({className:o,onClick:a,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};function k(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return O.setTwoToneColors({primaryColor:r,secondaryColor:a})}O.displayName="IconReact",O.getTwoToneColors=function(){return(0,p.Z)({},x)},O.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||y(t),x.calculated=!!n};var C=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var T=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,p=e.spin,f=e.rotate,m=e.tabIndex,g=e.onClick,h=e.twoToneColor,b=(0,i.Z)(e,C),v=l.useContext(d.Z),y=v.prefixCls,S=void 0===y?"anticon":y,w=v.rootClassName,x=c()(w,S,(n={},(0,a.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(S,"-spin"),!!p||"loading"===u.name),n),s),k=m;void 0===k&&g&&(k=-1);var T=E(h),A=(0,o.Z)(T,2),I=A[0],N=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},b,{ref:t,tabIndex:k,onClick:g,className:x}),l.createElement(O,{icon:u,primaryColor:I,secondaryColor:N,style:f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0}))});T.displayName="AntdIcon",T.getTwoToneColor=function(){var e=O.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},T.setTwoToneColor=k;var A=T},67689:function(e,t,n){var r=(0,n(64090).createContext)({});t.Z=r},99537:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},90507:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},77136:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},81303:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20383:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31413:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},20653:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41311:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},40388:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},66155:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},50459:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},96871:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},97766:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(14749),o=n(64090),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},i=n(60688),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},41785:function(e,t,n){n.d(t,{T6:function(){return p},VD:function(){return f},WE:function(){return c},Yt:function(){return m},lC:function(){return a},py:function(){return s},rW:function(){return o},s:function(){return d},ve:function(){return l},vq:function(){return u}});var r=n(27974);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,s=(o+a)/2;if(o===a)l=0,i=0;else{var c=o-a;switch(l=s>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6)?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=i(c,s,e+1/3),a=i(c,s,e),l=i(c,s,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},6564:function(e,t,n){n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76991:function(e,t,n){n.d(t,{uA:function(){return i}});var r=n(41785),o=n(6564),a=n(27974);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,s=null,c=!1,p=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),c=!0,p="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(i=(0,a.JX)(e.s),s=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,s),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return!!u.CSS_UNIT.exec(String(e))}},6336:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(41785),o=n(6564),a=n(76991),i=n(27974),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(t/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(t/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(t/100*255)))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},88804:function(e,t,n){n.d(t,{Z:function(){return y}});var r,o=n(80406),a=n(64090),i=n(89542),l=n(22127);n(53850);var s=n(74084),c=a.createContext(null),u=n(63787),d=n(24800),p=[],f=n(24050);function m(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),r=a-i}return r}():n}var g="rc-util-locker-".concat(Date.now()),h=0,b=!1,v=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=a.forwardRef(function(e,t){var n,r,y,E,S=e.open,w=e.autoLock,x=e.getContainer,O=(e.debug,e.autoDestroy),k=void 0===O||O,C=e.children,T=a.useState(S),A=(0,o.Z)(T,2),I=A[0],N=A[1],R=I||S;a.useEffect(function(){(k||S)&&N(S)},[S,k]);var _=a.useState(function(){return v(x)}),P=(0,o.Z)(_,2),M=P[0],L=P[1];a.useEffect(function(){var e=v(x);L(null!=e?e:null)});var D=function(e,t){var n=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(n,1)[0],i=a.useRef(!1),s=a.useContext(c),f=a.useState(p),m=(0,o.Z)(f,2),g=m[0],h=m[1],b=s||(i.current?void 0:function(e){h(function(t){return[e].concat((0,u.Z)(t))})});function v(){r.parentElement||document.body.appendChild(r),i.current=!0}function y(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return(0,d.Z)(function(){return e?s?s(v):v():y(),y},[e]),(0,d.Z)(function(){g.length&&(g.forEach(function(e){return e()}),h(p))},[g]),[r,b]}(R&&!M,0),j=(0,o.Z)(D,2),F=j[0],B=j[1],U=null!=M?M:F;n=!!(w&&S&&(0,l.Z)()&&(U===F||U===document.body)),r=a.useState(function(){return h+=1,"".concat(g,"_").concat(h)}),y=(0,o.Z)(r,1)[0],(0,d.Z)(function(){if(n){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:m(n),height:m(r)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,f.jL)(y);return function(){(0,f.jL)(y)}},[n,y]);var Z=null;C&&(0,s.Yr)(C)&&t&&(Z=C.ref);var z=(0,s.x1)(Z,t);if(!R||!(0,l.Z)()||void 0===M)return null;var H=!1===U||("boolean"==typeof E&&(b=E),b),G=C;return t&&(G=a.cloneElement(C,{ref:z})),a.createElement(c.Provider,{value:B},H?G:(0,i.createPortal)(G,U))})},44101:function(e,t,n){n.d(t,{Z:function(){return z}});var r=n(5239),o=n(80406),a=n(6787),i=n(88804),l=n(16480),s=n.n(l),c=n(46505),u=n(97472),d=n(74687),p=n(54811),f=n(91010),m=n(24800),g=n(76158),h=n(64090),b=n(14749),v=n(49367),y=n(74084);function E(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=o.y,d=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],m=n.points[1],g=f[0],b=f[1],v=m[0],y=m[1];g!==v&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=void 0===u?0:u,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=void 0===c?0:c}return h.createElement("div",{ref:d,className:s()("".concat(t,"-arrow"),i),style:p},l)}function S(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?h.createElement(v.ZP,(0,b.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var w=h.memo(function(e){return e.children},function(e,t){return t.cache}),x=h.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,p=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,O=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,A=e.motion,I=e.maskMotion,N=e.forceRender,R=e.getPopupContainer,_=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,D=e.onMouseLeave,j=e.onPointerEnter,F=e.ready,B=e.offsetX,U=e.offsetY,Z=e.offsetR,z=e.offsetB,H=e.onAlign,G=e.onPrepare,$=e.stretch,W=e.targetWidth,V=e.targetHeight,q="function"==typeof n?n():n,Y=p||f,K=(null==R?void 0:R.length)>0,X=h.useState(!R||!K),Q=(0,o.Z)(X,2),J=Q[0],ee=Q[1];if((0,m.Z)(function(){!J&&K&&u&&ee(!0)},[J,K,u]),!J)return null;var et="auto",en={left:"-1000vw",top:"-1000vh",right:et,bottom:et};if(F||!p){var er,eo=T.points,ea=T.dynamicInset||(null===(er=T._experimental)||void 0===er?void 0:er.dynamicInset),ei=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];ei?(en.right=Z,en.left=et):(en.left=B,en.right=et),el?(en.bottom=z,en.top=et):(en.top=U,en.bottom=et)}var es={};return $&&($.includes("height")&&V?es.height=V:$.includes("minHeight")&&V&&(es.minHeight=V),$.includes("width")&&W?es.width=W:$.includes("minWidth")&&W&&(es.minWidth=W)),p||(es.pointerEvents="none"),h.createElement(P,{open:N||Y,getContainer:R&&function(){return R(u)},autoDestroy:_},h.createElement(S,{prefixCls:i,open:p,zIndex:M,mask:O,motion:I}),h.createElement(c.Z,{onResize:H,disabled:!p},function(e){return h.createElement(v.ZP,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(i,"-hidden")},A,{onAppearPrepare:G,onEnterPrepare:G,visible:p,onVisibleChanged:function(e){var t;null==A||null===(t=A.onVisibleChanged)||void 0===t||t.call(A,e),d(e)}}),function(n,o){var c=n.className,u=n.style,d=s()(i,c,a);return h.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},en),es),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:D,onPointerEnter:j,onClick:x},k&&h.createElement(E,{prefixCls:i,arrow:k,arrowPos:C,align:T}),h.createElement(w,{cache:!p&&!g},q))})}))}),O=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),a=h.useCallback(function(e){(0,y.mH)(t,r?r(e):e)},[r]),i=(0,y.x1)(a,n.ref);return o?h.cloneElement(n,{ref:i}):n}),k=h.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(73193);function A(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=I(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function _(e){return R(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=_(a),g=_(i),h=_(l),b=_(s),v=R(Math.round(c.width/p*1e3)/1e3),y=R(Math.round(c.height/u*1e3)/1e3),E=m*y,S=h*v,w=0,x=0;if("clip"===r){var O=_(o);w=O*v,x=O*y}var k=c.x+S-w,C=c.y+E-x,T=k+c.width+2*w-S-b*v-(p-f-h-b)*v,A=C+c.height+2*x-E-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,k),n.top=Math.max(n.top,C),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,A)}}),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?parseFloat(r[1])/100*e:parseFloat(n)}function L(e,t){var n=(0,o.Z)(t||[],2),r=n[0],a=n[1];return[M(e.width,r),M(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var B=n(63787);n(53850);var U=n(19223),Z=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Z;return h.forwardRef(function(t,n){var i,l,b,v,y,E,S,w,_,M,z,H,G,$,W,V,q,Y=t.prefixCls,K=void 0===Y?"rc-trigger-popup":Y,X=t.children,Q=t.action,J=t.showAction,ee=t.hideAction,et=t.popupVisible,en=t.defaultPopupVisible,er=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,ei=t.mouseLeaveDelay,el=void 0===ei?.1:ei,es=t.focusDelay,ec=t.blurDelay,eu=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,ef=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,eh=t.popup,eb=t.popupClassName,ev=t.popupStyle,ey=t.popupPlacement,eE=t.builtinPlacements,eS=void 0===eE?{}:eE,ew=t.popupAlign,ex=t.zIndex,eO=t.stretch,ek=t.getPopupClassNameFromAlign,eC=t.fresh,eT=t.alignPoint,eA=t.onPopupClick,eI=t.onPopupAlign,eN=t.arrow,eR=t.popupMotion,e_=t.maskMotion,eP=t.popupTransitionName,eM=t.popupAnimation,eL=t.maskTransitionName,eD=t.maskAnimation,ej=t.className,eF=t.getTriggerDOMNode,eB=(0,a.Z)(t,Z),eU=h.useState(!1),eZ=(0,o.Z)(eU,2),ez=eZ[0],eH=eZ[1];(0,m.Z)(function(){eH((0,g.Z)())},[]);var eG=h.useRef({}),e$=h.useContext(k),eW=h.useMemo(function(){return{registerSubPopup:function(e,t){eG.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eV=(0,f.Z)(),eq=h.useState(null),eY=(0,o.Z)(eq,2),eK=eY[0],eX=eY[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&eX(e),null==e$||e$.registerSubPopup(eV,e)}),eJ=h.useState(null),e0=(0,o.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=h.useRef(null),e3=(0,p.Z)(function(e){(0,u.S)(e)&&e1!==e&&(e2(e),e4.current=e)}),e6=h.Children.only(X),e5=(null==e6?void 0:e6.props)||{},e8={},e9=(0,p.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,d.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eK?void 0:eK.contains(e))||(null===(n=(0,d.A)(eK))||void 0===n?void 0:n.host)===e||e===eK||Object.values(eG.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=A(K,eR,eM,eP),te=A(K,e_,eD,eL),tt=h.useState(en||!1),tn=(0,o.Z)(tt,2),tr=tn[0],to=tn[1],ta=null!=et?et:tr,ti=(0,p.Z)(function(e){void 0===et&&to(e)});(0,m.Z)(function(){to(et||!1)},[et]);var tl=h.useRef(ta);tl.current=ta;var ts=h.useRef([]);ts.current=[];var tc=(0,p.Z)(function(e){var t;ti(e),(null!==(t=ts.current[ts.current.length-1])&&void 0!==t?t:ta)!==e&&(ts.current.push(e),null==er||er(e))}),tu=h.useRef(),td=function(){clearTimeout(tu.current)},tp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;td(),0===t?tc(e):tu.current=setTimeout(function(){tc(e)},1e3*t)};h.useEffect(function(){return td},[]);var tf=h.useState(!1),tm=(0,o.Z)(tf,2),tg=tm[0],th=tm[1];(0,m.Z)(function(e){(!e||ta)&&th(!0)},[ta]);var tb=h.useState(null),tv=(0,o.Z)(tb,2),ty=tv[0],tE=tv[1],tS=h.useState([0,0]),tw=(0,o.Z)(tS,2),tx=tw[0],tO=tw[1],tk=function(e){tO([e.clientX,e.clientY])},tC=(i=eT?tx:e1,l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eS[ey]||{}}),v=(b=(0,o.Z)(l,2))[0],y=b[1],E=h.useRef(0),S=h.useMemo(function(){return eK?N(eK):[]},[eK]),w=h.useRef({}),ta||(w.current={}),_=(0,p.Z)(function(){if(eK&&i&&ta){var e,t,n,a,l,s,c,d=eK.ownerDocument,p=I(eK).getComputedStyle(eK),f=p.width,m=p.height,g=p.position,h=eK.style.left,b=eK.style.top,v=eK.style.right,E=eK.style.bottom,x=eK.style.overflow,O=(0,r.Z)((0,r.Z)({},eS[ey]),ew),k=d.createElement("div");if(null===(e=eK.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(eK.offsetLeft,"px"),k.style.top="".concat(eK.offsetTop,"px"),k.style.position=g,k.style.height="".concat(eK.offsetHeight,"px"),k.style.width="".concat(eK.offsetWidth,"px"),eK.style.left="0",eK.style.top="0",eK.style.right="auto",eK.style.bottom="auto",eK.style.overflow="hidden",Array.isArray(i))n={x:i[0],y:i[1],width:0,height:0};else{var C=i.getBoundingClientRect();n={x:C.x,y:C.y,width:C.width,height:C.height}}var A=eK.getBoundingClientRect(),N=d.documentElement,_=N.clientWidth,M=N.clientHeight,B=N.scrollWidth,U=N.scrollHeight,Z=N.scrollTop,z=N.scrollLeft,H=A.height,G=A.width,$=n.height,W=n.width,V=O.htmlRegion,q="visible",Y="visibleFirst";"scroll"!==V&&V!==Y&&(V=q);var K=V===Y,X=P({left:-z,top:-Z,right:B-z,bottom:U-Z},S),Q=P({left:0,top:0,right:_,bottom:M},S),J=V===q?Q:X,ee=K?Q:J;eK.style.left="auto",eK.style.top="auto",eK.style.right="0",eK.style.bottom="0";var et=eK.getBoundingClientRect();eK.style.left=h,eK.style.top=b,eK.style.right=v,eK.style.bottom=E,eK.style.overflow=x,null===(t=eK.parentElement)||void 0===t||t.removeChild(k);var en=R(Math.round(G/parseFloat(f)*1e3)/1e3),er=R(Math.round(H/parseFloat(m)*1e3)/1e3);if(!(0===en||0===er||(0,u.S)(i)&&!(0,T.Z)(i))){var eo=O.offset,ea=O.targetOffset,ei=L(A,eo),el=(0,o.Z)(ei,2),es=el[0],ec=el[1],eu=L(n,ea),ed=(0,o.Z)(eu,2),ep=ed[0],ef=ed[1];n.x-=ep,n.y-=ef;var em=O.points||[],eg=(0,o.Z)(em,2),eh=eg[0],eb=D(eg[1]),ev=D(eh),eE=j(n,eb),ex=j(A,ev),eO=(0,r.Z)({},O),ek=eE.x-ex.x+es,eC=eE.y-ex.y+ec,eT=tt(ek,eC),eA=tt(ek,eC,Q),eN=j(n,["t","l"]),eR=j(A,["t","l"]),e_=j(n,["b","r"]),eP=j(A,["b","r"]),eM=O.overflow||{},eL=eM.adjustX,eD=eM.adjustY,ej=eM.shiftX,eF=eM.shiftY,eB=function(e){return"boolean"==typeof e?e:e>=0};tn();var eU=eB(eD),eZ=ev[0]===eb[0];if(eU&&"t"===ev[0]&&(l>ee.bottom||w.current.bt)){var ez=eC;eZ?ez-=H-$:ez=eN.y-eP.y-ec;var eH=tt(ek,ez),eG=tt(ek,ez,Q);eH>eT||eH===eT&&(!K||eG>=eA)?(w.current.bt=!0,eC=ez,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.bt=!1}if(eU&&"b"===ev[0]&&(aeT||eW===eT&&(!K||eV>=eA)?(w.current.tb=!0,eC=e$,ec=-ec,eO.points=[F(ev,0),F(eb,0)]):w.current.tb=!1}var eq=eB(eL),eY=ev[1]===eb[1];if(eq&&"l"===ev[1]&&(c>ee.right||w.current.rl)){var eX=ek;eY?eX-=G-W:eX=eN.x-eP.x-es;var eQ=tt(eX,eC),eJ=tt(eX,eC,Q);eQ>eT||eQ===eT&&(!K||eJ>=eA)?(w.current.rl=!0,ek=eX,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.rl=!1}if(eq&&"r"===ev[1]&&(seT||e1===eT&&(!K||e2>=eA)?(w.current.lr=!0,ek=e0,es=-es,eO.points=[F(ev,1),F(eb,1)]):w.current.lr=!1}tn();var e4=!0===ej?0:ej;"number"==typeof e4&&(sQ.right&&(ek-=c-Q.right-es,n.x>Q.right-e4&&(ek+=n.x-Q.right+e4)));var e3=!0===eF?0:eF;"number"==typeof e3&&(aQ.bottom&&(eC-=l-Q.bottom-ec,n.y>Q.bottom-e3&&(eC+=n.y-Q.bottom+e3)));var e6=A.x+ek,e5=A.y+eC,e8=n.x,e9=n.y;null==eI||eI(eK,eO);var e7=et.right-A.x-(ek+A.width),te=et.bottom-A.y-(eC+A.height);y({ready:!0,offsetX:ek/en,offsetY:eC/er,offsetR:e7/en,offsetB:te/er,arrowX:((Math.max(e6,e8)+Math.min(e6+G,e8+W))/2-e6)/en,arrowY:((Math.max(e5,e9)+Math.min(e5+H,e9+$))/2-e5)/er,scaleX:en,scaleY:er,align:eO})}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=A.x+e,o=A.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+G,n.right)-a)*(Math.min(o+H,n.bottom)-i))}function tn(){l=(a=A.y+eC)+H,c=(s=A.x+ek)+G}}}),M=function(){y(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,m.Z)(M,[ey]),(0,m.Z)(function(){ta||M()},[ta]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){E.current+=1;var e=E.current;Promise.resolve().then(function(){E.current===e&&_()})}]),tT=(0,o.Z)(tC,11),tA=tT[0],tI=tT[1],tN=tT[2],tR=tT[3],t_=tT[4],tP=tT[5],tM=tT[6],tL=tT[7],tD=tT[8],tj=tT[9],tF=tT[10],tB=(z=void 0===Q?"hover":Q,h.useMemo(function(){var e=C(null!=J?J:z),t=C(null!=ee?ee:z),n=new Set(e),r=new Set(t);return ez&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ez,z,J,ee])),tU=(0,o.Z)(tB,2),tZ=tU[0],tz=tU[1],tH=tZ.has("click"),tG=tz.has("click")||tz.has("contextMenu"),t$=(0,p.Z)(function(){tg||tF()});H=function(){tl.current&&eT&&tG&&tp(!1)},(0,m.Z)(function(){if(ta&&e1&&eK){var e=N(e1),t=N(eK),n=I(eK),r=new Set([n].concat((0,B.Z)(e),(0,B.Z)(t)));function o(){t$(),H()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),t$(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[ta,e1,eK]),(0,m.Z)(function(){t$()},[tx,ey]),(0,m.Z)(function(){ta&&!(null!=eS&&eS[ey])&&t$()},[JSON.stringify(ew)]);var tW=h.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eS,K,tj,eT);return s()(e,null==ek?void 0:ek(tj))},[tj,ek,eS,K,eT]);h.useImperativeHandle(n,function(){return{nativeElement:e4.current,forceAlign:t$}});var tV=h.useState(0),tq=(0,o.Z)(tV,2),tY=tq[0],tK=tq[1],tX=h.useState(0),tQ=(0,o.Z)(tX,2),tJ=tQ[0],t0=tQ[1],t1=function(){if(eO&&e1){var e=e1.getBoundingClientRect();tK(e.width),t0(e.height)}};function t2(e,t,n,r){e8[e]=function(o){var a;null==r||r(o),tp(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))}},8903:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(69703),o=n(64090);let a=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}))}},9853:function(e,t,n){n.d(t,{Z:function(){return mv}});var r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E,S,w,x,O={};n.r(O),n.d(O,{scaleBand:function(){return ou},scaleDiverging:function(){return function e(){var t=a3(sp()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=io(sp()).domain([.1,1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleDivergingPow:function(){return sf},scaleDivergingSqrt:function(){return sm},scaleDivergingSymlog:function(){return function e(){var t=il(sp());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,aF),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,aF):[0,1],a3(r)}},scaleImplicit:function(){return os},scaleLinear:function(){return a6},scaleLog:function(){return function e(){let t=io(a$()).domain([1,10]);return t.copy=()=>aG(t,e()).base(t.base()),or.apply(t,arguments),t}},scaleOrdinal:function(){return oc},scalePoint:function(){return od},scalePow:function(){return ip},scaleQuantile:function(){return function e(){var t,n=[],r=[],o=[];function a(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e2&&void 0!==arguments[2]?arguments[2]:o4;if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}}(n,e/t);return i}function i(e){return null==e||isNaN(e=+e)?t:r[o6(o,e)]}return i.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t=o?[a[o-1],r]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([n,r]).range(i).unknown(t)},or.apply(a3(l),arguments)}},scaleRadial:function(){return function e(){var t,n=aW(),r=[0,1],o=!1;function a(e){var r,a=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(a)?t:o?Math.round(a):a}return a.invert=function(e){return n.invert(ig(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,aF)).map(ig)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(o=!!e,a):o},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},or.apply(a,arguments),a3(a)}},scaleSequential:function(){return function e(){var t=a3(ss()(aU));return t.copy=function(){return sc(t,e())},oo.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=io(ss()).domain([1,10]);return t.copy=function(){return sc(t,e()).base(t.base())},oo.apply(t,arguments)}},scaleSequentialPow:function(){return su},scaleSequentialQuantile:function(){return function e(){var t=[],n=aU;function r(e){if(null!=e&&!isNaN(e=+e))return n((o6(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(oJ),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t=+t))){if(t<=0||r<2)return ib(e);if(t>=1)return ih(e);var r,o=(r-1)*t,a=Math.floor(o),i=ih((function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4?arguments[4]:void 0;if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(a=void 0===a?iv:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oJ;if(e===oJ)return iv;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(a);o>r;){if(o-r>600){let i=o-r+1,l=n-r+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(l-i/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/i+u)),p=Math.min(o,Math.floor(n+(i-l)*c/i+u));e(t,n,d,p,a)}let i=t[n],l=r,s=o;for(iy(t,r,n),a(t[o],i)>0&&iy(t,r,o);la(t[l],i);)++l;for(;a(t[s],i)>0;)--s}0===a(t[r],i)?iy(t,r,s):iy(t,++s,o),s<=n&&(r=s+1),n<=s&&(o=s-1)}return t})(e,a).subarray(0,a+1));return i+(ib(e.subarray(a+1))-i)*(o-a)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},oo.apply(r,arguments)}},scaleSequentialSqrt:function(){return sd},scaleSequentialSymlog:function(){return function e(){var t=il(ss());return t.copy=function(){return sc(t,e()).constant(t.constant())},oo.apply(t,arguments)}},scaleSqrt:function(){return im},scaleSymlog:function(){return function e(){var t=il(a$());return t.copy=function(){return aG(t,e()).constant(t.constant())},or.apply(t,arguments)}},scaleThreshold:function(){return function e(){var t,n=[.5],r=[0,1],o=1;function a(e){return null!=e&&e<=e?r[o6(n,e,0,o)]:t}return a.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(n).range(r).unknown(t)},or.apply(a,arguments)}},scaleTime:function(){return si},scaleUtc:function(){return sl},tickFormat:function(){return a4}});var k=n(69703),C=n(54942),T=n(2898),A=n(99250),I=n(65492),N=n(64090),R=function(){for(var e,t,n=0,r="",o=arguments.length;n0?1:-1},G=function(e){return D()(e)&&e.indexOf("%")===e.length-1},$=function(e){return z()(e)&&!F()(e)},W=function(e){return $(e)||D()(e)},V=0,q=function(e){var t=++V;return"".concat(e||"").concat(t)},Y=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!$(e)&&!D()(e))return r;if(G(e)){var a=e.indexOf("%");n=t*parseFloat(e.slice(0,a))/100}else n=+e;return F()(n)&&(n=r),o&&n>t&&(n=t),n},K=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},X=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r2?n-2:0),o=2;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ey=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},eE=null,eS=null,ew=function e(t){if(t===eE&&Array.isArray(eS))return eS;var n=[];return N.Children.forEach(t,function(t){en()(t)||((0,M.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),eS=n,eE=t,n};function ex(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ey(e)}):[ey(t)],ew(e).forEach(function(e){var t=U()(e,"type.displayName")||U()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function eO(e,t){var n=ex(e,t);return n&&n[0]}var ek=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!$(n)&&!(n<=0)&&!!$(r)&&!(r<=0)},eC=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],eT=function(e,t,n,r){var o,a=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!eo()(e)&&(r&&a.includes(t)||ec.includes(t))||n&&ep.includes(t)},eA=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,N.isValidElement)(e)&&(r=e.props),!ei()(r))return null;var o={};return Object.keys(r).forEach(function(e){var a;eT(null===(a=r)||void 0===a?void 0:a[e],e,t,n)&&(o[e]=r[e])}),o},eI=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(0===r)return!0;if(1===r)return eN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var a=ey(e.type),i=t[a]||{},l=i.handler,s=i.once;if(l&&(!s||!r[a])){var c=l(e,a,o);n.push(c),r[a]=!0}}}),n},e_=function(e){var t=e&&e.type;return t&&ev[t]?ev[t]:null};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(e=P()(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect();return C(n.width,n.height),t.observe(S.current),function(){t.disconnect()}},[C,h]);var T=(0,N.useMemo)(function(){var e=O.containerWidth,t=O.containerHeight;if(e<0||t<0)return null;ee(G(l)||G(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,c),ee(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=G(l)?e:l,o=G(c)?t:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),f&&o>f&&(o=f)),ee(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,l,c,d,p,r);var a=!Array.isArray(m)&&(0,M.isElement)(m)&&ey(m.type).endsWith("Chart");return N.Children.map(m,function(e){return(0,M.isElement)(e)?(0,N.cloneElement)(e,eL({width:n,height:o},a?{style:eL({height:"100%",width:"100%",maxHeight:o,maxWidth:n},e.props.style)}:{})):e})},[r,m,c,f,p,d,O,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:R("recharts-responsive-container",v),style:eL(eL({},void 0===E?{}:E),{},{width:l,height:c,minWidth:d,minHeight:p,maxHeight:f}),ref:S},T)}),eF=n(1646),eB=n.n(eF),eU=n(97572),eZ=n.n(eU),ez=n(209),eH=n.n(ez),eG=n(72986),e$=n.n(eG);function eW(e,t){if(!e)throw Error("Invariant failed")}var eV=["children","width","height","viewBox","className","style","title","desc"];function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eV),u=o||{width:n,height:r,x:0,y:0},d=R("recharts-surface",a);return N.createElement("svg",eq({},eA(c,!0,"svg"),{className:d,width:n,height:r,style:i,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),N.createElement("title",null,l),N.createElement("desc",null,s),t)}var eK=["children","className"];function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eK),a=R("recharts-layer",r);return N.createElement("g",eX({className:a},eA(o,!0),{ref:t}),n)});function eJ(e){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tc(e,t){return to(e.getTime(),t.getTime())}function tu(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.entries(),l=0;(r=i.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,p=d[0],f=d[1],m=o.value,g=m[0],h=m[1];!c&&!a[u]&&(c=n.equals(p,g,l,u,e,t,n)&&n.equals(f,h,p,g,e,t,n))&&(a[u]=!0),u++}if(!c)return!1;l++}return!0}function td(e,t,n){var r,o=tl(e),a=o.length;if(tl(t).length!==a)return!1;for(;a-- >0;)if((r=o[a])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function tp(e,t,n){var r,o,a,i=tn(e),l=i.length;if(tn(t).length!==l)return!1;for(;l-- >0;)if((r=i[l])===ta&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tr(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=ti(e,r),a=ti(t,r),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tf(e,t){return to(e.valueOf(),t.valueOf())}function tm(e,t){return e.source===t.source&&e.flags===t.flags}function tg(e,t,n){if(e.size!==t.size)return!1;for(var r,o,a={},i=e.values();(r=i.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)!s&&!a[c]&&(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(a[c]=!0),c++;if(!s)return!1}return!0}function th(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var tb=Array.isArray,tv="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ty=Object.assign,tE=Object.prototype.toString.call.bind(Object.prototype.toString),tS=tw();function tw(e){void 0===e&&(e={});var t,n,r,o,a,i,l,s,c,u=e.circular,d=e.createInternalComparator,p=e.createState,f=e.strict,m=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?tp:ts,areDatesEqual:tc,areMapsEqual:r?te(tu,tp):tu,areObjectsEqual:r?tp:td,arePrimitiveWrappersEqual:tf,areRegExpsEqual:tm,areSetsEqual:r?te(tg,tp):tg,areTypedArraysEqual:r?tp:th};if(n&&(o=ty({},o,n(o))),t){var a=tt(o.areArraysEqual),i=tt(o.areMapsEqual),l=tt(o.areObjectsEqual),s=tt(o.areSetsEqual);o=ty({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,a=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,c=t.areTypedArraysEqual,function(e,t,u){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var d=e.constructor;if(d!==t.constructor)return!1;if(d===Object)return a(e,t,u);if(tb(e))return n(e,t,u);if(null!=tv&&tv(e))return c(e,t,u);if(d===Date)return r(e,t,u);if(d===RegExp)return l(e,t,u);if(d===Map)return o(e,t,u);if(d===Set)return s(e,t,u);var p=tE(e);return"[object Date]"===p?r(e,t,u):"[object RegExp]"===p?l(e,t,u):"[object Map]"===p?o(e,t,u):"[object Set]"===p?s(e,t,u):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&a(e,t,u):"[object Arguments]"===p?a(e,t,u):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,t,u)}),g=d?d(m):function(e,t,n,r,o,a,i){return m(e,t,i)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,a=e.strict;if(r)return function(e,i){var l=r(),s=l.cache;return n(e,i,{cache:void 0===s?t?new WeakMap:void 0:s,equals:o,meta:l.meta,strict:a})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(e,t){return n(e,t,i)}}({circular:void 0!==u&&u,comparator:m,createState:p,equals:g,strict:void 0!==f&&f})}function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var a;a=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(a)}})}function tO(e){return(tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tH(a,l),f=tH(i,s),m=(e=a,t=l,function(n){var r;return tz([].concat(function(e){if(Array.isArray(e))return tU(e)}(r=tZ(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||tB(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),g=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,a=p(n)-t,i=m(n);if(1e-4>Math.abs(a-t)||i<1e-4)break;n=(o=n-a/i)>1?1:o<0?0:o}return f(n)};return g.isStepper=!1,g},t$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,i=void 0===a?17:a,l=function(e,t,r){var a=r+(-(e-t)*n-r*o)*i/1e3,l=r*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return l.isStepper=!0,l.dt=i,l},tW=function(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(t6(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:a,easing:l}),a]);var f=tj(p,a,l),m=t9(t9(t9({},d.style),s),{},{transition:f});return[].concat(t6(e),[m,a,u]).filter(tP)},[i,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,n,r;this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return tk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tk(e,t)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o.slice(1);if("number"==typeof a){tx(e.bind(null,i),a);return}e(a),tx(e.bind(null,i));return}"object"===tO(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,s=e.easing,c=e.onAnimationStart,u=e.onAnimationEnd,d=e.steps,p=e.children,f=this.manager;if(this.unSubscribe=f.subscribe(this.handleStyleChange),"function"==typeof s||"function"==typeof p||"spring"===s){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?t7({},i,l):l,g=tj(Object.keys(m),a,s);f.start([c,o,t9(t9({},m),{},{transition:g}),a,u])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),r=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,t3)),a=N.Children.count(t),i=tD(this.state.style);if("function"==typeof t)return t(i);if(!r||0===a||n<=0)return t;var l=function(e){var t=e.props,n=t.style,r=t.className;return(0,N.cloneElement)(e,t9(t9({},o),{},{style:t9(t9({},void 0===n?{}:n),i),className:r}))};return 1===a?l(N.Children.only(t)):N.createElement("div",null,N.Children.map(t,function(e){return l(e)}))}}],ne(a.prototype,n),r&&ne(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);ni.displayName="Animate",ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},ni.propTypes={from:e5().oneOfType([e5().object,e5().string]),to:e5().oneOfType([e5().object,e5().string]),attributeName:e5().string,duration:e5().number,begin:e5().number,easing:e5().oneOfType([e5().string,e5().func]),steps:e5().arrayOf(e5().shape({duration:e5().number.isRequired,style:e5().object.isRequired,easing:e5().oneOfType([e5().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),e5().func]),properties:e5().arrayOf("string"),onAnimationEnd:e5().func})),children:e5().oneOfType([e5().node,e5().func]),isActive:e5().bool,canBegin:e5().bool,onAnimationEnd:e5().func,shouldReAnimate:e5().bool,onAnimationStart:e5().func,onAnimationReStart:e5().func};var nl=n(42859),ns=["children","appearOptions","enterOptions","leaveOptions"];function nc(e){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nu(){return(nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},nE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=nh(a);if(t){var r=nh(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===nc(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ng(e)}(this,e)});function a(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),nb(ng(e=o.call(this)),"handleEnter",function(t,n){var r=e.props,o=r.appearOptions,a=r.enterOptions;e.handleStyleActive(n?o:a)}),nb(ng(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return n=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(np(np({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return ny(t)+ny(n)+ny(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ns));return N.createElement(nl.Transition,nu({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return N.createElement(ni,e.state,N.Children.only(n))})}}],nf(a.prototype,n),r&&nf(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function nS(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,a=e.leave;return N.createElement(nl.TransitionGroup,{component:t},N.Children.map(n,function(e,t){return N.createElement(nE,{appearOptions:r,enterOptions:o,leaveOptions:a,key:"child-".concat(t)},e)}))}function nw(e){return(nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nx(e,t,n){var r;return(r=function(e,t){if("object"!==nw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nw(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===nw(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nE.propTypes={appearOptions:e5().object,enterOptions:e5().object,leaveOptions:e5().object,children:e5().element},nS.propTypes={appear:e5().object,enter:e5().object,leave:e5().object,children:e5().oneOfType([e5().array,e5().element]),component:e5().any},nS.defaultProps={component:"span"};var nO="recharts-tooltip-wrapper",nk={visibility:"hidden"};function nC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&$(a[r]))return a[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?i[r]?u:d:i[r]?us[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function nT(e){return(nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nI(e){for(var t=1;t1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,r,o,a,i,l,s,c,u,d,p,f,m,g,h,b,v,y,E=this,S=this.props,w=S.active,x=S.allowEscapeViewBox,O=S.animationDuration,k=S.animationEasing,C=S.children,T=S.coordinate,A=S.hasPayload,I=S.isAnimationActive,_=S.offset,P=S.position,M=S.reverseDirection,L=S.useTranslate3d,D=S.viewBox,j=S.wrapperStyle,F=(p=(e={allowEscapeViewBox:x,coordinate:T,offsetTopLeft:_,position:P,reverseDirection:M,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:L,viewBox:D}).allowEscapeViewBox,f=e.coordinate,m=e.offsetTopLeft,g=e.position,h=e.reverseDirection,b=e.tooltipBox,v=e.useTranslate3d,y=e.viewBox,b.height>0&&b.width>0&&f?(n=(t={translateX:u=nC({allowEscapeViewBox:p,coordinate:f,key:"x",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.width,viewBox:y,viewBoxDimension:y.width}),translateY:d=nC({allowEscapeViewBox:p,coordinate:f,key:"y",offsetTopLeft:m,position:g,reverseDirection:h,tooltipDimension:b.height,viewBox:y,viewBoxDimension:y.height}),useTranslate3d:v}).translateX,r=t.translateY,c=tD({transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")})):c=nk,{cssProperties:c,cssClasses:(i=(o={translateX:u,translateY:d,coordinate:f}).coordinate,l=o.translateX,s=o.translateY,R(nO,(nx(a={},"".concat(nO,"-right"),$(l)&&i&&$(i.x)&&l>=i.x),nx(a,"".concat(nO,"-left"),$(l)&&i&&$(i.x)&&l=i.y),nx(a,"".concat(nO,"-top"),$(s)&&i&&$(i.y)&&s0;return N.createElement(nD,{allowEscapeViewBox:o,animationDuration:a,animationEasing:i,isAnimationActive:u,active:r,coordinate:s,hasPayload:E,offset:d,position:m,reverseDirection:g,useTranslate3d:h,viewBox:b,wrapperStyle:v},(e=nH(nH({},this.props),{},{payload:y}),N.isValidElement(l)?N.cloneElement(l,e):"function"==typeof l?N.createElement(l,e):N.createElement(e3,e)))}}],nG(a.prototype,n),r&&nG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);nV(nK,"displayName","Tooltip"),nV(nK,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nj.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var nX=n(9332),nQ=n.n(nX);let nJ=Math.cos,n0=Math.sin,n1=Math.sqrt,n2=Math.PI,n4=2*n2;var n3={draw(e,t){let n=n1(t/n2);e.moveTo(n,0),e.arc(0,0,n,0,n4)}};let n6=n1(1/3),n5=2*n6,n8=n0(n2/10)/n0(7*n2/10),n9=n0(n4/10)*n8,n7=-nJ(n4/10)*n8,re=n1(3),rt=n1(3)/2,rn=1/n1(12),rr=(rn/2+1)*3;function ro(e){return function(){return e}}function ra(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ri(){let e=ra(["M",",",""]);return ri=function(){return e},e}function rl(){let e=ra(["Z"]);return rl=function(){return e},e}function rs(){let e=ra(["L",",",""]);return rs=function(){return e},e}function rc(){let e=ra(["Q",",",",",",",""]);return rc=function(){return e},e}function ru(){let e=ra(["C",",",",",",",",",",",""]);return ru=function(){return e},e}function rd(){let e=ra(["M",",",""]);return rd=function(){return e},e}function rp(){let e=ra(["L",",",""]);return rp=function(){return e},e}function rf(){let e=ra(["L",",",""]);return rf=function(){return e},e}function rm(){let e=ra(["A",",",",0,0,",",",",",""]);return rm=function(){return e},e}function rg(){let e=ra(["M",",",""]);return rg=function(){return e},e}function rh(){let e=ra(["L",",",""]);return rh=function(){return e},e}function rb(){let e=ra(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]);return rb=function(){return e},e}function rv(){let e=ra(["A",",",",0,",",",",",",",""]);return rv=function(){return e},e}function ry(){let e=ra(["M",",","h","v","h","Z"]);return ry=function(){return e},e}let rE=Math.PI,rS=2*rE,rw=rS-1e-6;function rx(e){this._+=e[0];for(let t=1,n=e.length;t1e-6){if(Math.abs(u*l-s*c)>1e-6&&o){let p=n-a,f=r-i,m=l*l+s*s,g=Math.sqrt(m),h=Math.sqrt(d),b=o*Math.tan((rE-Math.acos((m+d-(p*p+f*f))/(2*g*h)))/2),v=b/h,y=b/g;Math.abs(v-1)>1e-6&&this._append(rf(),e+v*c,t+v*u),this._append(rm(),o,o,+(u*p>c*f),this._x1=e+y*l,this._y1=t+y*s)}else this._append(rp(),this._x1=e,this._y1=t)}}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw Error("negative radius: ".concat(n));let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,c=t+l,u=1^a,d=a?r-o:o-r;null===this._x1?this._append(rg(),s,c):(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append(rh(),s,c),n&&(d<0&&(d=d%rS+rS),d>rw?this._append(rb(),n,n,u,e-i,t-l,n,n,u,this._x1=s,this._y1=c):d>1e-6&&this._append(rv(),n,n,+(d>=rE),u,this._x1=e+n*Math.cos(o),this._y1=t+n*Math.sin(o)))}rect(e,t,n,r){this._append(ry(),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?rx:function(e){let t=Math.floor(e);if(!(t>=0))throw Error("invalid digits: ".concat(e));if(t>15)return rx;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw RangeError("invalid digits: ".concat(n));t=e}return e},()=>new rO(t)}function rC(e){return(rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rO.prototype,n1(3),n1(3);var rT=["type","size","sizeType"];function rA(){return(rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,rT)),{},{type:r,size:a,sizeType:l}),c=s.className,u=s.cx,d=s.cy,p=eA(s,!0);return u===+u&&d===+d&&a===+a?N.createElement("path",rA({},p,{className:R("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:(t=rR["symbol".concat(nQ()(r))]||n3,(function(e,t){let n=null,r=rk(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ro(e||n3),t="function"==typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(rP(a,l,r))())})):null};function rL(e){return(rL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rD(){return(rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var f=t.inactive?i:t.color;return N.createElement("li",rD({className:d,style:s,key:"legend-item-".concat(n)},em(e.props,t,n)),N.createElement(eY,{width:r,height:r,viewBox:l,style:c},e.renderIcon(t)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},u?u(p,t,n):p))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;return t&&t.length?N.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],rF(a.prototype,n),r&&rF(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function rG(e){return(rG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rZ(rH,"displayName","Legend"),rZ(rH,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var r$=["ref"];function rW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?rV({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,a=r.align,i=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),rV(rV({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,i=t.payloadUniqBy,l=t.payload,s=rV(rV({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return N.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if("function"==typeof e)return N.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,r$);return N.createElement(rH,n)}(n,rV(rV({},this.props),{},{payload:nU(l,i,r0)})))}}],r=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&$(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],n&&rq(a.prototype,n),r&&rq(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function r2(){return(r2=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(a+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),a+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(a+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),a+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(a+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),a+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(a+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var p=Math.min(i,o);a="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*p," Z")}else a="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return a},oe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&n>=Math.min(o,o+i)&&n<=Math.max(o,o+i)&&r>=Math.min(a,a+l)&&r<=Math.max(a,a+l)},ot={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},on=function(e){var t,n=r9(r9({},ot),e),r=(0,N.useRef)(),o=function(e){if(Array.isArray(e))return e}(t=(0,N.useState)(-1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return r5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r5(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],i=o[1];(0,N.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var l=n.x,s=n.y,c=n.width,u=n.height,d=n.radius,p=n.className,f=n.animationEasing,m=n.animationDuration,g=n.animationBegin,h=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var v=R("recharts-rectangle",p);return b?N.createElement(ni,{canBegin:a>0,from:{width:c,height:u,x:l,y:s},to:{width:c,height:u,x:l,y:s},duration:m,animationEasing:f,isActive:b},function(e){var t=e.width,o=e.height,i=e.x,l=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:h,easing:f},N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(i,l,t,o,d),ref:r})))}):N.createElement("path",r6({},eA(n,!0),{className:v,d:r7(l,s,c,u,d)}))};function or(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class oa extends Map{get(e){return super.get(oi(this,e))}has(e){return super.has(oi(this,e))}set(e,t){return super.set(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}(this,e),t)}delete(e){return super.delete(function(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}(this,e))}constructor(e,t=ol){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}}function oi(e,t){let{_intern:n,_key:r}=e,o=r(t);return n.has(o)?n.get(o):t}function ol(e){return null!==e&&"object"==typeof e?e.valueOf():e}let os=Symbol("implicit");function oc(){var e=new oa,t=[],n=[],r=os;function o(o){let a=e.get(o);if(void 0===a){if(r!==os)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(let r of(t=[],e=new oa,n))e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oc(t,n).unknown(r)},or.apply(o,arguments),o}function ou(){var e,t,n=oc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=i1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||nj.isSsr)return{width:0,height:0};var r=(Object.keys(t=om({},n)).forEach(function(e){t[e]||delete t[e]}),t),o=JSON.stringify({text:e,copyStyle:r});if(og.widthCache[o])return og.widthCache[o];try{var a=document.getElementById(ob);a||((a=document.createElement("span")).setAttribute("id",ob),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=om(om({},oh),r);Object.assign(a.style,i),a.textContent="".concat(e);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return og.widthCache[o]=s,++og.cacheCount>2e3&&(og.cacheCount=0,og.widthCache={}),s}catch(e){return{width:0,height:0}}};function oy(e){return(oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+i+ni||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},m=0,g=l.length-1,h=0;m<=g&&h<=l.length-1;){var b=Math.floor((m+g)/2),v=oj(f(b-1),2),y=v[0],E=v[1],S=oj(f(b),1)[0];if(y||S||(m=b+1),y&&S&&(g=b-1),!y&&S){a=E;break}h++}return a||p},oz=function(e){return[{words:en()(e)?[]:e.toString().split(oB)}]},oH=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,a=e.breakAll,i=e.maxLines;if((t||n)&&!nj.isSsr){var l=oU({breakAll:a,children:r,style:o});return l?oZ({breakAll:a,children:r,maxLines:i,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):oz(r)}return oz(r)},oG="#808080",o$=function(e){var t,n=e.x,r=void 0===n?0:n,o=e.y,a=void 0===o?0:o,i=e.lineHeight,l=void 0===i?"1em":i,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,f=e.verticalAnchor,m=e.fill,g=void 0===m?oG:m,h=oD(e,oP),b=(0,N.useMemo)(function(){return oH({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:d,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,d,h.style,h.width]),v=h.dx,y=h.dy,E=h.angle,S=h.className,w=h.breakAll,x=oD(h,oM);if(!W(r)||!W(a))return null;var O=r+($(v)?v:0),k=a+($(y)?y:0);switch(void 0===f?"end":f){case"start":t=o_("calc(".concat(c,")"));break;case"middle":t=o_("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:t=o_("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(d){var T=b[0].width,A=h.width;C.push("scale(".concat(($(A)?A/T:1)/T,")"))}return E&&C.push("rotate(".concat(E,", ").concat(O,", ").concat(k,")")),C.length&&(x.transform=C.join(" ")),N.createElement("text",oL({},eA(x,!0),{x:O,y:k,className:R("recharts-text",S),textAnchor:void 0===p?"start":p,fill:g.includes("url")?oG:g}),b.map(function(e,n){var r=e.words.join(w?"":" ");return N.createElement("tspan",{x:O,dy:0===n?t:l,key:r},r)}))};let oW=Math.sqrt(50),oV=Math.sqrt(10),oq=Math.sqrt(2);function oY(e,t,n){let r,o,a;let i=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(i)),s=i/Math.pow(10,l),c=s>=oW?10:s>=oV?5:s>=oq?2:1;return(l<0?(r=Math.round(e*(a=Math.pow(10,-l)/c)),o=Math.round(t*a),r/at&&--o,a=-a):(r=Math.round(e/(a=Math.pow(10,l)*c)),o=Math.round(t/a),r*at&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=a-o+1,s=Array(l);if(r){if(i<0)for(let e=0;et?1:e>=t?0:NaN}function o0(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o1(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>n(e[t],r)?o=t+1:a=t}while(ooJ(e(t),n),r=(t,n)=>e(t)-n):(t=e===oJ||e===o0?e:o2,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o>>1;0>=n(e[t],r)?o=t+1:a=t}while(o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?am(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?am(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ar.exec(e))?new ah(t[1],t[2],t[3],1):(t=ao.exec(e))?new ah(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aa.exec(e))?am(t[1],t[2],t[3],t[4]):(t=ai.exec(e))?am(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=al.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=as.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ac.hasOwnProperty(e)?af(ac[e]):"transparent"===e?new ah(NaN,NaN,NaN,0):null}function af(e){return new ah(e>>16&255,e>>8&255,255&e,1)}function am(e,t,n,r){return r<=0&&(e=t=n=NaN),new ah(e,t,n,r)}function ag(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof o9||(o=ap(o)),o)?new ah((o=o.rgb()).r,o.g,o.b,o.opacity):new ah:new ah(e,t,n,null==r?1:r)}function ah(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ab(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b))}function av(){let e=ay(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aE(this.r),", ").concat(aE(this.g),", ").concat(aE(this.b)).concat(1===e?")":", ".concat(e,")"))}function ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aS(e){return((e=aE(e))<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aO(e,t,n,r)}function ax(e){if(e instanceof aO)return new aO(e.h,e.s,e.l,e.opacity);if(e instanceof o9||(e=ap(e)),!e)return new aO;if(e instanceof aO)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+(n0&&s<1?0:i,new aO(i,l,s,e.opacity)}function aO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ak(e){return(e=(e||0)%360)<0?e+360:e}function aC(e){return Math.max(0,Math.min(1,e||0))}function aT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function aA(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}o5(o9,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ax(this).formatHsl()},formatRgb:ad,toString:ad}),o5(ah,ag,o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ah(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ah(aE(this.r),aE(this.g),aE(this.b),ay(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ab,formatHex:ab,formatHex8:function(){return"#".concat(aS(this.r)).concat(aS(this.g)).concat(aS(this.b)).concat(aS((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:av,toString:av})),o5(aO,function(e,t,n,r){return 1==arguments.length?ax(e):new aO(e,t,n,null==r?1:r)},o8(o9,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new aO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ah(aT(e>=240?e-240:e+120,o,r),aT(e,o,r),aT(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new aO(ak(this.h),aC(this.s),aC(this.l),ay(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ay(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(ak(this.h),", ").concat(100*aC(this.s),"%, ").concat(100*aC(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var aI=e=>()=>e;function aN(e,t){var n=t-e;return n?function(t){return e+t*n}:aI(isNaN(e)?t:e)}var aR=function e(t){var n,r=1==(n=+(n=t))?aN:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):aI(isNaN(e)?t:e)};function o(e,t){var n=r((e=ag(e)).r,(t=ag(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=aN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);function a_(e){return function(t){var n,r,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=rl&&(i=t.slice(l,i),c[s]?c[s]+=i:c[++s]=i),(o=o[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,u.push({i:s,x:aP(o,a)})),l=aL.lastIndex;return lt&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=s>2?aH:az,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(l,i.map(e),aP)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,aF),u()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=aj,u()},d.clamp=function(e){return arguments.length?(c=!!e||aU,u()):c!==aU},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function aW(){return a$()(aU,aU)}var aV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function aq(e){var t;if(!(t=aV.exec(e)))throw Error("invalid format: "+e);return new aY({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aY(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function aK(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aX(e){return(e=aK(Math.abs(e)))?e[1]:NaN}function aQ(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}aq.prototype=aY.prototype,aY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var aJ={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>aQ(100*e,t),r:aQ,s:function(e,t){var n=aK(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(b=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+aK(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function a0(e){return e}var a1=Array.prototype.map,a2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function a4(e,t,n,r){var o,a,i=oQ(e,t,n);switch((r=aq(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aX(l)/3)))-aX(Math.abs(i))))||(r.precision=a),E(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=Math.max(0,aX(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=i)))-aX(o))+1)||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=Math.max(0,-aX(Math.abs(i))))||(r.precision=a-("%"===r.type)*2)}return y(r)}function a3(e){var t=e.domain;return e.ticks=function(e){var n=t();return oK(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return a4(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],c=a[l],u=10;for(c0;){if((o=oX(s,c,n))===r)return a[i]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else if(o<0)s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o;else break;r=o}return e},e}function a6(){var e=aW();return e.copy=function(){return aG(e,a6())},or.apply(e,arguments),a3(e)}function a5(e,t){e=e.slice();var n,r=0,o=e.length-1,a=e[r],i=e[o];return i-e(-t,n)}function io(e){let t,n;let r=e(a8,a9),o=r.domain,a=10;function i(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?it:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=ir(t),n=ir(n),e(a7,ie)):e(a8,a9),r}return r.base=function(e){return arguments.length?(a=+e,i()):a},r.domain=function(e){return arguments.length?(o(e),i()):o()},r.ticks=e=>{let r,i;let l=o(),s=l[0],c=l[l.length-1],u=c0){for(;d<=p;++d)for(r=1;rc)break;m.push(i)}}else for(;d<=p;++d)for(r=a-1;r>=1;--r)if(!((i=d>0?r/n(-d):r*n(d))c)break;m.push(i)}2*m.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=aq(o)).precision||(o.trim=!0),o=y(o)),e===1/0)return o;let i=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(a5(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ia(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ii(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function il(e){var t=1,n=e(ia(1),ii(t));return n.constant=function(n){return arguments.length?e(ia(t=+n),ii(t)):t},a3(n)}function is(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ic(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iu(e){return e<0?-e*e:e*e}function id(e){var t=e(aU,aU),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(aU,aU):.5===n?e(ic,iu):e(is(n),is(1/n)):n},a3(t)}function ip(){var e=id(a$());return e.copy=function(){return aG(e,ip()).exponent(e.exponent())},or.apply(e,arguments),e}function im(){return ip.apply(null,arguments).exponent(.5)}function ig(e){return Math.sign(e)*e*e}function ih(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function ib(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function iv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et?1:0)}function iy(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}y=(v=function(e){var t,n,r,o=void 0===e.grouping||void 0===e.thousands?a0:(t=a1.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?a0:(r=a1.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=aq(e)).fill,n=e.align,r=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,h=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):aJ[y]||(void 0===h&&(h=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===p?a:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",S="$"===p?i:/[%p]/.test(y)?c:"",w=aJ[y],x=/[defgprs%]/.test(y);function O(e){var a,i,c,p=E,O=S;if("c"===y)O=w(e)+O,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:w(Math.abs(e),h),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==r&&(k=!1),p=(k?"("===r?r:u:"-"===r||"("===r?"":r)+p,O=("s"===y?a2[8+b/3]:"")+O+(k&&"("===r?")":""),x){for(a=-1,i=e.length;++a(c=e.charCodeAt(a))||c>57){O=(46===c?l+e.slice(a+1):e.slice(a))+O,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+O.length,T=C>1)+p+e+O+T.slice(C);break;default:e=T+p+e+O}return s(e)}return h=void 0===h?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),O.toString=function(){return e+""},O}return{format:p,formatPrefix:function(e,t){var n=p(((e=aq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(aX(t)/3))),o=Math.pow(10,-r),a=a2[8+r/3];return function(e){return n(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,E=v.formatPrefix;let iE=new Date,iS=new Date;function iw(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{let i;let l=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n0))return l;do l.push(i=new Date(+n)),t(n,a),e(n);while(iiw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(o.count=(t,r)=>(iE.setTime(+t),iS.setTime(+r),e(iE),e(iS),Math.floor(n(iE,iS))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ix=iw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ix.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?iw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ix:null,ix.range;let iO=iw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());iO.range;let ik=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());ik.range;let iC=iw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());iC.range;let iT=iw(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());iT.range;let iA=iw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());iA.range;let iI=iw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);iI.range;let iN=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);iN.range;let iR=iw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function i_(e){return iw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}iR.range;let iP=i_(0),iM=i_(1),iL=i_(2),iD=i_(3),ij=i_(4),iF=i_(5),iB=i_(6);function iU(e){return iw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}iP.range,iM.range,iL.range,iD.range,ij.range,iF.range,iB.range;let iZ=iU(0),iz=iU(1),iH=iU(2),iG=iU(3),i$=iU(4),iW=iU(5),iV=iU(6);iZ.range,iz.range,iH.range,iG.range,i$.range,iW.range,iV.range;let iq=iw(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iq.range;let iY=iw(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());iY.range;let iK=iw(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());iK.every=e=>isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,iK.range;let iX=iw(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function iQ(e,t,n,r,o,a){let i=[[iO,1,1e3],[iO,5,5e3],[iO,15,15e3],[iO,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,a=o1(e=>{let[,,t]=e;return t}).right(i,o);if(a===i.length)return e.every(oQ(t/31536e6,n/31536e6,r));if(0===a)return ix.every(Math.max(oQ(t,n,r),1));let[l,s]=i[o/i[a-1][2]isFinite(e=Math.floor(e))&&e>0?iw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,iX.range;let[iJ,i0]=iQ(iX,iY,iZ,iR,iA,iC),[i1,i2]=iQ(iK,iq,iP,iI,iT,ik);function i4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i6(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var i5={"-":"",_:" ",0:"0"},i8=/^\s*\d+/,i9=/^%/,i7=/[\\^$*+?|[\]().{}]/g;function le(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a[e.toLowerCase(),t]))}function lo(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function la(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function li(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lc(e,t,n){var r=i8.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lu(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ld(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lp(e,t,n){var r=i8.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lf(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lm(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lg(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lh(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lb(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=i8.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ly(e,t,n){var r=i8.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=i8.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lS(e,t,n){var r=i9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lw(e,t,n){var r=i8.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=i8.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lO(e,t){return le(e.getDate(),t,2)}function lk(e,t){return le(e.getHours(),t,2)}function lC(e,t){return le(e.getHours()%12||12,t,2)}function lT(e,t){return le(1+iI.count(iK(e),e),t,3)}function lA(e,t){return le(e.getMilliseconds(),t,3)}function lI(e,t){return lA(e,t)+"000"}function lN(e,t){return le(e.getMonth()+1,t,2)}function lR(e,t){return le(e.getMinutes(),t,2)}function l_(e,t){return le(e.getSeconds(),t,2)}function lP(e){var t=e.getDay();return 0===t?7:t}function lM(e,t){return le(iP.count(iK(e)-1,e),t,2)}function lL(e){var t=e.getDay();return t>=4||0===t?ij(e):ij.ceil(e)}function lD(e,t){return e=lL(e),le(ij.count(iK(e),e)+(4===iK(e).getDay()),t,2)}function lj(e){return e.getDay()}function lF(e,t){return le(iM.count(iK(e)-1,e),t,2)}function lB(e,t){return le(e.getFullYear()%100,t,2)}function lU(e,t){return le((e=lL(e)).getFullYear()%100,t,2)}function lZ(e,t){return le(e.getFullYear()%1e4,t,4)}function lz(e,t){var n=e.getDay();return le((e=n>=4||0===n?ij(e):ij.ceil(e)).getFullYear()%1e4,t,4)}function lH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function lG(e,t){return le(e.getUTCDate(),t,2)}function l$(e,t){return le(e.getUTCHours(),t,2)}function lW(e,t){return le(e.getUTCHours()%12||12,t,2)}function lV(e,t){return le(1+iN.count(iX(e),e),t,3)}function lq(e,t){return le(e.getUTCMilliseconds(),t,3)}function lY(e,t){return lq(e,t)+"000"}function lK(e,t){return le(e.getUTCMonth()+1,t,2)}function lX(e,t){return le(e.getUTCMinutes(),t,2)}function lQ(e,t){return le(e.getUTCSeconds(),t,2)}function lJ(e){var t=e.getUTCDay();return 0===t?7:t}function l0(e,t){return le(iZ.count(iX(e)-1,e),t,2)}function l1(e){var t=e.getUTCDay();return t>=4||0===t?i$(e):i$.ceil(e)}function l2(e,t){return e=l1(e),le(i$.count(iX(e),e)+(4===iX(e).getUTCDay()),t,2)}function l4(e){return e.getUTCDay()}function l3(e,t){return le(iz.count(iX(e)-1,e),t,2)}function l6(e,t){return le(e.getUTCFullYear()%100,t,2)}function l5(e,t){return le((e=l1(e)).getUTCFullYear()%100,t,2)}function l8(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var n=e.getUTCDay();return le((e=n>=4||0===n?i$(e):i$.ceil(e)).getUTCFullYear()%1e4,t,4)}function l7(){return"+0000"}function se(){return"%"}function st(e){return+e}function sn(e){return Math.floor(+e/1e3)}function sr(e){return new Date(e)}function so(e){return e instanceof Date?+e:+new Date(+e)}function sa(e,t,n,r,o,a,i,l,s,c){var u=aW(),d=u.invert,p=u.domain,f=c(".%L"),m=c(":%S"),g=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),v=c("%b %d"),y=c("%B"),E=c("%Y");function S(e){return(s(e)1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a=0;)n[t]=t;return n}function sv(e,t){return e[t]}function sy(e){let t=[];return t.key=e,t}w=(S=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,c=ln(o),u=lr(o),d=ln(a),p=lr(a),f=ln(i),m=lr(i),g=ln(l),h=lr(l),b=ln(s),v=lr(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:lO,e:lO,f:lI,g:lU,G:lz,H:lk,I:lC,j:lT,L:lA,m:lN,M:lR,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:st,s:sn,S:l_,u:lP,U:lM,V:lD,w:lj,W:lF,x:null,X:null,y:lB,Y:lZ,Z:lH,"%":se},E={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lG,e:lG,f:lY,g:l5,G:l9,H:l$,I:lW,j:lV,L:lq,m:lK,M:lX,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:st,s:sn,S:lQ,u:lJ,U:l0,V:l2,w:l4,W:l3,x:null,X:null,y:l6,Y:l8,Z:l7,"%":se},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=h.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return O(e,t,n,r)},d:lm,e:lm,f:lE,g:lu,G:lc,H:lh,I:lh,j:lg,L:ly,m:lf,M:lb,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:lp,Q:lw,s:lx,S:lv,u:la,U:li,V:ll,w:lo,W:ls,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:lu,Y:lc,Z:ld,"%":lS};function w(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(r=(o=(r=i3(i6(a.y,0,1))).getUTCDay())>4||0===o?iz.ceil(r):iz(r),r=iN.offset(r,(a.V-1)*7),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(r=(o=(r=i4(i6(a.y,0,1))).getDay())>4||0===o?iM.ceil(r):iM(r),r=iI.offset(r,(a.V-1)*7),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?i3(i6(a.y,0,1)).getUTCDay():i4(i6(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,i3(a)):i4(a)}}function O(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i=s)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=S[(o=t.charAt(i++))in i5?t.charAt(i++):o])||(r=a(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),E.x=w(n,E),E.X=w(r,E),E.c=w(t,E),{format:function(e){var t=w(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",E);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,S.parse,x=S.utcFormat,S.utcParse,Array.prototype.slice;var sE=n(5037),sS=n.n(sE),sw=n(30264),sx=n.n(sw),sO=n(20734),sk=n.n(sO),sC=n(93574),sT=n.n(sC),sA=n(6122),sI=n.n(sA);function sN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-i,sM(function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,a=n),[o,a]}function sV(e,t,n){if(e.lte(0))return new(sI())(0);var r=sZ.getDigitCount(e.toNumber()),o=new(sI())(10).pow(r),a=e.div(o),i=1!==r?.05:.1,l=new(sI())(Math.ceil(a.div(i).toNumber())).add(n).mul(i).mul(o);return t?l:new(sI())(Math.ceil(l))}function sq(e,t,n){var r=1,o=new(sI())(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new(sI())(10).pow(sZ.getDigitCount(e)-1),o=new(sI())(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new(sI())(Math.floor(e)))}else 0===e?o=new(sI())(Math.floor((t-1)/2)):n||(o=new(sI())(Math.floor(e)));var i=Math.floor((t-1)/2);return sF(sj(function(e){return o.add(new(sI())(e-i).mul(r)).toNumber()}),sD)(0,t)}var sY=sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(sz(sD(0,o-1).map(function(){return 1/0}))):[].concat(sz(sD(0,o-1).map(function(){return-1/0})),[c]);return n>r?sB(u):u}if(s===c)return sq(s,o,a);var d=function e(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(sI())(0),tickMin:new(sI())(0),tickMax:new(sI())(0)};var l=sV(new(sI())(n).sub(t).div(r-1),o,i),s=Math.ceil((a=t<=0&&n>=0?new(sI())(0):(a=new(sI())(t).add(n).div(2)).sub(new(sI())(a).mod(l))).sub(t).div(l).toNumber()),c=Math.ceil(new(sI())(n).sub(a).div(l).toNumber()),u=s+c+1;return u>r?e(t,n,r,o,i+1):(u0?c+(r-u):c,s=n>0?s:s+(r-u)),{step:l,tickMin:a.sub(new(sI())(s).mul(l)),tickMax:a.add(new(sI())(c).mul(l))})}(s,c,i,a),p=d.step,f=d.tickMin,m=d.tickMax,g=sZ.rangeStep(f,m.add(new(sI())(.1).mul(p)),p);return n>r?sB(g):g});sU(function(e){var t=sH(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=sH(sW([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0)return[n,r];if(s===c)return sq(s,o,a);var u=sV(new(sI())(c).sub(s).div(i-1),a,0),d=sF(sj(function(e){return new(sI())(s).add(new(sI())(e).mul(u)).toNumber()}),sD)(0,i).filter(function(e){return e>=s&&e<=c});return n>r?sB(d):d});var sK=sU(function(e,t){var n=sH(e,2),r=n[0],o=n[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=sH(sW([r,o]),2),l=i[0],s=i[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=sV(new(sI())(s).sub(l).div(Math.max(t,2)-1),a,0),u=[].concat(sz(sZ.rangeStep(new(sI())(l),new(sI())(s).sub(new(sI())(.99).mul(c)),c)),[s]);return r>o?sB(u):u}),sX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sQ(){return(sQ=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sX),!1);"x"===e.direction&&"number"!==l.type&&eW(!1);var u=a.map(function(e){var a,u,d=i(e,o),p=d.x,f=d.y,m=d.value,g=d.errorVal;if(!g)return null;var h=[];if(Array.isArray(g)){var b=function(e){if(Array.isArray(e))return e}(g)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(g,2)||function(e,t){if(e){if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a=b[0],u=b[1]}else a=u=g;if("vertical"===n){var v=l.scale,y=f+t,E=y+r,S=y-r,w=v(m-a),x=v(m+u);h.push({x1:x,y1:E,x2:x,y2:S}),h.push({x1:w,y1:y,x2:x,y2:y}),h.push({x1:w,y1:E,x2:w,y2:S})}else if("horizontal"===n){var O=s.scale,k=p+t,C=k-r,T=k+r,A=O(m-a),I=O(m+u);h.push({x1:C,y1:I,x2:T,y2:I}),h.push({x1:k,y1:A,x2:k,y2:I}),h.push({x1:C,y1:A,x2:T,y2:A})}return N.createElement(eQ,sQ({className:"recharts-errorBar",key:"bar-".concat(h.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},c),h.map(function(e){return N.createElement("line",sQ({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return N.createElement(eQ,{className:"recharts-errorBars"},u)}function s1(e){return(s1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s4(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(i<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,s=0;s0?r[s-1].coordinate:r[i-1].coordinate,u=r[s].coordinate,d=s>=i-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(H(u-c)!==H(d-u)){var f=[];if(H(d-u)===H(l[1]-l[0])){p=d;var m=u+l[1]-l[0];f[0]=Math.min(m,(m+c)/2),f[1]=Math.max(m,(m+c)/2)}else{p=c;var g=d+l[1]-l[0];f[0]=Math.min(u,(g+u)/2),f[1]=Math.max(u,(g+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){a=r[s].index;break}}else{var b=Math.min(c,d),v=Math.max(c,d);if(e>(b+u)/2&&e<=(v+u)/2){a=r[s].index;break}}}else for(var y=0;y0&&y(n[y].coordinate+n[y-1].coordinate)/2&&e<=(n[y].coordinate+n[y+1].coordinate)/2||y===i-1&&e>(n[y].coordinate+n[y-1].coordinate)/2){a=n[y].index;break}return a},co=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,a=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},ca=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},a=Object.keys(r),i=0,l=a.length;i=0});if(g&&g.length){var h=g[0].props.barSize,b=g[0].props[m];o[b]||(o[b]=[]),o[b].push({item:g[0],stackList:g.slice(1),barSize:en()(h)?t:h})}}return o},ci=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,s=i.length;if(s<1)return null;var c=Y(n,o,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=o/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=o&&(f-=(s-1)*c,c=0),f>=o&&p>0&&(d=!0,p*=.9,f=s*p);var m={offset:((o-f)/2>>0)-c,size:0};t=i.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?p:t.barSize}},r=[].concat(s7(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var g=Y(r,o,0,!0);o-2*g-(s-1)*c<=0&&(c=0);var h=(o-2*g-(s-1)*c)/s;h>1&&(h>>=0);var b=l===+l?Math.min(h,l):h;t=i.reduce(function(e,t,n){var r=[].concat(s7(e),[{item:t.item,position:{offset:g+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return t},cl=function(e,t,n,r){var o=n.children,a=n.width,i=n.margin,l=s3({children:o,legendWidth:a-(i.left||0)-(i.right||0)});if(l){var s=r||{},c=s.width,u=s.height,d=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==d&&$(e[d]))return s8(s8({},e),{},s9({},d,e[d]+(c||0)));if(("horizontal"===f||"vertical"===f&&"center"===d)&&"middle"!==p&&$(e[p]))return s8(s8({},e),{},s9({},p,e[p]+(u||0)))}return e},cs=function(e,t,n,r,o){var a=ex(t.props.children,s0).filter(function(e){var t;return t=e.props.direction,!!en()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=ct(t,n,0),o=Array.isArray(r)?[sx()(r),sS()(r)]:[r,r],a=i.reduce(function(e,n){var r=ct(t,n,0),a=o[0]-Math.abs(Array.isArray(r)?r[0]:r),i=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},cc=function(e,t,n,r,o){var a=t.map(function(t){return cs(e,t,n,o,r)}).filter(function(e){return!en()(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},cu=function(e,t,n,r,o){var a=t.map(function(t){var a=t.props.dataKey;return"number"===n&&a&&cs(e,t,a,r)||cn(e,a,n,o)});if("number"===n)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var i={};return a.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*H(i[0]-i[1])*s:s,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+s,value:e,offset:s}}).filter(function(e){return!F()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+s,value:e,offset:s}}):r.domain().map(function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}})},cm=new WeakMap,cg=function(e,t){if("function"!=typeof t)return e;cm.has(e)||cm.set(e,new WeakMap);var n=cm.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},ch=function(e,t,n){var r=e.scale,o=e.type,a=e.layout,i=e.axisType;if("auto"===r)return"radial"===a&&"radiusAxis"===i?{scale:ou(),realScaleType:"band"}:"radial"===a&&"angleAxis"===i?{scale:a6(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:od(),realScaleType:"point"}:"category"===o?{scale:ou(),realScaleType:"band"}:{scale:a6(),realScaleType:"linear"};if(D()(r)){var l="scale".concat(nQ()(r));return{scale:(O[l]||od)(),realScaleType:O[l]?l:"point"}}return eo()(r)?{scale:r}:{scale:od(),realScaleType:"point"}},cb=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,a=Math.max(r[0],r[1])+1e-4,i=e(t[0]),l=e(t[n-1]);(ia||la)&&e.domain([t[0],t[n-1]])}},cv=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[i][n][0]=o,e[i][n][1]=o+l,o=e[i][n][1]):(e[i][n][0]=a,e[i][n][1]=a+l,a=e[i][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i=0?(e[a][n][0]=o,e[a][n][1]=o+i,o=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},cS=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=cE[n];return(function(){var e=ro([]),t=sb,n=sg,r=sv;function o(o){var a,i,l=Array.from(e.apply(this,arguments),sy),s=l.length,c=-1;for(let e of o)for(a=0,++c;a=0?0:o<0?o:r}return n[0]},cC=function(e,t){var n=e.props.stackId;if(W(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null},cT=function(e,t,n){return Object.keys(e).reduce(function(r,o){var a=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[sx()(t.concat([e[0]]).filter($)),sS()(t.concat([e[1]]).filter($))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},cA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=function(e,t,n){if(eo()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if($(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cA.test(e[0])){var o=+cA.exec(e[0])[1];r[0]=t[0]-o}else eo()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if($(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(cI.test(e[1])){var a=+cI.exec(e[1])[1];r[1]=t[1]+a}else eo()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},cR=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=eZ()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;i0&&t.handleDrag(e.changedTouches[0])}),cq(cW(t),"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),cq(cW(t),"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),cq(cW(t),"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),cq(cW(t),"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),cq(cW(t),"handleSlideDragStart",function(e){var n=cX(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(cW(t),"startX"),endX:t.handleTravellerDragStart.bind(cW(t),"endX")},t.state={},t}return n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,o=this.props,i=o.gap,l=o.data.length-1,s=a.getIndexInRange(r,Math.min(t,n)),c=a.getIndexInRange(r,Math.max(t,n));return{startIndex:s-s%i,endIndex:c===l?l:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=ct(n[e],o,e);return eo()(r)?r(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,s=a.travellerWidth,c=a.startIndex,u=a.endIndex,d=a.onChange,p=e.pageX-n;p>0?p=Math.min(p,i+l-s-o,i+l-s-r):p<0&&(p=Math.max(p,i-r,i-o));var f=this.getIndex({startX:r+p,endX:o+p});(f.startIndex!==c||f.endIndex!==u)&&d&&d(f),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=cX(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,a=n.endX,i=n.startX,l=this.state[o],s=this.props,c=s.x,u=s.width,d=s.travellerWidth,p=s.onChange,f=s.gap,m=s.data,g={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,c+u-d-l):h<0&&(h=Math.max(h,c-l)),g[o]=l+h;var b=this.getIndex(g),v=b.startIndex,y=b.endIndex,E=function(){var e=m.length-1;return"startX"===o&&(a>i?v%f==0:y%f==0)||ai?y%f==0:v%f==0)||a>i&&y===e};this.setState((cq(t={},o,l+h),cq(t,"brushMoveStartX",e.pageX),t),function(){p&&E()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,a=r.startX,i=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(-1!==c&&!(c>=o.length)){var u=o[c];"startX"===t&&u>=i||"endX"===t&&u<=a||this.setState(cq({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,i=e.stroke;return N.createElement("rect",{stroke:i,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,s=N.Children.only(i);return s?N.cloneElement(s,{x:t,y:n,width:r,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this,r=this.props,o=r.y,i=r.travellerWidth,l=r.height,s=r.traveller,c=r.ariaLabel,u=r.data,d=r.startIndex,p=r.endIndex,f=Math.max(e,this.props.x),m=cH(cH({},eA(this.props,!1)),{},{x:f,y:o,width:i,height:l}),g=c||"Min value: ".concat(u[d].name,", Max value: ").concat(u[p].name);return N.createElement(eQ,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},a.renderTraveller(s,m))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,i=n.travellerWidth;return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(e,t)+i,y:r,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,s=l.startX,c=l.endX,u={pointerEvents:"none",fill:i};return N.createElement(eQ,{className:"recharts-brush-texts"},N.createElement(o$,cZ({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},u),this.getTextOfTick(t)),N.createElement(o$,cZ({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},u),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,i=e.width,l=e.height,s=e.alwaysShowText,c=this.state,u=c.startX,d=c.endX,p=c.isTextActive,f=c.isSlideMoving,m=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!$(o)||!$(a)||!$(i)||!$(l)||i<=0||l<=0)return null;var h=R("recharts-brush",n),b=1===N.Children.count(r),v=cB("userSelect","none");return N.createElement(eQ,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(u,d),this.renderTravellerLayer(u,"startX"),this.renderTravellerLayer(d,"endX"),(p||f||m||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,i=Math.floor(n+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),N.createElement("line",{x1:t+1,y1:i,x2:t+r-1,y2:i,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:t+1,y1:i+2,x2:t+r-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||i!==t.prevUpdateId)return cH({prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r},n&&n.length?cK({data:n,width:r,x:o,travellerWidth:a,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+r-a]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var a=Math.floor((r+o)/2);e[a]>t?o=a:r=a}return t>=e[o]?o:r}}],n&&cG(a.prototype,n),r&&cG(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function cJ(e){return(cJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c1(e){for(var t=1;ta&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},c5=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},c8=function(e,t){var n,r=c6({x:e.x,y:e.y},t),o=r.radius,a=r.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var s=c5(t),c=s.startAngle,u=s.endAngle,d=a;if(c<=u){for(;d>u;)d-=360;for(;d=c&&d<=u}else{for(;d>c;)d-=360;for(;d=u&&d<=c}return n?c1(c1({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null};function c9(e){return(c9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c7=["offset"];function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===a?(r=f+v*l,o=g):"insideEnd"===a?(r=m-v*l,o=!g):"end"===a&&(r=m+v*l,o=g),o=b<=0?o:!o;var y=c4(c,u,h,r),E=c4(c,u,h,r+(o?1:-1)*359),S="M".concat(y.x,",").concat(y.y,"\n A").concat(h,",").concat(h,",0,1,").concat(o?0:1,",\n ").concat(E.x,",").concat(E.y),w=en()(e.id)?q("recharts-radial-line-"):e.id;return N.createElement("text",ur({},n,{dominantBaseline:"central",className:R("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:w,d:S})),N.createElement("textPath",{xlinkHref:"#".concat(w)},t))},ui=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=c4(o,a,l+n,s),u=c.x;return{x:u,y:c.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=c4(o,a,(i+l)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},ul=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,a=t.x,i=t.y,l=t.width,s=t.height,c=s>=0?1:-1,u=c*r,d=c>0?"end":"start",p=c>0?"start":"end",f=l>=0?1:-1,m=f*r,g=f>0?"end":"start",h=f>0?"start":"end";if("top"===o)return un(un({},{x:a+l/2,y:i-c*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(i-n.y,0),width:l}:{});if("bottom"===o)return un(un({},{x:a+l/2,y:i+s+u,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(i+s),0),width:l}:{});if("left"===o){var b={x:a-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"};return un(un({},b),n?{width:Math.max(b.x-n.x,0),height:s}:{})}if("right"===o){var v={x:a+l+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"};return un(un({},v),n?{width:Math.max(n.x+n.width-v.x,0),height:s}:{})}var y=n?{width:l,height:s}:{};return"insideLeft"===o?un({x:a+m,y:i+s/2,textAnchor:h,verticalAnchor:"middle"},y):"insideRight"===o?un({x:a+l-m,y:i+s/2,textAnchor:g,verticalAnchor:"middle"},y):"insideTop"===o?un({x:a+l/2,y:i+u,textAnchor:"middle",verticalAnchor:p},y):"insideBottom"===o?un({x:a+l/2,y:i+s-u,textAnchor:"middle",verticalAnchor:d},y):"insideTopLeft"===o?un({x:a+m,y:i+u,textAnchor:h,verticalAnchor:p},y):"insideTopRight"===o?un({x:a+l-m,y:i+u,textAnchor:g,verticalAnchor:p},y):"insideBottomLeft"===o?un({x:a+m,y:i+s-u,textAnchor:h,verticalAnchor:d},y):"insideBottomRight"===o?un({x:a+l-m,y:i+s-u,textAnchor:g,verticalAnchor:d},y):ei()(o)&&($(o.x)||G(o.x))&&($(o.y)||G(o.y))?un({x:a+Y(o.x,l),y:i+Y(o.y,s),textAnchor:"end",verticalAnchor:"end"},y):un({x:a+l/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"},y)};function us(e){var t,n=e.offset,r=un({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,c7)),o=r.viewBox,a=r.position,i=r.value,l=r.children,s=r.content,c=r.className,u=r.textBreakAll;if(!o||en()(i)&&en()(l)&&!(0,N.isValidElement)(s)&&!eo()(s))return null;if((0,N.isValidElement)(s))return(0,N.cloneElement)(s,r);if(eo()(s)){if(t=(0,N.createElement)(s,r),(0,N.isValidElement)(t))return t}else t=uo(r);var d="cx"in o&&$(o.cx),p=eA(r,!0);if(d&&("insideStart"===a||"insideEnd"===a||"end"===a))return ua(r,t,p);var f=d?ui(r):ul(r);return N.createElement(o$,ur({className:R("recharts-label",void 0===c?"":c)},p,f,{breakAll:u}),t)}us.displayName="Label";var uc=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,p=e.top,f=e.left,m=e.width,g=e.height,h=e.clockWise,b=e.labelViewBox;if(b)return b;if($(m)&&$(g)){if($(u)&&$(d))return{x:u,y:d,width:m,height:g};if($(p)&&$(f))return{x:p,y:f,width:m,height:g}}return $(u)&&$(d)?{x:u,y:d,width:0,height:0}:$(t)&&$(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:a||r||0,innerRadius:s||0,outerRadius:c||l||i||0,clockWise:h}:e.viewBox?e.viewBox:{}};us.parseViewBox=uc,us.renderCallByParent=function(e,t){var n,r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var a=e.children,i=uc(e),l=ex(a,us).map(function(e,n){return(0,N.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})});return o?[(n=e.label,r=t||i,n?!0===n?N.createElement(us,{key:"label-implicit",viewBox:r}):W(n)?N.createElement(us,{key:"label-implicit",viewBox:r,value:n}):(0,N.isValidElement)(n)?n.type===us?(0,N.cloneElement)(n,{key:"label-implicit",viewBox:r}):N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):eo()(n)?N.createElement(us,{key:"label-implicit",content:n,viewBox:r}):ei()(n)?N.createElement(us,ur({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return ue(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l};var uu=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},ud=n(50924),up=n.n(ud),uf=function(e){return null};uf.displayName="Cell";var um=n(36887),ug=n.n(um);function uh(e){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ub=["valueAccessor"],uv=["data","dataKey","clockWise","id","textBreakAll"];function uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uO=function(e){return Array.isArray(e.value)?ug()(e.value):e.value};function uk(e){var t=e.valueAccessor,n=void 0===t?uO:t,r=ux(e,ub),o=r.data,a=r.dataKey,i=r.clockWise,l=r.id,s=r.textBreakAll,c=ux(r,uv);return o&&o.length?N.createElement(eQ,{className:"recharts-label-list"},o.map(function(e,t){var r=en()(a)?n(e,t):ct(e&&e.payload,a),o=en()(l)?{}:{id:"".concat(l,"-").concat(t)};return N.createElement(us,uE({},eA(e,!0),c,o,{parentViewBox:e.parentViewBox,value:r,textBreakAll:s,viewBox:us.parseViewBox(en()(i)?e:uw(uw({},e),{},{clockWise:i})),key:"label-".concat(t),index:t}))})):null}uk.displayName="LabelList",uk.renderCallByParent=function(e,t){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=ex(e.children,uk).map(function(e,n){return(0,N.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return r?[(n=e.label)?!0===n?N.createElement(uk,{key:"labelList-implicit",data:t}):N.isValidElement(n)||eo()(n)?N.createElement(uk,{key:"labelList-implicit",data:t,content:n}):ei()(n)?N.createElement(uk,uE({data:t},n,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return uy(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uy(e,t)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):o};var uC=n(23393),uT=n.n(uC),uA=n(90849),uI=n.n(uA);function uN(e){return(uN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uR(){return(uR=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:u,height:d,x:l,y:s},duration:m,animationEasing:f,isActive:h},function(e){var t=e.upperWidth,o=e.lowerWidth,i=e.height,l=e.x,s=e.y;return N.createElement(ni,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:f},N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,t,o,i),ref:r})))}):N.createElement("g",null,N.createElement("path",uR({},eA(n,!0),{className:b,d:uL(l,s,c,u,d)})))};function uF(e){return(uF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uB(){return(uB=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(o>0){var p=c4(n,r,o,i),f=c4(n,r,o,s);d+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(i<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},uG=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=H(c-s),d=uz({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,f=d.lineTangency,m=d.theta,g=uz({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,v=g.theta,y=l?Math.abs(s-c):Math.abs(s-c)-m-v;if(y<0)return i?"M ".concat(f.x,",").concat(f.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):uH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var E="M ".concat(f.x,",").concat(f.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(y>180),",").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(b.x,",").concat(b.y,"\n ");if(r>0){var S=uz({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=S.circleTangency,x=S.lineTangency,O=S.theta,k=uz({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=k.circleTangency,T=k.lineTangency,A=k.theta,I=l?Math.abs(s-c):Math.abs(s-c)-O-A;if(I<0&&0===a)return"".concat(E,"L").concat(t,",").concat(n,"Z");E+="L".concat(T.x,",").concat(T.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(I>180),",").concat(+(u>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(x.x,",").concat(x.y,"Z")}else E+="L".concat(t,",").concat(n,"Z");return E},u$={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},uW=function(e){var t,n=uZ(uZ({},u$),e),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,p=n.className;if(i0&&360>Math.abs(u-d)?uG({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(g,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):uH({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d}),N.createElement("path",uB({},eA(n,!0),{className:f,d:t,role:"img"}))},uV=["option","shapeType","propTransformer","activeClassName","isActive"];function uq(e){return(uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uK(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uV);if((0,N.isValidElement)(n))t=(0,N.cloneElement)(n,uK(uK({},l),(0,N.isValidElement)(n)?n.props:n));else if(eo()(n))t=n(l);else if(uT()(n)&&!uI()(n)){var s=(void 0===o?function(e,t){return uK(uK({},t),e)}:o)(n,l);t=N.createElement(uX,{shapeType:r,elementProps:s})}else t=N.createElement(uX,{shapeType:r,elementProps:l});return i?N.createElement(eQ,{className:void 0===a?"recharts-active-shape":a},t):t}function uJ(e,t){return null!=t&&"trapezoids"in e.props}function u0(e,t){return null!=t&&"sectors"in e.props}function u1(e,t){return null!=t&&"points"in e.props}function u2(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,a=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&a}function u4(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function u3(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function u6(e){return(u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u5=["x","y"];function u8(){return(u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,u5),a=parseInt("".concat(n),10),i=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),s=parseInt("".concat(t.width||o.width),10);return u7(u7(u7(u7(u7({},t),o),a?{x:a}:{}),i?{y:i}:{}),{},{height:l,width:s,name:t.name,radius:t.radius})}function dt(e){return N.createElement(uQ,u8({shapeType:"rectangle",propTransformer:de,activeClassName:"recharts-active-bar"},e))}var dn=["value","background"];function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function da(){return(da=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,dn);if(!i)return null;var s=dl(dl(dl(dl(dl({},l),{},{fill:"#eee"},i),a),em(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return N.createElement(dt,da({option:e.props.background,isActive:n===o},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.xAxis,a=n.yAxis,i=n.layout,l=ex(n.children,s0);if(!l)return null;var s="vertical"===i?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ct(e,t)}};return N.createElement(eQ,{clipPath:e?"url(#clipPath-".concat(t,")"):null},l.map(function(e){return N.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:o,yAxis:a,layout:i,offset:s,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,a=e.yAxis,i=e.left,l=e.top,s=e.width,c=e.height,u=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var f=this.state.isAnimationFinished,m=R("recharts-bar",r),g=o&&o.allowDataOverflow,h=a&&a.allowDataOverflow,b=g||h,v=en()(p)?this.id:p;return N.createElement(eQ,{className:m},g||h?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(v)},N.createElement("rect",{x:g?i:i-s/2,y:h?l:l-c/2,width:g?s:2*s,height:h?c:2*c}))):null,N.createElement(eQ,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,v),(!u||f)&&uk.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],n&&ds(a.prototype,n),r&&ds(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.PureComponent);function dg(e){return(dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dh(e,t){for(var n=0;n0&&Math.abs(b)0&&Math.abs(g)1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(n){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&dh(n.prototype,e),t&&dh(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();dy(dw,"EPS",1e-4);var dx=function(e){var t=Object.keys(e).reduce(function(t,n){return dv(dv({},t),{},dy({},n,dw.create(e[n])))},{});return dv(dv({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return up()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:o})})},isInRange:function(e){return e$()(e,function(e,n){return t[n].isInRange(e)})}})},dO=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,a=Math.atan(n/t);return Math.abs(o>a&&oe.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[r-1]=(e[r]+o[r-1])/2;t=d;--p)l.point(b[p],v[p]);l.lineEnd(),l.areaEnd()}}h&&(b[u]=+e(f,u,c),v[u]=+t(f,u,c),l.point(r?+r(f,u,c):b[u],n?+n(f,u,c):v[u]))}if(m)return l=null,m+""||null}function u(){return pT().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?pk:ro(+e),t="function"==typeof t?t:void 0===t?ro(0):ro(+t),n="function"==typeof n?n:void 0===n?pC:ro(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ro(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ro(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ro(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ro(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:ro(!!e),c):o},c.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),c):i},c.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),c):a},c}function pI(e){return(pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pN(){return(pN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var pP={curveBasisClosed:function(e){return new pu(e)},curveBasisOpen:function(e){return new pd(e)},curveBasis:function(e){return new pc(e)},curveBumpX:function(e){return new pp(e,!0)},curveBumpY:function(e){return new pp(e,!1)},curveLinearClosed:function(e){return new pf(e)},curveLinear:pg,curveMonotoneX:function(e){return new py(e)},curveMonotoneY:function(e){return new pE(e)},curveNatural:function(e){return new pw(e)},curveStep:function(e){return new pO(e,.5)},curveStepAfter:function(e){return new pO(e,1)},curveStepBefore:function(e){return new pO(e,0)}},pM=function(e){return e.x===+e.x&&e.y===+e.y},pL=function(e){return e.x},pD=function(e){return e.y},pj=function(e,t){if(eo()(e))return e;var n="curve".concat(nQ()(e));return("curveMonotone"===n||"curveBump"===n)&&t?pP["".concat(n).concat("vertical"===t?"Y":"X")]:pP[n]||pg},pF=function(e){var t,n=e.type,r=e.points,o=void 0===r?[]:r,a=e.baseLine,i=e.layout,l=e.connectNulls,s=void 0!==l&&l,c=pj(void 0===n?"linear":n,i),u=s?o.filter(function(e){return pM(e)}):o;if(Array.isArray(a)){var d=s?a.filter(function(e){return pM(e)}):a,p=u.map(function(e,t){return p_(p_({},e),{},{base:d[t]})});return(t="vertical"===i?pA().y(pD).x1(pL).x0(function(e){return e.base.x}):pA().x(pL).y1(pD).y0(function(e){return e.base.y})).defined(pM).curve(c),t(p)}return(t="vertical"===i&&$(a)?pA().y(pD).x1(pL).x0(a):$(a)?pA().x(pL).y1(pD).y0(a):pT().x(pL).y(pD)).defined(pM).curve(c),t(u)},pB=function(e){var t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?pF(e):r;return N.createElement("path",pN({},eA(e,!1),ef(e),{className:R("recharts-curve",t),d:a,ref:o}))};function pU(e){return(pU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var pZ=["x","y","top","left","width","height","className"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pZ));return $(n)&&$(o)&&$(u)&&$(p)&&$(i)&&$(s)?N.createElement("path",pz({},eA(m,!0),{className:R("recharts-cross",f),d:"M".concat(n,",").concat(i,"v").concat(p,"M").concat(s,",").concat(o,"h").concat(u)})):null};function p$(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,a=e.endAngle;return{points:[c4(t,n,r,o),c4(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:o,endAngle:a}}function pW(e){return(pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pq(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p2(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0?a:e&&e.length&&$(r)&&$(o)?e.slice(r,o+1):[]};function fc(e){return"number"===e?[0,"auto"]:void 0}var fu=function(e,t,n,r){var o=e.graphicalItems,a=e.tooltipAxis,i=fs(t,e);return n<0||!o||!o.length||n>=i.length?null:o.reduce(function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;return(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),c=a.dataKey&&!a.allowDuplicatedCategory?J(void 0===u?i:u,a.dataKey,r):u&&u[n]||i[n])?[].concat(p5(o),[cP(l,c)]):o},[])},fd=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},a="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=cr(a,i,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=fu(e,t,c,u),p=fl(n,i,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},fp=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=cd(c,o);return n.reduce(function(t,n){var f=n.props,m=f.type,g=f.dataKey,h=f.allowDataOverflow,b=f.allowDuplicatedCategory,v=f.scale,y=f.ticks,E=f.includeHidden,S=n.props[a];if(t[S])return t;var w=fs(e.data,{graphicalItems:r.filter(function(e){return e.props[a]===S}),dataStartIndex:l,dataEndIndex:s}),x=w.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&$(r)&&$(o))return!0}return!1})(n.props.domain,h,m)&&(C=cN(n.props.domain,null,h),p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category")));var O=fc(m);if(!C||0===C.length){var k,C,T,A,I,N=null!==(I=n.props.domain)&&void 0!==I?I:O;if(g){if(C=cn(w,g,m),"category"===m&&p){var R=X(C);b&&R?(T=C,C=eB()(0,x)):b||(C=c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(p5(e),[t])},[]))}else if("category"===m)C=b?C.filter(function(e){return""!==e&&!en()(e)}):c_(N,C,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||en()(t)?e:[].concat(p5(e),[t])},[]);else if("number"===m){var _=cc(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),g,o,c);_&&(C=_)}p&&("number"===m||"auto"!==v)&&(A=cn(w,g,"category"))}else C=p?eB()(0,x):i&&i[S]&&i[S].hasStack&&"number"===m?"expand"===d?[0,1]:cT(i[S].stackGroups,l,s):cu(w,r.filter(function(e){return e.props[a]===S&&(E||!e.props.hide)}),m,c,!0);"number"===m?(C=d9(u,C,S,o,y),N&&(C=cN(N,C,h))):"category"===m&&N&&C.every(function(e){return N.indexOf(e)>=0})&&(C=N)}return fe(fe({},t),{},ft({},S,fe(fe({},n.props),{},{axisType:o,domain:C,categoricalDomain:A,duplicateDomain:T,originalDomain:null!==(k=n.props.domain)&&void 0!==k?k:O,isCategorical:p,layout:c})))},{})},ff=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=fs(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),p=d.length,f=cd(c,o),m=-1;return n.reduce(function(e,t){var g,h=t.props[a],b=fc("number");return e[h]?e:(m++,g=f?eB()(0,p):i&&i[h]&&i[h].hasStack?d9(u,g=cT(i[h].stackGroups,l,s),h,o):d9(u,g=cN(b,cu(d,n.filter(function(e){return e.props[a]===h&&!e.props.hide}),"number",c),r.defaultProps.allowDataOverflow),h,o),fe(fe({},e),{},ft({},h,fe(fe({axisType:o},r.defaultProps),{},{hide:!0,orientation:U()(fr,"".concat(o,".").concat(m%2),null),domain:g,originalDomain:b,isCategorical:f,layout:c}))))},{})},fm=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ex(c,o),p={};return d&&d.length?p=fp(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=ff(e,{Axis:o,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:l,dataEndIndex:s})),p},fg=function(e){var t=K(e),n=cf(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eZ()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:cR(t,n)}},fh=function(e){var t=e.children,n=e.defaultShowTooltip,r=eO(t,cQ),o=0,a=0;return e.data&&0!==e.data.length&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},fb=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},fv=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,s=n.width,c=n.height,u=n.children,d=n.margin||{},p=eO(u,cQ),f=eO(u,r1),m=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,e[r]+n.width))},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:fe(fe({},e),{},ft({},r,U()(e,"".concat(r))+n.height))},{top:d.top||0,bottom:d.bottom||0}),h=fe(fe({},g),m),b=h.bottom;p&&(h.bottom+=p.props.height||cQ.defaultProps.height),f&&t&&(h=cl(h,r,n,t));var v=s-h.left-h.right,y=c-h.top-h.bottom;return fe(fe({brushBottom:b},h),{},{width:Math.max(v,0),height:Math.max(y,0)})};function fy(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-o)<=0}function fS(e){return(fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t=2?H(c[1].coordinate-c[0].coordinate):1,S=(r="width"===b,o=u.x,a=u.y,i=u.width,l=u.height,1===E?{start:r?o:a,end:r?o+i:a+l}:{start:r?o+i:a+l,end:r?o:a});return"equidistantPreserveStart"===f?function(e,t,n,r,o){for(var a,i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l;u<=i.length;)if(a=function(){var t,a=null==r?void 0:r[c];if(void 0===a)return{v:fy(r,u)};var i=c,p=function(){return void 0===t&&(t=n(a,i)),t},f=a.coordinate,m=0===c||fE(e,f,p,d,s);m||(c=0,d=l,u+=1),m&&(d=f+e*(p()/2+o),c+=u)}())return a.v;return[]}(E,S,y,c,d):("preserveStart"===f||"preserveStartEnd"===f?function(e,t,n,r,o,a){var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end;if(a){var u=r[l-1],d=n(u,l-1),p=e*(u.coordinate+e*d/2-c);i[l-1]=u=fx(fx({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),fE(e,u.tickCoord,function(){return d},s,c)&&(c=u.tickCoord-e*(d/2+o),i[l-1]=fx(fx({},u),{},{isShow:!0}))}for(var f=a?l-1:l,m=function(t){var r,a=i[t],l=function(){return void 0===r&&(r=n(a,t)),r};if(0===t){var u=e*(a.coordinate-e*l()/2-s);i[t]=a=fx(fx({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else i[t]=a=fx(fx({},a),{},{tickCoord:a.coordinate});fE(e,a.tickCoord,l,s,c)&&(s=a.tickCoord+e*(l()/2+o),i[t]=fx(fx({},a),{},{isShow:!0}))},g=0;g0?c.coordinate-d*e:c.coordinate})}else a[t]=c=fx(fx({},c),{},{tickCoord:c.coordinate});fE(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),a[t]=fx(fx({},c),{},{isShow:!0}))},u=i-1;u>=0;u--)c(u);return a}(E,S,y,c,d)).filter(function(e){return e.isShow})}var fk=["viewBox"],fC=["viewBox"],fT=["ticks"];function fA(e){return(fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(){return(fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fP(e,t){for(var n=0;n0?this.props:c)),r<=0||o<=0||!u||!u.length)?null:N.createElement(eQ,{className:R("recharts-cartesian-axis",i),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),us.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,n){return N.isValidElement(e)?N.cloneElement(e,t):eo()(e)?e(t):N.createElement(o$,fI({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&fP(a.prototype,n),r&&fP(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(N.Component);function fB(){return(fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(O=Math.min((e||0)-(k[t-1]||0),O))});var C=O/x,T="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var A=Y(e.barCategoryGap,C*T),I=C*T/2;s=I-A-(I-A)/T*A}}c="xAxis"===r?[n.left+(y.left||0)+(s||0),n.left+n.width-(y.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(y.bottom||0),n.top+(y.top||0)]:[n.top+(y.top||0)+(s||0),n.top+n.height-(y.bottom||0)-(s||0)]:g.range,S&&(c=[c[1],c[0]]);var N=ch(g,o,d),R=N.scale,_=N.realScaleType;R.domain(b).range(c),cb(R);var P=cx(R,dv(dv({},g),{},{realScaleType:_}));"xAxis"===r?(m="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-m*g.height):"yAxis"===r&&(m="left"===h&&!E||"right"===h&&E,p=u[w]-m*g.width,f=n.top);var M=dv(dv(dv({},g),P),{},{realScaleType:_,x:p,y:f,scale:R,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return M.bandSize=cR(M,P),g.hide||"xAxis"!==r?g.hide||(u[w]+=(m?-1:1)*M.width):u[w]+=(m?-1:1)*M.height,dv(dv({},a),{},dy({},i,M))},{})}}).chartName,i=r.GraphicalChild,s=void 0===(l=r.defaultTooltipEventType)?"axis":l,u=void 0===(c=r.validateTooltipEventTypes)?["axis"]:c,d=r.axisComponents,p=r.legendContent,f=r.formatAxisMap,m=r.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,m=fb(c),g=m.numericAxisName,h=m.cateAxisName,b=!!n&&!!n.length&&n.some(function(e){var t=ey(e&&e.type);return t&&t.indexOf("Bar")>=0})&&ca({barSize:s,stackGroups:r}),v=[];return n.forEach(function(n,s){var m,y=fs(e.data,{graphicalItems:[n],dataStartIndex:i,dataEndIndex:l}),E=n.props,S=E.dataKey,w=E.maxBarSize,x=n.props["".concat(g,"Id")],O=n.props["".concat(h,"Id")],k=d.reduce(function(e,r){var o,a=t["".concat(r.axisType,"Map")],i=n.props["".concat(r.axisType,"Id")];a&&a[i]||"zAxis"===r.axisType||eW(!1);var l=a[i];return fe(fe({},e),{},(ft(o={},r.axisType,l),ft(o,"".concat(r.axisType,"Ticks"),cf(l)),o))},{}),C=k[h],T=k["".concat(h,"Ticks")],A=r&&r[x]&&r[x].hasStack&&cC(n,r[x].stackGroups),I=ey(n.type).indexOf("Bar")>=0,N=cR(C,T),R=[];if(I){var _,P,M=en()(w)?f:w,L=null!==(_=null!==(P=cR(C,T,!0))&&void 0!==P?P:M)&&void 0!==_?_:0;R=ci({barGap:u,barCategoryGap:p,bandSize:L!==N?L:N,sizeList:b[O],maxBarSize:M}),L!==N&&(R=R.map(function(e){return fe(fe({},e),{},{position:fe(fe({},e.position),{},{offset:e.position.offset-L/2})})}))}var D=n&&n.type&&n.type.getComposedData;D&&v.push({props:fe(fe({},D(fe(fe({},k),{},{displayedData:y,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:o,stackedData:A,layout:c,dataStartIndex:i,dataEndIndex:l}))),{},(ft(m={key:n.key||"item-".concat(s)},g,k[g]),ft(m,h,k[h]),ft(m,"animationId",a),m)),childIndex:ew(e.children).indexOf(n),item:n})}),v},h=function(e,t){var n=e.props,r=e.dataStartIndex,o=e.dataEndIndex,l=e.updateId;if(!ek({props:n}))return null;var s=n.children,c=n.layout,u=n.stackOffset,p=n.data,m=n.reverseStackOrder,h=fb(c),b=h.numericAxisName,v=h.cateAxisName,y=ex(s,i),E=cw(p,y,"".concat(b,"Id"),"".concat(v,"Id"),u,m),S=d.reduce(function(e,t){var a="".concat(t.axisType,"Map");return fe(fe({},e),{},ft({},a,fm(n,fe(fe({},t),{},{graphicalItems:y,stackGroups:t.axisType===b&&E,dataStartIndex:r,dataEndIndex:o}))))},{}),w=fv(fe(fe({},S),{},{props:n,graphicalItems:y}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),a)});var x=fg(S["".concat(v,"Map")]),O=g(n,fe(fe({},S),{},{dataStartIndex:r,dataEndIndex:o,updateId:l,graphicalItems:y,stackGroups:E,offset:w}));return fe(fe({formattedGraphicalItems:O,graphicalItems:y,offset:w,stackGroups:E},x),S)},o=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p4(e,t)})(i,e);var t,n,r,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=p6(i);if(t){var r=p6(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===pQ(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return p3(e)}(this,e)});function i(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),ft(p3(r=o.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ft(p3(r),"accessibilityManager",new pi),ft(p3(r),"handleLegendBBoxUpdate",function(e){if(e){var t=r.state,n=t.dataStartIndex,o=t.dataEndIndex,a=t.updateId;r.setState(fe({legendBBox:e},h({props:r.props,dataStartIndex:n,dataEndIndex:o,updateId:a},fe(fe({},r.state),{},{legendBBox:e}))))}}),ft(p3(r),"handleReceiveSyncEvent",function(e,t,n){r.props.syncId===e&&(n!==r.eventEmitterSymbol||"function"==typeof r.props.syncMethod)&&r.applySyncEvent(t)}),ft(p3(r),"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var o=r.state.updateId;r.setState(function(){return fe({dataStartIndex:t,dataEndIndex:n},h({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:o},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),ft(p3(r),"handleMouseEnter",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseEnter;eo()(o)&&o(n,e)}}),ft(p3(r),"triggeredAfterMouseMove",function(e){var t=r.getMouseInfo(e),n=t?fe(fe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var o=r.props.onMouseMove;eo()(o)&&o(n,e)}),ft(p3(r),"handleItemMouseEnter",function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ft(p3(r),"handleItemMouseLeave",function(){r.setState(function(){return{isTooltipActive:!1}})}),ft(p3(r),"handleMouseMove",function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),ft(p3(r),"handleMouseLeave",function(e){var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;eo()(n)&&n(t,e)}),ft(p3(r),"handleOuterEvent",function(e){var t,n=e_(e),o=U()(r.props,"".concat(n));n&&eo()(o)&&o(null!==(t=/.*touch.*/i.test(n)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))&&void 0!==t?t:{},e)}),ft(p3(r),"handleClick",function(e){var t=r.getMouseInfo(e);if(t){var n=fe(fe({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var o=r.props.onClick;eo()(o)&&o(n,e)}}),ft(p3(r),"handleMouseDown",function(e){var t=r.props.onMouseDown;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleMouseUp",function(e){var t=r.props.onMouseUp;eo()(t)&&t(r.getMouseInfo(e),e)}),ft(p3(r),"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ft(p3(r),"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),ft(p3(r),"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),ft(p3(r),"triggerSyncEvent",function(e){void 0!==r.props.syncId&&pe.emit(pt,r.props.syncId,e,r.eventEmitterSymbol)}),ft(p3(r),"applySyncEvent",function(e){var t=r.props,n=t.layout,o=t.syncMethod,a=r.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)r.setState(fe({dataStartIndex:i,dataEndIndex:l},h({props:r.props,dataStartIndex:i,dataEndIndex:l,updateId:a},r.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=r.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof o)u=o(f,e);else if("value"===o){u=-1;for(var m=0;m=0){if(s.dataKey&&!s.allowDuplicatedCategory){var x="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());k=J(f,x,u),C=m&&g&&J(g,x,u)}else k=null==f?void 0:f[c],C=m&&g&&g[c];if(E||y){var O=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,N.cloneElement)(e,fe(fe(fe({},o.props),S),{},{activeIndex:O})),null,null]}if(!en()(k))return[w].concat(p5(r.renderActivePoints({item:o,activePoint:k,basePoint:C,childIndex:c,isRange:m})))}else{var k,C,T,A=(null!==(T=r.getItemByXY(r.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:w}).graphicalItem,I=A.item,R=void 0===I?e:I,_=A.childIndex,P=fe(fe(fe({},o.props),S),{},{activeIndex:_});return[(0,N.cloneElement)(R,P),null,null]}}return m?[w,null,null]:[w,null]}),ft(p3(r),"renderCustomized",function(e,t,n){return(0,N.cloneElement)(e,fe(fe({key:"recharts-customized-".concat(n)},r.props),r.state))}),ft(p3(r),"renderMap",{CartesianGrid:{handler:r.renderGrid,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fi},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fi},YAxis:{handler:fi},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:q("recharts"),"-clip"),r.throttleTriggeredAfterMouseMove=P()(r.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),r.state={},r}return n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,a=eO(t,nK);if(a){var i=a.props.defaultIndex;if("number"==typeof i&&!(i<0)&&!(i>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=fu(this.state,n,i,l),c=this.state.tooltipTicks[i].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=fe(fe({},d),p.props.points[i].tooltipPosition),s=p.props.points[i].tooltipPayload);var f={activeTooltipIndex:i,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(f),this.renderCursor(a),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){eI([eO(e.children,nK)],[eO(this.props.children,nK)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=eO(this.props.children,nK);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,i=this.inRange(o.chartX,o.chartY,a);if(!i)return null;var l=this.state,s=l.xAxisMap,c=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=K(s).scale,d=K(c).scale,p=u&&u.invert?u.invert(o.chartX):null,f=d&&d.invert?d.invert(o.chartY):null;return fe(fe({},o),{},{xValue:p,yValue:f})}var m=fd(this.state,this.props.data,this.props.layout,i);return m?fe(fe({},o),m):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,a=t/n;if("horizontal"===r||"vertical"===r){var i=this.state.offset;return o>=i.left&&o<=i.left+i.width&&a>=i.top&&a<=i.top+i.height?{x:o,y:a}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;return s&&c?c8({x:o,y:a},K(s)):null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=eO(e,nK),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),fe(fe({},ef(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pe.on(pt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pe.removeListener(pt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,a=r.length;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height;return N.createElement("rect",{x:r,y:o,width:a,height:i,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fQ(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(eo()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,i=t.y2,l=t.key,s=eA(fK(t,fG),!1),c=(s.offset,fK(s,f$));n=N.createElement("line",fY({},c,{x1:r,y1:o,x2:a,y2:i,fill:"none",key:l}))}return n}function fJ(e){var t=e.x,n=e.width,r=e.horizontal,o=void 0===r||r,a=e.horizontalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function f0(e){var t=e.y,n=e.height,r=e.vertical,o=void 0===r||r,a=e.verticalPoints;if(!o||!a||!a.length)return null;var i=a.map(function(r,a){return fQ(o,fq(fq({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(a),index:a}))});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function f1(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,a=e.width,i=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=l.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,l){var s=c[l+1]?c[l+1]-e:o+i-e;if(s<=0)return null;var u=l%t.length;return N.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:s,width:a,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function f2(e){var t=e.vertical,n=e.verticalFill,r=e.fillOpacity,o=e.x,a=e.y,i=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==c[0]&&c.unshift(0);var u=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:o+i-e;if(s<=0)return null;var u=t%n.length;return N.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:n[u],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var f4=function(e,t){var n=e.xAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.left,a.left+a.width,t)},f3=function(e,t){var n=e.yAxis,r=e.width,o=e.height,a=e.offset;return cp(fO(fq(fq(fq({},fF.defaultProps),n),{},{ticks:cf(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),a.top,a.top+a.height,t)},f6={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f5(e){var t,n,r,o,a,i,l=d$(),s=dW(),c=(0,N.useContext)(dF),u=fq(fq({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:f6.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:f6.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:f6.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:f6.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:f6.vertical,verticalFill:null!==(i=e.verticalFill)&&void 0!==i?i:f6.verticalFill}),d=u.x,p=u.y,f=u.width,m=u.height,g=u.xAxis,h=u.yAxis,b=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues;if(!$(f)||f<=0||!$(m)||m<=0||!$(d)||d!==+d||!$(p)||p!==+p)return null;var E=u.verticalCoordinatesGenerator||f4,S=u.horizontalCoordinatesGenerator||f3,w=u.horizontalPoints,x=u.verticalPoints;if((!w||!w.length)&&eo()(S)){var O=v&&v.length,k=S({yAxis:h?fq(fq({},h),{},{ticks:O?v:h.ticks}):void 0,width:l,height:s,offset:c},!!O||b);ee(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fW(k),"]")),Array.isArray(k)&&(w=k)}if((!x||!x.length)&&eo()(E)){var C=y&&y.length,T=E({xAxis:g?fq(fq({},g),{},{ticks:C?y:g.ticks}):void 0,width:l,height:s,offset:c},!!C||b);ee(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fW(T),"]")),Array.isArray(T)&&(x=T)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(fX,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height}),N.createElement(fJ,fY({},u,{offset:c,horizontalPoints:w})),N.createElement(f0,fY({},u,{offset:c,verticalPoints:x})),N.createElement(f1,fY({},u,{horizontalPoints:w})),N.createElement(f2,fY({},u,{verticalPoints:x})))}f5.displayName="CartesianGrid";let f8=(e,t)=>{let[n,r]=(0,N.useState)(t);(0,N.useEffect)(()=>{let t=()=>{r(window.innerWidth),e()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n])},f9=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M8 12L14 6V18L8 12Z"}))},f7=e=>{var t=(0,k._T)(e,[]);return N.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),N.createElement("path",{d:"M16 12L10 18V6L16 12Z"}))},me=(0,I.fn)("Legend"),mt=e=>{let{name:t,color:n,onClick:r,activeLegend:o}=e,a=!!r;return N.createElement("li",{className:(0,A.q)(me("legendItem"),"group inline-flex items-center px-2 py-0.5 rounded-tremor-small transition whitespace-nowrap",a?"cursor-pointer":"cursor-default","text-tremor-content",a?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",a?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:e=>{e.stopPropagation(),null==r||r(t,n)}},N.createElement("svg",{className:(0,A.q)("flex-none h-2 w-2 mr-1.5",(0,I.bM)(n,T.K.text).textColor,o&&o!==t?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},N.createElement("circle",{cx:4,cy:4,r:4})),N.createElement("p",{className:(0,A.q)("whitespace-nowrap truncate text-tremor-default","text-tremor-content",a?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",o&&o!==t?"opacity-40":"opacity-100",a?"dark:group-hover:text-dark-tremor-content-emphasis":"")},t))},mn=e=>{let{icon:t,onClick:n,disabled:r}=e,[o,a]=N.useState(!1),i=N.useRef(null);return N.useEffect(()=>(o?i.current=setInterval(()=>{null==n||n()},300):clearInterval(i.current),()=>clearInterval(i.current)),[o,n]),(0,N.useEffect)(()=>{r&&(clearInterval(i.current),a(!1))},[r]),N.createElement("button",{type:"button",className:(0,A.q)(me("legendSliderButton"),"w-5 group inline-flex items-center truncate rounded-tremor-small transition",r?"cursor-not-allowed":"cursor-pointer",r?"text-tremor-content-subtle":"text-tremor-content hover:text-tremor-content-emphasis hover:bg-tremor-background-subtle",r?"dark:text-dark-tremor-subtle":"dark:text-dark-tremor dark:hover:text-tremor-content-emphasis dark:hover:bg-dark-tremor-background-subtle"),disabled:r,onClick:e=>{e.stopPropagation(),null==n||n()},onMouseDown:e=>{e.stopPropagation(),a(!0)},onMouseUp:e=>{e.stopPropagation(),a(!1)}},N.createElement(t,{className:"w-full"}))},mr=N.forwardRef((e,t)=>{var n,r;let{categories:o,colors:a=T.s,className:i,onClickLegendItem:l,activeLegend:s,enableLegendSlider:c=!1}=e,u=(0,k._T)(e,["categories","colors","className","onClickLegendItem","activeLegend","enableLegendSlider"]),d=N.useRef(null),[p,f]=N.useState(null),[m,g]=N.useState(null),h=N.useRef(null),b=(0,N.useCallback)(()=>{let e=null==d?void 0:d.current;e&&f({left:e.scrollLeft>0,right:e.scrollWidth-e.clientWidth>e.scrollLeft})},[f]),v=(0,N.useCallback)(e=>{var t;let n=null==d?void 0:d.current,r=null!==(t=null==n?void 0:n.clientWidth)&&void 0!==t?t:0;n&&c&&(n.scrollTo({left:"left"===e?n.scrollLeft-r:n.scrollLeft+r,behavior:"smooth"}),setTimeout(()=>{b()},400))},[c,b]);N.useEffect(()=>{let e=e=>{"ArrowLeft"===e?v("left"):"ArrowRight"===e&&v("right")};return m?(e(m),h.current=setInterval(()=>{e(m)},300)):clearInterval(h.current),()=>clearInterval(h.current)},[m,v]);let y=e=>{e.stopPropagation(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(e.preventDefault(),g(e.key))},E=e=>{e.stopPropagation(),g(null)};return N.useEffect(()=>{let e=null==d?void 0:d.current;return c&&(b(),null==e||e.addEventListener("keydown",y),null==e||e.addEventListener("keyup",E)),()=>{null==e||e.removeEventListener("keydown",y),null==e||e.removeEventListener("keyup",E)}},[b,c]),N.createElement("ol",Object.assign({ref:t,className:(0,A.q)(me("root"),"relative overflow-hidden",i)},u),N.createElement("div",{ref:d,tabIndex:0,className:(0,A.q)("h-full flex",c?(null==p?void 0:p.right)||(null==p?void 0:p.left)?"pl-4 pr-12 items-center overflow-auto snap-mandatory [&::-webkit-scrollbar]:hidden [scrollbar-width:none]":"":"flex-wrap")},o.map((e,t)=>N.createElement(mt,{key:"item-".concat(t),name:e,color:a[t],onClick:l,activeLegend:s}))),c&&((null==p?void 0:p.right)||(null==p?void 0:p.left))?N.createElement(N.Fragment,null,N.createElement("div",{className:(0,A.q)("from-tremor-background","dark:from-dark-tremor-background","absolute top-0 bottom-0 left-0 w-4 bg-gradient-to-r to-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("to-tremor-background","dark:to-dark-tremor-background","absolute top-0 bottom-0 right-10 w-4 bg-gradient-to-r from-transparent pointer-events-none")}),N.createElement("div",{className:(0,A.q)("bg-tremor-background","dark:bg-dark-tremor-background","absolute flex top-0 pr-1 bottom-0 right-0 items-center justify-center h-full")},N.createElement(mn,{icon:f9,onClick:()=>{g(null),v("left")},disabled:!(null==p?void 0:p.left)}),N.createElement(mn,{icon:f7,onClick:()=>{g(null),v("right")},disabled:!(null==p?void 0:p.right)}))):null)});mr.displayName="Legend";let mo=(e,t,n,r,o,a)=>{let{payload:i}=e,l=(0,N.useRef)(null);f8(()=>{var e,t;n((t=null===(e=l.current)||void 0===e?void 0:e.clientHeight)?Number(t)+20:60)});let s=i.filter(e=>"none"!==e.type);return N.createElement("div",{ref:l,className:"flex items-center justify-end"},N.createElement(mr,{categories:s.map(e=>e.value),colors:s.map(e=>t.get(e.value)),onClickLegendItem:o,activeLegend:r,enableLegendSlider:a}))},ma=e=>{let{children:t}=e;return N.createElement("div",{className:(0,A.q)("rounded-tremor-default text-tremor-default border","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border")},t)},mi=e=>{let{value:t,name:n,color:r}=e;return N.createElement("div",{className:"flex items-center justify-between space-x-8"},N.createElement("div",{className:"flex items-center space-x-2"},N.createElement("span",{className:(0,A.q)("shrink-0 rounded-tremor-full border-2 h-3 w-3","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",(0,I.bM)(r,T.K.background).bgColor)}),N.createElement("p",{className:(0,A.q)("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},n)),N.createElement("p",{className:(0,A.q)("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},t))},ml=e=>{let{active:t,payload:n,label:r,categoryColors:o,valueFormatter:a}=e;if(t&&n){let e=n.filter(e=>"none"!==e.type);return N.createElement(ma,null,N.createElement("div",{className:(0,A.q)("border-tremor-border border-b px-4 py-2","dark:border-dark-tremor-border")},N.createElement("p",{className:(0,A.q)("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),N.createElement("div",{className:(0,A.q)("px-4 py-2 space-y-1")},e.map((e,t)=>{var n;let{value:r,name:i}=e;return N.createElement(mi,{key:"id-".concat(t),value:a(r),name:i,color:null!==(n=o.get(i))&&void 0!==n?n:C.fr.Blue})})))}return null},ms=(0,I.fn)("Flex"),mc={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},mu={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},mp=N.forwardRef((e,t)=>{let{flexDirection:n="row",justifyContent:r="between",alignItems:o="center",children:a,className:i}=e,l=(0,k._T)(e,["flexDirection","justifyContent","alignItems","children","className"]);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)(ms("root"),"flex w-full",md[n],mc[r],mu[o],i)},l),a)});mp.displayName="Flex";var mf=n(71801);let mm=e=>{let{noDataText:t="No data"}=e;return N.createElement(mp,{alignItems:"center",justifyContent:"center",className:(0,A.q)("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},N.createElement(mf.Z,{className:(0,A.q)("text-tremor-content","dark:text-dark-tremor-content")},t))},mg=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{n.set(e,t[r])}),n},mh=(e,t,n)=>[e?"auto":null!=t?t:0,null!=n?n:"auto"];function mb(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n)if(!r.includes(o)||!mb(e[o],t[o]))return!1;return!0}let mv=N.forwardRef((e,t)=>{let{data:n=[],categories:r=[],index:o,colors:a=T.s,valueFormatter:i=I.Cj,layout:l="horizontal",stack:s=!1,relative:c=!1,startEndOnly:u=!1,animationDuration:d=900,showAnimation:p=!1,showXAxis:f=!0,showYAxis:m=!0,yAxisWidth:g=56,intervalType:h="equidistantPreserveStart",showTooltip:b=!0,showLegend:v=!0,showGridLines:y=!0,autoMinValue:E=!1,minValue:S,maxValue:w,allowDecimals:x=!0,noDataText:O,onValueChange:R,enableLegendSlider:_=!1,customTooltip:P,rotateLabelX:M,tickGap:L=5,className:D}=e,j=(0,k._T)(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","intervalType","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","enableLegendSlider","customTooltip","rotateLabelX","tickGap","className"]),F=f||m?20:0,[B,U]=(0,N.useState)(60),Z=mg(r,a),[z,H]=N.useState(void 0),[G,$]=(0,N.useState)(void 0),W=!!R;function V(e,t,n){var r,o,a,i;n.stopPropagation(),R&&(mb(z,Object.assign(Object.assign({},e.payload),{value:e.value}))?($(void 0),H(void 0),null==R||R(null)):($(null===(o=null===(r=e.tooltipPayload)||void 0===r?void 0:r[0])||void 0===o?void 0:o.dataKey),H(Object.assign(Object.assign({},e.payload),{value:e.value})),null==R||R(Object.assign({eventType:"bar",categoryClicked:null===(i=null===(a=e.tooltipPayload)||void 0===a?void 0:a[0])||void 0===i?void 0:i.dataKey},e.payload))))}let q=mh(E,S,w);return N.createElement("div",Object.assign({ref:t,className:(0,A.q)("w-full h-80",D)},j),N.createElement(ej,{className:"h-full w-full"},(null==n?void 0:n.length)?N.createElement(fH,{data:n,stackOffset:s?"sign":c?"expand":"none",layout:"vertical"===l?"vertical":"horizontal",onClick:W&&(G||z)?()=>{H(void 0),$(void 0),null==R||R(null)}:void 0},y?N.createElement(f5,{className:(0,A.q)("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:"vertical"!==l,vertical:"vertical"===l}):null,"vertical"!==l?N.createElement(fU,{padding:{left:F,right:F},hide:!f,dataKey:o,interval:u?"preserveStartEnd":h,tick:{transform:"translate(0, 6)"},ticks:u?[n[0][o],n[n.length-1][o]]:void 0,fill:"",stroke:"",className:(0,A.q)("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight,minTickGap:L}):N.createElement(fU,{hide:!f,type:"number",tick:{transform:"translate(-3, 0)"},domain:q,fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:i,minTickGap:L,allowDecimals:x,angle:null==M?void 0:M.angle,dy:null==M?void 0:M.verticalShift,height:null==M?void 0:M.xAxisHeight}),"vertical"!==l?N.createElement(fz,{width:g,hide:!m,axisLine:!1,tickLine:!1,type:"number",domain:q,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:c?e=>"".concat((100*e).toString()," %"):i,allowDecimals:x}):N.createElement(fz,{width:g,hide:!m,dataKey:o,axisLine:!1,tickLine:!1,ticks:u?[n[0][o],n[n.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:(0,A.q)("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),N.createElement(nK,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?e=>{let{active:t,payload:n,label:r}=e;return P?N.createElement(P,{payload:null==n?void 0:n.map(e=>{var t;return Object.assign(Object.assign({},e),{color:null!==(t=Z.get(e.dataKey))&&void 0!==t?t:C.fr.Gray})}),active:t,label:r}):N.createElement(ml,{active:t,payload:n,label:r,valueFormatter:i,categoryColors:Z})}:N.createElement(N.Fragment,null),position:{y:0}}),v?N.createElement(r1,{verticalAlign:"top",height:B,content:e=>{let{payload:t}=e;return mo({payload:t},Z,U,G,W?e=>{W&&(e!==G||z?($(e),null==R||R({eventType:"category",categoryClicked:e})):($(void 0),null==R||R(null)),H(void 0))}:void 0,_)}}):null,r.map(e=>{var t;return N.createElement(dm,{className:(0,A.q)((0,I.bM)(null!==(t=Z.get(e))&&void 0!==t?t:C.fr.Gray,T.K.background).fillColor,R?"cursor-pointer":""),key:e,name:e,type:"linear",stackId:s||c?"a":void 0,dataKey:e,fill:"",isAnimationActive:p,animationDuration:d,shape:e=>((e,t,n,r)=>{let{fillOpacity:o,name:a,payload:i,value:l}=e,{x:s,width:c,y:u,height:d}=e;return"horizontal"===r&&d<0?(u+=d,d=Math.abs(d)):"vertical"===r&&c<0&&(s+=c,c=Math.abs(c)),N.createElement("rect",{x:s,y:u,width:c,height:d,opacity:t||n&&n!==a?mb(t,Object.assign(Object.assign({},i),{value:l}))?o:.3:o})})(e,z,G,l),onClick:V})})):N.createElement(mm,{noDataText:O})))});mv.displayName="BarChart"},5:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(2898),s=n(99250),c=n(65492);let u={xs:{paddingX:"px-2",paddingY:"py-0.5",fontSize:"text-xs"},sm:{paddingX:"px-2.5",paddingY:"py-0.5",fontSize:"text-sm"},md:{paddingX:"px-3",paddingY:"py-0.5",fontSize:"text-md"},lg:{paddingX:"px-3.5",paddingY:"py-0.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-1",fontSize:"text-xl"}},d={xs:{height:"h-4",width:"w-4"},sm:{height:"h-4",width:"w-4"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"}},p=(0,c.fn)("Badge"),f=o.forwardRef((e,t)=>{let{color:n,icon:f,size:m=i.u8.SM,tooltip:g,className:h,children:b}=e,v=(0,r._T)(e,["color","icon","size","tooltip","className","children"]),y=f||null,{tooltipProps:E,getReferenceProps:S}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,c.lq)([t,E.refs.setReference]),className:(0,s.q)(p("root"),"w-max flex-shrink-0 inline-flex justify-center items-center cursor-default rounded-tremor-full",n?(0,s.q)((0,c.bM)(n,l.K.background).bgColor,(0,c.bM)(n,l.K.text).textColor,"bg-opacity-20 dark:bg-opacity-25"):(0,s.q)("bg-tremor-brand-muted text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted dark:text-dark-tremor-brand-emphasis"),u[m].paddingX,u[m].paddingY,u[m].fontSize,h)},S,v),o.createElement(a.Z,Object.assign({text:g},E)),y?o.createElement(y,{className:(0,s.q)(p("icon"),"shrink-0 -ml-1 mr-1.5",d[m].height,d[m].width)}):null,o.createElement("p",{className:(0,s.q)(p("text"),"text-sm whitespace-nowrap")},b))});f.displayName="Badge"},61244:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(69703),o=n(64090),a=n(58437),i=n(54942),l=n(99250),s=n(65492),c=n(2898);let u={xs:{paddingX:"px-1.5",paddingY:"py-1.5"},sm:{paddingX:"px-1.5",paddingY:"py-1.5"},md:{paddingX:"px-2",paddingY:"py-2"},lg:{paddingX:"px-2",paddingY:"py-2"},xl:{paddingX:"px-2.5",paddingY:"py-2.5"}},d={xs:{height:"h-3",width:"w-3"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-7",width:"w-7"},xl:{height:"h-9",width:"w-9"}},p={simple:{rounded:"",border:"",ring:"",shadow:""},light:{rounded:"rounded-tremor-default",border:"",ring:"",shadow:""},shadow:{rounded:"rounded-tremor-default",border:"border",ring:"",shadow:"shadow-tremor-card dark:shadow-dark-tremor-card"},solid:{rounded:"rounded-tremor-default",border:"border-2",ring:"ring-1",shadow:""},outlined:{rounded:"rounded-tremor-default",border:"border",ring:"ring-2",shadow:""}},f=(e,t)=>{switch(e){case"simple":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:"",borderColor:"",ringColor:""};case"light":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand-muted dark:bg-dark-tremor-brand-muted",borderColor:"",ringColor:""};case"shadow":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:"border-tremor-border dark:border-dark-tremor-border",ringColor:""};case"solid":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-brand dark:bg-dark-tremor-brand",borderColor:"border-tremor-brand-inverted dark:border-dark-tremor-brand-inverted",ringColor:"ring-tremor-ring dark:ring-dark-tremor-ring"};case"outlined":return{textColor:t?(0,s.bM)(t,c.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",bgColor:t?(0,l.q)((0,s.bM)(t,c.K.background).bgColor,"bg-opacity-20"):"bg-tremor-background dark:bg-dark-tremor-background",borderColor:t?(0,s.bM)(t,c.K.ring).borderColor:"border-tremor-brand-subtle dark:border-dark-tremor-brand-subtle",ringColor:t?(0,l.q)((0,s.bM)(t,c.K.ring).ringColor,"ring-opacity-40"):"ring-tremor-brand-muted dark:ring-dark-tremor-brand-muted"}}},m=(0,s.fn)("Icon"),g=o.forwardRef((e,t)=>{let{icon:n,variant:c="simple",tooltip:g,size:h=i.u8.SM,color:b,className:v}=e,y=(0,r._T)(e,["icon","variant","tooltip","size","color","className"]),E=f(c,b),{tooltipProps:S,getReferenceProps:w}=(0,a.l)();return o.createElement("span",Object.assign({ref:(0,s.lq)([t,S.refs.setReference]),className:(0,l.q)(m("root"),"inline-flex flex-shrink-0 items-center",E.bgColor,E.textColor,E.borderColor,E.ringColor,p[c].rounded,p[c].border,p[c].shadow,p[c].ring,u[h].paddingX,u[h].paddingY,v)},w,y),o.createElement(a.Z,Object.assign({text:g},S)),o.createElement(n,{className:(0,l.q)(m("icon"),"shrink-0",d[h].height,d[h].width)}))});g.displayName="Icon"},2179:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(69703),o=n(58437),a=n(64090);let i=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],l=e=>({_s:e,status:i[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),s=e=>e?6:5,c=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return s(t)}},u=e=>"object"==typeof e?[e.enter,e.exit]:[e,e],d=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),p=(e,t,n,r,o)=>{clearTimeout(r.current);let a=l(e);t(a),n.current=a,o&&o({current:a})},f=function(){let{enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:f,unmountOnExit:m,onStateChange:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,b]=(0,a.useState)(()=>l(i?2:s(f))),v=(0,a.useRef)(h),y=(0,a.useRef)(),[E,S]=u(o),w=(0,a.useCallback)(()=>{let e=c(v.current._s,m);e&&p(e,b,v,y,g)},[g,m]),x=(0,a.useCallback)(o=>{let a=e=>{switch(p(e,b,v,y,g),e){case 1:E>=0&&(y.current=setTimeout(w,E));break;case 4:S>=0&&(y.current=setTimeout(w,S));break;case 0:case 3:y.current=d(a,e)}},i=v.current.isEnter;"boolean"!=typeof o&&(o=!i),o?i||a(e?n?0:1:2):i&&a(t?r?3:4:s(m))},[w,g,e,t,n,r,E,S,m]);return(0,a.useEffect)(()=>()=>clearTimeout(y.current),[]),[h,x,w]};var m=n(54942),g=n(99250),h=n(65492);let b=e=>{var t=(0,r._T)(e,[]);return a.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1 0 19 12h2a9 9 0 1 1-2.636-6.364z"}))};var v=n(2898);let y={xs:{height:"h-4",width:"w-4"},sm:{height:"h-5",width:"w-5"},md:{height:"h-5",width:"w-5"},lg:{height:"h-6",width:"w-6"},xl:{height:"h-6",width:"w-6"}},E=e=>"light"!==e?{xs:{paddingX:"px-2.5",paddingY:"py-1.5",fontSize:"text-xs"},sm:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-sm"},md:{paddingX:"px-4",paddingY:"py-2",fontSize:"text-md"},lg:{paddingX:"px-4",paddingY:"py-2.5",fontSize:"text-lg"},xl:{paddingX:"px-4",paddingY:"py-3",fontSize:"text-xl"}}:{xs:{paddingX:"",paddingY:"",fontSize:"text-xs"},sm:{paddingX:"",paddingY:"",fontSize:"text-sm"},md:{paddingX:"",paddingY:"",fontSize:"text-md"},lg:{paddingX:"",paddingY:"",fontSize:"text-lg"},xl:{paddingX:"",paddingY:"",fontSize:"text-xl"}},S=(e,t)=>{switch(e){case"primary":return{textColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",hoverTextColor:t?(0,h.bM)("white").textColor:"text-tremor-brand-inverted dark:text-dark-tremor-brand-inverted",bgColor:t?(0,h.bM)(t,v.K.background).bgColor:"bg-tremor-brand dark:bg-dark-tremor-brand",hoverBgColor:t?(0,h.bM)(t,v.K.darkBackground).hoverBgColor:"hover:bg-tremor-brand-emphasis dark:hover:bg-dark-tremor-brand-emphasis",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",hoverBorderColor:t?(0,h.bM)(t,v.K.darkBorder).hoverBorderColor:"hover:border-tremor-brand-emphasis dark:hover:border-dark-tremor-brand-emphasis"};case"secondary":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.text).textColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,hoverBgColor:t?(0,g.q)((0,h.bM)(t,v.K.background).hoverBgColor,"hover:bg-opacity-20 dark:hover:bg-opacity-20"):"hover:bg-tremor-brand-faint dark:hover:bg-dark-tremor-brand-faint",borderColor:t?(0,h.bM)(t,v.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand"};case"light":return{textColor:t?(0,h.bM)(t,v.K.text).textColor:"text-tremor-brand dark:text-dark-tremor-brand",hoverTextColor:t?(0,h.bM)(t,v.K.darkText).hoverTextColor:"hover:text-tremor-brand-emphasis dark:hover:text-dark-tremor-brand-emphasis",bgColor:(0,h.bM)("transparent").bgColor,borderColor:"",hoverBorderColor:""}}},w=(0,h.fn)("Button"),x=e=>{let{loading:t,iconSize:n,iconPosition:r,Icon:o,needMargin:i,transitionStatus:l}=e,s=i?r===m.zS.Left?(0,g.q)("-ml-1","mr-1.5"):(0,g.q)("-mr-1","ml-1.5"):"",c=(0,g.q)("w-0 h-0"),u={default:c,entering:c,entered:n,exiting:n,exited:c};return t?a.createElement(b,{className:(0,g.q)(w("icon"),"animate-spin shrink-0",s,u.default,u[l]),style:{transition:"width 150ms"}}):a.createElement(o,{className:(0,g.q)(w("icon"),"shrink-0",n,s)})},O=a.forwardRef((e,t)=>{let{icon:n,iconPosition:i=m.zS.Left,size:l=m.u8.SM,color:s,variant:c="primary",disabled:u,loading:d=!1,loadingText:p,children:b,tooltip:v,className:O}=e,k=(0,r._T)(e,["icon","iconPosition","size","color","variant","disabled","loading","loadingText","children","tooltip","className"]),C=d||u,T=void 0!==n||d,A=d&&p,I=!(!b&&!A),N=(0,g.q)(y[l].height,y[l].width),R="light"!==c?(0,g.q)("rounded-tremor-default border","shadow-tremor-input","dark:shadow-dark-tremor-input"):"",_=S(c,s),P=E(c)[l],{tooltipProps:M,getReferenceProps:L}=(0,o.l)(300),[D,j]=f({timeout:50});return(0,a.useEffect)(()=>{j(d)},[d]),a.createElement("button",Object.assign({ref:(0,h.lq)([t,M.refs.setReference]),className:(0,g.q)(w("root"),"flex-shrink-0 inline-flex justify-center items-center group font-medium outline-none",R,P.paddingX,P.paddingY,P.fontSize,_.textColor,_.bgColor,_.borderColor,_.hoverBorderColor,C?"opacity-50 cursor-not-allowed":(0,g.q)(S(c,s).hoverTextColor,S(c,s).hoverBgColor,S(c,s).hoverBorderColor),O),disabled:C},L,k),a.createElement(o.Z,Object.assign({text:v},M)),T&&i!==m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null,A||b?a.createElement("span",{className:(0,g.q)(w("text"),"text-tremor-default whitespace-nowrap")},A?p:b):null,T&&i===m.zS.Right?a.createElement(x,{loading:d,iconSize:N,iconPosition:i,Icon:n,transitionStatus:D.status,needMargin:I}):null)});O.displayName="Button"},47047:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(69703),o=n(64090);n(50027),n(18174),n(21871);var a=n(41213),i=n(46457),l=n(54518);let s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}))};var c=n(8903),u=n(63416),d=n(70129);let p=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))};var f=n(99250),m=n(65492),g=n(91753);let h=(0,m.fn)("MultiSelect"),b=o.forwardRef((e,t)=>{let{defaultValue:n,value:m,onValueChange:b,placeholder:v="Select...",placeholderSearch:y="Search",disabled:E=!1,icon:S,children:w,className:x}=e,O=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","placeholderSearch","disabled","icon","children","className"]),[k,C]=(0,i.Z)(n,m),{reactElementChildren:T,optionsAvailable:A}=(0,o.useMemo)(()=>{let e=o.Children.toArray(w).filter(o.isValidElement);return{reactElementChildren:e,optionsAvailable:(0,g.n0)("",e)}},[w]),[I,N]=(0,o.useState)(""),R=(null!=k?k:[]).length>0,_=(0,o.useMemo)(()=>I?(0,g.n0)(I,T):A,[I,T,A]),P=()=>{N("")};return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:k,value:k,onChange:e=>{null==b||b(e),C(e)},disabled:E,className:(0,f.q)("w-full min-w-[10rem] relative text-tremor-default",x)},O,{multiple:!0}),e=>{let{value:t}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,f.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-1.5","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",S?"pl-11 -ml-0.5":"pl-3",(0,g.um)(t.length>0,E))},S&&o.createElement("span",{className:(0,f.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(S,{className:(0,f.q)(h("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("div",{className:"h-6 flex items-center"},t.length>0?o.createElement("div",{className:"flex flex-nowrap overflow-x-scroll [&::-webkit-scrollbar]:hidden [scrollbar-width:none] gap-x-1 mr-5 -ml-1.5 relative"},A.filter(e=>t.includes(e.props.value)).map((e,n)=>{var r;return o.createElement("div",{key:n,className:(0,f.q)("max-w-[100px] lg:max-w-[200px] flex justify-center items-center pl-2 pr-1.5 py-1 font-medium","rounded-tremor-small","bg-tremor-background-muted dark:bg-dark-tremor-background-muted","bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle","text-tremor-content-default dark:text-dark-tremor-content-default","text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis")},o.createElement("div",{className:"text-xs truncate "},null!==(r=e.props.children)&&void 0!==r?r:e.props.value),o.createElement("div",{onClick:n=>{n.preventDefault();let r=t.filter(t=>t!==e.props.value);null==b||b(r),C(r)}},o.createElement(p,{className:(0,f.q)(h("clearIconItem"),"cursor-pointer rounded-tremor-full w-3.5 h-3.5 ml-2","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle dark:hover:text-tremor-content")})))})):o.createElement("span",null,v)),o.createElement("span",{className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-2.5")},o.createElement(l.Z,{className:(0,f.q)(h("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),R&&!E?o.createElement("button",{type:"button",className:(0,f.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),C([]),null==b||b([])}},o.createElement(c.Z,{className:(0,f.q)(h("clearIconAllItems"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,f.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},o.createElement("div",{className:(0,f.q)("flex items-center w-full px-2.5","bg-tremor-background-muted","dark:bg-dark-tremor-background-muted")},o.createElement("span",null,o.createElement(s,{className:(0,f.q)("flex-none w-4 h-4 mr-2","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("input",{name:"search",type:"input",autoComplete:"off",placeholder:y,className:(0,f.q)("w-full focus:outline-none focus:ring-none bg-transparent text-tremor-default py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis"),onKeyDown:e=>{"Space"===e.code&&""!==e.target.value&&e.stopPropagation()},onChange:e=>N(e.target.value),value:I})),o.createElement(a.Z.Provider,Object.assign({},{onBlur:{handleResetSearch:P}},{value:{selectedValue:t}}),_))))})});b.displayName="MultiSelect"},76628:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027),n(18174),n(21871);var o=n(41213),a=n(64090),i=n(99250),l=n(65492),s=n(63416);let c=(0,l.fn)("MultiSelectItem"),u=a.forwardRef((e,t)=>{let{value:n,className:u,children:d}=e,p=(0,r._T)(e,["value","className","children"]),{selectedValue:f}=(0,a.useContext)(o.Z),m=(0,l.NZ)(n,f);return a.createElement(s.R.Option,Object.assign({className:(0,i.q)(c("root"),"flex justify-start items-center cursor-default text-tremor-default p-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",u),ref:t,key:n,value:n},p),a.createElement("input",{type:"checkbox",className:(0,i.q)(c("checkbox"),"flex-none focus:ring-none focus:outline-none cursor-pointer mr-2.5","accent-tremor-brand","dark:accent-dark-tremor-brand"),checked:m,readOnly:!0}),a.createElement("span",{className:"whitespace-nowrap truncate"},null!=d?d:n))});u.displayName="MultiSelectItem"},95093:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(69703),o=n(64090),a=n(54518),i=n(8903),l=n(99250),s=n(65492),c=n(91753),u=n(63416),d=n(70129),p=n(46457);let f=(0,s.fn)("Select"),m=o.forwardRef((e,t)=>{let{defaultValue:n,value:s,onValueChange:m,placeholder:g="Select...",disabled:h=!1,icon:b,enableClear:v=!0,children:y,className:E}=e,S=(0,r._T)(e,["defaultValue","value","onValueChange","placeholder","disabled","icon","enableClear","children","className"]),[w,x]=(0,p.Z)(n,s),O=(0,o.useMemo)(()=>{let e=o.Children.toArray(y).filter(o.isValidElement);return(0,c.sl)(e)},[y]);return o.createElement(u.R,Object.assign({as:"div",ref:t,defaultValue:w,value:w,onChange:e=>{null==m||m(e),x(e)},disabled:h,className:(0,l.q)("w-full min-w-[10rem] relative text-tremor-default",E)},S),e=>{var t;let{value:n}=e;return o.createElement(o.Fragment,null,o.createElement(u.R.Button,{className:(0,l.q)("w-full outline-none text-left whitespace-nowrap truncate rounded-tremor-default focus:ring-2 transition duration-100 border pr-8 py-2","border-tremor-border shadow-tremor-input focus:border-tremor-brand-subtle focus:ring-tremor-brand-muted","dark:border-dark-tremor-border dark:shadow-dark-tremor-input dark:focus:border-dark-tremor-brand-subtle dark:focus:ring-dark-tremor-brand-muted",b?"pl-10":"pl-3",(0,c.um)((0,c.Uh)(n),h))},b&&o.createElement("span",{className:(0,l.q)("absolute inset-y-0 left-0 flex items-center ml-px pl-2.5")},o.createElement(b,{className:(0,l.q)(f("Icon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})),o.createElement("span",{className:"w-[90%] block truncate"},n&&null!==(t=O.get(n))&&void 0!==t?t:g),o.createElement("span",{className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-3")},o.createElement(a.Z,{className:(0,l.q)(f("arrowDownIcon"),"flex-none h-5 w-5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}))),v&&w?o.createElement("button",{type:"button",className:(0,l.q)("absolute inset-y-0 right-0 flex items-center mr-8"),onClick:e=>{e.preventDefault(),x(""),null==m||m("")}},o.createElement(i.Z,{className:(0,l.q)(f("clearIcon"),"flex-none h-4 w-4","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")})):null,o.createElement(d.u,{className:"absolute z-10 w-full",enter:"transition ease duration-100 transform",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100 translate-y-0",leave:"transition ease duration-100 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-4"},o.createElement(u.R.Options,{className:(0,l.q)("divide-y overflow-y-auto outline-none rounded-tremor-default max-h-[228px] left-0 border my-1","bg-tremor-background border-tremor-border divide-tremor-border shadow-tremor-dropdown","dark:bg-dark-tremor-background dark:border-dark-tremor-border dark:divide-dark-tremor-border dark:shadow-dark-tremor-dropdown")},y)))})});m.displayName="Select"},27166:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(63416),i=n(99250);let l=(0,n(65492).fn)("SelectItem"),s=o.forwardRef((e,t)=>{let{value:n,icon:s,className:c,children:u}=e,d=(0,r._T)(e,["value","icon","className","children"]);return o.createElement(a.R.Option,Object.assign({className:(0,i.q)(l("root"),"flex justify-start items-center cursor-default text-tremor-default px-2.5 py-2.5","ui-active:bg-tremor-background-muted ui-active:text-tremor-content-strong ui-selected:text-tremor-content-strong ui-selected:bg-tremor-background-muted text-tremor-content-emphasis","dark:ui-active:bg-dark-tremor-background-muted dark:ui-active:text-dark-tremor-content-strong dark:ui-selected:text-dark-tremor-content-strong dark:ui-selected:bg-dark-tremor-background-muted dark:text-dark-tremor-content-emphasis",c),ref:t,key:n,value:n},d),s&&o.createElement(s,{className:(0,i.q)(l("icon"),"flex-none w-5 h-5 mr-1.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}),o.createElement("span",{className:"whitespace-nowrap truncate"},null!=u?u:n))});s.displayName="SelectItem"},92836:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(69703),o=n(80991),a=n(2898),i=n(99250),l=n(65492),s=n(64090),c=n(41608),u=n(50027);n(18174),n(21871),n(41213);let d=(0,l.fn)("Tab"),p=s.forwardRef((e,t)=>{let{icon:n,className:p,children:f}=e,m=(0,r._T)(e,["icon","className","children"]),g=(0,s.useContext)(c.O),h=(0,s.useContext)(u.Z);return s.createElement(o.O,Object.assign({ref:t,className:(0,i.q)(d("root"),"flex whitespace-nowrap truncate max-w-xs outline-none focus:ring-0 text-tremor-default transition duration-100",h?(0,l.bM)(h,a.K.text).selectTextColor:"solid"===g?"ui-selected:text-tremor-content-emphasis dark:ui-selected:text-dark-tremor-content-emphasis":"ui-selected:text-tremor-brand dark:ui-selected:text-dark-tremor-brand",function(e,t){switch(e){case"line":return(0,i.q)("ui-selected:border-b-2 hover:border-b-2 border-transparent transition duration-100 -mb-px px-2 py-2","hover:border-tremor-content hover:text-tremor-content-emphasis text-tremor-content","dark:hover:border-dark-tremor-content-emphasis dark:hover:text-dark-tremor-content-emphasis dark:text-dark-tremor-content",t?(0,l.bM)(t,a.K.border).selectBorderColor:"ui-selected:border-tremor-brand dark:ui-selected:border-dark-tremor-brand");case"solid":return(0,i.q)("border-transparent border rounded-tremor-small px-2.5 py-1","ui-selected:border-tremor-border ui-selected:bg-tremor-background ui-selected:shadow-tremor-input hover:text-tremor-content-emphasis ui-selected:text-tremor-brand","dark:ui-selected:border-dark-tremor-border dark:ui-selected:bg-dark-tremor-background dark:ui-selected:shadow-dark-tremor-input dark:hover:text-dark-tremor-content-emphasis dark:ui-selected:text-dark-tremor-brand",t?(0,l.bM)(t,a.K.text).selectTextColor:"text-tremor-content dark:text-dark-tremor-content")}}(g,h),p)},m),n?s.createElement(n,{className:(0,i.q)(d("icon"),"flex-none h-5 w-5",f?"mr-2":"")}):null,f?s.createElement("span",null,f):null)});p.displayName="Tab"},26734:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(80991),a=n(99250),i=n(65492),l=n(64090);let s=(0,i.fn)("TabGroup"),c=l.forwardRef((e,t)=>{let{defaultIndex:n,index:i,onIndexChange:c,children:u,className:d}=e,p=(0,r._T)(e,["defaultIndex","index","onIndexChange","children","className"]);return l.createElement(o.O.Group,Object.assign({as:"div",ref:t,defaultIndex:n,selectedIndex:i,onChange:c,className:(0,a.q)(s("root"),"w-full",d)},p),u)});c.displayName="TabGroup"},41608:function(e,t,n){n.d(t,{O:function(){return c},Z:function(){return d}});var r=n(69703),o=n(64090),a=n(50027);n(18174),n(21871),n(41213);var i=n(80991),l=n(99250);let s=(0,n(65492).fn)("TabList"),c=(0,o.createContext)("line"),u={line:(0,l.q)("flex border-b space-x-4","border-tremor-border","dark:border-dark-tremor-border"),solid:(0,l.q)("inline-flex p-0.5 rounded-tremor-default space-x-1.5","bg-tremor-background-subtle","dark:bg-dark-tremor-background-subtle")},d=o.forwardRef((e,t)=>{let{color:n,variant:d="line",children:p,className:f}=e,m=(0,r._T)(e,["color","variant","children","className"]);return o.createElement(i.O.List,Object.assign({ref:t,className:(0,l.q)(s("root"),"justify-start overflow-x-clip",u[d],f)},m),o.createElement(c.Provider,{value:d},o.createElement(a.Z.Provider,{value:n},p)))});d.displayName="TabList"},32126:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703);n(50027);var o=n(18174);n(21871);var a=n(41213),i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("TabPanel"),u=s.forwardRef((e,t)=>{let{children:n,className:l}=e,u=(0,r._T)(e,["children","className"]),{selectedValue:d}=(0,s.useContext)(a.Z),p=d===(0,s.useContext)(o.Z);return s.createElement("div",Object.assign({ref:t,className:(0,i.q)(c("root"),"w-full mt-2",p?"":"hidden",l),"aria-selected":p?"true":"false"},u),n)});u.displayName="TabPanel"},23682:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(80991);n(50027);var a=n(18174);n(21871);var i=n(41213),l=n(99250),s=n(65492),c=n(64090);let u=(0,s.fn)("TabPanels"),d=c.forwardRef((e,t)=>{let{children:n,className:s}=e,d=(0,r._T)(e,["children","className"]);return c.createElement(o.O.Panels,Object.assign({as:"div",ref:t,className:(0,l.q)(u("root"),"w-full",s)},d),e=>{let{selectedIndex:t}=e;return c.createElement(i.Z.Provider,{value:{selectedValue:t}},c.Children.map(n,(e,t)=>c.createElement(a.Z.Provider,{value:t},e)))})});d.displayName="TabPanels"},52273:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(69703),o=n(64090),a=n(99250),i=n(65492);let l=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}))},s=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12ZM12.0003 17C14.7617 17 17.0003 14.7614 17.0003 12C17.0003 9.23858 14.7617 7 12.0003 7C9.23884 7 7.00026 9.23858 7.00026 12C7.00026 14.7614 9.23884 17 12.0003 17ZM12.0003 15C10.3434 15 9.00026 13.6569 9.00026 12C9.00026 10.3431 10.3434 9 12.0003 9C13.6571 9 15.0003 10.3431 15.0003 12C15.0003 13.6569 13.6571 15 12.0003 15Z"}))},c=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457ZM14.7577 16.1718L13.2937 14.7078C12.902 14.8952 12.4634 15.0002 12.0003 15.0002C10.3434 15.0002 9.00026 13.657 9.00026 12.0002C9.00026 11.537 9.10522 11.0984 9.29263 10.7067L7.82866 9.24277C7.30514 10.0332 7.00026 10.9811 7.00026 12.0002C7.00026 14.7616 9.23884 17.0002 12.0003 17.0002C13.0193 17.0002 13.9672 16.6953 14.7577 16.1718ZM7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925L16.947 12.7327C16.9821 12.4936 17.0003 12.249 17.0003 12.0002C17.0003 9.23873 14.7617 7.00016 12.0003 7.00016C11.7514 7.00016 11.5068 7.01833 11.2677 7.05343L7.97446 3.76015Z"}))};var u=n(91753);let d=o.forwardRef((e,t)=>{let{value:n,defaultValue:d,type:p,placeholder:f="Type...",icon:m,error:g=!1,errorMessage:h,disabled:b=!1,stepper:v,makeInputClassName:y,className:E,onChange:S,onValueChange:w,autoFocus:x}=e,O=(0,r._T)(e,["value","defaultValue","type","placeholder","icon","error","errorMessage","disabled","stepper","makeInputClassName","className","onChange","onValueChange","autoFocus"]),[k,C]=(0,o.useState)(x||!1),[T,A]=(0,o.useState)(!1),I=(0,o.useCallback)(()=>A(!T),[T,A]),N=(0,o.useRef)(null),R=(0,u.Uh)(n||d);return o.useEffect(()=>{let e=()=>C(!0),t=()=>C(!1),n=N.current;return n&&(n.addEventListener("focus",e),n.addEventListener("blur",t),x&&n.focus()),()=>{n&&(n.removeEventListener("focus",e),n.removeEventListener("blur",t))}},[x]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,a.q)(y("root"),"relative w-full flex items-center min-w-[10rem] outline-none rounded-tremor-default transition duration-100 border","shadow-tremor-input","dark:shadow-dark-tremor-input",(0,u.um)(R,b,g),k&&(0,a.q)("ring-2","border-tremor-brand-subtle ring-tremor-brand-muted","dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted"),E)},m?o.createElement(m,{className:(0,a.q)(y("icon"),"shrink-0 h-5 w-5 ml-2.5","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle")}):null,o.createElement("input",Object.assign({ref:(0,i.lq)([N,t]),defaultValue:d,value:n,type:T?"text":p,className:(0,a.q)(y("input"),"w-full focus:outline-none focus:ring-0 border-none bg-transparent text-tremor-default rounded-tremor-default transition duration-100 py-2","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",m?"pl-2":"pl-3",g?"pr-3":"pr-4",b?"placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle":"placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content"),placeholder:f,disabled:b,"data-testid":"base-input",onChange:e=>{null==S||S(e),null==w||w(e.target.value)}},O)),"password"!==p||b?null:o.createElement("button",{className:(0,a.q)(y("toggleButton"),"mr-2"),type:"button",onClick:()=>I(),"aria-label":T?"Hide password":"Show Password"},T?o.createElement(c,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0}):o.createElement(s,{className:(0,a.q)("flex-none h-5 w-5 transition","text-tremor-content-subtle hover:text-tremor-content","dark:text-dark-tremor-content-subtle hover:dark:text-dark-tremor-content"),"aria-hidden":!0})),g?o.createElement(l,{className:(0,a.q)(y("errorIcon"),"text-red-500 shrink-0 w-5 h-5 mr-2.5")}):null,null!=v?v:null),g&&h?o.createElement("p",{className:(0,a.q)(y("errorMessage"),"text-sm text-red-500 mt-1")},h):null)});d.displayName="BaseInput";let p=(0,i.fn)("TextInput"),f=o.forwardRef((e,t)=>{let{type:n="text"}=e,a=(0,r._T)(e,["type"]);return o.createElement(d,Object.assign({ref:t,type:n,makeInputClassName:p},a))});f.displayName="TextInput"},91753:function(e,t,n){n.d(t,{Uh:function(){return c},n0:function(){return l},sl:function(){return i},um:function(){return s}});var r=n(99250),o=n(64090);let a=e=>["string","number"].includes(typeof e)?e:e instanceof Array?e.map(a).join(""):"object"==typeof e&&e?a(e.props.children):void 0;function i(e){let t=new Map;return o.Children.map(e,e=>{var n;t.set(e.props.value,null!==(n=a(e))&&void 0!==n?n:e.props.value)}),t}function l(e,t){return o.Children.map(t,t=>{var n;if((null!==(n=a(t))&&void 0!==n?n:t.props.value).toLowerCase().includes(e.toLowerCase()))return t})}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.q)(t?"bg-tremor-background-subtle dark:bg-dark-tremor-background-subtle":"bg-tremor-background dark:bg-dark-tremor-background",!t&&"hover:bg-tremor-background-muted dark:hover:bg-dark-tremor-background-muted",e?"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis":"text-tremor-content dark:text-dark-tremor-content",t&&"text-tremor-content-subtle dark:text-dark-tremor-content-subtle",n&&"text-red-500",n?"border-red-500":"border-tremor-border dark:border-dark-tremor-border")};function c(e){return null!=e&&""!==e}},26780:function(e,t,n){n.d(t,{Z:function(){return d},r:function(){return u}});var r=n(69703),o=n(11754);n(50027),n(18174);var a=n(21871);n(41213);var i=n(99250),l=n(65492),s=n(64090);let c=(0,l.fn)("Accordion"),u=(0,s.createContext)({isOpen:!1}),d=s.forwardRef((e,t)=>{var n;let{defaultOpen:l=!1,children:d,className:p}=e,f=(0,r._T)(e,["defaultOpen","children","className"]),m=null!==(n=(0,s.useContext)(a.Z))&&void 0!==n?n:(0,i.q)("rounded-tremor-default border");return s.createElement(o.p,Object.assign({as:"div",ref:t,className:(0,i.q)(c("root"),"overflow-hidden","bg-tremor-background border-tremor-border","dark:bg-dark-tremor-background dark:border-dark-tremor-border",m,p),defaultOpen:l},f),e=>{let{open:t}=e;return s.createElement(u.Provider,{value:{isOpen:t}},d)})});d.displayName="Accordion"},15595:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(64090),a=n(11754),i=n(99250);let l=(0,n(65492).fn)("AccordionBody"),s=o.forwardRef((e,t)=>{let{children:n,className:s}=e,c=(0,r._T)(e,["children","className"]);return o.createElement(a.p.Panel,Object.assign({ref:t,className:(0,i.q)(l("root"),"w-full text-tremor-default px-4 pb-3","text-tremor-content","dark:text-dark-tremor-content",s)},c),n)});s.displayName="AccordionBody"},6698:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(64090),a=n(11754);let i=e=>{var t=(0,r._T)(e,[]);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t),o.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"}))};var l=n(26780),s=n(99250);let c=(0,n(65492).fn)("AccordionHeader"),u=o.forwardRef((e,t)=>{let{children:n,className:u}=e,d=(0,r._T)(e,["children","className"]),{isOpen:p}=(0,o.useContext)(l.r);return o.createElement(a.p.Button,Object.assign({ref:t,className:(0,s.q)(c("root"),"w-full flex items-center justify-between px-4 py-3","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",u)},d),o.createElement("div",{className:(0,s.q)(c("children"),"flex flex-1 text-inherit mr-4")},n),o.createElement("div",null,o.createElement(i,{className:(0,s.q)(c("arrowIcon"),"h-5 w-5 -mr-1","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",p?"transition-all":"transition-all -rotate-180")})))});u.displayName="AccordionHeader"},13810:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(54942),i=n(2898),l=n(99250),s=n(65492);let c=(0,s.fn)("Card"),u=e=>{if(!e)return"";switch(e){case a.zS.Left:return"border-l-4";case a.m.Top:return"border-t-4";case a.zS.Right:return"border-r-4";case a.m.Bottom:return"border-b-4";default:return""}},d=o.forwardRef((e,t)=>{let{decoration:n="",decorationColor:a,children:d,className:p}=e,f=(0,r._T)(e,["decoration","decorationColor","children","className"]);return o.createElement("div",Object.assign({ref:t,className:(0,l.q)(c("root"),"relative w-full text-left ring-1 rounded-tremor-default p-6","bg-tremor-background ring-tremor-ring shadow-tremor-card","dark:bg-dark-tremor-background dark:ring-dark-tremor-ring dark:shadow-dark-tremor-card",a?(0,s.bM)(a,i.K.border).borderColor:"border-tremor-brand dark:border-dark-tremor-brand",u(n),p)},f),d)});d.displayName="Card"},39290:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250);let s=(0,n(65492).fn)("dialog"),c=o.forwardRef((e,t)=>{let{children:n,className:c}=e,u=(0,r._T)(e,["children","className"]);return o.createElement(a.u,{as:o.Fragment,appear:!0,show:e.open},o.createElement(i.V,Object.assign({as:"div",ref:t},u,{className:(0,l.q)(s("root"),"relative z-50",c)}),o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},o.createElement("div",{className:(0,l.q)("fixed inset-0 bg-slate-950/30 dark:bg-slate-950/50 transition-opacity")})),o.createElement("div",{className:"fixed inset-0 overflow-y-auto w-screen"},o.createElement("div",{className:"flex min-h-full items-center justify-center p-4"},n))))});c.displayName="Dialog"},66952:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(69703),o=n(64090),a=n(70129),i=n(68637),l=n(99250),s=n(65492);n(50027),n(18174);var c=n(21871);n(41213);let u=(0,s.fn)("dialog"),d=o.forwardRef((e,t)=>{var n;let{children:s,className:d}=e,p=(0,r._T)(e,["children","className"]),f=null!==(n=o.useContext(c.Z))&&void 0!==n?n:(0,l.q)("rounded-tremor-default p-6");return o.createElement(a.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95"},o.createElement(i.V.Panel,Object.assign({ref:t,className:(0,l.q)(u("panel"),"w-full max-w-lg overflow-hidden text-left ring-1 shadow-tremor transition-all transform","bg-tremor-background text-tremor-content ring-tremor-ring","dark:bg-dark-tremor-background dark:text-dark-tremor-content dark:ring-dark-tremor-ring",f,d)},p),s))});d.displayName="DialogPanel"},10384:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Col"),c=i.forwardRef((e,t)=>{let{numColSpan:n=1,numColSpanSm:a,numColSpanMd:c,numColSpanLg:u,children:d,className:p}=e,f=(0,r._T)(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),m=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"";return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),(()=>{let e=m(n,l.PT),t=m(a,l.SP),r=m(c,l.VS),i=m(u,l._w);return(0,o.q)(e,t,r,i)})(),p)},f),d)});c.displayName="Col"},46453:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(69703),o=n(99250),a=n(65492),i=n(64090),l=n(50217);let s=(0,a.fn)("Grid"),c=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"",u=i.forwardRef((e,t)=>{let{numItems:n=1,numItemsSm:a,numItemsMd:u,numItemsLg:d,children:p,className:f}=e,m=(0,r._T)(e,["numItems","numItemsSm","numItemsMd","numItemsLg","children","className"]),g=c(n,l._m),h=c(a,l.LH),b=c(u,l.l5),v=c(d,l.N4),y=(0,o.q)(g,h,b,v);return i.createElement("div",Object.assign({ref:t,className:(0,o.q)(s("root"),"grid",y,f)},m),p)});u.displayName="Grid"},50217:function(e,t,n){n.d(t,{LH:function(){return o},N4:function(){return i},PT:function(){return l},SP:function(){return s},VS:function(){return c},_m:function(){return r},_w:function(){return u},l5:function(){return a}});let r={0:"grid-cols-none",1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},o={0:"sm:grid-cols-none",1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6",7:"sm:grid-cols-7",8:"sm:grid-cols-8",9:"sm:grid-cols-9",10:"sm:grid-cols-10",11:"sm:grid-cols-11",12:"sm:grid-cols-12"},a={0:"md:grid-cols-none",1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},i={0:"lg:grid-cols-none",1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"},l={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",13:"col-span-13"},s={1:"sm:col-span-1",2:"sm:col-span-2",3:"sm:col-span-3",4:"sm:col-span-4",5:"sm:col-span-5",6:"sm:col-span-6",7:"sm:col-span-7",8:"sm:col-span-8",9:"sm:col-span-9",10:"sm:col-span-10",11:"sm:col-span-11",12:"sm:col-span-12",13:"sm:col-span-13"},c={1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12",13:"md:col-span-13"},u={1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12",13:"lg:col-span-13"}},10827:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("Table"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement("div",{className:(0,a.q)(i("root"),"overflow-auto",l)},o.createElement("table",Object.assign({ref:t,className:(0,a.q)(i("table"),"w-full text-tremor-default","text-tremor-content","dark:text-dark-tremor-content")},s),n))});l.displayName="Table"},3851:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableBody"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tbody",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-top divide-y","divide-tremor-border","dark:divide-dark-tremor-border",l)},s),n))});l.displayName="TableBody"},2044:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("td",Object.assign({ref:t,className:(0,a.q)(i("root"),"align-middle whitespace-nowrap text-left p-4",l)},s),n))});l.displayName="TableCell"},64167:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHead"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("thead",Object.assign({ref:t,className:(0,a.q)(i("root"),"text-left","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHead"},74480:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableHeaderCell"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("th",Object.assign({ref:t,className:(0,a.q)(i("root"),"whitespace-nowrap text-left font-semibold top-0 px-4 py-3.5","text-tremor-content","dark:text-dark-tremor-content",l)},s),n))});l.displayName="TableHeaderCell"},7178:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(69703),o=n(64090),a=n(99250);let i=(0,n(65492).fn)("TableRow"),l=o.forwardRef((e,t)=>{let{children:n,className:l}=e,s=(0,r._T)(e,["children","className"]);return o.createElement(o.Fragment,null,o.createElement("tr",Object.assign({ref:t,className:(0,a.q)(i("row"),l)},s),n))});l.displayName="TableRow"},18190:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("Callout"),c=o.forwardRef((e,t)=>{let{title:n,icon:c,color:u,className:d,children:p}=e,f=(0,r._T)(e,["title","icon","color","className","children"]);return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex flex-col overflow-hidden rounded-tremor-default text-tremor-default border-l-4 py-3 pr-3 pl-4",u?(0,i.q)((0,l.bM)(u,a.K.background).bgColor,(0,l.bM)(u,a.K.darkBorder).borderColor,(0,l.bM)(u,a.K.darkText).textColor,"dark:bg-opacity-10 bg-opacity-10"):(0,i.q)("bg-tremor-brand-faint border-tremor-brand-emphasis text-tremor-brand-emphasis","dark:bg-dark-tremor-brand-muted/70 dark:border-dark-tremor-brand-emphasis dark:text-dark-tremor-brand-emphasis"),d)},f),o.createElement("div",{className:(0,i.q)(s("header"),"flex items-start")},c?o.createElement(c,{className:(0,i.q)(s("icon"),"flex-none h-5 w-5 mr-1.5")}):null,o.createElement("h4",{className:(0,i.q)(s("title"),"font-semibold")},n)),o.createElement("p",{className:(0,i.q)(s("body"),"overflow-y-auto",p?"mt-2":"")},p))});c.displayName="Callout"},71801:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(2898),o=n(99250),a=n(65492),i=n(64090);let l=i.forwardRef((e,t)=>{let{color:n,className:l,children:s}=e;return i.createElement("p",{ref:t,className:(0,o.q)("text-tremor-default",n?(0,a.bM)(n,r.K.text).textColor:(0,o.q)("text-tremor-content","dark:text-dark-tremor-content"),l)},s)});l.displayName="Text"},42440:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(69703),o=n(2898),a=n(99250),i=n(65492),l=n(64090);let s=l.forwardRef((e,t)=>{let{color:n,children:s,className:c}=e,u=(0,r._T)(e,["color","children","className"]);return l.createElement("p",Object.assign({ref:t,className:(0,a.q)("font-medium text-tremor-title",n?(0,i.bM)(n,o.K.darkText).textColor:"text-tremor-content-emphasis dark:text-dark-tremor-content-emphasis",c)},u),s)});s.displayName="Title"},58437:function(e,t,n){n.d(t,{Z:function(){return eU},l:function(){return eB}});var r=n(64090),o=n.t(r,2),a=n(89542);function i(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return e instanceof Node||e instanceof l(e).Node}function u(e){return e instanceof Element||e instanceof l(e).Element}function d(e){return e instanceof HTMLElement||e instanceof l(e).HTMLElement}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function m(e){let t=h(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=E(e);for(;d(t)&&!b(t);){if(m(t))return t;t=E(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function b(e){return["html","body","#document"].includes(i(e))}function v(e){return l(e).getComputedStyle(e)}function y(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function E(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||s(e);return p(t)?t.host:t}function S(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=E(t);return b(n)?t.ownerDocument?t.ownerDocument.body:t.body:d(n)&&f(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=l(o);return a?t.concat(i,i.visualViewport||[],f(o)?o:[],i.frameElement&&n?S(i.frameElement):[]):t.concat(o,S(o,[],n))}let w=Math.min,x=Math.max,O=Math.round,k=Math.floor,C=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function I(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}function M(e){return["top","bottom"].includes(N(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>A[e])}function D(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function F(e,t,n){let r,{reference:o,floating:a}=e,i=M(t),l=_(M(t)),s=P(l),c=N(t),u="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-a.width,y:p};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[l]-=f*(n&&u?-1:1);break;case"end":r[l]+=f*(n&&u?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=F(c,r,s),p=r,f={},m=0;for(let n=0;n{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)});let o=g(e);if(t&&o){let e=o.getBoundingClientRect();n=e.x,r=e.y}return[t,n,r]}function K(e){return V(s(e)).left+y(e).scrollLeft}function X(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=l(e),r=s(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){a=o.width,i=o.height;let e=h();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:c,y:u}}(e,n);else if("document"===t)r=function(e){let t=s(e),n=y(e),r=e.ownerDocument.body,o=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+K(e),l=-n.scrollTop;return"rtl"===v(r).direction&&(i+=x(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(u(t))r=function(e,t){let n=V(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=d(e)?G(e):C(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{let n=W(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return j(r)}function Q(e,t){return d(e)&&"fixed"!==v(e).position?t?t(e):e.offsetParent:null}function J(e,t){let n=l(e);if(!d(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(i(r))&&"static"===v(r).position;)r=Q(r,t);return r&&("html"===i(r)||"body"===i(r)&&"static"===v(r).position&&!m(r))?n:r||g(e)||n}let ee=async function(e){let t=this.getOffsetParent||J,n=this.getDimensions;return{reference:function(e,t,n,r){let o=d(t),a=s(t),l="fixed"===n,c=V(e,!0,l,t),u={scrollLeft:0,scrollTop:0},p=C(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(u=y(t)),o){let e=V(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=K(a))}let m=c.left+u.scrollLeft-p.x,g=c.top+u.scrollTop-p.y,[h,b,v]=Y(r);return h&&(m+=b,g+=v,o&&(m+=t.clientLeft,g+=t.clientTop)),{x:m,y:g,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a=s(r),[l]=t?Y(t.floating):[!1];if(r===a||l)return n;let c={scrollLeft:0,scrollTop:0},u=C(1),p=C(0),m=d(r);if((m||!m&&"fixed"!==o)&&(("body"!==i(r)||f(a))&&(c=y(r)),d(r))){let e=V(r);u=G(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=S(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===v(e).position,l=a?E(e):e;for(;u(l)&&!b(l);){let t=v(l),n=m(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(l)&&!n&&function e(t,n){let r=E(t);return!(r===n||!u(r)||b(r))&&("fixed"===v(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=E(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((e,n)=>{let r=X(t,n,o);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},X(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:J,getElementRects:ee,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:G,isElement:u,isRTL:function(e){return"rtl"===v(e).direction}};function en(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=H(e),p=a||i?[...d?S(d):[],...S(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=d&&c?function(e,t){let n,r=null,o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let f=k(u),m=k(o.clientWidth-(c+d)),g={rootMargin:-f+"px "+-m+"px "+-k(o.clientHeight-(u+p))+"px "+-k(c)+"px",threshold:x(0,w(1,s))||1},h=!0;function b(e){let t=e[0].intersectionRatio;if(t!==s){if(!h)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}h=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),a}(d,n):null,m=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!u&&g.observe(d),g.observe(t));let h=u?V(e):null;return u&&function t(){let r=V(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(o)}}let er=(e,t,n)=>{let r=new Map,o={platform:et,...n},a={...o.platform,_c:r};return B(e,t,{...o,platform:a})};var eo="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ea(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ei(e){let t=r.useRef(e);return eo(()=>{t.current=e}),t}var el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let es=!1,ec=0,eu=()=>"floating-ui-"+ec++,ed=o["useId".toString()]||function(){let[e,t]=r.useState(()=>es?eu():void 0);return el(()=>{null==e&&t(eu())},[]),r.useEffect(()=>{es||(es=!0)},[]),e},ep=r.createContext(null),ef=r.createContext(null),em=()=>{var e;return(null==(e=r.useContext(ep))?void 0:e.id)||null},eg=()=>r.useContext(ef);function eh(e){return(null==e?void 0:e.ownerDocument)||document}function eb(e){return eh(e).defaultView||window}function ev(e){return!!e&&e instanceof eb(e).Element}function ey(e){return!!e&&e instanceof eb(e).HTMLElement}function eE(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eS(e){let t=(0,r.useRef)(e);return el(()=>{t.current=e}),t}let ew="data-floating-ui-safe-polygon";function ex(e,t,n){return n&&!eE(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let eO=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:a=null,mouseOnly:i=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t,{open:c,onOpenChange:u,dataRef:d,events:p,elements:{domReference:f,floating:m},refs:g}=e,h=eg(),b=em(),v=eS(a),y=eS(o),E=r.useRef(),S=r.useRef(),w=r.useRef(),x=r.useRef(),O=r.useRef(!0),k=r.useRef(!1),C=r.useRef(()=>{}),T=r.useCallback(()=>{var e;let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);r.useEffect(()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(S.current),clearTimeout(x.current),O.current=!0}},[n,p]),r.useEffect(()=>{if(!n||!v.current||!c)return;function e(){T()&&u(!1)}let t=eh(m).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[m,c,u,n,v,d,T]);let A=r.useCallback(function(e){void 0===e&&(e=!0);let t=ex(y.current,"close",E.current);t&&!w.current?(clearTimeout(S.current),S.current=setTimeout(()=>u(!1),t)):e&&(clearTimeout(S.current),u(!1))},[y,u]),I=r.useCallback(()=>{C.current(),w.current=void 0},[]),N=r.useCallback(()=>{if(k.current){let e=eh(g.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ew),k.current=!1}},[g]);return r.useEffect(()=>{if(n&&ev(f))return c&&f.addEventListener("mouseleave",a),null==m||m.addEventListener("mouseleave",a),s&&f.addEventListener("mousemove",r,{once:!0}),f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",o),()=>{c&&f.removeEventListener("mouseleave",a),null==m||m.removeEventListener("mouseleave",a),s&&f.removeEventListener("mousemove",r),f.removeEventListener("mouseenter",r),f.removeEventListener("mouseleave",o)};function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(S.current),O.current=!1,i&&!eE(E.current)||l>0&&0===ex(y.current,"open"))return;d.current.openEvent=e;let t=ex(y.current,"open",E.current);t?S.current=setTimeout(()=>{u(!0)},t):u(!0)}function o(n){if(t())return;C.current();let r=eh(m);if(clearTimeout(x.current),v.current){c||clearTimeout(S.current),w.current=v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}});let t=w.current;r.addEventListener("mousemove",t),C.current=()=>{r.removeEventListener("mousemove",t)};return}A()}function a(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){N(),I(),A()}})(n)}},[f,m,n,e,i,l,s,A,I,N,u,c,h,y,v,d]),el(()=>{var e,t,r;if(n&&c&&null!=(e=v.current)&&e.__options.blockPointerEvents&&T()){let e=eh(m).body;if(e.setAttribute(ew,""),e.style.pointerEvents="none",k.current=!0,ev(f)&&m){let e=null==h?void 0:null==(t=h.nodesRef.current.find(e=>e.id===b))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),f.style.pointerEvents="auto",m.style.pointerEvents="auto",()=>{f.style.pointerEvents="",m.style.pointerEvents=""}}}},[n,c,b,m,f,h,v,d,T]),el(()=>{c||(E.current=void 0,I(),N())},[c,I,N]),r.useEffect(()=>()=>{I(),clearTimeout(S.current),clearTimeout(x.current),N()},[n,I,N]),r.useMemo(()=>{if(!n)return{};function e(e){E.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===l||(clearTimeout(x.current),x.current=setTimeout(()=>{O.current||u(!0)},l))}},floating:{onMouseEnter(){clearTimeout(S.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[p,n,l,c,u,A])};function ek(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=eb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function eC(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})||[],r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})})||[],n=n.concat(r);return n}let eT=o["useInsertionEffect".toString()]||(e=>e());function eA(e){let t=r.useRef(()=>{});return eT(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r!1),x="function"==typeof f?w:f,O=r.useRef(!1),{escapeKeyBubbles:k,outsidePressBubbles:C}=e_(v);return r.useEffect(()=>{if(!n||!d)return;function e(e){if("Escape"===e.key){let e=y?eC(y.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if(null!=(n=e.context)&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}a.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),o(!1)}}function t(e){var t;let n=O.current;if(O.current=!1,n||"function"==typeof x&&!x(e))return;let r="composedPath"in e?e.composedPath()[0]:e.target;if(ey(r)&&c){let t=c.ownerDocument.defaultView||window,n=r.scrollWidth>r.clientWidth,o=r.scrollHeight>r.clientHeight,a=o&&e.offsetX>r.clientWidth;if(o&&"rtl"===t.getComputedStyle(r).direction&&(a=e.offsetX<=r.offsetWidth-r.clientWidth),a||n&&e.offsetY>r.clientHeight)return}let l=y&&eC(y.nodesRef.current,i).some(t=>{var n;return eI(e,null==(n=t.context)?void 0:n.elements.floating)});if(eI(e,c)||eI(e,s)||l)return;let u=y?eC(y.nodesRef.current,i):[];if(u.length>0){let e=!0;if(u.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}a.emit("dismiss",{type:"outsidePress",data:{returnFocus:E?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(e)||0===(t=e).width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"!==t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail}}),o(!1)}function r(){o(!1)}u.current.__escapeKeyBubbles=k,u.current.__outsidePressBubbles=C;let f=eh(c);p&&f.addEventListener("keydown",e),x&&f.addEventListener(m,t);let g=[];return b&&(ev(s)&&(g=S(s)),ev(c)&&(g=g.concat(S(c))),!ev(l)&&l&&l.contextElement&&(g=g.concat(S(l.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",r,{passive:!0})}),()=>{p&&f.removeEventListener("keydown",e),x&&f.removeEventListener(m,t),g.forEach(e=>{e.removeEventListener("scroll",r)})}},[u,c,s,l,p,x,m,a,y,i,n,o,b,d,k,C,E]),r.useEffect(()=>{O.current=!1},[x,m]),r.useMemo(()=>d?{reference:{[eN[h]]:()=>{g&&(a.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),o(!1))}},floating:{[eR[m]]:()=>{O.current=!0}}}:{},[d,a,g,m,h,o])},eM=function(e,t){let{open:n,onOpenChange:o,dataRef:a,events:i,refs:l,elements:{floating:s,domReference:c}}=e,{enabled:u=!0,keyboardOnly:d=!0}=void 0===t?{}:t,p=r.useRef(""),f=r.useRef(!1),m=r.useRef();return r.useEffect(()=>{if(!u)return;let e=eh(s).defaultView||window;function t(){!n&&ey(c)&&c===function(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}(eh(c))&&(f.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}},[s,c,n,u]),r.useEffect(()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(f.current=!0)}},[i,u]),r.useEffect(()=>()=>{clearTimeout(m.current)},[]),r.useMemo(()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;p.current=t,f.current=!!(t&&d)},onMouseLeave(){f.current=!1},onFocus(e){var t;f.current||"focus"===e.type&&(null==(t=a.current.openEvent)?void 0:t.type)==="mousedown"&&a.current.openEvent&&eI(a.current.openEvent,c)||(a.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){f.current=!1;let t=e.relatedTarget,n=ev(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");m.current=setTimeout(()=>{ek(l.floating.current,t)||ek(c,t)||n||o(!1)})}}}:{},[u,d,c,l,a,o])},eL=function(e,t){let{open:n}=e,{enabled:o=!0,role:a="dialog"}=void 0===t?{}:t,i=ed(),l=ed();return r.useMemo(()=>{let e={id:i,role:a};return o?"tooltip"===a?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":n?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:l}},floating:{...e,..."menu"===a&&{"aria-labelledby":l}}}:{}},[o,a,n,i,l])};function eD(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var a;null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),a=0;ae(...o))}}}else e[n]=o}),e),{})}}let ej=function(e){void 0===e&&(e=[]);let t=e,n=r.useCallback(t=>eD(t,e,"reference"),t),o=r.useCallback(t=>eD(t,e,"floating"),t),a=r.useCallback(t=>eD(t,e,"item"),e.map(e=>null==e?void 0:e.item));return r.useMemo(()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a}),[n,o,a])};var eF=n(99250);let eB=e=>{var t,n;let[o,i]=(0,r.useState)(!1),[l,s]=(0,r.useState)(),{x:c,y:u,refs:d,strategy:p,context:f}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:o}=e,i=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,whileElementsMounted:l,open:s}=e,[c,u]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=r.useState(o);ea(d,o)||p(o);let f=r.useRef(null),m=r.useRef(null),g=r.useRef(c),h=ei(l),b=ei(i),[v,y]=r.useState(null),[E,S]=r.useState(null),w=r.useCallback(e=>{f.current!==e&&(f.current=e,y(e))},[]),x=r.useCallback(e=>{m.current!==e&&(m.current=e,S(e))},[]),O=r.useCallback(()=>{if(!f.current||!m.current)return;let e={placement:t,strategy:n,middleware:d};b.current&&(e.platform=b.current),er(f.current,m.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!ea(g.current,t)&&(g.current=t,a.flushSync(()=>{u(t)}))})},[d,t,n,b]);eo(()=>{!1===s&&g.current.isPositioned&&(g.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let k=r.useRef(!1);eo(()=>(k.current=!0,()=>{k.current=!1}),[]),eo(()=>{if(v&&E){if(h.current)return h.current(v,E,O);O()}},[v,E,O,h]);let C=r.useMemo(()=>({reference:f,floating:m,setReference:w,setFloating:x}),[w,x]),T=r.useMemo(()=>({reference:v,floating:E}),[v,E]);return r.useMemo(()=>({...c,update:O,refs:C,elements:T,reference:w,floating:x}),[c,O,C,T,w,x])}(e),l=eg(),s=r.useRef(null),c=r.useRef({}),u=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],[d,p]=r.useState(null),f=r.useCallback(e=>{let t=ev(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),m=r.useCallback(e=>{(ev(e)||null===e)&&(s.current=e,p(e)),(ev(i.refs.reference.current)||null===i.refs.reference.current||null!==e&&!ev(e))&&i.refs.setReference(e)},[i.refs]),g=r.useMemo(()=>({...i.refs,setReference:m,setPositionReference:f,domReference:s}),[i.refs,m,f]),h=r.useMemo(()=>({...i.elements,domReference:d}),[i.elements,d]),b=eA(n),v=r.useMemo(()=>({...i,refs:g,elements:h,dataRef:c,nodeId:o,events:u,open:t,onOpenChange:b}),[i,o,u,t,b,g,h]);return el(()=>{let e=null==l?void 0:l.nodesRef.current.find(e=>e.id===o);e&&(e.context=v)}),r.useMemo(()=>({...i,context:v,refs:g,reference:m,positionReference:f}),[i,g,v,m,f])}({open:o,onOpenChange:t=>{t&&e?s(setTimeout(()=>{i(t)},e)):(clearTimeout(l),i(t))},placement:"top",whileElementsMounted:en,middleware:[{name:"offset",options:5,async fn(e){var t,n;let{x:r,y:o,placement:a,middlewareData:i}=e,l=await Z(e,5);return a===(null==(t=i.offset)?void 0:t.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}},{name:"flip",options:t={fallbackAxisSideDirection:"start"},async fn(e){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:c,initialPlacement:u,platform:d,elements:p}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=I(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=N(l),S=N(u)===u,w=await (null==d.isRTL?void 0:d.isRTL(p.floating)),x=g||(S||!v?[D(u)]:function(e){let t=D(e);return[L(e),t,L(t)]}(u));g||"none"===b||x.push(...function(e,t,n,r){let o=R(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(N(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(L)))),a}(u,v,b,w));let O=[u,...x],k=await U(e,y),C=[],T=(null==(r=s.flip)?void 0:r.overflows)||[];if(f&&C.push(k[E]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=_(M(e)),a=P(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=D(i)),[i,D(i)]}(l,c,w);C.push(k[e[0]],k[e[1]])}if(T=[...T,{placement:l,overflows:C}],!C.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(a=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(h){case"bestFit":{let e=null==(i=T.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=u}if(l!==n)return{reset:{placement:n}}}return{}}},(void 0===n&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=I(n,e),c={x:t,y:r},u=await U(e,s),d=M(N(o)),p=_(d),f=c[p],m=c[d];if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+u[e],r=f-u[t];f=x(n,w(f,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+u[e],r=m-u[t];m=x(n,w(m,r))}let g=l.fn({...e,[p]:f,[d]:m});return{...g,data:{x:g.x-t,y:g.y-r}}}})]}),m=eO(f,{move:!1}),{getReferenceProps:g,getFloatingProps:h}=ej([m,eM(f),eP(f),eL(f,{role:"tooltip"})]);return{tooltipProps:{open:o,x:c,y:u,refs:d,strategy:p,getFloatingProps:h},getReferenceProps:g}},eU=e=>{let{text:t,open:n,x:o,y:a,refs:i,strategy:l,getFloatingProps:s}=e;return n&&t?r.createElement("div",Object.assign({className:(0,eF.q)("max-w-xs text-sm z-20 rounded-tremor-default opacity-100 px-2.5 py-1","text-white bg-tremor-background-emphasis","text-white dark:bg-dark-tremor-background-subtle"),ref:i.setFloating,style:{position:l,top:null!=a?a:0,left:null!=o?o:0}},s()),t):null};eU.displayName="Tooltip"},67989:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(69703),o=n(64090),a=n(2898),i=n(99250),l=n(65492);let s=(0,l.fn)("BarList"),c=o.forwardRef((e,t)=>{var n;let c;let{data:u=[],color:d,valueFormatter:p=l.Cj,showAnimation:f=!1,className:m}=e,g=(0,r._T)(e,["data","color","valueFormatter","showAnimation","className"]),h=(n=u.map(e=>e.value),c=-1/0,n.forEach(e=>{c=Math.max(c,e)}),n.map(e=>0===e?0:Math.max(e/c*100,1)));return o.createElement("div",Object.assign({ref:t,className:(0,i.q)(s("root"),"flex justify-between space-x-6",m)},g),o.createElement("div",{className:(0,i.q)(s("bars"),"relative w-full")},u.map((e,t)=>{var n,r,c;let p=e.icon;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("bar"),"flex items-center rounded-tremor-small bg-opacity-30","h-9",e.color||d?(0,l.bM)(null!==(r=e.color)&&void 0!==r?r:d,a.K.background).bgColor:"bg-tremor-brand-subtle dark:bg-dark-tremor-brand-subtle dark:bg-opacity-30",t===u.length-1?"mb-0":"mb-2"),style:{width:"".concat(h[t],"%"),transition:f?"all 1s":""}},o.createElement("div",{className:(0,i.q)("absolute max-w-full flex left-2")},p?o.createElement(p,{className:(0,i.q)(s("barIcon"),"flex-none h-5 w-5 mr-2","text-tremor-content","dark:text-dark-tremor-content")}):null,e.href?o.createElement("a",{href:e.href,target:null!==(c=e.target)&&void 0!==c?c:"_blank",rel:"noreferrer",className:(0,i.q)(s("barLink"),"whitespace-nowrap hover:underline truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name):o.createElement("p",{className:(0,i.q)(s("barText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e.name)))})),o.createElement("div",{className:"text-right min-w-min"},u.map((e,t)=>{var n;return o.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.name,className:(0,i.q)(s("labelWrapper"),"flex justify-end items-center","h-9",t===u.length-1?"mb-0":"mb-2")},o.createElement("p",{className:(0,i.q)(s("labelText"),"whitespace-nowrap truncate text-tremor-default","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},p(e.value)))})))});c.displayName="BarList"},50027:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(64090),o=n(54942);n(99250);let a=(0,r.createContext)(o.fr.Blue)},18174:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(0)},21871:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)(void 0)},41213:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(64090).createContext)({selectedValue:void 0,handleValueChange:void 0})},46457:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);let o=(e,t)=>{let n=void 0!==t,[o,a]=(0,r.useState)(e);return[n?t:o,e=>{n||a(e)}]}},54942:function(e,t,n){n.d(t,{fr:function(){return r},m:function(){return i},u8:function(){return o},zS:function(){return a}});let r={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},o={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},a={Left:"left",Right:"right"},i={Top:"top",Bottom:"bottom"}},2898:function(e,t,n){n.d(t,{K:function(){return o},s:function(){return a}});var r=n(54942);let o={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},a=[r.fr.Blue,r.fr.Cyan,r.fr.Sky,r.fr.Indigo,r.fr.Violet,r.fr.Purple,r.fr.Fuchsia,r.fr.Slate,r.fr.Gray,r.fr.Zinc,r.fr.Neutral,r.fr.Stone,r.fr.Red,r.fr.Orange,r.fr.Amber,r.fr.Yellow,r.fr.Lime,r.fr.Green,r.fr.Emerald,r.fr.Teal,r.fr.Pink,r.fr.Rose]},99250:function(e,t,n){n.d(t,{q:function(){return j}});var r=/^\[(.+)\]$/;function o(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var a=/\s+/;function i(){for(var e,t,n=0,r="";ne&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,a=t[0],i=t.length,function(e){for(var r,o=[],l=0,s=0,c=0;cs?r-s:void 0}}),...(u=e.theme,d=e.prefix,p={nextPart:new Map,validators:[]},(f=Object.entries(e.classGroups),d?f.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):f).forEach(function(e){var t=e[0];(function e(t,n,r,a){t.forEach(function(t){if("string"==typeof t){(""===t?n:o(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(a),n,r,a);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var i=t[0];e(t[1],o(n,i),r,a)})})})(e[1],p,t,u)}),l=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r,o=t[0],a=n.nextPart.get(o),i=a?e(t.slice(1),a):void 0;if(i)return i;if(0!==n.validators.length){var l=t.join("-");return null===(r=n.validators.find(function(e){return(0,e.validator)(l)}))||void 0===r?void 0:r.classGroupId}}(t,p)||function(e){if(r.test(e)){var t=r.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=l[e]||[];return t&&c[e]?[].concat(n,c[e]):n}})}}(s.slice(1).reduce(function(e,t){return t(e)},i()))).cache.get,n=e.cache.set,u=d,d(a)};function d(r){var o,i,l,s,c,u=t(r);if(u)return u;var d=(i=(o=e).splitModifiers,l=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,r.trim().split(a).map(function(e){var t=i(e),n=t.modifiers,r=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,s=l(a?o.substring(0,a):o),c=!!a;if(!s){if(!a||!(s=l(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,o=t+n;return!c.has(o)&&(c.add(o),s(n,r).forEach(function(e){return c.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,d),d}return function(){return u(i.apply(null,arguments))}}function s(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var c=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(e){return S(e)||d.has(e)||u.test(e)||h(e)}function h(e){return A(e,"length",I)}function b(e){return A(e,"size",N)}function v(e){return A(e,"position",N)}function y(e){return A(e,"url",R)}function E(e){return A(e,"number",S)}function S(e){return!Number.isNaN(Number(e))}function w(e){return e.endsWith("%")&&S(e.slice(0,-1))}function x(e){return _(e)||A(e,"number",_)}function O(e){return c.test(e)}function k(){return!0}function C(e){return p.test(e)}function T(e){return A(e,"",P)}function A(e,t,n){var r=c.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function I(e){return f.test(e)}function N(){return!1}function R(e){return e.startsWith("url(")}function _(e){return Number.isInteger(Number(e))}function P(e){return m.test(e)}function M(){var e=s("colors"),t=s("spacing"),n=s("blur"),r=s("brightness"),o=s("borderColor"),a=s("borderRadius"),i=s("borderSpacing"),l=s("borderWidth"),c=s("contrast"),u=s("grayscale"),d=s("hueRotate"),p=s("invert"),f=s("gap"),m=s("gradientColorStops"),A=s("gradientColorStopPositions"),I=s("inset"),N=s("margin"),R=s("opacity"),_=s("padding"),P=s("saturate"),M=s("scale"),L=s("sepia"),D=s("skew"),j=s("space"),F=s("translate"),B=function(){return["auto","contain","none"]},U=function(){return["auto","hidden","clip","visible","scroll"]},Z=function(){return["auto",O,t]},z=function(){return[O,t]},H=function(){return["",g]},G=function(){return["auto",S,O]},$=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",O]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[S,E]},Q=function(){return[S,O]};return{cacheSize:500,theme:{colors:[k],spacing:[g],blur:["none","",C,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",C,O],borderSpacing:z(),borderWidth:H(),contrast:X(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[w,h],inset:Z(),margin:Z(),opacity:X(),padding:z(),saturate:X(),scale:X(),sepia:Y(),skew:Q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat($(),[O])}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",x]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",x]},O]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[x]},O]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",O,t]}],"min-w":[{"min-w":["min","max","fit",O,g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,O]}],h:[{h:[O,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",O,g]}],"max-h":[{"max-h":[O,t,"min","max","fit"]}],"font-size":[{text:["base",C,h]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",E]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",S,E]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,g]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",O,g]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat($(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[O,g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,T]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,O]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[x,O]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,E]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var L=Object.prototype.hasOwnProperty,D=new Set(["string","number","boolean"]);let j=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rr.includes(e),a=e=>e.toString(),i=(e,t)=>{for(let n=0;n{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function s(e){return t=>"tremor-".concat(e,"-").concat(t)}function c(e,t){let n=o(e);if("white"===e||"black"===e||"transparent"===e||!t||!n){let t=e.includes("#")||e.includes("--")||e.includes("rgb")?"[".concat(e,"]"):e;return{bgColor:"bg-".concat(t),hoverBgColor:"hover:bg-".concat(t),selectBgColor:"ui-selected:bg-".concat(t),textColor:"text-".concat(t),selectTextColor:"ui-selected:text-".concat(t),hoverTextColor:"hover:text-".concat(t),borderColor:"border-".concat(t),selectBorderColor:"ui-selected:border-".concat(t),hoverBorderColor:"hover:border-".concat(t),ringColor:"ring-".concat(t),strokeColor:"stroke-".concat(t),fillColor:"fill-".concat(t)}}return{bgColor:"bg-".concat(e,"-").concat(t),selectBgColor:"ui-selected:bg-".concat(e,"-").concat(t),hoverBgColor:"hover:bg-".concat(e,"-").concat(t),textColor:"text-".concat(e,"-").concat(t),selectTextColor:"ui-selected:text-".concat(e,"-").concat(t),hoverTextColor:"hover:text-".concat(e,"-").concat(t),borderColor:"border-".concat(e,"-").concat(t),selectBorderColor:"ui-selected:border-".concat(e,"-").concat(t),hoverBorderColor:"hover:border-".concat(e,"-").concat(t),ringColor:"ring-".concat(e,"-").concat(t),strokeColor:"stroke-".concat(e,"-").concat(t),fillColor:"fill-".concat(e,"-").concat(t)}}},21467:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(64090),o=n(44329),a=n(54165),i=n(57499);function l(e){return t=>r.createElement(a.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}t.Z=(e,t,n,a)=>l(l=>{let{prefixCls:s,style:c}=l,u=r.useRef(null),[d,p]=r.useState(0),[f,m]=r.useState(0),[g,h]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:b}=r.useContext(i.E_),v=b(t||"select",s);r.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?".".concat(n(v)):".".concat(v,"-dropdown"),a=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return a&&(y=a(y)),r.createElement("div",{ref:u,style:{paddingBottom:d,position:"relative",minWidth:f}},r.createElement(e,Object.assign({},y)))})},51761:function(e,t,n){n.d(t,{Cn:function(){return c},u6:function(){return i}});var r=n(64090),o=n(24750),a=n(86718);let i=1e3,l={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e,t){let[,n]=(0,o.ZP)(),c=r.useContext(a.Z);if(void 0!==t)return[t,t];let u=null!=c?c:0;return e in l?(u+=(c?0:n.zIndexPopupBase)+l[e],u=Math.min(u,n.zIndexPopupBase+i)):u+=s[e],[void 0===c?t:u,u]}},47387:function(e,t,n){n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},67966:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(89869);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},i=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,d=t/2,p={};return Object.keys(o).forEach(e=>{let f=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(p[e]=f,i.has(e)&&(f.autoArrow=!1),e){case"top":case"topLeft":case"topRight":f.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=d+s}let m=(0,r.wZ)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-d;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+d}f.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(f.htmlRegion="visibleFirst")}),p}},65823:function(e,t,n){n.d(t,{M2:function(){return i},Tm:function(){return l},l$:function(){return a}});var r,o=n(64090);let{isValidElement:a}=r||(r=n.t(o,2));function i(e){return e&&a(e)&&e.type===o.Fragment}function l(e,t){return a(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},47794:function(e,t,n){n.d(t,{F:function(){return i},Z:function(){return a}});var r=n(16480),o=n.n(r);function a(e,t,n){return o()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}let i=(e,t)=>t||e},76564:function(e,t,n){n.d(t,{G8:function(){return a},ln:function(){return i}});var r=n(64090);function o(){}n(53850);let a=r.createContext({}),i=()=>{let e=()=>{};return e.deprecated=o,e}},86718:function(e,t,n){let r=n(64090).createContext(void 0);t.Z=r},51350:function(e,t,n){n.d(t,{Te:function(){return c},aG:function(){return i},hU:function(){return u},nx:function(){return l}});var r=n(64090),o=n(65823);let a=/^[\u4e00-\u9fa5]{2}$/,i=a.test.bind(a);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1,a=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=a.length-1,n=a[t];a[t]="".concat(n).concat(e)}else a.push(e);n=r}),r.Children.map(a,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&i(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?i(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e})(e,t))}},1861:function(e,t,n){n.d(t,{ZP:function(){return eb}});var r=n(64090),o=n(16480),a=n.n(o),i=n(35704),l=n(74084),s=n(73193),c=n(57499),u=n(65823),d=n(76585);let p=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow 0.3s ".concat(e.motionEaseInOut),"opacity 0.35s ".concat(e.motionEaseInOut)].join(",")}}}}};var f=(0,d.ZP)("Wave",e=>[p(e)]),m=n(48563),g=n(19223),h=n(49367),b=n(37274);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let y="ant-wave-target";function E(e){return Number.isNaN(e)?0:e}let S=e=>{let{className:t,target:n,component:o}=e,i=r.useRef(null),[l,s]=r.useState(null),[c,u]=r.useState([]),[d,p]=r.useState(0),[f,m]=r.useState(0),[S,w]=r.useState(0),[x,O]=r.useState(0),[k,C]=r.useState(!1),T={left:d,top:f,width:S,height:x,borderRadius:c.map(e=>"".concat(e,"px")).join(" ")};function A(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:E(-parseFloat(r))),m(t?n.offsetTop:E(-parseFloat(o))),w(n.offsetWidth),O(n.offsetHeight);let{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([a,i,c,l].map(e=>E(parseFloat(e))))}if(l&&(T["--wave-color"]=l),r.useEffect(()=>{if(n){let e;let t=(0,g.Z)(()=>{A(),C(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(A)).observe(n),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(h.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,b.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return r.createElement("div",{ref:i,className:a()(t,{"wave-quick":I},n),style:T})})};var w=(e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",null==e||e.insertBefore(a,null==e?void 0:e.firstChild),(0,b.s)(r.createElement(S,Object.assign({},t,{target:e})),a)},x=n(24750),O=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),p=i("wave"),[,h]=f(p),b=function(e,t,n){let{wave:o}=r.useContext(c.E_),[,a,i]=(0,x.ZP)(),l=(0,m.zX)(r=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(".".concat(y))||l,{showEffect:c}=o||{};(c||w)(s,{className:t,token:a,component:n,event:r,hashId:i})}),s=r.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(d,a()(p,h),o);if(r.useEffect(()=>{let e=d.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||b(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let v=(0,l.Yr)(t)?(0,l.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:v})},k=n(17094),C=n(10693),T=n(92801),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I=r.createContext(void 0);var N=n(51350);let R=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:i,prefixCls:l}=e,s=a()("".concat(l,"-icon"),n);return r.createElement("span",{ref:t,className:s,style:o},i)});var _=n(66155);let P=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:i,iconClassName:l}=e,s=a()("".concat(n,"-loading-icon"),o);return r.createElement(R,{prefixCls:n,className:s,style:i,ref:t},r.createElement(_.Z,{className:l}))}),M=()=>({width:0,opacity:0,transform:"scale(0)"}),L=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var D=e=>{let{prefixCls:t,loading:n,existIcon:o,className:a,style:i}=e,l=!!n;return o?r.createElement(P,{prefixCls:t,className:a,style:i}):r.createElement(h.ZP,{visible:l,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:l,removeOnLeave:!0,onAppearStart:M,onAppearActive:L,onEnterStart:M,onEnterActive:L,onLeaveStart:L,onLeaveActive:M},(e,n)=>{let{className:o,style:l}=e;return r.createElement(P,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:o})})},j=n(8985),F=n(11303),B=n(80316);let U=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var Z=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},U("".concat(t,"-primary"),o),U("".concat(t,"-danger"),a)]}},z=n(49202);let H=e=>{let{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,B.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},G=e=>{var t,n,r,o,a,i;let l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,z.D)(l),d=null!==(a=e.contentLineHeightSM)&&void 0!==a?a:(0,z.D)(s),p=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:(0,z.D)(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},$=e=>{let{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,j.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:0},["> ".concat(n," + span, > span + ").concat(n)]:{marginInlineStart:e.marginXS},["&:not(".concat(t,"-icon-only) > ").concat(t,"-icon")]:{["&".concat(t,"-loading-icon, &:not(:last-child)")]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,F.Qy)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&-icon-only".concat(t,"-compact-item")]:{flex:"none"}}}},W=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Y=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),K=(e,t,n,r,o,a,i,l)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},W(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),X=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},Y(e))}),Q=e=>Object.assign({},X(e)),J=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),W(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},W(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),X(e))}),et=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Q(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),W(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),K(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},W(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),K(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),X(e))}),en=e=>Object.assign(Object.assign({},ee(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},W(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},W(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),J(e))}),eo=e=>Object.assign(Object.assign(Object.assign({},W(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),J(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},J(e)),W(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),ea=e=>{let{componentCls:t}=e;return{["".concat(t,"-default")]:ee(e),["".concat(t,"-primary")]:et(e),["".concat(t,"-dashed")]:en(e),["".concat(t,"-link")]:er(e),["".concat(t,"-text")]:eo(e),["".concat(t,"-ghost")]:K(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(n).concat(t)]:{fontSize:o,lineHeight:a,height:r,padding:"".concat((0,j.bf)(c)," ").concat((0,j.bf)(l)),borderRadius:i,["&".concat(u)]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,["&".concat(n,"-round")]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:V(e)},{["".concat(n).concat(n,"-round").concat(t)]:q(e)}]},el=e=>ei((0,B.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),es=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")),ec=e=>ei((0,B.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")),eu=e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}};var ed=(0,d.I$)("Button",e=>{let t=H(e);return[$(t),es(t),el(t),ec(t),eu(t),ea(t),Z(t)]},G,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}}),ep=n(12288);let ef=e=>{let{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,j.bf)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var em=(0,d.bk)(["Button","compact"],e=>{let t=H(e);return[(0,ep.c)(t),function(e){var t;let n="".concat(e.componentCls,"-compact-vertical");return{[n]:Object.assign(Object.assign({},{["&-item:not(".concat(n,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{["&-item:not(".concat(n,"-first-item):not(").concat(n,"-last-item)")]:{borderRadius:0},["&-item".concat(n,"-first-item:not(").concat(n,"-last-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(n,"-last-item:not(").concat(n,"-first-item)")]:{["&, &".concat(t,"-sm, &").concat(t,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),ef(t)]},G),eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eh=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:s=!1,prefixCls:u,type:d="default",danger:p,shape:f="default",size:m,styles:g,disabled:h,className:b,rootClassName:v,children:y,icon:E,ghost:S=!1,block:w=!1,htmlType:x="button",classNames:A,style:_={}}=e,P=eg(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:L,direction:j,button:F}=(0,r.useContext)(c.E_),B=M("btn",u),[U,Z,z]=ed(B),H=(0,r.useContext)(k.Z),G=null!=h?h:H,$=(0,r.useContext)(I),W=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(s),[s]),[V,q]=(0,r.useState)(W.loading),[Y,K]=(0,r.useState)(!1),X=(0,r.createRef)(),Q=(0,l.sQ)(t,X),J=1===r.Children.count(y)&&!E&&!(0,N.Te)(d);(0,r.useEffect)(()=>{let e=null;return W.delay>0?e=setTimeout(()=>{e=null,q(!0)},W.delay):q(W.loading),function(){e&&(clearTimeout(e),e=null)}},[W]),(0,r.useEffect)(()=>{if(!Q||!Q.current||!1===L)return;let e=Q.current.textContent;J&&(0,N.aG)(e)?Y||K(!0):Y&&K(!1)},[Q]);let ee=t=>{let{onClick:n}=e;if(V||G){t.preventDefault();return}null==n||n(t)},et=!1!==L,{compactSize:en,compactItemClassnames:er}=(0,T.ri)(B,j),eo=(0,C.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=m?m:en)&&void 0!==t?t:$)&&void 0!==n?n:e}),ea=eo&&({large:"lg",small:"sm",middle:void 0})[eo]||"",ei=V?"loading":E,el=(0,i.Z)(P,["navigate"]),es=a()(B,Z,z,{["".concat(B,"-").concat(f)]:"default"!==f&&f,["".concat(B,"-").concat(d)]:d,["".concat(B,"-").concat(ea)]:ea,["".concat(B,"-icon-only")]:!y&&0!==y&&!!ei,["".concat(B,"-background-ghost")]:S&&!(0,N.Te)(d),["".concat(B,"-loading")]:V,["".concat(B,"-two-chinese-chars")]:Y&&et&&!V,["".concat(B,"-block")]:w,["".concat(B,"-dangerous")]:!!p,["".concat(B,"-rtl")]:"rtl"===j},er,b,v,null==F?void 0:F.className),ec=Object.assign(Object.assign({},null==F?void 0:F.style),_),eu=a()(null==A?void 0:A.icon,null===(n=null==F?void 0:F.classNames)||void 0===n?void 0:n.icon),ep=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==F?void 0:F.styles)||void 0===o?void 0:o.icon)||{}),ef=E&&!V?r.createElement(R,{prefixCls:B,className:eu,style:ep},E):r.createElement(D,{existIcon:!!E,prefixCls:B,loading:!!V}),eh=y||0===y?(0,N.hU)(y,J&&et):null;if(void 0!==el.href)return U(r.createElement("a",Object.assign({},el,{className:a()(es,{["".concat(B,"-disabled")]:G}),href:G?void 0:el.href,style:ec,onClick:ee,ref:Q,tabIndex:G?-1:0}),ef,eh));let eb=r.createElement("button",Object.assign({},P,{type:x,className:es,style:ec,onClick:ee,disabled:G,ref:Q}),ef,eh,!!er&&r.createElement(em,{key:"compact",prefixCls:B}));return(0,N.Te)(d)||(eb=r.createElement(O,{component:"Button",disabled:!!V},eb)),U(eb)});eh.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:i,className:l}=e,s=A(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,x.ZP)(),p="";switch(i){case"large":p="lg";break;case"small":p="sm"}let f=a()(u,{["".concat(u,"-").concat(p)]:p,["".concat(u,"-rtl")]:"rtl"===n},l,d);return r.createElement(I.Provider,{value:i},r.createElement("div",Object.assign({},s,{className:f})))},eh.__ANT_BUTTON=!0;var eb=eh},28683:function(e,t,n){var r=n(90791);t.Z=r.Z},17094:function(e,t,n){n.d(t,{n:function(){return a}});var r=n(64090);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},97303:function(e,t,n){n.d(t,{q:function(){return a}});var r=n(64090);let o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:n||a},t)};t.Z=o},57499:function(e,t,n){n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(64090);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?"ant-".concat(e):"ant"),iconPrefixCls:o}),{Consumer:i}=a},92935:function(e,t,n){var r=n(24750);t.Z=e=>{let[,,,,t]=(0,r.ZP)();return t?"".concat(e,"-css-var"):""}},10693:function(e,t,n){var r=n(64090),o=n(97303);t.Z=e=>{let t=r.useContext(o.Z);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])}},54165:function(e,t,n){let r,o,a,i;n.d(t,{ZP:function(){return G},w6:function(){return Z}});var l=n(64090),s=n.t(l,2),c=n(8985),u=n(67689),d=n(61475),p=n(36597),f=n(76564),m=n(12519),g=n(4678),h=n(33302),b=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>(0,g.f)(t&&t.Modal),[t]);let o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(h.Z.Provider,{value:o},n)},v=n(79474),y=n(43345),E=n(46864),S=n(57499),w=n(12215),x=n(6336),O=n(22127),k=n(24050);let C="-ant-".concat(Date.now(),"-").concat(Math.random());var T=n(17094),A=n(97303),I=n(92536);let{useId:N}=Object.assign({},s);var R=void 0===N?()=>"":N,_=n(49367),P=n(24750);function M(e){let{children:t}=e,[,n]=(0,P.ZP)(),{motion:r}=n,o=l.useRef(!1);return(o.current=o.current||!1===r,o.current)?l.createElement(_.zt,{motion:r},t):t}var L=()=>null,D=n(28030),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let F=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function B(){return r||"ant"}function U(){return o||S.oR}let Z=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(B(),"-").concat(e):B()),getIconPrefixCls:U,getRootPrefixCls:()=>r||B(),getTheme:()=>a,holderRender:i}),z=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:g,direction:h,space:w,virtual:x,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:C,legacyLocale:N,parentContext:_,iconPrefixCls:P,theme:B,componentDisabled:U,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,input:ep,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD}=e,ej=l.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[_.getPrefixCls,e.prefixCls]),eF=P||_.iconPrefixCls||S.oR,eB=n||_.csp;(0,D.Z)(eF,eB);let eU=function(e,t){(0,f.ln)("ConfigProvider");let n=e||{},r=!1!==n.inherit&&t?t:y.u_,o=R();return(0,d.Z)(()=>{var a,i;if(!e)return t;let l=Object.assign({},r.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});let s="css-var-".concat(o.replace(/:/g,"")),c=(null!==(a=n.cssVar)&&void 0!==a?a:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(i=n.cssVar)||void 0===i?void 0:i.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,I.Z)(e,r,!0)}))}(B,_.theme),eZ={csp:eB,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||N,direction:h,space:w,virtual:x,popupMatchSelectWidth:null!=k?k:O,popupOverflow:C,getPrefixCls:ej,iconPrefixCls:eF,theme:eU,segmented:Z,statistic:z,spin:H,calendar:G,carousel:$,cascader:W,collapse:V,typography:q,checkbox:Y,descriptions:K,divider:X,drawer:Q,skeleton:J,steps:ee,image:et,input:ep,layout:en,list:er,mentions:eo,modal:ea,progress:ei,result:el,slider:es,breadcrumb:ec,menu:eu,pagination:ed,empty:ef,badge:em,radio:eg,rate:eh,switch:eb,transfer:ev,avatar:ey,message:eE,tag:eS,table:ew,card:ex,tabs:eO,timeline:ek,timePicker:eC,upload:eT,notification:eA,tree:eI,colorPicker:eN,datePicker:eR,rangePicker:e_,flex:eP,wave:eM,dropdown:eL,warning:eD},ez=Object.assign({},_);Object.keys(eZ).forEach(e=>{void 0!==eZ[e]&&(ez[e]=eZ[e])}),F.forEach(t=>{let n=e[t];n&&(ez[t]=n)});let eH=(0,d.Z)(()=>ez,ez,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eG=l.useMemo(()=>({prefixCls:eF,csp:eB}),[eF,eB]),e$=l.createElement(l.Fragment,null,l.createElement(L,{dropdownMatchSelectWidth:O}),t),eW=l.useMemo(()=>{var e,t,n,r;return(0,p.T)((null===(e=v.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eH.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eH.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})},[eH,null==i?void 0:i.validateMessages]);Object.keys(eW).length>0&&(e$=l.createElement(m.Z.Provider,{value:eW},e$)),s&&(e$=l.createElement(b,{locale:s,_ANT_MARK__:"internalMark"},e$)),(eF||eB)&&(e$=l.createElement(u.Z.Provider,{value:eG},e$)),g&&(e$=l.createElement(A.q,{size:g},e$)),e$=l.createElement(M,null,e$);let eV=l.useMemo(()=>{let e=eU||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=j(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,c.jG)(t):y.uH,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,c.jG)(r.algorithm)),delete r.algorithm),l[t]=r});let s=Object.assign(Object.assign({},E.Z),n);return Object.assign(Object.assign({},a),{theme:i,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[eU]);return B&&(e$=l.createElement(y.Mj.Provider,{value:eV},e$)),eH.warning&&(e$=l.createElement(f.G8.Provider,{value:eH.warning},e$)),void 0!==U&&(e$=l.createElement(T.n,{disabled:U},e$)),l.createElement(S.E_.Provider,{value:eH},e$)},H=e=>{let t=l.useContext(S.E_),n=l.useContext(h.Z);return l.createElement(z,Object.assign({parentContext:t,legacyLocale:n},e))};H.ConfigContext=S.E_,H.SizeContext=A.Z,H.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:s}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=s),l&&(Object.keys(l).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,w.R_)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=a[1],n["".concat(t,"-color-hover")]=a[4],n["".concat(t,"-color-active")]=a[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=a[0],n["".concat(t,"-color-deprecated-border")]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,w.R_)(e.toRgbString());a.forEach((e,t)=>{n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";"));return"\n :root {\n ".concat(a.join("\n"),"\n }\n ").trim()}(e,t);(0,O.Z)()&&(0,k.hq)(n,"".concat(C,"-dynamic-theme"))}(B(),l):a=l)},H.useConfig=function(){return{componentDisabled:(0,l.useContext)(T.Z),componentSize:(0,l.useContext)(A.Z)}},Object.defineProperty(H,"SizeContext",{get:()=>A.Z});var G=H},40491:function(e,t,n){n.d(t,{Z:function(){return er}});var r=n(64090),o=n(50459),a=n(16480),i=n.n(a),l=n(14749),s=n(50833),c=n(80406),u=n(6787),d=n(44101),p=n(74084),f=n(4295),m=n(19223),g=f.Z.ESC,h=f.Z.TAB,b=(0,r.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,i=(0,r.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,p.sQ)(t,null==i?void 0:i.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(a,"-arrow")}),r.cloneElement(i,{ref:(0,p.Yr)(i)?l:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],E={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},S=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=r.forwardRef(function(e,t){var n,o,a,f,v,y,w,x,O,k,C,T,A,I,N=e.arrow,R=void 0!==N&&N,_=e.prefixCls,P=void 0===_?"rc-dropdown":_,M=e.transitionName,L=e.animation,D=e.align,j=e.placement,F=e.placements,B=e.getPopupContainer,U=e.showAction,Z=e.hideAction,z=e.overlayClassName,H=e.overlayStyle,G=e.visible,$=e.trigger,W=void 0===$?["hover"]:$,V=e.autoFocus,q=e.overlay,Y=e.children,K=e.onVisibleChange,X=(0,u.Z)(e,S),Q=r.useState(),J=(0,c.Z)(Q,2),ee=J[0],et=J[1],en="visible"in e?G:ee,er=r.useRef(null),eo=r.useRef(null),ea=r.useRef(null);r.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==K||K(e)};o=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:V,overlayRef:eo}).visible,a=n.triggerRef,f=n.onVisibleChange,v=n.autoFocus,y=n.overlayRef,w=r.useRef(!1),x=function(){if(o){var e,t;null===(e=a.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==f||f(!1)}},O=function(){var e;return null!==(e=y.current)&&void 0!==e&&!!e.focus&&(y.current.focus(),w.current=!0,!0)},k=function(e){switch(e.keyCode){case g:x();break;case h:var t=!1;w.current||(t=O()),t?e.preventDefault():x()}},r.useEffect(function(){return o?(window.addEventListener("keydown",k),v&&(0,m.Z)(O,3),function(){window.removeEventListener("keydown",k),w.current=!1}):function(){w.current=!1}},[o]);var el=function(){return r.createElement(b,{ref:eo,overlay:q,prefixCls:P,arrow:R})},es=r.cloneElement(Y,{className:i()(null===(I=Y.props)||void 0===I?void 0:I.className,en&&(void 0!==(C=e.openClassName)?C:"".concat(P,"-open"))),ref:(0,p.Yr)(Y)?(0,p.sQ)(ea,Y.ref):void 0}),ec=Z;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),r.createElement(d.Z,(0,l.Z)({builtinPlacements:void 0===F?E:F},X,{prefixCls:P,ref:er,popupClassName:i()(z,(0,s.Z)({},"".concat(P,"-show-arrow"),R)),popupStyle:H,action:W,showAction:U,hideAction:ec,popupPlacement:void 0===j?"bottomLeft":j,popupAlign:D,popupTransitionName:M,popupAnimation:L,popupVisible:en,stretch:(T=e.minOverlayWidthMatchTrigger,A=e.alignPoint,"minOverlayWidthMatchTrigger"in e?T:!A)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),es)}),x=n(48563),O=n(44329),k=n(35704),C=n(51761),T=n(67966),A=n(21467),I=n(65823),N=n(76564),R=n(86718),_=n(57499),P=n(95781),M=n(81642),L=n(24750),D=n(11303),j=n(202),F=n(25926),B=n(58854),U=n(89869),Z=n(76585),z=n(80316),H=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(a)]:{["&".concat(a,"-danger:not(").concat(a,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},G=n(2638),$=n(8985);let W=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:Object.assign(Object.assign({},(0,D.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(i,"-btn")]:{["& > ".concat(l,"-down, & > ").concat(i,"-btn-icon > ").concat(l,"-down")]:{fontSize:f}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(l,"-down")]:{fontSize:f},["".concat(l,"-down::before")]:{transition:"transform ".concat(s)}},["".concat(t,"-wrap-open")]:{["".concat(l,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:j.fJ},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:j.Qt},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:j.Uw},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:j.ly}})},(0,U.ZP)(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,D.Qy)(e)),{["".concat(n,"-item-group-title")]:{padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorTextDescription,transition:"all ".concat(s)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(s),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat((0,$.bf)(c)," ").concat((0,$.bf)(m)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(s),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,D.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat((0,$.bf)(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat((0,$.bf)(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:p,backgroundColor:g,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})}},[(0,j.oN)(e,"slide-up"),(0,j.oN)(e,"slide-down"),(0,F.Fm)(e,"move-up"),(0,F.Fm)(e,"move-down"),(0,B._y)(e,"zoom-big")]]};var V=(0,Z.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=(0,z.TS)(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[W(a),H(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,U.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,G.w)(e))),q=n(92935);let Y=e=>{let t;let{menu:n,arrow:a,prefixCls:l,children:s,trigger:c,disabled:u,dropdownRender:d,getPopupContainer:p,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:E=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:A=!0,placement:D="",overlay:j,transitionName:F}=e,{getPopupContainer:B,getPrefixCls:U,direction:Z,dropdown:z}=r.useContext(_.E_);(0,N.ln)("Dropdown");let H=r.useMemo(()=>{let e=U();return void 0!==F?F:D.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")},[U,D,F]),G=r.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===Z?"bottomRight":"bottomLeft",[D,Z]),$=U("dropdown",l),W=(0,q.Z)($),[Y,K,X]=V($,W),[,Q]=(0,L.ZP)(),J=r.Children.only(s),ee=(0,I.Tm)(J,{className:i()("".concat($,"-trigger"),{["".concat($,"-rtl")]:"rtl"===Z},J.props.className),disabled:u}),et=u?[]:c;et&&et.includes("contextMenu")&&(t=!0);let[en,er]=(0,O.Z)(!1,{value:null!=h?h:v}),eo=(0,x.zX)(e=>{null==b||b(e,{source:"trigger"}),null==y||y(e),er(e)}),ea=i()(f,m,K,X,W,null==z?void 0:z.className,{["".concat($,"-rtl")]:"rtl"===Z}),ei=(0,T.Z)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:A,offset:Q.marginXXS,arrowWidth:a?Q.sizePopupArrow:0,borderRadius:Q.borderRadius}),el=r.useCallback(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==b||b(!1,{source:"menu"}),er(!1))},[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[es,ec]=(0,C.Cn)("Dropdown",null==g?void 0:g.zIndex),eu=r.createElement(w,Object.assign({alignPoint:t},(0,k.Z)(e,["rootClassName"]),{mouseEnterDelay:E,mouseLeaveDelay:S,visible:en,builtinPlacements:ei,arrow:!!a,overlayClassName:ea,prefixCls:$,getPopupContainer:p||B,transitionName:H,trigger:et,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(P.Z,Object.assign({},n)):"function"==typeof j?j():j,d&&(e=d(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(M.J,{prefixCls:"".concat($,"-menu"),rootClassName:i()(X,W),expandIcon:r.createElement("span",{className:"".concat($,"-menu-submenu-arrow")},r.createElement(o.Z,{className:"".concat($,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:el,validator:e=>{let{mode:t}=e}},e)},placement:G,onVisibleChange:eo,overlayStyle:Object.assign(Object.assign(Object.assign({},null==z?void 0:z.style),g),{zIndex:es})}),ee);return es&&(eu=r.createElement(R.Z.Provider,{value:ec},eu)),Y(eu)},K=(0,A.Z)(Y,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});Y._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(K,Object.assign({},e),r.createElement("span",null));var X=n(31413),Q=n(1861),J=n(65270),ee=n(92801),et=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let en=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(_.E_),{prefixCls:a,type:l="default",danger:s,disabled:c,loading:u,onClick:d,htmlType:p,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:v,trigger:y,align:E,open:S,onOpenChange:w,placement:x,getPopupContainer:O,href:k,icon:C=r.createElement(X.Z,null),title:T,buttonsRender:A=e=>e,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L}=e,D=et(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",a),F={menu:g,arrow:h,autoFocus:b,align:E,disabled:c,trigger:c?[]:y,onOpenChange:w,getPopupContainer:O||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:R,overlayStyle:P,destroyPopupOnHide:M,dropdownRender:L},{compactSize:B,compactItemClassnames:U}=(0,ee.ri)(j,o),Z=i()("".concat(j,"-button"),U,m);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=S),"placement"in e?F.placement=x:F.placement="rtl"===o?"bottomLeft":"bottomRight";let[z,H]=A([r.createElement(Q.ZP,{type:l,danger:s,disabled:c,loading:u,onClick:d,htmlType:p,href:k,title:T},f),r.createElement(Q.ZP,{type:l,danger:s,icon:C})]);return r.createElement(J.Z.Compact,Object.assign({className:Z,size:B,block:!0},D),z,r.createElement(Y,Object.assign({},F),H))};en.__ANT_BUTTON=!0,Y.Button=en;var er=Y},47137:function(e,t,n){n.d(t,{RV:function(){return s},Rk:function(){return c},Ux:function(){return d},aM:function(){return u},pg:function(){return p},q3:function(){return i},qI:function(){return l}});var r=n(64090),o=n(76570),a=n(35704);let i=r.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=r.createContext(null),s=e=>{let t=(0,a.Z)(e,["prefixCls"]);return r.createElement(o.RV,Object.assign({},t))},c=r.createContext({prefixCls:""}),u=r.createContext({}),d=e=>{let{children:t,status:n,override:o}=e,a=(0,r.useContext)(u),i=(0,r.useMemo)(()=>{let e=Object.assign({},a);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,a]);return r.createElement(u.Provider,{value:i},t)},p=(0,r.createContext)(void 0)},8443:function(e,t,n){var r=n(64090),o=n(47137);let a=["outlined","borderless","filled"];t.Z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=(0,r.useContext)(o.pg);t=void 0!==e?e:!1===n?"borderless":null!=i?i:"outlined";let l=a.includes(t);return[t,l]}},81583:function(e,t,n){n.d(t,{Z:function(){return eD}});var r=n(63787),o=n(16480),a=n.n(o),i=n(49367),l=n(64090),s=n(47387),c=n(47137);function u(e){let[t,n]=l.useState(e);return l.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var d=n(8985),p=n(11303),f=n(58854),m=n(46154),g=n(80316),h=n(76585),b=e=>{let{componentCls:t}=e,n="".concat(t,"-show-help"),r="".concat(t,"-show-help-item");return{[n]:{transition:"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:"height ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,",\n transform ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut," !important"),["&".concat(r,"-appear, &").concat(r,"-enter")]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},["&".concat(r,"-leave-active")]:{transform:"translateY(-5px)"}}}}};let v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:"".concat((0,d.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:"0 0 0 ".concat((0,d.bf)(e.controlOutlineWidth)," ").concat(e.controlOutline)},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y=(e,t)=>{let{formItemCls:n}=e;return{[n]:{["".concat(n,"-label > label")]:{height:t},["".concat(n,"-control-input")]:{minHeight:t}}}},E=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),v(e)),{["".concat(t,"-text")]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},y(e,e.controlHeightSM)),"&-large":Object.assign({},y(e,e.controlHeightLG))})}},S=e=>{let{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},["&-hidden,\n &-hidden.".concat(o,"-row")]:{display:"none"},"&-has-warning":{["".concat(t,"-split")]:{color:e.colorError}},"&-has-error":{["".concat(t,"-split")]:{color:e.colorWarning}},["".concat(t,"-label")]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,["> ".concat(n)]:{fontSize:e.fontSize,verticalAlign:"top"},["&".concat(t,"-required:not(").concat(t,"-required-mark-optional)::before")]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-optional")]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,["".concat(r,"-hide-required-mark &")]:{display:"none"}},["".concat(t,"-tooltip")]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},["&".concat(t,"-no-colon::after")]:{content:'"\\a0"'}}},["".concat(t,"-control")]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,["&:first-child:not([class^=\"'".concat(o,"-col-'\"]):not([class*=\"' ").concat(o,"-col-'\"])")]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:"color ".concat(e.motionDurationMid," ").concat(e.motionEaseOut)},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},["&-with-help ".concat(t,"-explain")]:{height:"auto",opacity:1},["".concat(t,"-feedback-icon")]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},w=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-horizontal")]:{["".concat(n,"-label")]:{flexGrow:0},["".concat(n,"-control")]:{flex:"1 1 0",minWidth:0},["".concat(n,"-label[class$='-24'], ").concat(n,"-label[class*='-24 ']")]:{["& + ".concat(n,"-control")]:{minWidth:"unset"}}}}},x=e=>{let{componentCls:t,formItemCls:n}=e;return{["".concat(t,"-inline")]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},["> ".concat(n,"-label,\n > ").concat(n,"-control")]:{display:"inline-block",verticalAlign:"top"},["> ".concat(n,"-label")]:{flex:"none"},["".concat(t,"-text")]:{display:"inline-block"},["".concat(n,"-has-feedback")]:{display:"inline-block"}}}}},O=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),k=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(n," ").concat(n,"-label")]:O(e),["".concat(t,":not(").concat(t,"-inline)")]:{[n]:{flexWrap:"wrap",["".concat(n,"-label, ").concat(n,"-control")]:{['&:not([class*=" '.concat(r,'-col-xs"])')]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},C=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{["".concat(t,"-vertical")]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},["".concat(t,"-item-control")]:{width:"100%"}}},["".concat(t,"-vertical ").concat(n,"-label,\n .").concat(r,"-col-24").concat(n,"-label,\n .").concat(r,"-col-xl-24").concat(n,"-label")]:O(e),["@media (max-width: ".concat((0,d.bf)(e.screenXSMax),")")]:[k(e),{[t]:{[".".concat(r,"-col-xs-24").concat(n,"-label")]:O(e)}}],["@media (max-width: ".concat((0,d.bf)(e.screenSMMax),")")]:{[t]:{[".".concat(r,"-col-sm-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenMDMax),")")]:{[t]:{[".".concat(r,"-col-md-24").concat(n,"-label")]:O(e)}},["@media (max-width: ".concat((0,d.bf)(e.screenLGMax),")")]:{[t]:{[".".concat(r,"-col-lg-24").concat(n,"-label")]:O(e)}}}},T=(e,t)=>(0,g.TS)(e,{formItemCls:"".concat(e.componentCls,"-item"),rootPrefixCls:t});var A=(0,h.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t,r=T(e,n);return[E(r),S(r),b(r),w(r),x(r),C(r),(0,m.Z)(r),f.kr]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:"0 0 ".concat(e.paddingXS,"px"),verticalLabelMargin:0}),{order:-1e3}),I=n(92935);let N=[];function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{key:"string"==typeof e?e:"".concat(t,"-").concat(r),error:e,errorStatus:n}}var _=e=>{let{help:t,helpStatus:n,errors:o=N,warnings:d=N,className:p,fieldId:f,onVisibleChanged:m}=e,{prefixCls:g}=l.useContext(c.Rk),h="".concat(g,"-item-explain"),b=(0,I.Z)(g),[v,y,E]=A(g,b),S=(0,l.useMemo)(()=>(0,s.Z)(g),[g]),w=u(o),x=u(d),O=l.useMemo(()=>null!=t?[R(t,"help",n)]:[].concat((0,r.Z)(w.map((e,t)=>R(e,"error","error",t))),(0,r.Z)(x.map((e,t)=>R(e,"warning","warning",t)))),[t,n,w,x]),k={};return f&&(k.id="".concat(f,"_help")),v(l.createElement(i.ZP,{motionDeadline:S.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!O.length,onVisibleChanged:m},e=>{let{className:t,style:n}=e;return l.createElement("div",Object.assign({},k,{className:a()(h,t,E,b,p,y),style:n,role:"alert"}),l.createElement(i.V4,Object.assign({keys:O},(0,s.Z)(g),{motionName:"".concat(g,"-show-help-item"),component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:i}=e;return l.createElement("div",{key:t,className:a()(o,{["".concat(h,"-").concat(r)]:r}),style:i},n)}))}))},P=n(76570),M=n(57499),L=n(17094),D=n(10693),j=n(97303);let F=e=>"object"==typeof e&&null!=e&&1===e.nodeType,B=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,U=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,z=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},H=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];let{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!F(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,f=[],m=e;for(;F(m)&&d(m);){if((m=z(m))===p){f.push(m);break}null!=m&&m===document.body&&U(m)&&!U(document.documentElement)||null!=m&&U(m,u)&&f.push(m)}let g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:E,top:S,right:w,bottom:x,left:O}=e.getBoundingClientRect(),{top:k,right:C,bottom:T,left:A}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===l||"nearest"===l?S-k:"end"===l?x+T:S+y/2-k+T,N="center"===s?O+E/2-A+C:"end"===s?w+C:O-A,R=[];for(let e=0;e=0&&O>=0&&x<=h&&w<=g&&S>=o&&x<=c&&O>=u&&w<=a)break;let d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10),A=0,_=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-T:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)A="start"===l?I:"end"===l?I-h:"nearest"===l?Z(v,v+h,h,k,T,v+I,v+I+y,y):I-h/2,_="start"===s?N:"center"===s?N-g/2:"end"===s?N-g:Z(b,b+g,g,m,C,b+N,b+N+E,E),A=Math.max(0,A+v),_=Math.max(0,_+b);else{A="start"===l?I-o-k:"end"===l?I-c+T+M:"nearest"===l?Z(o,c,n,k,T+M,I,I+y,y):I-(o+n/2)+M/2,_="start"===s?N-u-m:"center"===s?N-(u+r/2)+P/2:"end"===s?N-a+C+P:Z(u,a,r,m,C+P,N,N+E,E);let{scrollLeft:e,scrollTop:i}=t;A=0===D?0:Math.max(0,Math.min(i+A/D,t.scrollHeight-n/D+M)),_=0===L?0:Math.max(0,Math.min(e+_/L,t.scrollWidth-r/L+P)),I+=i-A,N+=e-_}R.push({el:t,top:A,left:_})}return R},G=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"},$=["parentNode"];function W(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function V(e,t){if(!e.length)return;let n=e.join("_");return t?"".concat(t,"_").concat(n):$.includes(n)?"".concat("form_item","_").concat(n):n}function q(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function Y(e){return W(e).join("_")}function K(e){let[t]=(0,P.cI)(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let r=Y(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=V(W(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(H(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:a,left:i}of H(e,G(t))){let e=a-n.top+n.bottom,t=i-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{let t=Y(e);return n.current[t]}}),[e,t]);return[r]}var X=n(12519),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=l.forwardRef((e,t)=>{let n=l.useContext(L.Z),{getPrefixCls:r,direction:o,form:i}=l.useContext(M.E_),{prefixCls:s,className:u,rootClassName:d,size:p,disabled:f=n,form:m,colon:g,labelAlign:h,labelWrap:b,labelCol:v,wrapperCol:y,hideRequiredMark:E,layout:S="horizontal",scrollToFirstError:w,requiredMark:x,onFinishFailed:O,name:k,style:C,feedbackIcons:T,variant:N}=e,R=Q(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=(0,D.Z)(p),F=l.useContext(X.Z),B=(0,l.useMemo)(()=>void 0!==x?x:!E&&(!i||void 0===i.requiredMark||i.requiredMark),[E,x,i]),U=null!=g?g:null==i?void 0:i.colon,Z=r("form",s),z=(0,I.Z)(Z),[H,G,$]=A(Z,z),W=a()(Z,"".concat(Z,"-").concat(S),{["".concat(Z,"-hide-required-mark")]:!1===B,["".concat(Z,"-rtl")]:"rtl"===o,["".concat(Z,"-").concat(_)]:_},$,z,G,null==i?void 0:i.className,u,d),[V]=K(m),{__INTERNAL__:q}=V;q.name=k;let Y=(0,l.useMemo)(()=>({name:k,labelAlign:h,labelCol:v,labelWrap:b,wrapperCol:y,vertical:"vertical"===S,colon:U,requiredMark:B,itemRef:q.itemRef,form:V,feedbackIcons:T}),[k,h,v,y,S,U,B,V,T]);l.useImperativeHandle(t,()=>V);let J=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),V.scrollToField(t,n)}};return H(l.createElement(c.pg.Provider,{value:N},l.createElement(L.n,{disabled:f},l.createElement(j.Z.Provider,{value:_},l.createElement(c.RV,{validateMessages:F},l.createElement(c.q3.Provider,{value:Y},l.createElement(P.ZP,Object.assign({id:k},R,{name:k,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==w){J(w,t);return}i&&void 0!==i.scrollToFirstError&&J(i.scrollToFirstError,t)}},form:V,style:Object.assign(Object.assign({},null==i?void 0:i.style),C),className:W}))))))))});var ee=n(89211),et=n(74084),en=n(65823),er=n(76564),eo=n(33054);let ea=()=>{let{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(c.aM);return{status:e,errors:t,warnings:n}};ea.Context=c.aM;var ei=n(19223),el=n(73193),es=n(24800),ec=n(35704),eu=n(5056),ed=n(90791);let ep=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{["".concat(t,"-control")]:{display:"flex"}}}};var ef=(0,h.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;return[ep(T(e,n))]}),em=e=>{let{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:s,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g}=e,h="".concat(t,"-item"),b=l.useContext(c.q3),v=r||b.wrapperCol||{},y=a()("".concat(h,"-control"),v.className),E=l.useMemo(()=>Object.assign({},b),[b]);delete E.labelCol,delete E.wrapperCol;let S=l.createElement("div",{className:"".concat(h,"-control-input")},l.createElement("div",{className:"".concat(h,"-control-input-content")},o)),w=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=null!==m||i.length||s.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(c.Rk.Provider,{value:w},l.createElement(_,{fieldId:f,errors:i,warnings:s,help:p,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:g})),!!m&&l.createElement("div",{style:{width:0,height:m}})):null,O={};f&&(O.id="".concat(f,"_extra"));let k=d?l.createElement("div",Object.assign({},O,{className:"".concat(h,"-extra")}),d):null,C=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:S,errorList:x,extra:k}):l.createElement(l.Fragment,null,S,x,k);return l.createElement(c.q3.Provider,{value:E},l.createElement(ed.Z,Object.assign({},v,{className:y}),C),l.createElement(ef,{prefixCls:t}))},eg=n(14749),eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},eb=n(60688),ev=l.forwardRef(function(e,t){return l.createElement(eb.Z,(0,eg.Z)({},e,{ref:t,icon:eh}))}),ey=n(79474),eE=n(70595),eS=n(1460),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ex=e=>{var t;let{prefixCls:n,label:r,htmlFor:o,labelCol:i,labelAlign:s,colon:u,required:d,requiredMark:p,tooltip:f}=e,[m]=(0,eE.Z)("Form"),{vertical:g,labelAlign:h,labelCol:b,labelWrap:v,colon:y}=l.useContext(c.q3);if(!r)return null;let E=i||b||{},S="".concat(n,"-item-label"),w=a()(S,"left"===(s||h)&&"".concat(S,"-left"),E.className,{["".concat(S,"-wrap")]:!!v}),x=r,O=!0===u||!1!==y&&!1!==u;O&&!g&&"string"==typeof r&&""!==r.trim()&&(x=r.replace(/[:|:]\s*$/,""));let k=f?"object"!=typeof f||l.isValidElement(f)?{title:f}:f:null;if(k){let{icon:e=l.createElement(ev,null)}=k,t=ew(k,["icon"]),r=l.createElement(eS.Z,Object.assign({},t),l.cloneElement(e,{className:"".concat(n,"-item-tooltip"),title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));x=l.createElement(l.Fragment,null,x,r)}let C="optional"===p,T="function"==typeof p;T?x=p(x,{required:!!d}):C&&!d&&(x=l.createElement(l.Fragment,null,x,l.createElement("span",{className:"".concat(n,"-item-optional"),title:""},(null==m?void 0:m.optional)||(null===(t=ey.Z.Form)||void 0===t?void 0:t.optional))));let A=a()({["".concat(n,"-item-required")]:d,["".concat(n,"-item-required-mark-optional")]:C||T,["".concat(n,"-item-no-colon")]:!O});return l.createElement(ed.Z,Object.assign({},E,{className:w}),l.createElement("label",{htmlFor:o,className:A,title:"string"==typeof r?r:""},x))},eO=n(99537),ek=n(77136),eC=n(20653),eT=n(66155);let eA={success:eO.Z,warning:eC.Z,error:ek.Z,validating:eT.Z};function eI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:s,meta:u,noStyle:d}=e,p="".concat(s,"-item"),{feedbackIcons:f}=l.useContext(c.q3),m=q(n,r,u,null,!!o,i),{isFormItemInput:g,status:h,hasFeedback:b,feedbackIcon:v}=l.useContext(c.aM),y=l.useMemo(()=>{var e;let t;if(o){let i=!0!==o&&o.icons||f,s=m&&(null===(e=null==i?void 0:i({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),c=m&&eA[m];t=!1!==s&&c?l.createElement("span",{className:a()("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(m))},s||l.createElement(c,null)):null}let i={status:m||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return d&&(i.status=(null!=m?m:h)||"",i.isFormItemInput=g,i.hasFeedback=!!(null!=o?o:b),i.feedbackIcon=void 0!==o?i.feedbackIcon:v),i},[m,o,d,g,h]);return l.createElement(c.aM.Provider,{value:y},t)}var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eR(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:s,warnings:d,validateStatus:p,meta:f,hasFeedback:m,hidden:g,children:h,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:E}=e,S=eN(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),w="".concat(t,"-item"),{requiredMark:x}=l.useContext(c.q3),O=l.useRef(null),k=u(s),C=u(d),T=null!=i,A=!!(T||s.length||d.length),I=!!O.current&&(0,el.Z)(O.current),[N,R]=l.useState(null);(0,es.Z)(()=>{A&&O.current&&R(parseInt(getComputedStyle(O.current).marginBottom,10))},[A,I]);let _=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return q(e?k:f.errors,e?C:f.warnings,f,"",!!m,p)}(),P=a()(w,n,r,{["".concat(w,"-with-help")]:T||k.length||C.length,["".concat(w,"-has-feedback")]:_&&m,["".concat(w,"-has-success")]:"success"===_,["".concat(w,"-has-warning")]:"warning"===_,["".concat(w,"-has-error")]:"error"===_,["".concat(w,"-is-validating")]:"validating"===_,["".concat(w,"-hidden")]:g});return l.createElement("div",{className:P,style:o,ref:O},l.createElement(eu.Z,Object.assign({className:"".concat(w,"-row")},(0,ec.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(ex,Object.assign({htmlFor:b},e,{requiredMark:x,required:null!=v?v:y,prefixCls:t})),l.createElement(em,Object.assign({},e,f,{errors:k,warnings:C,prefixCls:t,status:_,help:i,marginBottom:N,onErrorVisibleChanged:e=>{e||R(null)}}),l.createElement(c.qI.Provider,{value:E},l.createElement(eI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:_},h)))),!!N&&l.createElement("div",{className:"".concat(w,"-margin-offset"),style:{marginBottom:-N}}))}let e_=l.memo(e=>{let{children:t}=e;return t},(e,t)=>(function(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function eP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eM=function(e){let{name:t,noStyle:n,className:o,dependencies:i,prefixCls:s,shouldUpdate:u,rules:d,children:p,required:f,label:m,messageVariables:g,trigger:h="onChange",validateTrigger:b,hidden:v,help:y}=e,{getPrefixCls:E}=l.useContext(M.E_),{name:S}=l.useContext(c.q3),w=function(e){if("function"==typeof e)return e;let t=(0,eo.Z)(e);return t.length<=1?t[0]:t}(p),x="function"==typeof w,O=l.useContext(c.qI),{validateTrigger:k}=l.useContext(P.zb),C=void 0!==b?b:k,T=null!=t,N=E("form",s),R=(0,I.Z)(N),[_,L,D]=A(N,R);(0,er.ln)("Form.Item");let j=l.useContext(P.ZM),F=l.useRef(),[B,U]=function(e){let[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),a=(0,l.useRef)(!1);return l.useEffect(()=>(a.current=!1,()=>{a.current=!0,ei.Z.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=(0,ei.Z)(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[Z,z]=(0,ee.Z)(()=>eP()),H=(e,t)=>{U(n=>{let o=Object.assign({},n),a=[].concat((0,r.Z)(e.name.slice(0,-1)),(0,r.Z)(t)).join("__SPLIT__");return e.destroy?delete o[a]:o[a]=e,o})},[G,$]=l.useMemo(()=>{let e=(0,r.Z)(Z.errors),t=(0,r.Z)(Z.warnings);return Object.values(B).forEach(n=>{e.push.apply(e,(0,r.Z)(n.errors||[])),t.push.apply(t,(0,r.Z)(n.warnings||[]))}),[e,t]},[B,Z.errors,Z.warnings]),q=function(){let{itemRef:e}=l.useContext(c.q3),t=l.useRef({});return function(n,r){let o=r&&"object"==typeof r&&r.ref,a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=(0,et.sQ)(e(n),o)),t.current.ref}}();function Y(t,r,i){return n&&!v?l.createElement(eI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:Z,errors:G,warnings:$,noStyle:!0},t):l.createElement(eR,Object.assign({key:"row"},e,{className:a()(o,D,R,L),prefixCls:N,fieldId:r,isRequired:i,errors:G,warnings:$,meta:Z,onSubItemMetaChange:H}),t)}if(!T&&!x&&!i)return _(Y(w));let K={};return"string"==typeof m?K.label=m:t&&(K.label=String(t)),g&&(K=Object.assign(Object.assign({},K),g)),_(l.createElement(P.gN,Object.assign({},e,{messageVariables:K,trigger:h,validateTrigger:C,onMetaChange:e=>{let t=null==j?void 0:j.getKey(e.name);if(z(e.destroy?eP():e,!0),n&&!1!==y&&O){let n=e.name;if(e.destroy)n=F.current||n;else if(void 0!==t){let[e,o]=t;n=[e].concat((0,r.Z)(o)),F.current=n}O(e,n)}}}),(n,o,a)=>{let s=W(t).length&&o?o.name:[],c=V(s,S),p=void 0!==f?f:!!(d&&d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return t&&t.required&&!t.warningOnly}return!1})),m=Object.assign({},n),g=null;if(Array.isArray(w)&&T)g=w;else if(x&&(!(u||i)||T));else if(!i||x||T){if((0,en.l$)(w)){let t=Object.assign(Object.assign({},w.props),m);if(t.id||(t.id=c),y||G.length>0||$.length>0||e.extra){let n=[];(y||G.length>0)&&n.push("".concat(c,"_help")),e.extra&&n.push("".concat(c,"_extra")),t["aria-describedby"]=n.join(" ")}G.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),(0,et.Yr)(w)&&(t.ref=q(s,w)),new Set([].concat((0,r.Z)(W(h)),(0,r.Z)(W(C)))).forEach(e=>{t[e]=function(){for(var t,n,r,o=arguments.length,a=Array(o),i=0;it.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};J.Item=eM,J.List=e=>{var{prefixCls:t,children:n}=e,r=eL(e,["prefixCls","children"]);let{getPrefixCls:o}=l.useContext(M.E_),a=o("form",t),i=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(P.aV,Object.assign({},r),(e,t,r)=>l.createElement(c.Rk.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},J.ErrorList=_,J.useForm=K,J.useFormInstance=function(){let{form:e}=(0,l.useContext)(c.q3);return e},J.useWatch=P.qo,J.Provider=c.RV,J.create=()=>{};var eD=J},12519:function(e,t,n){var r=n(64090);t.Z=(0,r.createContext)(void 0)},24305:function(e,t,n){let r=(0,n(64090).createContext)({});t.Z=r},90791:function(e,t,n){var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(24305),s=n(37148),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let u=["xs","sm","md","lg","xl","xxl"],d=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o}=r.useContext(i.E_),{gutter:d,wrap:p}=r.useContext(l.Z),{prefixCls:f,span:m,order:g,offset:h,push:b,pull:v,className:y,children:E,flex:S,style:w}=e,x=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=n("col",f),[k,C,T]=(0,s.cG)(O),A={};u.forEach(t=>{let n={},r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete x[t],A=Object.assign(Object.assign({},A),{["".concat(O,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(O,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(O,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(O,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(O,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(O,"-").concat(t,"-flex-").concat(n.flex)]:n.flex||"auto"===n.flex,["".concat(O,"-rtl")]:"rtl"===o})});let I=a()(O,{["".concat(O,"-").concat(m)]:void 0!==m,["".concat(O,"-order-").concat(g)]:g,["".concat(O,"-offset-").concat(h)]:h,["".concat(O,"-push-").concat(b)]:b,["".concat(O,"-pull-").concat(v)]:v},y,A,C,T),N={};if(d&&d[0]>0){let e=d[0]/2;N.paddingLeft=e,N.paddingRight=e}return S&&(N.flex="number"==typeof S?"".concat(S," ").concat(S," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(S)?"0 0 ".concat(S):S,!1!==p||N.minWidth||(N.minWidth=0)),k(r.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign({},N),w),className:I,ref:t}),E))});t.Z=d},5056:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(64090),o=n(16480),a=n.n(o),i=n(24750);let l=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),c=e=>{let t=[].concat(l).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),a="screen".concat(o,"Min"),i="screen".concat(o);if(!(e[a]<=e[i]))throw Error("".concat(a,"<=").concat(i," fails : !(").concat(e[a],"<=").concat(e[i],")"));if(rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m(e,t){let[n,o]=r.useState("string"==typeof e?e:""),a=()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{a()},[JSON.stringify(e),t]),n}var g=r.forwardRef((e,t)=>{let{prefixCls:n,justify:o,align:g,className:h,style:b,children:v,gutter:y=0,wrap:E}=e,S=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=r.useContext(u.E_),[O,k]=r.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,T]=r.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=m(g,C),I=m(o,C),N=r.useRef(y),R=function(){let[,e]=(0,i.ZP)(),t=s(c(e));return r.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}();r.useEffect(()=>{let e=R.subscribe(e=>{T(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&k(e)});return()=>R.unsubscribe(e)},[]);let _=w("row",n),[P,M,L]=(0,p.VM)(_),D=(()=>{let e=[void 0,void 0];return(Array.isArray(y)?y:[y,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(D[0]/2):void 0;B&&(F.marginLeft=B,F.marginRight=B),[,F.rowGap]=D;let[U,Z]=D,z=r.useMemo(()=>({gutter:[U,Z],wrap:E}),[U,Z,E]);return P(r.createElement(d.Z.Provider,{value:z},r.createElement("div",Object.assign({},S,{className:j,style:Object.assign(Object.assign({},F),b),ref:t}),v)))})},37148:function(e,t,n){n.d(t,{VM:function(){return u},cG:function(){return d}});var r=n(8985),o=n(76585),a=n(80316);let i=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{let{componentCls:n,gridColumns:r}=e,o={};for(let e=r;e>=0;e--)0===e?(o["".concat(n).concat(t,"-").concat(e)]={display:"none"},o["".concat(n,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:0},o["".concat(n).concat(t,"-order-").concat(e)]={order:0}):(o["".concat(n).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/r*100,"%"),maxWidth:"".concat(e/r*100,"%")}],o["".concat(n).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/r*100,"%")},o["".concat(n).concat(t,"-order-").concat(e)]={order:e});return o},s=(e,t)=>l(e,t),c=(e,t,n)=>({["@media (min-width: ".concat((0,r.bf)(t),")")]:Object.assign({},s(e,n))}),u=(0,o.I$)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),d=(0,o.I$)("Grid",e=>{let t=(0,a.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>c(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},88707:function(e,t,n){n.d(t,{Z:function(){return em}});var r=n(64090),o=n(20383),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c=n(16480),u=n.n(c),d=n(50833),p=n(6976),f=n(80406),m=n(6787),g=n(47365),h=n(65127);function b(){return"function"==typeof BigInt}function v(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function y(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function E(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function S(e){var t=String(e);if(E(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&x(t)?t.length-t.indexOf(".")-1:0}function w(e){var t=String(e);if(E(e)){if(e>Number.MAX_SAFE_INTEGER)return String(b()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":y("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),k=function(){function e(t){if((0,g.Z)(this,e),(0,d.Z)(this,"origin",""),(0,d.Z)(this,"number",void 0),(0,d.Z)(this,"empty",void 0),v(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,h.Z)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":w(this.number):this.origin}}]),e}();function C(e){return b()?new O(e):new k(e)}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=y(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?T(C(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var A=n(90089),I=n(24800),N=n(74084),R=n(53850),_=n(76158),P=function(){var e=(0,r.useState)(!1),t=(0,f.Z)(e,2),n=t[0],o=t[1];return(0,I.Z)(function(){o((0,_.Z)())},[]),n},M=n(19223);function L(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,l=e.downDisabled,s=e.onStep,c=r.useRef(),p=r.useRef([]),f=r.useRef();f.current=s;var m=function(){clearTimeout(c.current)},g=function(e,t){e.preventDefault(),m(),f.current(t),c.current=setTimeout(function e(){f.current(t),c.current=setTimeout(e,200)},600)};if(r.useEffect(function(){return function(){m(),p.current.forEach(function(e){return M.Z.cancel(e)})}},[]),P())return null;var h="".concat(t,"-handler"),b=u()(h,"".concat(h,"-up"),(0,d.Z)({},"".concat(h,"-up-disabled"),i)),v=u()(h,"".concat(h,"-down"),(0,d.Z)({},"".concat(h,"-down-disabled"),l)),y=function(){return p.current.push((0,M.Z)(m))},E={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return r.createElement("div",{className:"".concat(h,"-wrap")},r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:b}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,a.Z)({},E,{onMouseDown:function(e){g(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:v}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function D(e){var t="number"==typeof e?w(e):y(e).fullStr;return t.includes(".")?y(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var j=n(8002),F=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","wheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],B=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],U=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Z=function(e){var t=C(e);return t.isInvalidate()?null:t},z=r.forwardRef(function(e,t){var n,o,i,l,s,c=e.prefixCls,g=void 0===c?"rc-input-number":c,h=e.className,b=e.style,v=e.min,y=e.max,E=e.step,O=void 0===E?1:E,k=e.defaultValue,A=e.value,_=e.disabled,P=e.readOnly,j=e.upHandler,B=e.downHandler,z=e.keyboard,H=e.wheel,G=e.controls,$=(e.classNames,e.stringMode),W=e.parser,V=e.formatter,q=e.precision,Y=e.decimalSeparator,K=e.onChange,X=e.onInput,Q=e.onPressEnter,J=e.onStep,ee=e.changeOnBlur,et=void 0===ee||ee,en=(0,m.Z)(e,F),er="".concat(g,"-input"),eo=r.useRef(null),ea=r.useState(!1),ei=(0,f.Z)(ea,2),el=ei[0],es=ei[1],ec=r.useRef(!1),eu=r.useRef(!1),ed=r.useRef(!1),ep=r.useState(function(){return C(null!=A?A:k)}),ef=(0,f.Z)(ep,2),em=ef[0],eg=ef[1],eh=r.useCallback(function(e,t){return t?void 0:q>=0?q:Math.max(S(e),S(O))},[q,O]),eb=r.useCallback(function(e){var t=String(e);if(W)return W(t);var n=t;return Y&&(n=n.replace(Y,".")),n.replace(/[^\w.-]+/g,"")},[W,Y]),ev=r.useRef(""),ey=r.useCallback(function(e,t){if(V)return V(e,{userTyping:t,input:String(ev.current)});var n="number"==typeof e?w(e):e;if(!t){var r=eh(n,t);x(n)&&(Y||r>=0)&&(n=T(n,Y||".",r))}return n},[V,eh,Y]),eE=r.useState(function(){var e=null!=k?k:A;return em.isInvalidate()&&["string","number"].includes((0,p.Z)(e))?Number.isNaN(e)?"":e:ey(em.toString(),!1)}),eS=(0,f.Z)(eE,2),ew=eS[0],ex=eS[1];function eO(e,t){ex(ey(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ev.current=ew;var ek=r.useMemo(function(){return Z(y)},[y,q]),eC=r.useMemo(function(){return Z(v)},[v,q]),eT=r.useMemo(function(){return!(!ek||!em||em.isInvalidate())&&ek.lessEquals(em)},[ek,em]),eA=r.useMemo(function(){return!(!eC||!em||em.isInvalidate())&&em.lessEquals(eC)},[eC,em]),eI=(n=eo.current,o=(0,r.useRef)(null),[function(){try{var e=n.selectionStart,t=n.selectionEnd,r=n.value,a=r.substring(0,e),i=r.substring(t);o.current={start:e,end:t,value:r,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(n&&o.current&&el)try{var e=n.value,t=o.current,r=t.beforeTxt,a=t.afterTxt,i=t.start,l=e.length;if(e.endsWith(a))l=e.length-o.current.afterTxt.length;else if(e.startsWith(r))l=r.length;else{var s=r[i-1],c=e.indexOf(s,i-1);-1!==c&&(l=c+1)}n.setSelectionRange(l,l)}catch(e){(0,R.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),eN=(0,f.Z)(eI,2),eR=eN[0],e_=eN[1],eP=function(e){return ek&&!e.lessEquals(ek)?ek:eC&&!eC.lessEquals(e)?eC:null},eM=function(e){return!eP(e)},eL=function(e,t){var n=e,r=eM(n)||n.isEmpty();if(n.isEmpty()||t||(n=eP(n)||n,r=!0),!P&&!_&&r){var o,a=n.toString(),i=eh(a,t);return i>=0&&!eM(n=C(T(a,".",i)))&&(n=C(T(a,".",i,!0))),n.equals(em)||(o=n,void 0===A&&eg(o),null==K||K(n.isEmpty()?null:U($,n)),void 0===A&&eO(n,t)),n}return em},eD=(i=(0,r.useRef)(0),l=function(){M.Z.cancel(i.current)},(0,r.useEffect)(function(){return l},[]),function(e){l(),i.current=(0,M.Z)(function(){e()})}),ej=function e(t){if(eR(),ev.current=t,ex(t),!eu.current){var n=C(eb(t));n.isNaN()||eL(n,!0)}null==X||X(t),eD(function(){var n=t;W||(n=t.replace(/。/g,".")),n!==t&&e(n)})},eF=function(e){if((!e||!eT)&&(e||!eA)){ec.current=!1;var t,n=C(ed.current?D(O):O);e||(n=n.negate());var r=eL((em||C(0)).add(n.toString()),!1);null==J||J(U($,r),{offset:ed.current?D(O):O,type:e?"up":"down"}),null===(t=eo.current)||void 0===t||t.focus()}},eB=function(e){var t=C(eb(ew)),n=t;n=t.isNaN()?eL(em,e):eL(t,e),void 0!==A?eO(em,!1):n.isNaN()||eO(n,!1)};return r.useEffect(function(){var e=function(e){!1!==H&&(eF(e.deltaY<0),e.preventDefault())},t=eo.current;if(t)return t.addEventListener("wheel",e),function(){return t.removeEventListener("wheel",e)}},[eF]),(0,I.o)(function(){em.isInvalidate()||eO(em,!1)},[q,V]),(0,I.o)(function(){var e=C(A);eg(e);var t=C(eb(ew));e.equals(t)&&ec.current&&!V||eO(e,ec.current)},[A]),(0,I.o)(function(){V&&e_()},[ew]),r.createElement("div",{className:u()(g,h,(s={},(0,d.Z)(s,"".concat(g,"-focused"),el),(0,d.Z)(s,"".concat(g,"-disabled"),_),(0,d.Z)(s,"".concat(g,"-readonly"),P),(0,d.Z)(s,"".concat(g,"-not-a-number"),em.isNaN()),(0,d.Z)(s,"".concat(g,"-out-of-range"),!em.isInvalidate()&&!eM(em)),s)),style:b,onFocus:function(){es(!0)},onBlur:function(){et&&eB(!1),es(!1),ec.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;ec.current=!0,ed.current=n,"Enter"===t&&(eu.current||(ec.current=!1),eB(!1),null==Q||Q(e)),!1!==z&&!eu.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eF("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){ec.current=!1,ed.current=!1},onCompositionStart:function(){eu.current=!0},onCompositionEnd:function(){eu.current=!1,ej(eo.current.value)},onBeforeInput:function(){ec.current=!0}},(void 0===G||G)&&r.createElement(L,{prefixCls:g,upNode:j,downNode:B,upDisabled:eT,downDisabled:eA,onStep:eF}),r.createElement("div",{className:"".concat(er,"-wrap")},r.createElement("input",(0,a.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":em.isInvalidate()?null:em.toString(),step:O},en,{ref:(0,N.sQ)(eo,t),className:er,value:ew,onChange:function(e){ej(e.target.value)},disabled:_,readOnly:P}))))}),H=r.forwardRef(function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,f=e.classNames,g=(0,m.Z)(e,B),h=r.useRef(null);return r.createElement(A.Q,{className:p,triggerFocus:function(e){h.current&&(0,j.nH)(h.current,e)},prefixCls:i,value:l,disabled:n,style:o,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},r.createElement(z,(0,a.Z)({prefixCls:i,disabled:n,ref:(0,N.sQ)(h,t),className:null==f?void 0:f.input},g)))});H.displayName="InputNumber";var G=n(47794),$=n(57499),W=n(54165),V=n(17094),q=n(92935),Y=n(10693),K=n(47137),X=n(8443),Q=n(92801),J=n(8985),ee=n(94759),et=n(85980),en=n(61892),er=n(11303),eo=n(12288),ea=n(76585),ei=n(80316),el=n(6336);let es=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e,a="lg"===t?o:r;return{["&-".concat(t)]:{["".concat(n,"-handler-wrap")]:{borderStartEndRadius:a,borderEndEndRadius:a},["".concat(n,"-handler-up")]:{borderStartEndRadius:a},["".concat(n,"-handler-down")]:{borderEndEndRadius:a}}}},ec=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:f,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:b,handleBg:v,handleActiveBg:y,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:w,controlWidth:x,handleOpacity:O,handleBorderColor:k,filledHandleBg:C,lineHeightLG:T,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.ik)(e)),{display:"inline-block",width:x,margin:0,padding:0,borderRadius:o}),(0,en.qG)(e,{["".concat(t,"-handler-wrap")]:{background:v,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}}})),(0,en.H8)(e,{["".concat(t,"-handler-wrap")]:{background:C,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k)}},"&:focus-within":{["".concat(t,"-handler-wrap")]:{background:v}}})),(0,en.Mu)(e)),{"&-rtl":{direction:"rtl",["".concat(t,"-input")]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:w,["input".concat(t,"-input")]:{height:A(i).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(d)," ").concat((0,J.bf)(p))}},"&-sm":{padding:0,borderRadius:S,["input".concat(t,"-input")]:{height:A(l).sub(A(n).mul(2)).equal(),padding:"".concat((0,J.bf)(u)," ").concat((0,J.bf)(c))}},"&-out-of-range":{["".concat(t,"-input-wrap")]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),(0,ee.s7)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",["".concat(t,"-affix-wrapper")]:{width:"100%"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:S}}},(0,en.ir)(e)),(0,en.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled ".concat(t,"-input")]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,er.Wf)(e)),{width:"100%",padding:"".concat((0,J.bf)(b)," ").concat((0,J.bf)(h)),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:"all ".concat(m," linear"),appearance:"textfield",fontSize:"inherit"}),(0,ee.nz)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({["&:hover ".concat(t,"-handler-wrap, &-focused ").concat(t,"-handler-wrap")]:{opacity:1},["".concat(t,"-handler-wrap")]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity ".concat(m," linear ").concat(m),["".concat(t,"-handler")]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},["".concat(t,"-handler")]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:"".concat((0,J.bf)(n)," ").concat(r," ").concat(k),transition:"all ".concat(m," linear"),"&:active":{background:y},"&:hover":{height:"60%",["\n ".concat(t,"-handler-up-inner,\n ").concat(t,"-handler-down-inner\n ")]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,er.Ro)()),{color:f,transition:"all ".concat(m," linear"),userSelect:"none"})},["".concat(t,"-handler-up")]:{borderStartEndRadius:o},["".concat(t,"-handler-down")]:{borderEndEndRadius:o}},es(e,"lg")),es(e,"sm")),{"&-disabled, &-readonly":{["".concat(t,"-handler-wrap")]:{display:"none"},["".concat(t,"-input")]:{color:"inherit"}},["\n ".concat(t,"-handler-up-disabled,\n ").concat(t,"-handler-down-disabled\n ")]:{cursor:"not-allowed"},["\n ".concat(t,"-handler-up-disabled:hover &-handler-up-inner,\n ").concat(t,"-handler-down-disabled:hover &-handler-down-inner\n ")]:{color:E}})}]},eu=e=>{let{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign({["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(n)," 0")}},(0,ee.ik)(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(u)," 0")}},"&-sm":{borderRadius:l,paddingInlineStart:c,["input".concat(t,"-input")]:{padding:"".concat((0,J.bf)(d)," 0")}},["&:not(".concat(t,"-disabled):hover")]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > ".concat(t,"-disabled")]:{background:"transparent"},["> div".concat(t)]:{width:"100%",border:"none",outline:"none",["&".concat(t,"-focused")]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t,"-handler-wrap")]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}};var ed=(0,ea.I$)("InputNumber",e=>{let t=(0,ei.TS)(e,(0,et.e)(e));return[ec(t),eu(t),(0,eo.c)(t)]},e=>{var t;let n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},(0,et.T)(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new el.C(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})},{unitless:{handleOpacity:!0}}),ep=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ef=r.forwardRef((e,t)=>{let{getPrefixCls:n,direction:a}=r.useContext($.E_),i=r.useRef(null);r.useImperativeHandle(t,()=>i.current);let{className:l,rootClassName:c,size:d,disabled:p,prefixCls:f,addonBefore:m,addonAfter:g,prefix:h,bordered:b,readOnly:v,status:y,controls:E,variant:S}=e,w=ep(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),x=n("input-number",f),O=(0,q.Z)(x),[k,C,T]=ed(x,O),{compactSize:A,compactItemClassnames:I}=(0,Q.ri)(x,a),N=r.createElement(s,{className:"".concat(x,"-handler-up-inner")}),R=r.createElement(o.Z,{className:"".concat(x,"-handler-down-inner")});"object"==typeof E&&(N=void 0===E.upIcon?N:r.createElement("span",{className:"".concat(x,"-handler-up-inner")},E.upIcon),R=void 0===E.downIcon?R:r.createElement("span",{className:"".concat(x,"-handler-down-inner")},E.downIcon));let{hasFeedback:_,status:P,isFormItemInput:M,feedbackIcon:L}=r.useContext(K.aM),D=(0,G.F)(P,y),j=(0,Y.Z)(e=>{var t;return null!==(t=null!=d?d:A)&&void 0!==t?t:e}),F=r.useContext(V.Z),[B,U]=(0,X.Z)(S,b),Z=_&&r.createElement(r.Fragment,null,L),z=u()({["".concat(x,"-lg")]:"large"===j,["".concat(x,"-sm")]:"small"===j,["".concat(x,"-rtl")]:"rtl"===a,["".concat(x,"-in-form-item")]:M},C),W="".concat(x,"-group");return k(r.createElement(H,Object.assign({ref:i,disabled:null!=p?p:F,className:u()(T,O,l,c,I),upHandler:N,downHandler:R,prefixCls:x,readOnly:v,controls:"boolean"==typeof E?E:void 0,prefix:h,suffix:Z,addonAfter:g&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},g)),addonBefore:m&&r.createElement(Q.BR,null,r.createElement(K.Ux,{override:!0,status:!0},m)),classNames:{input:z,variant:u()({["".concat(x,"-").concat(B)]:U},(0,G.Z)(x,D,_)),affixWrapper:u()({["".concat(x,"-affix-wrapper-sm")]:"small"===j,["".concat(x,"-affix-wrapper-lg")]:"large"===j,["".concat(x,"-affix-wrapper-rtl")]:"rtl"===a},C),wrapper:u()({["".concat(W,"-rtl")]:"rtl"===a},C),groupWrapper:u()({["".concat(x,"-group-wrapper-sm")]:"small"===j,["".concat(x,"-group-wrapper-lg")]:"large"===j,["".concat(x,"-group-wrapper-rtl")]:"rtl"===a,["".concat(x,"-group-wrapper-").concat(B)]:U},(0,G.Z)("".concat(x,"-group-wrapper"),D,_),C)}},w)))});ef._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(W.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(ef,Object.assign({},e)));var em=ef},88921:function(e,t,n){n.d(t,{Z:function(){return w},n:function(){return S}});var r=n(64090),o=n(16480),a=n.n(o),i=n(90089),l=n(74084),s=n(47794),c=n(57499),u=n(17094),d=n(10693),p=n(47137),f=n(92801),m=n(52274),g=n(94759),h=n(92935),b=n(8443),v=n(77136),y=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(v.Z,null)}),t},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function S(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var w=(0,r.forwardRef)((e,t)=>{var n;let{prefixCls:o,bordered:v=!0,status:S,size:w,disabled:x,onBlur:O,onFocus:k,suffix:C,allowClear:T,addonAfter:A,addonBefore:I,className:N,style:R,styles:_,rootClassName:P,onChange:M,classNames:L,variant:D}=e,j=E(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:F,direction:B,input:U}=r.useContext(c.E_),Z=F("input",o),z=(0,r.useRef)(null),H=(0,h.Z)(Z),[G,$,W]=(0,g.ZP)(Z,H),{compactSize:V,compactItemClassnames:q}=(0,f.ri)(Z,B),Y=(0,d.Z)(e=>{var t;return null!==(t=null!=w?w:V)&&void 0!==t?t:e}),K=r.useContext(u.Z),{status:X,hasFeedback:Q,feedbackIcon:J}=(0,r.useContext)(p.aM),ee=(0,s.F)(X,S),et=!!(e.prefix||e.suffix||e.allowClear||e.showCount)||!!Q;(0,r.useRef)(et);let en=(0,m.Z)(z,!0),er=(Q||C)&&r.createElement(r.Fragment,null,C,Q&&J),eo=y(T),[ea,ei]=(0,b.Z)(D,v);return G(r.createElement(i.Z,Object.assign({ref:(0,l.sQ)(t,z),prefixCls:Z,autoComplete:null==U?void 0:U.autoComplete},j,{disabled:null!=x?x:K,onBlur:e=>{en(),null==O||O(e)},onFocus:e=>{en(),null==k||k(e)},style:Object.assign(Object.assign({},null==U?void 0:U.style),R),styles:Object.assign(Object.assign({},null==U?void 0:U.styles),_),suffix:er,allowClear:eo,className:a()(N,P,W,H,q,null==U?void 0:U.className),onChange:e=>{en(),null==M||M(e)},addonAfter:A&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},A)),addonBefore:I&&r.createElement(f.BR,null,r.createElement(p.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},L),null==U?void 0:U.classNames),{input:a()({["".concat(Z,"-sm")]:"small"===Y,["".concat(Z,"-lg")]:"large"===Y,["".concat(Z,"-rtl")]:"rtl"===B},null==L?void 0:L.input,null===(n=null==U?void 0:U.classNames)||void 0===n?void 0:n.input,$),variant:a()({["".concat(Z,"-").concat(ea)]:ei},(0,s.Z)(Z,ee)),affixWrapper:a()({["".concat(Z,"-affix-wrapper-sm")]:"small"===Y,["".concat(Z,"-affix-wrapper-lg")]:"large"===Y,["".concat(Z,"-affix-wrapper-rtl")]:"rtl"===B},$),wrapper:a()({["".concat(Z,"-group-rtl")]:"rtl"===B},$),groupWrapper:a()({["".concat(Z,"-group-wrapper-sm")]:"small"===Y,["".concat(Z,"-group-wrapper-lg")]:"large"===Y,["".concat(Z,"-group-wrapper-rtl")]:"rtl"===B,["".concat(Z,"-group-wrapper-").concat(ea)]:ei},(0,s.Z)("".concat(Z,"-group-wrapper"),ee,Q),$)})})))})},78578:function(e,t,n){n.d(t,{Z:function(){return F}});var r,o=n(64090),a=n(77136),i=n(16480),l=n.n(i),s=n(14749),c=n(50833),u=n(5239),d=n(63787),p=n(80406),f=n(6787),m=n(90089),g=n(44607),h=n(8002),b=n(44329),v=n(6976),y=n(46505),E=n(24800),S=n(19223),w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={},O=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=o.forwardRef(function(e,t){var n=e.prefixCls,a=(e.onPressEnter,e.defaultValue),i=e.value,d=e.autoSize,m=e.onResize,g=e.className,h=e.style,k=e.disabled,C=e.onChange,T=(e.onInternalAutoSize,(0,f.Z)(e,O)),A=(0,b.Z)(a,{value:i,postState:function(e){return null!=e?e:""}}),I=(0,p.Z)(A,2),N=I[0],R=I[1],_=o.useRef();o.useImperativeHandle(t,function(){return{textArea:_.current}});var P=o.useMemo(function(){return d&&"object"===(0,v.Z)(d)?[d.minRows,d.maxRows]:[]},[d]),M=(0,p.Z)(P,2),L=M[0],D=M[1],j=!!d,F=function(){try{if(document.activeElement===_.current){var e=_.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;_.current.setSelectionRange(t,n),_.current.scrollTop=r}}catch(e){}},B=o.useState(2),U=(0,p.Z)(B,2),Z=U[0],z=U[1],H=o.useState(),G=(0,p.Z)(H,2),$=G[0],W=G[1],V=function(){z(0)};(0,E.Z)(function(){j&&V()},[i,L,D,j]),(0,E.Z)(function(){if(0===Z)z(1);else if(1===Z){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:w.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(x[n]=l),l}(e,n),l=i.paddingSize,s=i.borderSize,c=i.boxSizing,u=i.sizingStyle;r.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var d=void 0,p=void 0,f=r.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=l),null!==o||null!==a){r.value=" ";var m=r.scrollHeight-l;null!==o&&(d=m*o,"border-box"===c&&(d=d+l+s),f=Math.max(d,f)),null!==a&&(p=m*a,"border-box"===c&&(p=p+l+s),t=f>p?"":"hidden",f=Math.min(p,f))}var g={height:f,overflowY:t,resize:"none"};return d&&(g.minHeight=d),p&&(g.maxHeight=p),g}(_.current,!1,L,D);z(2),W(e)}else F()},[Z]);var q=o.useRef(),Y=function(){S.Z.cancel(q.current)};o.useEffect(function(){return Y},[]);var K=(0,u.Z)((0,u.Z)({},h),j?$:null);return(0===Z||1===Z)&&(K.overflowY="hidden",K.overflowX="hidden"),o.createElement(y.Z,{onResize:function(e){2===Z&&(null==m||m(e),d&&(Y(),q.current=(0,S.Z)(function(){V()})))},disabled:!(d||m)},o.createElement("textarea",(0,s.Z)({},T,{ref:_,style:K,className:l()(n,g,(0,c.Z)({},"".concat(n,"-disabled"),k)),disabled:k,value:N,onChange:function(e){R(e.target.value),null==C||C(e)}})))}),C=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],T=o.forwardRef(function(e,t){var n,r,a,i=e.defaultValue,v=e.value,y=e.onFocus,E=e.onBlur,S=e.onChange,w=e.allowClear,x=e.maxLength,O=e.onCompositionStart,T=e.onCompositionEnd,A=e.suffix,I=e.prefixCls,N=void 0===I?"rc-textarea":I,R=e.showCount,_=e.count,P=e.className,M=e.style,L=e.disabled,D=e.hidden,j=e.classNames,F=e.styles,B=e.onResize,U=(0,f.Z)(e,C),Z=(0,b.Z)(i,{value:v,defaultValue:i}),z=(0,p.Z)(Z,2),H=z[0],G=z[1],$=null==H?"":String(H),W=o.useState(!1),V=(0,p.Z)(W,2),q=V[0],Y=V[1],K=o.useRef(!1),X=o.useState(null),Q=(0,p.Z)(X,2),J=Q[0],ee=Q[1],et=(0,o.useRef)(null),en=function(){var e;return null===(e=et.current)||void 0===e?void 0:e.textArea},er=function(){en().focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:et.current,focus:er,blur:function(){en().blur()}}}),(0,o.useEffect)(function(){Y(function(e){return!L&&e})},[L]);var eo=o.useState(null),ea=(0,p.Z)(eo,2),ei=ea[0],el=ea[1];o.useEffect(function(){if(ei){var e;(e=en()).setSelectionRange.apply(e,(0,d.Z)(ei))}},[ei]);var es=(0,g.Z)(_,R),ec=null!==(n=es.max)&&void 0!==n?n:x,eu=Number(ec)>0,ed=es.strategy($),ep=!!ec&&ed>ec,ef=function(e,t){var n=t;!K.current&&es.exceedFormatter&&es.max&&es.strategy(t)>es.max&&(n=es.exceedFormatter(t,{max:es.max}),t!==n&&el([en().selectionStart||0,en().selectionEnd||0])),G(n),(0,h.rJ)(e.currentTarget,e,S,n)},em=A;es.show&&(a=es.showFormatter?es.showFormatter({value:$,count:ed,maxLength:ec}):"".concat(ed).concat(eu?" / ".concat(ec):""),em=o.createElement(o.Fragment,null,em,o.createElement("span",{className:l()("".concat(N,"-data-count"),null==j?void 0:j.count),style:null==F?void 0:F.count},a)));var eg=!U.autoSize&&!R&&!w;return o.createElement(m.Q,{value:$,allowClear:w,handleReset:function(e){G(""),er(),(0,h.rJ)(en(),e,S)},suffix:em,prefixCls:N,classNames:(0,u.Z)((0,u.Z)({},j),{},{affixWrapper:l()(null==j?void 0:j.affixWrapper,(r={},(0,c.Z)(r,"".concat(N,"-show-count"),R),(0,c.Z)(r,"".concat(N,"-textarea-allow-clear"),w),r))}),disabled:L,focused:q,className:l()(P,ep&&"".concat(N,"-out-of-range")),style:(0,u.Z)((0,u.Z)({},M),J&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof a?a:void 0}},hidden:D},o.createElement(k,(0,s.Z)({},U,{maxLength:x,onKeyDown:function(e){var t=U.onPressEnter,n=U.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){ef(e,e.target.value)},onFocus:function(e){Y(!0),null==y||y(e)},onBlur:function(e){Y(!1),null==E||E(e)},onCompositionStart:function(e){K.current=!0,null==O||O(e)},onCompositionEnd:function(e){K.current=!1,ef(e,e.currentTarget.value),null==T||T(e)},className:l()(null==j?void 0:j.textarea),style:(0,u.Z)((0,u.Z)({},null==F?void 0:F.textarea),{},{resize:null==M?void 0:M.resize}),disabled:L,prefixCls:N,onResize:function(e){var t;null==B||B(e),null!==(t=en())&&void 0!==t&&t.style.height&&ee(!0)},ref:et})))}),A=n(47794),I=n(57499),N=n(17094),R=n(10693),_=n(47137),P=n(88921),M=n(94759),L=n(92935),D=n(8443),j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},F=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:i,bordered:s=!0,size:c,disabled:u,status:d,allowClear:p,classNames:f,rootClassName:m,className:g,variant:h}=e,b=j(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:v,direction:y}=o.useContext(I.E_),E=(0,R.Z)(c),S=o.useContext(N.Z),{status:w,hasFeedback:x,feedbackIcon:O}=o.useContext(_.aM),k=(0,A.F)(w,d),C=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,P.n)(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}});let F=v("input",i);"object"==typeof p&&(null==p?void 0:p.clearIcon)?r=p:p&&(r={clearIcon:o.createElement(a.Z,null)});let B=(0,L.Z)(F),[U,Z,z]=(0,M.ZP)(F,B),[H,G]=(0,D.Z)(h,s);return U(o.createElement(T,Object.assign({},b,{disabled:null!=u?u:S,allowClear:r,className:l()(z,B,g,m),classNames:Object.assign(Object.assign({},f),{textarea:l()({["".concat(F,"-sm")]:"small"===E,["".concat(F,"-lg")]:"large"===E},Z,null==f?void 0:f.textarea),variant:l()({["".concat(F,"-").concat(H)]:G},(0,A.Z)(F,k)),affixWrapper:l()("".concat(F,"-textarea-affix-wrapper"),{["".concat(F,"-affix-wrapper-rtl")]:"rtl"===y,["".concat(F,"-affix-wrapper-sm")]:"small"===E,["".concat(F,"-affix-wrapper-lg")]:"large"===E,["".concat(F,"-textarea-show-count")]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},Z)}),prefixCls:F,suffix:x&&o.createElement("span",{className:"".concat(F,"-textarea-suffix")},O),ref:C})))})},52274:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(64090);function o(e,t){let n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}},44839:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(64090),o=n(16480),a=n.n(o),i=n(57499),l=n(47137),s=n(94759),c=n(88921),u=n(14749),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=n(60688),f=r.forwardRef(function(e,t){return r.createElement(p.Z,(0,u.Z)({},e,{ref:t,icon:d}))}),m=n(41311),g=n(35704),h=n(74084),b=n(52274),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=e=>e?r.createElement(m.Z,null):r.createElement(f,null),E={click:"onClick",hover:"onMouseOver"},S=r.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[l,s]=(0,r.useState)(()=>!!o&&n.visible),u=(0,r.useRef)(null);r.useEffect(()=>{o&&s(n.visible)},[o,n]);let d=(0,b.Z)(u),p=()=>{let{disabled:t}=e;t||(l&&d(),s(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:f,prefixCls:m,inputPrefixCls:S,size:w}=e,x=v(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=r.useContext(i.E_),k=O("input",S),C=O("input-password",m),T=n&&(t=>{let{action:n="click",iconRender:o=y}=e,a=E[n]||"",i=o(l);return r.cloneElement(r.isValidElement(i)?i:r.createElement("span",null,i),{[a]:p,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}})})(C),A=a()(C,f,{["".concat(C,"-").concat(w)]:!!w}),I=Object.assign(Object.assign({},(0,g.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:A,prefixCls:k,suffix:T});return w&&(I.size=w),r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(t,u)},I))});var w=n(96871),x=n(65823),O=n(1861),k=n(10693),C=n(92801),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=r.forwardRef((e,t)=>{let n;let{prefixCls:o,inputPrefixCls:l,className:s,size:u,suffix:d,enterButton:p=!1,addonAfter:f,loading:m,disabled:g,onSearch:b,onChange:v,onCompositionStart:y,onCompositionEnd:E}=e,S=T(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:A,direction:I}=r.useContext(i.E_),N=r.useRef(!1),R=A("input-search",o),_=A("input",l),{compactSize:P}=(0,C.ri)(R,I),M=(0,k.Z)(e=>{var t;return null!==(t=null!=u?u:P)&&void 0!==t?t:e}),L=r.useRef(null),D=e=>{var t;document.activeElement===(null===(t=L.current)||void 0===t?void 0:t.input)&&e.preventDefault()},j=e=>{var t,n;b&&b(null===(n=null===(t=L.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},F="boolean"==typeof p?r.createElement(w.Z,null):null,B="".concat(R,"-button"),U=p||{},Z=U.type&&!0===U.type.__ANT_BUTTON;n=Z||"button"===U.type?(0,x.Tm)(U,Object.assign({onMouseDown:D,onClick:e=>{var t,n;null===(n=null===(t=null==U?void 0:U.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),j(e)},key:"enterButton"},Z?{className:B,size:M}:{})):r.createElement(O.ZP,{className:B,type:p?"primary":void 0,size:M,disabled:g,key:"enterButton",onMouseDown:D,onClick:j,loading:m,icon:F},p),f&&(n=[n,(0,x.Tm)(f,{key:"addonAfter"})]);let z=a()(R,{["".concat(R,"-rtl")]:"rtl"===I,["".concat(R,"-").concat(M)]:!!M,["".concat(R,"-with-button")]:!!p},s);return r.createElement(c.Z,Object.assign({ref:(0,h.sQ)(L,t),onPressEnter:e=>{N.current||m||j(e)}},S,{size:M,onCompositionStart:e=>{N.current=!0,null==y||y(e)},onCompositionEnd:e=>{N.current=!1,null==E||E(e)},prefixCls:_,addonAfter:n,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&b&&b(e.target.value,e,{source:"clear"}),v&&v(e)},className:z,disabled:g}))});var I=n(78578);let N=c.Z;N.Group=e=>{let{getPrefixCls:t,direction:n}=(0,r.useContext)(i.E_),{prefixCls:o,className:c}=e,u=t("input-group",o),d=t("input"),[p,f]=(0,s.ZP)(d),m=a()(u,{["".concat(u,"-lg")]:"large"===e.size,["".concat(u,"-sm")]:"small"===e.size,["".concat(u,"-compact")]:e.compact,["".concat(u,"-rtl")]:"rtl"===n},f,c),g=(0,r.useContext)(l.aM),h=(0,r.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return p(r.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(l.aM.Provider,{value:h},e.children)))},N.Search=A,N.TextArea=I.Z,N.Password=S;var R=N},94759:function(e,t,n){n.d(t,{ik:function(){return f},nz:function(){return u},s7:function(){return m}});var r=n(8985),o=n(11303),a=n(12288),i=n(76585),l=n(80316),s=n(85980),c=n(61892);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:"".concat((0,r.bf)(t)," ").concat((0,r.bf)(a)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},p=e=>({padding:"".concat((0,r.bf)(e.paddingBlockSM)," ").concat((0,r.bf)(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),f=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat((0,r.bf)(e.paddingBlock)," ").concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},u(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},d(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},p(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat((0,r.bf)(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat((0,r.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat((0,r.bf)(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},(0,o.dF)()),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),f(e)),(0,c.qG)(e)),(0,c.H8)(e)),(0,c.Mu)(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat((0,r.bf)(e.inputAffixPadding))}}}},b=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},f(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),h(e)),{["".concat(l).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:i}}})}},v=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},(0,c.ir)(e)),(0,c.S5)(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{let{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover,&:focus,&:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},E=e=>{let{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{["> ".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(r,"-has-feedback")]:{["".concat(t)]:{paddingInlineEnd:n}},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},S=e=>{let{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}};t.ZP=(0,i.I$)("Input",e=>{let t=(0,l.TS)(e,(0,s.e)(e));return[g(t),E(t),b(t),v(t),y(t),S(t),(0,a.c)(t)]},s.T)},85980:function(e,t,n){n.d(t,{T:function(){return a},e:function(){return o}});var r=n(80316);function o(e){return(0,r.TS)(e,{inputAffixPadding:e.paddingXXS})}let a=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:"0 0 0 ".concat(g,"px ").concat(h),errorActiveShadow:"0 0 0 ".concat(g,"px ").concat(b),warningActiveShadow:"0 0 0 ".concat(g,"px ").concat(v),hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}}},61892:function(e,t,n){n.d(t,{H8:function(){return g},Mu:function(){return p},S5:function(){return b},ir:function(){return d},qG:function(){return c}});var r=n(8985),o=n(80316);let a=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},a((0,o.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),l=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),s=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},l(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),s(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),s(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),d=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},i(e))}})}),p=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),f=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),m=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},f(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),g=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},i(e))}),m(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),m(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),h=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},h(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),h(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat((0,r.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})})},8407:function(e,t,n){let r;n.d(t,{D:function(){return E},Z:function(){return w}});var o=n(64090),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},l=n(60688),s=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},u=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(50459),p=n(16480),f=n.n(p),m=n(35704),g=e=>!isNaN(parseFloat(e))&&isFinite(e),h=n(57499),b=n(31747),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=o.createContext({}),S=(r=0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r+=1,"".concat(e).concat(r)});var w=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:l=!1,theme:c="dark",style:p={},collapsible:w=!1,reverseArrow:x=!1,width:O=200,collapsedWidth:k=80,zeroWidthTriggerStyle:C,breakpoint:T,onCollapse:A,onBreakpoint:I}=e,N=v(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:R}=(0,o.useContext)(b.V),[_,P]=(0,o.useState)("collapsed"in e?e.collapsed:l),[M,L]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&P(e.collapsed)},[e.collapsed]);let D=(t,n)=>{"collapsed"in e||P(t),null==A||A(t,n)},j=(0,o.useRef)();j.current=e=>{L(e.matches),null==I||I(e.matches),_!==e.matches&&D(e.matches,"responsive")},(0,o.useEffect)(()=>{let e;function t(e){return j.current(e)}{let{matchMedia:n}=window;if(n&&T&&T in y){e=n("screen and (max-width: ".concat(y[T],")"));try{e.addEventListener("change",t)}catch(n){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(n){null==e||e.removeListener(t)}}},[T]),(0,o.useEffect)(()=>{let e=S("ant-sider-");return R.addSider(e),()=>R.removeSider(e)},[]);let F=()=>{D(!_,"clickTrigger")},{getPrefixCls:B}=(0,o.useContext)(h.E_),U=o.useMemo(()=>({siderCollapsed:_}),[_]);return o.createElement(E.Provider,{value:U},(()=>{let e=B("layout-sider",n),l=(0,m.Z)(N,["collapsed"]),h=_?k:O,b=g(h)?"".concat(h,"px"):String(h),v=0===parseFloat(String(k||0))?o.createElement("span",{onClick:F,className:f()("".concat(e,"-zero-width-trigger"),"".concat(e,"-zero-width-trigger-").concat(x?"right":"left")),style:C},a||o.createElement(s,null)):null,y={expanded:x?o.createElement(d.Z,null):o.createElement(u,null),collapsed:x?o.createElement(u,null):o.createElement(d.Z,null)}[_?"collapsed":"expanded"],E=null!==a?v||o.createElement("div",{className:"".concat(e,"-trigger"),onClick:F,style:{width:b}},a||y):null,S=Object.assign(Object.assign({},p),{flex:"0 0 ".concat(b),maxWidth:b,minWidth:b,width:b}),T=f()(e,"".concat(e,"-").concat(c),{["".concat(e,"-collapsed")]:!!_,["".concat(e,"-has-trigger")]:w&&null!==a&&!v,["".concat(e,"-below")]:!!M,["".concat(e,"-zero-width")]:0===parseFloat(b)},r);return o.createElement("aside",Object.assign({className:T},l,{style:S,ref:t}),o.createElement("div",{className:"".concat(e,"-children")},i),w||M&&v?E:null)})())})},31747:function(e,t,n){n.d(t,{V:function(){return r}});let r=n(64090).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},33509:function(e,t,n){n.d(t,{default:function(){return k}});var r=n(63787),o=n(64090),a=n(16480),i=n.n(a),l=n(35704),s=n(57499),c=n(31747),u=n(33054),d=n(8407),p=n(8985),f=n(76585),m=e=>{let{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{["".concat(t,"-sider-light")]:{background:r,["".concat(t,"-sider-trigger")]:{color:a,background:o},["".concat(t,"-sider-zero-width-trigger")]:{color:a,background:o,border:"1px solid ".concat(n),borderInlineStart:0}}}};let g=e=>{let{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:v,borderRadius:y,bodyBg:E,headerBg:S,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(h,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:(0,p.bf)(d),textAlign:"center",background:i,cursor:"pointer",transition:"all ".concat(h)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(b," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(b),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},m(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:l,padding:s,color:c,lineHeight:(0,p.bf)(l),background:S,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:r,fontSize:v,background:a},["".concat(n,"-content")]:{flex:"auto",minHeight:0}}};var h=(0,f.I$)("Layout",e=>[g(e)],e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(c,"px"),headerColor:o,footerPadding:"".concat(a,"px ").concat(c,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function v(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef((r,a)=>o.createElement(e,Object.assign({ref:a,suffixCls:t,tagName:n},r)))}let y=o.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=b(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=o.useContext(s.E_),d=u("layout",n),[p,f,m]=h(d),g=r?"".concat(d,"-").concat(r):d;return p(o.createElement(l,Object.assign({className:i()(n||g,a,f,m),ref:t},c)))}),E=o.forwardRef((e,t)=>{let{direction:n}=o.useContext(s.E_),[a,p]=o.useState([]),{prefixCls:f,className:m,rootClassName:g,children:v,hasSider:y,tagName:E,style:S}=e,w=b(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),x=(0,l.Z)(w,["suffixCls"]),{getPrefixCls:O,layout:k}=o.useContext(s.E_),C=O("layout",f),T="boolean"==typeof y?y:!!a.length||(0,u.Z)(v).some(e=>e.type===d.Z),[A,I,N]=h(C),R=i()(C,{["".concat(C,"-has-sider")]:T,["".concat(C,"-rtl")]:"rtl"===n},null==k?void 0:k.className,m,g,I,N),_=o.useMemo(()=>({siderHook:{addSider:e=>{p(t=>[].concat((0,r.Z)(t),[e]))},removeSider:e=>{p(t=>t.filter(t=>t!==e))}}}),[]);return A(o.createElement(c.V.Provider,{value:_},o.createElement(E,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},null==k?void 0:k.style),S)},x),v)))}),S=v({tagName:"div",displayName:"Layout"})(E),w=v({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=v({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),O=v({suffixCls:"content",tagName:"main",displayName:"Content"})(y);S.Header=w,S.Footer=x,S.Content=O,S.Sider=d.Z,S._InternalSiderContext=d.D;var k=S},33302:function(e,t,n){let r=(0,n(64090).createContext)(void 0);t.Z=r},79474:function(e,t,n){n.d(t,{Z:function(){return i}});var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let o={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},r)},a="${label} is not a valid ${type}";var i={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:o,TimePicker:r,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}}},70595:function(e,t,n){var r=n(64090),o=n(33302),a=n(79474);t.Z=(e,t)=>{let n=r.useContext(o.Z);return[r.useMemo(()=>{var r;let o=t||a.Z[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?a.Z.locale:e},[n])]}},81642:function(e,t,n){n.d(t,{J:function(){return s}});var r=n(64090),o=n(48563),a=n(92801),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let l=r.createContext(null),s=r.forwardRef((e,t)=>{let{children:n}=e,s=i(e,["children"]),c=r.useContext(l),u=r.useMemo(()=>Object.assign(Object.assign({},c),s),[c,s.prefixCls,s.mode,s.selectable,s.rootClassName]),d=(0,o.t4)(n),p=(0,o.x1)(t,d?n.ref:null);return r.createElement(l.Provider,{value:u},r.createElement(a.BR,null,d?r.cloneElement(n,{ref:p}):n))});t.Z=l},95781:function(e,t,n){n.d(t,{Z:function(){return tg}});var r=n(64090),o=n(14749),a=n(50833),i=n(5239),l=n(63787),s=n(80406),c=n(6787),u=n(16480),d=n.n(u),p=n(54739),f=n(44329),m=n(92536),g=n(53850),h=n(89542),b=r.createContext(null);function v(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return v(r.useContext(b),e)}var E=n(61475),S=["children","locked"],w=r.createContext(null);function x(e){var t=e.children,n=e.locked,o=(0,c.Z)(e,S),a=r.useContext(w),l=(0,E.Z)(function(){var e;return e=(0,i.Z)({},a),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[a,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,m.Z)(e[1],t[1],!0))});return r.createElement(w.Provider,{value:l},t)}var O=r.createContext(null);function k(){return r.useContext(O)}var C=r.createContext([]);function T(e){var t=r.useContext(C);return r.useMemo(function(){return void 0!==e?[].concat((0,l.Z)(t),[e]):t},[t,e])}var A=r.createContext(null),I=r.createContext({}),N=n(73193);function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var _=n(4295),P=n(19223),M=_.Z.LEFT,L=_.Z.RIGHT,D=_.Z.UP,j=_.Z.DOWN,F=_.Z.ENTER,B=_.Z.ESC,U=_.Z.HOME,Z=_.Z.END,z=[D,j,M,L];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,l.Z)(e.querySelectorAll("*")).filter(function(e){return R(e,t)});return R(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var $=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(v(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},W="__RC_UTIL_PATH_SPLIT__",V=function(e){return e.join(W)},q="rc-menu-more";function Y(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(O.motionAppear=!1);var k=O.onVisibleChanged;return(O.onVisibleChanged=function(e){return h.current||e||E(!0),null==k?void 0:k(e)},y)?null:r.createElement(x,{mode:c,locked:!h.current},r.createElement(eC.ZP,(0,o.Z)({visible:S},O,{forceRender:p,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(e){var n=e.className,o=e.style;return r.createElement(eh,{id:t,className:n,style:o},l)}))}var eA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eI=["active"],eN=function(e){var t,n=e.style,l=e.className,u=e.title,f=e.eventKey,m=(e.warnKey,e.disabled),g=e.internalPopupClose,h=e.children,b=e.itemIcon,v=e.expandIcon,E=e.popupClassName,S=e.popupOffset,O=e.popupStyle,k=e.onClick,C=e.onMouseEnter,N=e.onMouseLeave,R=e.onTitleClick,_=e.onTitleMouseEnter,P=e.onTitleMouseLeave,M=(0,c.Z)(e,eA),L=y(f),D=r.useContext(w),j=D.prefixCls,F=D.mode,B=D.openKeys,U=D.disabled,Z=D.overflowDisabled,z=D.activeKey,H=D.selectedKeys,G=D.itemIcon,$=D.expandIcon,W=D.onItemClick,V=D.onOpenChange,q=D.onActive,K=r.useContext(I)._internalRenderSubMenuItem,X=r.useContext(A).isSubPathKey,Q=T(),J="".concat(j,"-submenu"),ee=U||m,et=r.useRef(),en=r.useRef(),er=null!=v?v:$,el=B.includes(f),ec=!Z&&el,eu=X(H,f),ed=eo(f,ee,_,P),ep=ed.active,ef=(0,c.Z)(ed,eI),em=r.useState(!1),eg=(0,s.Z)(em,2),eb=eg[0],ev=eg[1],ey=function(e){ee||ev(e)},eE=r.useMemo(function(){return ep||"inline"!==F&&(eb||X([z],f))},[F,ep,z,eb,f,X]),eS=ea(Q.length),ew=Y(function(e){null==k||k(es(e)),W(e)}),ex=L&&"".concat(L,"-popup"),eO=r.createElement("div",(0,o.Z)({role:"menuitem",style:eS,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":Z&&L?null:L,"aria-expanded":ec,"aria-haspopup":!0,"aria-controls":ex,"aria-disabled":ee,onClick:function(e){ee||(null==R||R({key:f,domEvent:e}),"inline"===F&&V(f,!el))},onFocus:function(){q(f)}},ef),u,r.createElement(ei,{icon:"horizontal"!==F?er:void 0,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:ec,isSubMenu:!0})},r.createElement("i",{className:"".concat(J,"-arrow")}))),eC=r.useRef(F);if("inline"!==F&&Q.length>1?eC.current="vertical":eC.current=F,!Z){var eN=eC.current;eO=r.createElement(ek,{mode:eN,prefixCls:J,visible:!g&&ec&&"inline"!==F,popupClassName:E,popupOffset:S,popupStyle:O,popup:r.createElement(x,{mode:"horizontal"===eN?"vertical":eN},r.createElement(eh,{id:ex,ref:en},h)),disabled:ee,onVisibleChange:function(e){"inline"!==F&&V(f,e)}},eO)}var eR=r.createElement(p.Z.Item,(0,o.Z)({role:"none"},M,{component:"li",style:n,className:d()(J,"".concat(J,"-").concat(F),l,(t={},(0,a.Z)(t,"".concat(J,"-open"),ec),(0,a.Z)(t,"".concat(J,"-active"),eE),(0,a.Z)(t,"".concat(J,"-selected"),eu),(0,a.Z)(t,"".concat(J,"-disabled"),ee),t)),onMouseEnter:function(e){ey(!0),null==C||C({key:f,domEvent:e})},onMouseLeave:function(e){ey(!1),null==N||N({key:f,domEvent:e})}}),eO,!Z&&r.createElement(eT,{id:ex,open:ec,keyPath:Q},h));return K&&(eR=K(eR,e,{selected:eu,active:eE,open:ec,disabled:ee})),r.createElement(x,{onItemClick:ew,mode:"horizontal"===F?"vertical":F,itemIcon:null!=b?b:G,expandIcon:er},eR)};function eR(e){var t,n=e.eventKey,o=e.children,a=T(n),i=ev(o,a),l=k();return r.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]),t=l?i:r.createElement(eN,e,i),r.createElement(C.Provider,{value:a},t)}var e_=n(6976),eP=["className","title","eventKey","children"],eM=["children"],eL=function(e){var t=e.className,n=e.title,a=(e.eventKey,e.children),i=(0,c.Z)(e,eP),l=r.useContext(w).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:d()(s,t)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},a))};function eD(e){var t=e.children,n=(0,c.Z)(e,eM),o=ev(t,T(n.eventKey));return k()?o:r.createElement(eL,(0,en.Z)(n,["warnKey"]),o)}function ej(e){var t=e.className,n=e.style,o=r.useContext(w).prefixCls;return k()?null:r.createElement("li",{role:"separator",className:d()("".concat(o,"-item-divider"),t),style:n})}var eF=["label","children","key","type"],eB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eU=[],eZ=r.forwardRef(function(e,t){var n,u,g,v,y,E,S,w,k,C,T,N,R,_,Q,J,ee,et,en,er,eo,ea,ei,el,ec,eu,ed,ep=e.prefixCls,ef=void 0===ep?"rc-menu":ep,eg=e.rootClassName,eh=e.style,eb=e.className,ey=e.tabIndex,eE=e.items,eS=e.children,ew=e.direction,ex=e.id,eO=e.mode,ek=void 0===eO?"vertical":eO,eC=e.inlineCollapsed,eT=e.disabled,eA=e.disabledOverflow,eI=e.subMenuOpenDelay,eN=e.subMenuCloseDelay,eP=e.forceSubMenuRender,eM=e.defaultOpenKeys,eL=e.openKeys,eZ=e.activeKey,ez=e.defaultActiveFirst,eH=e.selectable,eG=void 0===eH||eH,e$=e.multiple,eW=void 0!==e$&&e$,eV=e.defaultSelectedKeys,eq=e.selectedKeys,eY=e.onSelect,eK=e.onDeselect,eX=e.inlineIndent,eQ=e.motion,eJ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e4=e.expandIcon,e3=e.overflowedIndicator,e6=void 0===e3?"...":e3,e5=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e9=e.onClick,e7=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,c.Z)(e,eB),to=r.useMemo(function(){var e;return e=eS,eE&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,e_.Z)(t)){var a=t.label,i=t.children,l=t.key,s=t.type,u=(0,c.Z)(t,eF),d=null!=l?l:"tmp-".concat(n);return i||"group"===s?"group"===s?r.createElement(eD,(0,o.Z)({key:d},u,{title:a}),e(i)):r.createElement(eR,(0,o.Z)({key:d},u,{title:a}),e(i)):"divider"===s?r.createElement(ej,(0,o.Z)({key:d},u)):r.createElement(em,(0,o.Z)({key:d},u),a)}return null}).filter(function(e){return e})}(eE)),ev(e,eU)},[eS,eE]),ta=r.useState(!1),ti=(0,s.Z)(ta,2),tl=ti[0],ts=ti[1],tc=r.useRef(),tu=(n=(0,f.Z)(ex,{value:ex}),g=(u=(0,s.Z)(n,2))[0],v=u[1],r.useEffect(function(){X+=1;var e="".concat(K,"-").concat(X);v("rc-menu-uuid-".concat(e))},[]),g),td="rtl"===ew,tp=(0,f.Z)(eM,{value:eL,postState:function(e){return e||eU}}),tf=(0,s.Z)(tp,2),tm=tf[0],tg=tf[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tg(e),null==e7||e7(e)}t?(0,h.flushSync)(n):n()},tb=r.useState(tm),tv=(0,s.Z)(tb,2),ty=tv[0],tE=tv[1],tS=r.useRef(!1),tw=r.useMemo(function(){return("inline"===ek||"vertical"===ek)&&eC?["vertical",eC]:[ek,!1]},[ek,eC]),tx=(0,s.Z)(tw,2),tO=tx[0],tk=tx[1],tC="inline"===tO,tT=r.useState(tO),tA=(0,s.Z)(tT,2),tI=tA[0],tN=tA[1],tR=r.useState(tk),t_=(0,s.Z)(tR,2),tP=t_[0],tM=t_[1];r.useEffect(function(){tN(tO),tM(tk),tS.current&&(tC?tg(ty):th(eU))},[tO,tk]);var tL=r.useState(0),tD=(0,s.Z)(tL,2),tj=tD[0],tF=tD[1],tB=tj>=to.length-1||"horizontal"!==tI||eA;r.useEffect(function(){tC&&tE(tm)},[tm]),r.useEffect(function(){return tS.current=!0,function(){tS.current=!1}},[]);var tU=(y=r.useState({}),E=(0,s.Z)(y,2)[1],S=(0,r.useRef)(new Map),w=(0,r.useRef)(new Map),k=r.useState([]),T=(C=(0,s.Z)(k,2))[0],N=C[1],R=(0,r.useRef)(0),_=(0,r.useRef)(!1),Q=function(){_.current||E({})},J=(0,r.useCallback)(function(e,t){var n=V(t);w.current.set(n,e),S.current.set(e,n),R.current+=1;var r=R.current;Promise.resolve().then(function(){r===R.current&&Q()})},[]),ee=(0,r.useCallback)(function(e,t){var n=V(t);w.current.delete(n),S.current.delete(e)},[]),et=(0,r.useCallback)(function(e){N(e)},[]),en=(0,r.useCallback)(function(e,t){var n=(S.current.get(e)||"").split(W);return t&&T.includes(n[0])&&n.unshift(q),n},[T]),er=(0,r.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,r.useCallback)(function(e){var t="".concat(S.current.get(e)).concat(W),n=new Set;return(0,l.Z)(w.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(w.current.get(e))}),n},[]),r.useEffect(function(){return function(){_.current=!0}},[]),{registerPath:J,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,l.Z)(S.current.keys());return T.length&&e.push(q),e},getSubPathKeys:eo}),tZ=tU.registerPath,tz=tU.unregisterPath,tH=tU.refreshOverflowKeys,tG=tU.isSubPathKey,t$=tU.getKeyPath,tW=tU.getKeys,tV=tU.getSubPathKeys,tq=r.useMemo(function(){return{registerPath:tZ,unregisterPath:tz}},[tZ,tz]),tY=r.useMemo(function(){return{isSubPathKey:tG}},[tG]);r.useEffect(function(){tH(tB?eU:to.slice(tj+1).map(function(e){return e.key}))},[tj,tB]);var tK=(0,f.Z)(eZ||ez&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:eZ}),tX=(0,s.Z)(tK,2),tQ=tX[0],tJ=tX[1],t0=Y(function(e){tJ(e)}),t1=Y(function(){tJ(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r=$(tW(),tu),o=r.elements,a=r.key2element,i=r.element2key,l=H(tc.current,o),s=null!=tQ?tQ:l[0]?i.get(l[0]):null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,c=a.get(s);s&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}});var t2=(0,f.Z)(eV||[],{value:eq,postState:function(e){return Array.isArray(e)?e:null==e?eU:[e]}}),t4=(0,s.Z)(t2,2),t3=t4[0],t6=t4[1],t5=function(e){if(eG){var t,n=e.key,r=t3.includes(n);t6(t=eW?r?t3.filter(function(e){return e!==n}):[].concat((0,l.Z)(t3),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eK||eK(o):null==eY||eY(o)}!eW&&tm.length&&"inline"!==tI&&th(eU)},t8=Y(function(e){null==e9||e9(es(e)),t5(e)}),t9=Y(function(e,t){var n=tm.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tI){var r=tV(e);n=n.filter(function(e){return!r.has(e)})}(0,m.Z)(tm,n,!0)||th(n,!0)}),t7=(ea=function(e,t){var n=null!=t?t:!tm.includes(e);t9(e,n)},ei=r.useRef(),(el=r.useRef()).current=tQ,ec=function(){P.Z.cancel(ei.current)},r.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(z,[F,B,U,Z]).includes(t)){var n=tW(),r=$(n,tu),o=r,i=o.elements,l=o.key2element,s=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(tQ),i),u=s.get(c),d=function(e,t,n,r){var o,i,l,s,c="prev",u="next",d="children",p="parent";if("inline"===e&&r===F)return{inlineTrigger:!0};var f=(o={},(0,a.Z)(o,D,c),(0,a.Z)(o,j,u),o),m=(i={},(0,a.Z)(i,M,n?u:c),(0,a.Z)(i,L,n?c:u),(0,a.Z)(i,j,d),(0,a.Z)(i,F,d),i),g=(l={},(0,a.Z)(l,D,c),(0,a.Z)(l,j,u),(0,a.Z)(l,F,d),(0,a.Z)(l,B,p),(0,a.Z)(l,M,n?d:p),(0,a.Z)(l,L,n?p:d),l);switch(null===(s=({inline:f,horizontal:m,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case p:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(tI,1===t$(u,!0).length,td,t);if(!d&&t!==U&&t!==Z)return;(z.includes(t)||[U,Z].includes(t))&&e.preventDefault();var p=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=s.get(e);tJ(r),ec(),ei.current=(0,P.Z)(function(){el.current===r&&t.focus()})}};if([U,Z].includes(t)||d.sibling||!c){var f,m=H(f=c&&"inline"!==tI?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):tc.current,i);p(t===U?m[0]:t===Z?m[m.length-1]:G(f,i,c,d.offset))}else if(d.inlineTrigger)ea(u);else if(d.offset>0)ea(u,!0),ec(),ei.current=(0,P.Z)(function(){r=$(n,tu);var e=c.getAttribute("aria-controls");p(G(document.getElementById(e),r.elements))},5);else if(d.offset<0){var g=t$(u,!0),h=g[g.length-2],b=l.get(h);ea(h,!1),p(b)}}null==te||te(e)});r.useEffect(function(){ts(!0)},[]);var ne=r.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tI||eA?to:to.map(function(e,t){return r.createElement(x,{key:e.key,overflowDisabled:t>tj},e)}),nn=r.createElement(p.Z,(0,o.Z)({id:ex,ref:tc,prefixCls:"".concat(ef,"-overflow"),component:"ul",itemComponent:em,className:d()(ef,"".concat(ef,"-root"),"".concat(ef,"-").concat(tI),eb,(ed={},(0,a.Z)(ed,"".concat(ef,"-inline-collapsed"),tP),(0,a.Z)(ed,"".concat(ef,"-rtl"),td),ed),eg),dir:ew,style:eh,role:"menu",tabIndex:void 0===ey?0:ey,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return r.createElement(eR,{eventKey:q,title:e6,disabled:tB,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tI||eA?p.Z.INVALIDATE:p.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tF(e)},onKeyDown:t7},tr));return r.createElement(I.Provider,{value:ne},r.createElement(b.Provider,{value:tu},r.createElement(x,{prefixCls:ef,rootClassName:eg,mode:tI,openKeys:tm,rtl:td,disabled:eT,motion:tl?eQ:null,defaultMotions:tl?eJ:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t3,inlineIndent:void 0===eX?24:eX,subMenuOpenDelay:void 0===eI?.1:eI,subMenuCloseDelay:void 0===eN?.1:eN,forceSubMenuRender:eP,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e4,onItemClick:t8,onOpenChange:t9},r.createElement(A.Provider,{value:tY},nn),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(O.Provider,{value:tq},to)))))});eZ.Item=em,eZ.SubMenu=eR,eZ.ItemGroup=eD,eZ.Divider=ej;var ez=n(8407),eH=n(31413),eG=n(48563),e$=n(47387),eW=n(65823),eV=n(57499),eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eY=e=>{let{prefixCls:t,className:n,dashed:o}=e,a=eq(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=r.useContext(eV.E_),l=i("menu",t),s=d()({["".concat(l,"-item-divider-dashed")]:!!o},n);return r.createElement(ej,Object.assign({className:s},a))},eK=n(1460);let eX=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var eQ=e=>{var t;let{className:n,children:o,icon:a,title:i,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:p,inlineCollapsed:f}=r.useContext(eX),{siderCollapsed:m}=r.useContext(ez.D),g=i;void 0===i?g=c?o:"":!1===i&&(g="");let h={title:g};m||f||(h.title=null,h.open=!1);let b=(0,eb.Z)(o).length,v=r.createElement(em,Object.assign({},(0,en.Z)(e,["title","icon","danger"]),{className:d()({["".concat(s,"-item-danger")]:l,["".concat(s,"-item-only-child")]:(a?b+1:b)===1},n),title:"string"==typeof i?i:void 0}),(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),(e=>{let t=r.createElement("span",{className:"".concat(s,"-title-content")},o);return(!a||(0,eW.l$)(o)&&"span"===o.type)&&o&&e&&c&&"string"==typeof o?r.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},o.charAt(0)):t})(f));return p||(v=r.createElement(eK.Z,Object.assign({},h,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),v)),v},eJ=n(51761),e0=e=>{var t;let n;let{popupClassName:o,icon:a,title:i,theme:l}=e,s=r.useContext(eX),{prefixCls:c,inlineCollapsed:u,theme:p}=s,f=T();if(a){let e=(0,eW.l$)(i)&&"span"===i.type;n=r.createElement(r.Fragment,null,(0,eW.Tm)(a,{className:d()((0,eW.l$)(a)?null===(t=a.props)||void 0===t?void 0:t.className:"","".concat(c,"-item-icon"))}),e?i:r.createElement("span",{className:"".concat(c,"-title-content")},i))}else n=u&&!f.length&&i&&"string"==typeof i?r.createElement("div",{className:"".concat(c,"-inline-collapsed-noicon")},i.charAt(0)):r.createElement("span",{className:"".concat(c,"-title-content")},i);let m=r.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=(0,eJ.Cn)("Menu");return r.createElement(eX.Provider,{value:m},r.createElement(eR,Object.assign({},(0,en.Z)(e,["icon"]),{title:n,popupClassName:d()(c,o,"".concat(c,"-").concat(l||p)),popupStyle:{zIndex:g}})))},e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},e2=n(81642),e4=n(8985),e3=n(6336),e6=n(11303),e5=n(46154),e8=n(202),e9=n(58854),e7=n(76585),te=n(80316),tt=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat((0,e4.bf)(a)," ").concat(i," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},tn=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(n),")")}}}}};let tr=e=>Object.assign({},(0,e6.oN)(e));var to=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:O,dangerItemSelectedBg:k,popupBg:C,itemHoverBg:T,itemActiveBg:A,menuSubMenuBg:I,horizontalItemSelectedColor:N,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:P}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:i,["&".concat(n,"-root:focus-visible")]:Object.assign({},tr(e)),["".concat(n,"-item-group-title")]:{color:a},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(E," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:b}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:A}}},["".concat(n,"-item-danger")]:{color:S,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:w}},["&".concat(n,"-item:active")]:{background:O}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:x},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:s,["&".concat(n,"-item-danger")]:{backgroundColor:k}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},tr(e))},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:I},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:C},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:"".concat((0,e4.bf)(c)," solid transparent"),transition:"border-color ".concat(p," ").concat(f),content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat((0,e4.bf)(d)," ").concat(v," ").concat(y)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat((0,e4.bf)(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(h," ").concat(m),"opacity ".concat(h," ").concat(m)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:x}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(h," ").concat(f),"opacity ".concat(h," ").concat(f)].join(",")}}}}}};let ta=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(a).add(o).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,e4.bf)(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:c}}};var ti=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:(0,e4.bf)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ta(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ta(e)),{boxShadow:m})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:a,maxHeight:"calc(100vh - ".concat((0,e4.bf)(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(p),"background ".concat(p),"padding ".concat(l," ").concat(s)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:b,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:b}},{["".concat(t,"-inline-collapsed")]:{width:g,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat((0,e4.bf)(e.calc(d).div(2).equal())," - ").concat((0,e4.bf)(u),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:h,lineHeight:(0,e4.bf)(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},e6.vS),{paddingInline:f})}}]};let tl=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:s}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:l,fontSize:l,transition:["font-size ".concat(r," ").concat(a),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},(0,e6.Ro)()),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},ts=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat((0,e4.bf)(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat((0,e4.bf)(i),")")}}}}},tc=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},(0,e6.dF)()),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,e6.Wf)(e)),(0,e6.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat((0,e4.bf)(l)," ").concat((0,e4.bf)(s)),fontSize:y,lineHeight:v,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(i),"padding ".concat(o," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(o),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tl(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat((0,e4.bf)(e.calc(r).mul(2).equal())," ").concat((0,e4.bf)(s))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:"".concat((0,e4.bf)(b)," 0 0"),zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:p},tl(e)),ts(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:f},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(i)}})}}),ts(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(g),")")},"&::after":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat((0,e4.bf)(e.calc(m).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat((0,e4.bf)(e.calc(g).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat((0,e4.bf)(g),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},tu=e=>{var t,n,r;let{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:E,padding:S,fontSize:w,controlHeightSM:x,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:C}=e,T=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,N=new e3.C(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:"".concat(1.15*b,"px"),iconSize:w,iconMarginInlineEnd:x-w,collapsedIconSize:O,groupTitleFontSize:w,darkItemDisabledColor:new e3.C(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:a,itemWidth:T?"calc(100% + ".concat(A,"px)"):"calc(100% - ".concat(2*I,"px)")}};var td=n(92935),tp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tf=(0,r.forwardRef)((e,t)=>{var n,o;let a;let i=r.useContext(e2.Z),l=i||{},{getPrefixCls:s,getPopupContainer:c,direction:u,menu:p}=r.useContext(eV.E_),f=s(),{prefixCls:m,className:g,style:h,theme:b="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:E,siderCollapsed:S,items:w,children:x,rootClassName:O,mode:k,selectable:C,onClick:T,overflowedIndicatorPopupClassName:A}=e,I=tp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=(0,en.Z)(I,["collapsedWidth"]),R=r.useMemo(()=>w?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:o,children:a,key:i,type:l}=t,s=e1(t,["label","children","key","type"]),c=null!=i?i:"tmp-".concat(n);return a||"group"===l?"group"===l?r.createElement(eD,Object.assign({key:c},s,{title:o}),e(a)):r.createElement(e0,Object.assign({key:c},s,{title:o}),e(a)):"divider"===l?r.createElement(eY,Object.assign({key:c},s)):r.createElement(eQ,Object.assign({key:c},s),o)}return null}).filter(e=>e)}(w):w,[w])||x;null===(n=l.validator)||void 0===n||n.call(l,{mode:k});let _=(0,eG.zX)(function(){var e;null==T||T.apply(void 0,arguments),null===(e=l.onClick)||void 0===e||e.call(l)}),P=l.mode||k,M=null!=C?C:l.selectable,L=r.useMemo(()=>void 0!==S?S:E,[E,S]),D={horizontal:{motionName:"".concat(f,"-slide-up")},inline:(0,e$.Z)(f),other:{motionName:"".concat(f,"-zoom-big")}},j=s("menu",m||l.prefixCls),F=(0,td.Z)(j),[B,U,Z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,e7.I$)("Menu",e=>{let{colorBgElevated:t,colorPrimary:n,colorTextLightSolid:r,controlHeightLG:o,fontSize:a,darkItemColor:i,darkDangerItemColor:l,darkItemBg:s,darkSubMenuItemBg:c,darkItemSelectedColor:u,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:f,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:h,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:y,popupBg:E,darkPopupBg:S}=e,w=e.calc(a).div(7).mul(5).equal(),x=(0,te.TS)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:t,calc:e.calc,popupBg:E}),O=(0,te.TS)(x,{itemColor:i,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:u,itemBg:s,popupBg:S,subMenuItemBg:c,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:h,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:v,dangerItemActiveBg:y,dangerItemSelectedBg:p,menuSubMenuBg:c,horizontalItemSelectedColor:r,horizontalItemSelectedBg:n});return[tc(x),tt(x),ti(x),to(x,"light"),to(O,"dark"),tn(x),(0,e5.Z)(x),(0,e8.oN)(x,"slide-up"),(0,e8.oN)(x,"slide-down"),(0,e9._y)(x,"zoom-big")]},tu,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}(j,F,!i),z=d()("".concat(j,"-").concat(b),null==p?void 0:p.className,g);if("function"==typeof v)a=v;else if(null===v||!1===v)a=null;else if(null===l.expandIcon||!1===l.expandIcon)a=null;else{let e=null!=v?v:l.expandIcon;a=(0,eW.Tm)(e,{className:d()("".concat(j,"-submenu-expand-icon"),(0,eW.l$)(e)?null===(o=e.props)||void 0===o?void 0:o.className:"")})}let H=r.useMemo(()=>({prefixCls:j,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:y}),[j,L,u,y,b]);return B(r.createElement(e2.Z.Provider,{value:null},r.createElement(eX.Provider,{value:H},r.createElement(eZ,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(eH.Z,null),overflowedIndicatorPopupClassName:d()(j,"".concat(j,"-").concat(b),A),mode:P,selectable:M,onClick:_},N,{inlineCollapsed:L,style:Object.assign(Object.assign({},null==p?void 0:p.style),h),className:z,prefixCls:j,direction:u,defaultMotions:D,expandIcon:a,ref:t,rootClassName:d()(O,U,l.rootClassName,Z,F)}),R))))}),tm=(0,r.forwardRef)((e,t)=>{let n=(0,r.useRef)(null),o=r.useContext(ez.D);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),r.createElement(tf,Object.assign({ref:n},e,o))});tm.Item=eQ,tm.SubMenu=e0,tm.Divider=eY,tm.ItemGroup=eD;var tg=tm},80588:function(e,t,n){n.d(t,{ZP:function(){return eu}});var r=n(63787),o=n(64090),a=n(37274);let i=o.createContext({});var l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(66155),m=n(16480),g=n.n(m),h=n(80406),b=n(6787),v=n(5239),y=n(89542),E=n(14749),S=n(50833),w=n(49367),x=n(4295),O=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,l=void 0===i?4.5:i,s=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=e.props,f=e.onClick,m=e.onNoticeClose,b=e.times,v=e.hovering,y=o.useState(!1),w=(0,h.Z)(y,2),O=w[0],k=w[1],C=v||O,T=function(){m(s)};o.useEffect(function(){if(!C&&l>0){var e=setTimeout(function(){T()},1e3*l);return function(){clearTimeout(e)}}},[l,C,b]);var A="".concat(n,"-notice");return o.createElement("div",(0,E.Z)({},p,{ref:t,className:g()(A,a,(0,S.Z)({},"".concat(A,"-closable"),u)),style:r,onMouseEnter:function(e){var t;k(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;k(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:f}),o.createElement("div",{className:"".concat(A,"-content")},c),u&&o.createElement("a",{tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===x.Z.ENTER)&&T()},onClick:function(e){e.preventDefault(),e.stopPropagation(),T()}},void 0===d?"x":d))}),k=o.createContext({}),C=function(e){var t=e.children,n=e.classNames;return o.createElement(k.Provider,{value:{classNames:n}},t)},T=n(6976),A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,T.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]},I=["className","style","classNames","styles"],N=function(e){var t,n=e.configList,a=e.placement,i=e.prefixCls,l=e.className,s=e.style,c=e.motion,u=e.onAllNoticeRemoved,d=e.onNoticeClose,p=e.stack,f=(0,o.useContext)(k).classNames,m=(0,o.useRef)({}),y=(0,o.useState)(null),x=(0,h.Z)(y,2),C=x[0],T=x[1],N=(0,o.useState)([]),R=(0,h.Z)(N,2),_=R[0],P=R[1],M=n.map(function(e){return{config:e,key:String(e.key)}}),L=A(p),D=(0,h.Z)(L,2),j=D[0],F=D[1],B=F.offset,U=F.threshold,Z=F.gap,z=j&&(_.length>0||M.length<=U),H="function"==typeof c?c(a):c;return(0,o.useEffect)(function(){j&&_.length>1&&P(function(e){return e.filter(function(e){return M.some(function(t){return e===t.key})})})},[_,M,j]),(0,o.useEffect)(function(){var e,t;j&&m.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&T(m.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])},[M,j]),o.createElement(w.V4,(0,E.Z)({key:a,className:g()(i,"".concat(i,"-").concat(a),null==f?void 0:f.list,l,(t={},(0,S.Z)(t,"".concat(i,"-stack"),!!j),(0,S.Z)(t,"".concat(i,"-stack-expanded"),z),t)),style:s,keys:M,motionAppear:!0},H,{onAllRemoved:function(){u(a)}}),function(e,t){var n=e.config,l=e.className,s=e.style,c=e.index,u=n.key,p=n.times,h=String(u),y=n.className,S=n.style,w=n.classNames,x=n.styles,k=(0,b.Z)(n,I),T=M.findIndex(function(e){return e.key===h}),A={};if(j){var N=M.length-1-(T>-1?T:c-1),R="top"===a||"bottom"===a?"-50%":"0";if(N>0){A.height=z?null===(L=m.current[h])||void 0===L?void 0:L.offsetHeight:null==C?void 0:C.offsetHeight;for(var L,D,F,U,H=0,G=0;G-1?m.current[h]=e:delete m.current[h]},prefixCls:i,classNames:w,styles:x,className:g()(y,null==f?void 0:f.notice),style:S,times:p,key:u,eventKey:u,onNoticeClose:d,hovering:j&&_.length>0})))})},R=o.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,i=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,p=e.stack,f=e.renderNotifications,m=o.useState([]),g=(0,h.Z)(m,2),b=g[0],E=g[1],S=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),E(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){E(function(t){var n,o=(0,r.Z)(t),a=o.findIndex(function(t){return t.key===e.key}),i=(0,v.Z)({},e);return a>=0?(i.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,o[a]=i):(i.times=0,o.push(i)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){E([])}}});var w=o.useState({}),x=(0,h.Z)(w,2),O=x[0],k=x[1];o.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(O).forEach(function(t){e[t]=e[t]||[]}),k(e)},[b]);var C=function(e){k(function(t){var n=(0,v.Z)({},t);return(n[e]||[]).length||delete n[e],n})},T=o.useRef(!1);if(o.useEffect(function(){Object.keys(O).length>0?T.current=!0:T.current&&(null==d||d(),T.current=!1)},[O]),!i)return null;var A=Object.keys(O);return(0,y.createPortal)(o.createElement(o.Fragment,null,A.map(function(e){var t=O[e],n=o.createElement(N,{key:e,configList:t,placement:e,prefixCls:a,className:null==c?void 0:c(e),style:null==u?void 0:u(e),motion:l,onNoticeClose:S,onAllNoticeRemoved:C,stack:p});return f?f(n,{prefixCls:a,key:e}):n})),i)}),_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],P=function(){return document.body},M=0,L=n(8985),D=n(51761),j=n(11303),F=n(76585),B=n(80316);let U=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,v="".concat(t,"-notice"),y=new L.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),E=new L.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:f,textAlign:"center",["".concat(t,"-custom-content > ").concat(n)]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},["".concat(v,"-content")]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:a},["".concat(t,"-error > ").concat(n)]:{color:i},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(v,"-wrapper")]:Object.assign({},S)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var Z=(0,F.I$)("Message",e=>[U((0,B.TS)(e,{height:150}))],e=>({zIndexPopup:e.zIndexPopupBase+D.u6+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")})),z=n(92935),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let G={info:o.createElement(p.Z,null),success:o.createElement(c.Z,null),error:o.createElement(u.Z,null),warning:o.createElement(d.Z,null),loading:o.createElement(f.Z,null)},$=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return o.createElement("div",{className:g()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||G[n],o.createElement("span",null,a))};var W=n(81303),V=n(76564);function q(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let K=e=>{let{children:t,prefixCls:n}=e,r=(0,z.Z)(n),[a,i,l]=Z(n,r);return a(o.createElement(C,{classNames:{list:g()(i,l,r)}},t))},X=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(K,{prefixCls:n,key:r},e)},Q=o.forwardRef((e,t)=>{let{top:n,prefixCls:a,getContainer:i,maxCount:s,duration:c=3,rtl:u,transitionName:d,onAllRemoved:p}=e,{getPrefixCls:f,getPopupContainer:m,message:v,direction:y}=o.useContext(l.E_),E=a||f("message"),S=o.createElement("span",{className:"".concat(E,"-close-x")},o.createElement(W.Z,{className:"".concat(E,"-close-icon")})),[w,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?P:t,a=e.motion,i=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,f=(0,b.Z)(e,_),m=o.useState(),g=(0,h.Z)(m,2),v=g[0],y=g[1],E=o.useRef(),S=o.createElement(R,{container:v,ref:E,prefixCls:i,motion:a,maxCount:l,className:s,style:c,onAllRemoved:u,stack:d,renderNotifications:p}),w=o.useState([]),x=(0,h.Z)(w,2),O=x[0],k=x[1],C=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>g()({["".concat(E,"-rtl")]:null!=u?u:"rtl"===y}),motion:()=>({motionName:null!=d?d:"".concat(E,"-move-up")}),closable:!1,closeIcon:S,duration:c,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:p,renderNotifications:X});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:E,message:v})),x}),J=0;function ee(e){let t=o.useRef(null);return(0,V.ln)("Message"),[o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:a,message:i}=t.current,l="".concat(a,"-notice"),{content:s,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,h=Y(n,["content","icon","type","key","className","style","onClose"]),b=d;return null==b&&(J+=1,b="antd-message-".concat(J)),q(t=>(r(Object.assign(Object.assign({},h),{key:b,content:o.createElement($,{prefixCls:a,type:u,icon:c},s),placement:"top",className:g()(u&&"".concat(l,"-").concat(u),p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(b)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i;return"function"==typeof r?i=r:(a=r,i=o),n(Object.assign(Object.assign({onClose:i,duration:a},t&&"object"==typeof t&&"content"in t?t:{content:t}),{type:e}))}}),r},[]),o.createElement(Q,Object.assign({key:"message-holder"},e,{ref:t}))]}let et=null,en=e=>e(),er=[],eo={};function ea(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=eo,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}let ei=o.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:a}=(0,o.useContext)(l.E_),s=eo.prefixCls||a("message"),c=(0,o.useContext)(i),[u,d]=ee(Object.assign(Object.assign(Object.assign({},n),{prefixCls:s}),c.message));return o.useImperativeHandle(t,()=>{let e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=function(){return r(),u[t].apply(u,arguments)}}),{instance:e,sync:r}}),d}),el=o.forwardRef((e,t)=>{let[n,r]=o.useState(ea),a=()=>{r(ea)};o.useEffect(a,[]);let i=(0,s.w6)(),l=i.getRootPrefixCls(),c=i.getIconPrefixCls(),u=i.getTheme(),d=o.createElement(ei,{ref:t,sync:a,messageConfig:n});return o.createElement(s.ZP,{prefixCls:l,iconPrefixCls:c,theme:u},i.holderRender?i.holderRender(d):d)});function es(){if(!et){let e=document.createDocumentFragment(),t={fragment:e};et=t,en(()=>{(0,a.s)(o.createElement(el,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,es())})}}),e)});return}et.instance&&(er.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":en(()=>{let t=et.instance.open(Object.assign(Object.assign({},eo),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":en(()=>{null==et||et.instance.destroy(e.key)});break;default:en(()=>{var n;let o=(n=et.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),er=[])}let ec={open:function(e){let t=q(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return er.push(r),()=>{n?en(()=>{n()}):r.skipped=!0}});return es(),t},destroy:function(e){er.push({type:"destroy",key:e}),es()},config:function(e){eo=Object.assign(Object.assign({},eo),e),en(()=>{var e;null===(e=null==et?void 0:et.sync)||void 0===e||e.call(et)})},useMessage:function(e){return ee(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:a,content:i}=e,s=H(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=o.useContext(l.E_),u=t||c("message"),d=(0,z.Z)(u),[p,f,m]=Z(u,d);return p(o.createElement(O,Object.assign({},s,{prefixCls:u,className:g()(n,f,"".concat(u,"-notice-pure-panel"),m,d),eventKey:"pure",duration:null,content:o.createElement($,{prefixCls:u,type:r,icon:a},i)})))}};["success","info","warning","error","loading"].forEach(e=>{ec[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return er.push(o),()=>{r?en(()=>{r()}):o.skipped=!0}});return es(),n}(e,n)}});var eu=ec},99129:function(e,t,n){let r;n.d(t,{Z:function(){return eq}});var o=n(63787),a=n(64090),i=n(37274),l=n(57499),s=n(54165),c=n(99537),u=n(77136),d=n(20653),p=n(40388),f=n(16480),m=n.n(f),g=n(51761),h=n(47387),b=n(70595),v=n(24750),y=n(89211),E=n(1861),S=n(51350),w=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=a.useRef(!1),f=a.useRef(null),[m,g]=(0,y.Z)(!1),h=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(g(!0),e.then(function(){g(!1,!0),h.apply(void 0,arguments),p.current=!1},e=>{if(g(!1,!0),p.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(E.ZP,Object.assign({},(0,S.nx)(t),{onClick:e=>{let t;if(!p.current){if(p.current=!0,!d){h();return}if(s){var n;if(t=d(e),u&&!((n=t)&&n.then)){p.current=!1,h(e);return}}else if(d.length)t=d(i),p.current=!1;else if(!(t=d())){h();return}b(t)}},loading:m,prefixCls:r},o,{ref:f}),n)};let x=a.createContext({}),{Provider:O}=x;var k=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=(0,a.useContext)(x);return o?a.createElement(w,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:"".concat(i,"-btn")},n):null},C=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=(0,a.useContext)(x);return a.createElement(w,{isSilent:n,type:l||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:"".concat(o,"-btn")},i)},T=n(81303),A=n(14749),I=n(80406),N=n(88804),R=a.createContext({}),_=n(5239),P=n(31506),M=n(91010),L=n(4295),D=n(72480);function j(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function F(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var B=n(49367),U=n(74084),Z=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),z={width:0,height:0,overflow:"hidden",outline:"none"},H=a.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,d=e.footer,p=e.closable,f=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,v=e.bodyProps,y=e.modalRender,E=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,x=e.visible,O=e.forceRender,k=e.width,C=e.height,T=e.classNames,I=e.styles,N=a.useContext(R).panel,P=(0,U.x1)(w,N),M=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?M.current.focus():e||t!==M.current||L.current.focus()}}});var D={};void 0!==k&&(D.width=k),void 0!==C&&(D.height=C),d&&(n=a.createElement("div",{className:m()("".concat(i,"-footer"),null==T?void 0:T.footer),style:(0,_.Z)({},null==I?void 0:I.footer)},d)),c&&(r=a.createElement("div",{className:m()("".concat(i,"-header"),null==T?void 0:T.header),style:(0,_.Z)({},null==I?void 0:I.header)},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),p&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},f||a.createElement("span",{className:"".concat(i,"-close-x")})));var j=a.createElement("div",{className:m()("".concat(i,"-content"),null==T?void 0:T.content),style:null==I?void 0:I.content},o,r,a.createElement("div",(0,A.Z)({className:m()("".concat(i,"-body"),null==T?void 0:T.body),style:(0,_.Z)((0,_.Z)({},b),null==I?void 0:I.body)},v),h),n);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:P,style:(0,_.Z)((0,_.Z)({},s),D),className:m()(i,l),onMouseDown:E,onMouseUp:S},a.createElement("div",{tabIndex:0,ref:M,style:z,"aria-hidden":"true"}),a.createElement(Z,{shouldUpdate:x||O},y?y(j):j),a.createElement("div",{tabIndex:0,ref:L,style:z,"aria-hidden":"true"}))}),G=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,g=(0,a.useRef)(),h=a.useState(),b=(0,I.Z)(h,2),v=b[0],y=b[1],E={};function S(){var e,t,n,r,o,a=(n={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=F(o),n.top+=F(o,!0),n);y(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return v&&(E.transformOrigin=v),a.createElement(B.ZP,{visible:l,onVisibleChanged:p,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(H,(0,A.Z)({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:s,style:(0,_.Z)((0,_.Z)((0,_.Z)({},u),o),E),className:m()(i,c)}))})});function $(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,l=e.className;return a.createElement(B.ZP,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,s=e.style;return a.createElement("div",(0,A.Z)({ref:r,style:(0,_.Z)((0,_.Z)({},s),n),className:m()("".concat(t,"-mask"),i,l)},o))})}function W(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,g=e.onClose,h=e.afterOpenChange,b=e.afterClose,v=e.transitionName,y=e.animation,E=e.closable,S=e.mask,w=void 0===S||S,x=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,C=e.maskStyle,T=e.maskProps,N=e.rootClassName,R=e.classNames,F=e.styles,B=(0,a.useRef)(),U=(0,a.useRef)(),Z=(0,a.useRef)(),z=a.useState(i),H=(0,I.Z)(z,2),W=H[0],V=H[1],q=(0,M.Z)();function Y(e){null==g||g(e)}var K=(0,a.useRef)(!1),X=(0,a.useRef)(),Q=null;return(void 0===k||k)&&(Q=function(e){K.current?K.current=!1:U.current===e.target&&Y(e)}),(0,a.useEffect)(function(){i&&(V(!0),(0,P.Z)(U.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(X.current)}},[]),a.createElement("div",(0,A.Z)({className:m()("".concat(n,"-root"),N)},(0,D.Z)(e,{data:!0})),a.createElement($,{prefixCls:n,visible:w&&i,motionName:j(n,x,O),style:(0,_.Z)((0,_.Z)({zIndex:r},C),null==F?void 0:F.mask),maskProps:T,className:null==R?void 0:R.mask}),a.createElement("div",(0,A.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===L.Z.ESC){e.stopPropagation(),Y(e);return}i&&e.keyCode===L.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:m()("".concat(n,"-wrap"),p,null==R?void 0:R.wrapper),ref:U,onClick:Q,style:(0,_.Z)((0,_.Z)((0,_.Z)({zIndex:r},d),null==F?void 0:F.wrapper),{},{display:W?null:"none"})},f),a.createElement(G,(0,A.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),K.current=!0},onMouseUp:function(){X.current=setTimeout(function(){K.current=!1})},ref:Z,closable:void 0===E||E,ariaId:q,prefixCls:n,visible:i&&W,onClose:Y,onVisibleChanged:function(e){if(e)!function(){if(!(0,P.Z)(U.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(V(!1),w&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==b||b())}null==h||h(e)},motionName:j(n,v,y)}))))}G.displayName="Content",n(53850);var V=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=e.panelRef,c=a.useState(t),u=(0,I.Z)(c,2),d=u[0],p=u[1],f=a.useMemo(function(){return{panel:s}},[s]);return(a.useEffect(function(){t&&p(!0)},[t]),r||!i||d)?a.createElement(R.Provider,{value:f},a.createElement(N.Z,{open:t||r||d,autoDestroy:!1,getContainer:n,autoLock:t||d},a.createElement(W,(0,A.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),p(!1)}})))):null};V.displayName="Dialog";var q=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.createElement(T.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("boolean"==typeof e?!e:void 0===t?!o:!1===t||null===t)return[!1,null];let i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]},Y=n(22127),K=n(86718),X=n(47137),Q=n(92801),J=n(48563);function ee(){}let et=a.createContext({add:ee,remove:ee});var en=n(17094),er=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({onClick:n},e),t)},eo=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,a.useContext)(x);return a.createElement(E.ZP,Object.assign({},(0,S.nx)(n),{loading:e,onClick:o},t),r)},ea=n(4678);function ei(e,t){return a.createElement("span",{className:"".concat(e,"-close-x")},t||a.createElement(T.Z,{className:"".concat(e,"-close-icon")}))}let el=e=>{let t;let{okText:n,okType:r="primary",cancelText:i,confirmLoading:l,onOk:s,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:p}=e,[f]=(0,b.Z)("Modal",(0,ea.A)()),m={confirmLoading:l,okButtonProps:u,cancelButtonProps:d,okTextLocale:n||(null==f?void 0:f.okText),cancelTextLocale:i||(null==f?void 0:f.cancelText),okType:r,onOk:s,onCancel:c},g=a.useMemo(()=>m,(0,o.Z)(Object.values(m)));return"function"==typeof p||void 0===p?(t=a.createElement(a.Fragment,null,a.createElement(er,null),a.createElement(eo,null)),"function"==typeof p&&(t=p(t,{OkBtn:eo,CancelBtn:er})),t=a.createElement(O,{value:g},t)):t=p,a.createElement(en.n,{disabled:!1},t)};var es=n(11303),ec=n(13703),eu=n(58854),ed=n(80316),ep=n(76585),ef=n(8985);function em(e){return{position:e,inset:0}}let eg=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},em("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",["&:has(".concat(t).concat(n,"-zoom-enter), &:has(").concat(t).concat(n,"-zoom-appear)")]:{pointerEvents:"none"}})}},{["".concat(t,"-root")]:(0,ec.J$)(e)}]},eh=e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,ef.bf)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,es.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,ef.bf)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:"".concat((0,ef.bf)(e.modalCloseBtnSize)),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,es.Qy)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},eb=e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},ev=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ed.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ey=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:"".concat((0,ef.bf)(e.paddingMD)," ").concat((0,ef.bf)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,ef.bf)(e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,ef.bf)(e.paddingXS)," ").concat((0,ef.bf)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,ef.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,ef.bf)(e.borderRadiusLG)," ").concat((0,ef.bf)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(2*e.padding)," ").concat((0,ef.bf)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var eE=(0,ep.I$)("Modal",e=>{let t=ev(e);return[eh(t),eb(t),eg(t),(0,eu._y)(t,"zoom")]},ey,{unitless:{titleLineHeight:!0}}),eS=n(92935),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,Y.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var ex=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:s}=a.useContext(l.E_),c=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:u,className:d,rootClassName:p,open:f,wrapClassName:b,centered:v,getContainer:y,closeIcon:E,closable:S,focusTriggerAfterClose:w=!0,style:x,visible:O,width:k=520,footer:C,classNames:A,styles:I}=e,N=ew(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),R=o("modal",u),_=o(),P=(0,eS.Z)(R),[M,L,D]=eE(R,P),j=m()(b,{["".concat(R,"-centered")]:!!v,["".concat(R,"-wrap-rtl")]:"rtl"===i}),F=null!==C&&a.createElement(el,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:c})),[B,U]=q(S,E,e=>ei(R,e),a.createElement(T.Z,{className:"".concat(R,"-close-icon")}),!0),Z=function(e){let t=a.useContext(et),n=a.useRef();return(0,J.zX)(r=>{if(r){let o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(".".concat(R,"-content")),[z,H]=(0,g.Cn)("Modal",N.zIndex);return M(a.createElement(Q.BR,null,a.createElement(X.Ux,{status:!0,override:!0},a.createElement(K.Z.Provider,{value:H},a.createElement(V,Object.assign({width:k},N,{zIndex:z,getContainer:void 0===y?n:y,prefixCls:R,rootClassName:m()(L,p,D,P),footer:F,visible:null!=f?f:O,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:c,closable:B,closeIcon:U,focusTriggerAfterClose:w,transitionName:(0,h.m)(_,"zoom",e.transitionName),maskTransitionName:(0,h.m)(_,"fade",e.maskTransitionName),className:m()(L,d,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),x),classNames:Object.assign(Object.assign({wrapper:j},null==s?void 0:s.classNames),A),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),I),panelRef:Z}))))))};let eO=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,es.dF)()),["&".concat(t," ").concat(t,"-body")]:{padding:c},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:"calc(100% - ".concat((0,ef.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:a,lineHeight:i},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}};var ek=(0,ep.bk)(["Modal","confirm"],e=>[eO(ev(e))],ey,{order:-1e3}),eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eT(e){let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:s,okCancel:f,footer:g,locale:h}=e,v=eC(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),y=n;if(!n&&null!==n)switch(s){case"info":y=a.createElement(p.Z,null);break;case"success":y=a.createElement(c.Z,null);break;case"error":y=a.createElement(u.Z,null);break;default:y=a.createElement(d.Z,null)}let E=null!=f?f:"confirm"===s,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[w]=(0,b.Z)("Modal"),x=h||w,T=r||(E?null==x?void 0:x.okText:null==x?void 0:x.justOkText),A=Object.assign({autoFocusButton:S,cancelTextLocale:i||(null==x?void 0:x.cancelText),okTextLocale:T,mergedOkCancel:E},v),I=a.useMemo(()=>A,(0,o.Z)(Object.values(A))),N=a.createElement(a.Fragment,null,a.createElement(k,null),a.createElement(C,null)),R=void 0!==e.title&&null!==e.title,_="".concat(l,"-body");return a.createElement("div",{className:"".concat(l,"-body-wrapper")},a.createElement("div",{className:m()(_,{["".concat(_,"-has-title")]:R})},y,a.createElement("div",{className:"".concat(l,"-paragraph")},R&&a.createElement("span",{className:"".concat(l,"-title")},e.title),a.createElement("div",{className:"".concat(l,"-content")},e.content))),void 0===g||"function"==typeof g?a.createElement(O,{value:I},a.createElement("div",{className:"".concat(l,"-btns")},"function"==typeof g?g(N,{OkBtn:C,CancelBtn:k}):N)):g,a.createElement(ek,{prefixCls:t}))}let eA=e=>{let{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:l,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:b,closable:y=!1,closeIcon:E,modalRender:S,focusTriggerAfterClose:w,onConfirm:x,styles:O}=e,k="".concat(d,"-confirm"),C=e.width||416,T=e.style||{},A=void 0===e.mask||e.mask,I=void 0!==e.maskClosable&&e.maskClosable,N=m()(k,"".concat(k,"-").concat(e.type),{["".concat(k,"-rtl")]:"rtl"===u},e.className),[,R]=(0,v.ZP)(),_=a.useMemo(()=>void 0!==n?n:R.zIndexPopupBase+g.u6,[n,R]);return a.createElement(ex,{prefixCls:d,className:N,wrapClassName:m()({["".concat(k,"-centered")]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:o,title:"",footer:null,transitionName:(0,h.m)(f||"","zoom",e.transitionName),maskTransitionName:(0,h.m)(f||"","fade",e.maskTransitionName),mask:A,maskClosable:I,style:T,styles:Object.assign({body:b,mask:c},O),width:C,zIndex:_,afterClose:r,keyboard:i,centered:l,getContainer:s,closable:y,closeIcon:E,modalRender:S,focusTriggerAfterClose:w},a.createElement(eT,Object.assign({},e,{confirmPrefixCls:k})))};var eI=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(eA,Object.assign({},e)))},eN=[];let eR="",e_=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:i}=e,s=(0,ea.A)(),c=(0,a.useContext)(l.E_),u=eR||c.getPrefixCls(),d=r||"".concat(u,"-modal"),p=o;return!1===p&&(p=void 0),a.createElement(eI,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=i?i:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:p}))};function eP(e){let t;let n=(0,s.w6)(),r=document.createDocumentFragment(),l=Object.assign(Object.assign({},e),{close:d,open:!0});function c(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let t=n.getPrefixCls(void 0,eR),o=n.getIconPrefixCls(),l=n.getTheme(),c=a.createElement(e_,Object.assign({},e));(0,i.s)(a.createElement(s.ZP,{prefixCls:t,iconPrefixCls:o,theme:l},n.holderRender?n.holderRender(c):c),r)})}function d(){for(var t=arguments.length,n=Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),c.apply(this,n)}})).visible&&delete l.visible,u(l)}return u(l),eN.push(d),{destroy:d,update:function(e){u(l="function"==typeof e?e(l):Object.assign(Object.assign({},l),e))}}}function eM(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eL(e){return Object.assign(Object.assign({},e),{type:"info"})}function eD(e){return Object.assign(Object.assign({},e),{type:"success"})}function ej(e){return Object.assign(Object.assign({},e),{type:"error"})}function eF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eB=n(21467),eU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eZ=(0,eB.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:c,footer:u}=e,d=eU(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=a.useContext(l.E_),f=p(),g=t||p("modal"),h=(0,eS.Z)(f),[b,v,y]=eE(g,h),E="".concat(g,"-confirm"),S={};return S=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(eT,Object.assign({},e,{prefixCls:g,confirmPrefixCls:E,rootPrefixCls:f,content:c}))}:{closable:null==o||o,title:s,footer:null!==u&&a.createElement(el,Object.assign({},e)),children:c},b(a.createElement(H,Object.assign({prefixCls:g,className:m()(v,"".concat(g,"-pure-panel"),i&&E,i&&"".concat(E,"-").concat(i),n,y,h)},d,{closeIcon:ei(g,r),closable:o},S)))}),ez=n(79474),eH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},eG=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,s=eH(e,["afterClose","config"]);let[c,u]=a.useState(!0),[d,p]=a.useState(i),{direction:f,getPrefixCls:m}=a.useContext(l.E_),g=m("modal"),h=m(),v=function(){u(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);d.onCancel&&r&&d.onCancel.apply(d,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:v,update:e=>{p(t=>Object.assign(Object.assign({},t),e))}}));let y=null!==(n=d.okCancel)&&void 0!==n?n:"confirm"===d.type,[E]=(0,b.Z)("Modal",ez.Z.Modal);return a.createElement(eI,Object.assign({prefixCls:g,rootPrefixCls:h},d,{close:v,open:c,afterClose:()=>{var e;r(),null===(e=d.afterClose)||void 0===e||e.call(d)},okText:d.okText||(y?null==E?void 0:E.okText:null==E?void 0:E.justOkText),direction:d.direction||f,cancelText:d.cancelText||(null==E?void 0:E.cancelText)},s))});let e$=0,eW=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]);return[e,a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function eV(e){return eP(eM(e))}ex.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&((0,o.Z)(t).forEach(e=>{e()}),n([]))},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;e$+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),d=!1,p=a.createElement(eG,{key:"modal-".concat(e$),config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(p))&&eN.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,u.then(e))}},[]);return[a.useMemo(()=>({info:r(eL),success:r(eD),error:r(ej),warning:r(eM),confirm:r(eF)}),[]),a.createElement(eW,{key:"modal-holder",ref:e})]},ex.info=function(e){return eP(eL(e))},ex.success=function(e){return eP(eD(e))},ex.error=function(e){return eP(ej(e))},ex.warning=eV,ex.warn=eV,ex.confirm=function(e){return eP(eF(e))},ex.destroyAll=function(){for(;eN.length;){let e=eN.pop();e&&e()}},ex.config=function(e){let{rootPrefixCls:t}=e;eR=t},ex._InternalPanelDoNotUseOrYouWillBeFired=eZ;var eq=ex},4678:function(e,t,n){n.d(t,{A:function(){return s},f:function(){return l}});var r=n(79474);let o=Object.assign({},r.Z.Modal),a=[],i=()=>a.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},38302:function(e,t,n){var r=n(5056);t.Z=r.Z},50670:function(e,t,n){n.d(t,{default:function(){return tT}});var r=n(64090),o=n(16480),a=n.n(o),i=n(14749),l=n(63787),s=n(50833),c=n(5239),u=n(80406),d=n(6787),p=n(6976),f=n(44329),m=n(53850),g=n(24800),h=n(76158),b=n(4295),v=n(74084),y=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,l=e.onMouseDown,s=e.onClick,c="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:r.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))},E=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=r.useMemo(function(){return"object"===(0,p.Z)(o)?o.clearIcon:a||void 0},[o,a]);return{allowClear:r.useMemo(function(){return!i&&!!o&&(!!n.length||!!l)&&!("combobox"===s&&""===l)},[o,i,n.length,l,s]),clearIcon:r.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},S=r.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var x=n(72480),O=n(54739),k=r.forwardRef(function(e,t){var n,o=e.prefixCls,i=e.id,l=e.inputElement,s=e.disabled,u=e.tabIndex,d=e.autoFocus,p=e.autoComplete,f=e.editable,g=e.activeDescendantId,h=e.value,b=e.maxLength,y=e.onKeyDown,E=e.onMouseDown,S=e.onChange,w=e.onPaste,x=e.onCompositionStart,O=e.onCompositionEnd,k=e.open,C=e.attrs,T=l||r.createElement("input",null),A=T,I=A.ref,N=A.props,R=N.onKeyDown,_=N.onChange,P=N.onMouseDown,M=N.onCompositionStart,L=N.onCompositionEnd,D=N.style;return(0,m.Kp)(!("maxLength"in T.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),T=r.cloneElement(T,(0,c.Z)((0,c.Z)((0,c.Z)({type:"search"},N),{},{id:i,ref:(0,v.sQ)(t,I),disabled:s,tabIndex:u,autoComplete:p||"off",autoFocus:d,className:a()("".concat(o,"-selection-search-input"),null===(n=T)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":k?g:void 0},C),{},{value:f?h:"",maxLength:b,readOnly:!f,unselectable:f?null:"on",style:(0,c.Z)((0,c.Z)({},D),{},{opacity:f?null:0}),onKeyDown:function(e){y(e),R&&R(e)},onMouseDown:function(e){E(e),P&&P(e)},onChange:function(e){S(e),_&&_(e)},onCompositionStart:function(e){x(e),M&&M(e)},onCompositionEnd:function(e){O(e),L&&L(e)},onPaste:w}))});function C(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T=window.document&&window.document.documentElement;function A(e){return["string","number"].includes((0,p.Z)(e))}function I(e){var t=void 0;return e&&(A(e.title)?t=e.title.toString():A(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var R=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,c=e.open,d=e.searchValue,p=e.autoClearSearchValue,f=e.inputRef,m=e.placeholder,g=e.disabled,h=e.mode,b=e.showSearch,v=e.autoFocus,E=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,C=e.removeIcon,A=e.maxTagCount,_=e.maxTagTextLength,P=e.maxTagPlaceholder,M=void 0===P?function(e){return"+ ".concat(e.length," ...")}:P,L=e.tagRender,D=e.onToggleOpen,j=e.onRemove,F=e.onInputChange,B=e.onInputPaste,U=e.onInputKeyDown,Z=e.onInputMouseDown,z=e.onInputCompositionStart,H=e.onInputCompositionEnd,G=r.useRef(null),$=(0,r.useState)(0),W=(0,u.Z)($,2),V=W[0],q=W[1],Y=(0,r.useState)(!1),K=(0,u.Z)(Y,2),X=K[0],Q=K[1],J="".concat(i,"-selection"),ee=c||"multiple"===h&&!1===p||"tags"===h?d:"",et="tags"===h||"multiple"===h&&!1===p||b&&(c||X);t=function(){q(G.current.scrollWidth)},n=[ee],T?r.useLayoutEffect(t,n):r.useEffect(t,n);var en=function(e,t,n,o,i){return r.createElement("span",{title:I(e),className:a()("".concat(J,"-item"),(0,s.Z)({},"".concat(J,"-item-disabled"),n))},r.createElement("span",{className:"".concat(J,"-item-content")},t),o&&r.createElement(y,{className:"".concat(J,"-item-remove"),onMouseDown:R,onClick:i,customizeIcon:C},"\xd7"))},er=r.createElement("div",{className:"".concat(J,"-search"),style:{width:V},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},r.createElement(k,{ref:f,open:c,prefixCls:i,id:o,inputElement:null,disabled:g,autoFocus:v,autoComplete:E,editable:et,activeDescendantId:S,value:ee,onKeyDown:U,onMouseDown:Z,onChange:F,onPaste:B,onCompositionStart:z,onCompositionEnd:H,tabIndex:w,attrs:(0,x.Z)(e,!0)}),r.createElement("span",{ref:G,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee,"\xa0")),eo=r.createElement(O.Z,{prefixCls:"".concat(J,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,o=e.label,a=e.value,i=!g&&!n,l=o;if("number"==typeof _&&("string"==typeof o||"number"==typeof o)){var s=String(l);s.length>_&&(l="".concat(s.slice(0,_),"..."))}var u=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof L?(t=l,r.createElement("span",{onMouseDown:function(e){R(e),D(!c)}},L({label:t,value:a,disabled:n,closable:i,onClose:u}))):en(e,l,n,i,u)},renderRest:function(e){var t="function"==typeof M?M(e):M;return en({title:t},t,!1)},suffix:er,itemKey:N,maxCount:A});return r.createElement(r.Fragment,null,eo,!l.length&&!ee&&r.createElement("span",{className:"".concat(J,"-placeholder")},m))},P=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,d=e.mode,p=e.open,f=e.values,m=e.placeholder,g=e.tabIndex,h=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,E=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,O=e.onInputPaste,C=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=e.title,N=r.useState(!1),R=(0,u.Z)(N,2),_=R[0],P=R[1],M="combobox"===d,L=M||h,D=f[0],j=b||"";M&&v&&!_&&(j=v),r.useEffect(function(){M&&P(!1)},[M,v]);var F=("combobox"===d||!!p||!!h)&&!!j,B=void 0===A?I(D):A,U=r.useMemo(function(){return D?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},m)},[D,F,m,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(k,{ref:a,prefixCls:n,id:o,open:p,inputElement:t,disabled:i,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:c,value:j,onKeyDown:E,onMouseDown:S,onChange:function(e){P(!0),w(e)},onPaste:O,onCompositionStart:C,onCompositionEnd:T,tabIndex:g,attrs:(0,x.Z)(e,!0),maxLength:M?y:void 0})),!M&&D?r.createElement("span",{className:"".concat(n,"-selection-item"),title:B,style:F?{visibility:"hidden"}:void 0},D.label):null,U)},M=r.forwardRef(function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=e.prefixCls,l=e.open,s=e.mode,c=e.showSearch,d=e.tokenWithEnter,p=e.autoClearSearchValue,f=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=w(0),E=(0,u.Z)(y,2),S=E[0],x=E[1],O=(0,r.useRef)(null),k=function(e){!1!==f(e,!0,o.current)&&g(!0)},C={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===b.Z.UP||t===b.Z.DOWN)&&e.preventDefault(),h&&h(e),t!==b.Z.ENTER||"tags"!==s||o.current||l||null==m||m(e.target.value),[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(d&&O.current&&/[\r\n]/.test(O.current)){var n=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,O.current)}O.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");O.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},T="multiple"===s||"tags"===s?r.createElement(_,(0,i.Z)({},e,C)):r.createElement(P,(0,i.Z)({},e,C));return r.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||c&&t)&&l||(l&&!1!==p&&f("",!0,!1),g())}},T)}),L=n(44101),D=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},F=r.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,u=e.popupElement,p=e.animation,f=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,h=e.direction,b=e.placement,v=e.builtinPlacements,y=e.dropdownMatchSelectWidth,E=e.dropdownRender,S=e.dropdownAlign,w=e.getPopupContainer,x=e.empty,O=e.getTriggerDOMNode,k=e.onPopupVisibleChange,C=e.onPopupMouseEnter,T=(0,d.Z)(e,D),A="".concat(n,"-dropdown"),I=u;E&&(I=E(u));var N=r.useMemo(function(){return v||j(y)},[v,y]),R=p?"".concat(A,"-").concat(p):f,_="number"==typeof y,P=r.useMemo(function(){return _?null:!1===y?"minWidth":"width"},[y,_]),M=m;_&&(M=(0,c.Z)((0,c.Z)({},M),{},{width:y}));var F=r.useRef(null);return r.useImperativeHandle(t,function(){return{getPopupElement:function(){return F.current}}}),r.createElement(L.Z,(0,i.Z)({},T,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===(void 0===h?"ltr":h)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:A,popupTransitionName:R,popup:r.createElement("div",{ref:F,onMouseEnter:C},I),stretch:P,popupAlign:S,popupVisible:o,getPopupContainer:w,popupClassName:a()(g,(0,s.Z)({},"".concat(A,"-empty"),x)),popupStyle:M,getTriggerDOMNode:O,onPopupVisibleChange:k}),l)}),B=n(56721);function U(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function Z(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function z(e){var t=(0,c.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var H=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,B.Z)(n),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},G=r.createContext(null),$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],V=function(e){return"tags"===e||"multiple"===e},q=r.forwardRef(function(e,t){var n,o,m,x,O,k,C,T,A=e.id,I=e.prefixCls,N=e.className,R=e.showSearch,_=e.tagRender,P=e.direction,L=e.omitDomProps,D=e.displayValues,j=e.onDisplayValuesChange,B=e.emptyOptions,U=e.notFoundContent,Z=void 0===U?"Not Found":U,z=e.onClear,q=e.mode,Y=e.disabled,K=e.loading,X=e.getInputElement,Q=e.getRawInputElement,J=e.open,ee=e.defaultOpen,et=e.onDropdownVisibleChange,en=e.activeValue,er=e.onActiveValueChange,eo=e.activeDescendantId,ea=e.searchValue,ei=e.autoClearSearchValue,el=e.onSearch,es=e.onSearchSplit,ec=e.tokenSeparators,eu=e.allowClear,ed=e.suffixIcon,ep=e.clearIcon,ef=e.OptionList,em=e.animation,eg=e.transitionName,eh=e.dropdownStyle,eb=e.dropdownClassName,ev=e.dropdownMatchSelectWidth,ey=e.dropdownRender,eE=e.dropdownAlign,eS=e.placement,ew=e.builtinPlacements,ex=e.getPopupContainer,eO=e.showAction,ek=void 0===eO?[]:eO,eC=e.onFocus,eT=e.onBlur,eA=e.onKeyUp,eI=e.onKeyDown,eN=e.onMouseDown,eR=(0,d.Z)(e,$),e_=V(q),eP=(void 0!==R?R:e_)||"combobox"===q,eM=(0,c.Z)({},eR);W.forEach(function(e){delete eM[e]}),null==L||L.forEach(function(e){delete eM[e]});var eL=r.useState(!1),eD=(0,u.Z)(eL,2),ej=eD[0],eF=eD[1];r.useEffect(function(){eF((0,h.Z)())},[]);var eB=r.useRef(null),eU=r.useRef(null),eZ=r.useRef(null),ez=r.useRef(null),eH=r.useRef(null),eG=r.useRef(!1),e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,u.Z)(t,2),o=n[0],a=n[1],i=r.useRef(null),l=function(){window.clearTimeout(i.current)};return r.useEffect(function(){return l},[]),[o,function(t,n){l(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},l]}(),eW=(0,u.Z)(e$,3),eV=eW[0],eq=eW[1],eY=eW[2];r.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ez.current)||void 0===e?void 0:e.focus,blur:null===(t=ez.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eH.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=r.useMemo(function(){if("combobox"!==q)return ea;var e,t=null===(e=D[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[ea,q,D]),eX="combobox"===q&&"function"==typeof X&&X()||null,eQ="function"==typeof Q&&Q(),eJ=(0,v.x1)(eU,null==eQ||null===(x=eQ.props)||void 0===x?void 0:x.ref),e0=r.useState(!1),e1=(0,u.Z)(e0,2),e2=e1[0],e4=e1[1];(0,g.Z)(function(){e4(!0)},[]);var e3=(0,f.Z)(!1,{defaultValue:ee,value:J}),e6=(0,u.Z)(e3,2),e5=e6[0],e8=e6[1],e9=!!e2&&e5,e7=!Z&&B;(Y||e7&&e9&&"combobox"===q)&&(e9=!1);var te=!e7&&e9,tt=r.useCallback(function(e){var t=void 0!==e?e:!e9;Y||(e8(t),e9!==t&&(null==et||et(t)))},[Y,e9,e8,et]),tn=r.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),tr=r.useContext(G)||{},to=tr.maxCount,ta=tr.rawValues,ti=function(e,t,n){if(!((null==ta?void 0:ta.size)>=to)){var r=!0,o=e;null==er||er(null);var a=H(e,ec,to&&to-ta.size),i=n?null:a;return"combobox"!==q&&i&&(o="",null==es||es(i),tt(!1),r=!1),el&&eK!==o&&el(o,{source:t?"typing":"effect"}),r}};r.useEffect(function(){e9||e_||"combobox"===q||ti("",!1,!1)},[e9]),r.useEffect(function(){e5&&Y&&e8(!1),Y&&!eG.current&&eq(!1)},[Y]);var tl=w(),ts=(0,u.Z)(tl,2),tc=ts[0],tu=ts[1],td=r.useRef(!1),tp=[];r.useEffect(function(){return function(){tp.forEach(function(e){return clearTimeout(e)}),tp.splice(0,tp.length)}},[]);var tf=r.useState({}),tm=(0,u.Z)(tf,2)[1];eQ&&(k=function(e){tt(e)}),n=function(){var e;return[eB.current,null===(e=eZ.current)||void 0===e?void 0:e.getPopupElement()]},o=!!eQ,(m=r.useRef(null)).current={open:te,triggerOpen:tt,customizedTrigger:o},r.useEffect(function(){function e(e){if(null===(t=m.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),m.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&m.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=r.useMemo(function(){return(0,c.Z)((0,c.Z)({},e),{},{notFoundContent:Z,open:e9,triggerOpen:te,id:A,showSearch:eP,multiple:e_,toggleOpen:tt})},[e,Z,te,e9,A,eP,e_,tt]),th=!!ed||K;th&&(C=r.createElement(y,{className:a()("".concat(I,"-arrow"),(0,s.Z)({},"".concat(I,"-arrow-loading"),K)),customizeIcon:ed,customizeIconProps:{loading:K,searchValue:eK,open:e9,focused:eV,showSearch:eP}}));var tb=E(I,function(){var e;null==z||z(),null===(e=ez.current)||void 0===e||e.focus(),j([],{type:"clear",values:D}),ti("",!1,!1)},D,eu,ep,Y,eK,q),tv=tb.allowClear,ty=tb.clearIcon,tE=r.createElement(ef,{ref:eH}),tS=a()(I,N,(O={},(0,s.Z)(O,"".concat(I,"-focused"),eV),(0,s.Z)(O,"".concat(I,"-multiple"),e_),(0,s.Z)(O,"".concat(I,"-single"),!e_),(0,s.Z)(O,"".concat(I,"-allow-clear"),eu),(0,s.Z)(O,"".concat(I,"-show-arrow"),th),(0,s.Z)(O,"".concat(I,"-disabled"),Y),(0,s.Z)(O,"".concat(I,"-loading"),K),(0,s.Z)(O,"".concat(I,"-open"),e9),(0,s.Z)(O,"".concat(I,"-customize-input"),eX),(0,s.Z)(O,"".concat(I,"-show-search"),eP),O)),tw=r.createElement(F,{ref:eZ,disabled:Y,prefixCls:I,visible:te,popupElement:tE,animation:em,transitionName:eg,dropdownStyle:eh,dropdownClassName:eb,direction:P,dropdownMatchSelectWidth:ev,dropdownRender:ey,dropdownAlign:eE,placement:eS,builtinPlacements:ew,getPopupContainer:ex,empty:B,getTriggerDOMNode:function(){return eU.current},onPopupVisibleChange:k,onPopupMouseEnter:function(){tm({})}},eQ?r.cloneElement(eQ,{ref:eJ}):r.createElement(M,(0,i.Z)({},e,{domRef:eU,prefixCls:I,inputElement:eX,ref:ez,id:A,showSearch:eP,autoClearSearchValue:ei,mode:q,activeDescendantId:eo,tagRender:_,values:D,open:e9,onToggleOpen:tt,activeValue:en,searchValue:eK,onSearch:ti,onSearchSubmit:function(e){e&&e.trim()&&el(e,{source:"submit"})},onRemove:function(e){j(D.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tn})));return T=eQ?tw:r.createElement("div",(0,i.Z)({className:tS},eM,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eZ.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tp.indexOf(o);-1!==t&&tp.splice(t,1),eY(),ej||r.contains(document.activeElement)||null===(e=ez.current)||void 0===e||e.focus()});tp.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&j(o,{type:"remove",values:[a]})}for(var c=arguments.length,u=Array(c>1?c-1:0),d=1;d1?n-1:0),o=1;o0?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,K.height="100%",K.width=h,_?K.left=H:K.right=H):(Y.width=8,Y.top=0,Y.bottom=0,_?Y.right=0:Y.left=0,K.width="100%",K.height=h,K.top=H),r.createElement("div",{ref:P,className:a()(q,(n={},(0,s.Z)(n,"".concat(q,"-horizontal"),g),(0,s.Z)(n,"".concat(q,"-vertical"),!g),(0,s.Z)(n,"".concat(q,"-visible"),j),n)),style:(0,c.Z)((0,c.Z)({},Y),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:U},r.createElement("div",{ref:M,className:a()("".concat(q,"-thumb"),(0,s.Z)({},"".concat(q,"-thumb-moving"),w)),style:(0,c.Z)((0,c.Z)({},K),y),onMouseDown:$}))});function ea(e){var t=e.children,n=e.setRef,o=r.useCallback(function(e){n(e)},[]);return r.cloneElement(t,{ref:o})}var ei=n(97472),el=n(47365),es=n(65127),ec=function(){function e(){(0,el.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,es.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eu=n(48563),ed=("undefined"==typeof navigator?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);function ep(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(null),a=(0,r.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&a.current.top||e>0&&a.current.bottom;return t&&r?(clearTimeout(o.current),n.current=!1):(!r||n.current)&&(clearTimeout(o.current),n.current=!0,o.current=setTimeout(function(){n.current=!1},50)),!n.current&&r}}var ef=14/15;function em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var eg=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],eh=[],eb={overflowY:"auto",overflowAnchor:"none"},ev=r.forwardRef(function(e,t){var n,o,l,f,m,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W=e.prefixCls,V=void 0===W?"rc-virtual-list":W,q=e.className,Y=e.height,K=e.itemHeight,X=e.fullHeight,Q=e.style,er=e.data,el=e.children,es=e.itemKey,ev=e.virtual,ey=e.direction,eE=e.scrollWidth,eS=e.component,ew=e.onScroll,ex=e.onVirtualScroll,eO=e.onVisibleChange,ek=e.innerProps,eC=e.extraRender,eT=e.styles,eA=(0,d.Z)(e,eg),eI=!!(!1!==ev&&Y&&K),eN=eI&&er&&(K*er.length>Y||!!eE),eR="rtl"===ey,e_=a()(V,(0,s.Z)({},"".concat(V,"-rtl"),eR),q),eP=er||eh,eM=(0,r.useRef)(),eL=(0,r.useRef)(),eD=(0,r.useState)(0),ej=(0,u.Z)(eD,2),eF=ej[0],eB=ej[1],eU=(0,r.useState)(0),eZ=(0,u.Z)(eU,2),ez=eZ[0],eH=eZ[1],eG=(0,r.useState)(!1),e$=(0,u.Z)(eG,2),eW=e$[0],eV=e$[1],eq=function(){eV(!0)},eY=function(){eV(!1)},eK=r.useCallback(function(e){return"function"==typeof es?es(e):null==e?void 0:e[es]},[es]);function eX(e){eB(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tp.current)||(n=Math.min(n,tp.current)),n=Math.max(n,0));return eM.current.scrollTop=r,r})}var eQ=(0,r.useRef)({start:0,end:eP.length}),eJ=(0,r.useRef)(),e0=(o=r.useState(eP),f=(l=(0,u.Z)(o,2))[0],m=l[1],h=r.useState(null),v=(b=(0,u.Z)(h,2))[0],y=b[1],r.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a0&&void 0!==arguments[0]&&arguments[0];p();var t=function(){s.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,ei.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}}),l(function(e){return e+1})};e?t():d.current=(0,en.Z)(t)}return(0,r.useEffect)(function(){return p},[]),[function(r,o){var a=e(r),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,i]}(eK,null,null),e4=(0,u.Z)(e2,4),e3=e4[0],e6=e4[1],e5=e4[2],e8=e4[3],e9=r.useMemo(function(){if(!eI)return{scrollHeight:void 0,start:0,end:eP.length-1,offset:void 0};if(!eN)return{scrollHeight:(null===(e=eL.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eP.length-1,offset:void 0};for(var e,t,n,r,o=0,a=eP.length,i=0;i=eF&&void 0===t&&(t=i,n=o),c>eF+Y&&void 0===r&&(r=i),o=c}return void 0===t&&(t=0,n=0,r=Math.ceil(Y/K)),void 0===r&&(r=eP.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,eP.length-1),offset:n}},[eN,eI,eF,eP,e8,Y]),e7=e9.scrollHeight,te=e9.start,tt=e9.end,tn=e9.offset;eQ.current.start=te,eQ.current.end=tt;var tr=r.useState({width:0,height:Y}),to=(0,u.Z)(tr,2),ta=to[0],ti=to[1],tl=(0,r.useRef)(),ts=(0,r.useRef)(),tc=r.useMemo(function(){return em(ta.width,eE)},[ta.width,eE]),tu=r.useMemo(function(){return em(ta.height,e7)},[ta.height,e7]),td=e7-Y,tp=(0,r.useRef)(td);tp.current=td;var tf=eF<=0,tm=eF>=td,tg=ep(tf,tm),th=function(){return{x:eR?-ez:ez,y:eF}},tb=(0,r.useRef)(th()),tv=(0,eu.zX)(function(){if(ex){var e=th();(tb.current.x!==e.x||tb.current.y!==e.y)&&(ex(e),tb.current=e)}});function ty(e,t){t?((0,J.flushSync)(function(){eH(e)}),tv()):eX(e)}var tE=function(e){var t=e,n=eE-ta.width;return Math.min(t=Math.max(t,0),n)},tS=(0,eu.zX)(function(e,t){t?((0,J.flushSync)(function(){eH(function(t){return tE(t+(eR?-e:e))})}),tv()):eX(function(t){return t+e})}),tw=(E=!!eE,S=(0,r.useRef)(0),w=(0,r.useRef)(null),x=(0,r.useRef)(null),O=(0,r.useRef)(!1),k=ep(tf,tm),C=(0,r.useRef)(null),T=(0,r.useRef)(null),[function(e){if(eI){en.Z.cancel(T.current),T.current=(0,en.Z)(function(){C.current=null},2);var t,n=e.deltaX,r=e.deltaY,o=e.shiftKey,a=n,i=r;("sx"===C.current||!C.current&&o&&r&&!n)&&(a=r,i=0,C.current="sx");var l=Math.abs(a),s=Math.abs(i);(null===C.current&&(C.current=E&&l>s?"x":"y"),"y"===C.current)?(t=i,en.Z.cancel(w.current),S.current+=t,x.current=t,k(t)||(ed||e.preventDefault(),w.current=(0,en.Z)(function(){var e=O.current?10:1;tS(S.current*e),S.current=0}))):(tS(a,!0),ed||e.preventDefault())}},function(e){eI&&(O.current=e.detail===x.current)}]),tx=(0,u.Z)(tw,2),tO=tx[0],tk=tx[1];A=function(e,t){return!tg(e,t)&&(tO({preventDefault:function(){},deltaY:e}),!0)},N=(0,r.useRef)(!1),R=(0,r.useRef)(0),_=(0,r.useRef)(null),P=(0,r.useRef)(null),M=function(e){if(N.current){var t=Math.ceil(e.touches[0].pageY),n=R.current-t;R.current=t,A(n)&&e.preventDefault(),clearInterval(P.current),P.current=setInterval(function(){(!A(n*=ef,!0)||.1>=Math.abs(n))&&clearInterval(P.current)},16)}},L=function(){N.current=!1,I()},D=function(e){I(),1!==e.touches.length||N.current||(N.current=!0,R.current=Math.ceil(e.touches[0].pageY),_.current=e.target,_.current.addEventListener("touchmove",M),_.current.addEventListener("touchend",L))},I=function(){_.current&&(_.current.removeEventListener("touchmove",M),_.current.removeEventListener("touchend",L))},(0,g.Z)(function(){return eI&&eM.current.addEventListener("touchstart",D),function(){var e;null===(e=eM.current)||void 0===e||e.removeEventListener("touchstart",D),I(),clearInterval(P.current)}},[eI]),(0,g.Z)(function(){function e(e){eI&&e.preventDefault()}var t=eM.current;return t.addEventListener("wheel",tO),t.addEventListener("DOMMouseScroll",tk),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tO),t.removeEventListener("DOMMouseScroll",tk),t.removeEventListener("MozMousePixelScroll",e)}},[eI]),(0,g.Z)(function(){eE&&eH(function(e){return tE(e)})},[ta.width,eE]);var tC=function(){var e,t;null===(e=tl.current)||void 0===e||e.delayHidden(),null===(t=ts.current)||void 0===t||t.delayHidden()},tT=(j=r.useRef(),F=r.useState(null),U=(B=(0,u.Z)(F,2))[0],Z=B[1],(0,g.Z)(function(){if(U&&U.times<10){if(!eM.current){Z(function(e){return(0,c.Z)({},e)});return}e6(!0);var e=U.targetAlign,t=U.originAlign,n=U.index,r=U.offset,o=eM.current.clientHeight,a=!1,i=e,l=null;if(o){for(var s=e||t,u=0,d=0,p=0,f=Math.min(eP.length-1,n),m=0;m<=f;m+=1){var g=eK(eP[m]);d=u;var h=e5.get(g);u=p=d+(void 0===h?K:h)}for(var b="top"===s?r:o-r,v=f;v>=0;v-=1){var y=eK(eP[v]),E=e5.get(y);if(void 0===E){a=!0;break}if((b-=E)<=0)break}switch(s){case"top":l=d-r;break;case"bottom":l=p-o+r;break;default:var S=eM.current.scrollTop;dS+o&&(i="bottom")}null!==l&&eX(l),l!==U.lastTop&&(a=!0)}a&&Z((0,c.Z)((0,c.Z)({},U),{},{times:U.times+1,targetAlign:i,lastTop:l}))}},[U,eM.current]),function(e){if(null==e){tC();return}if(en.Z.cancel(j.current),"number"==typeof e)eX(e);else if(e&&"object"===(0,p.Z)(e)){var t,n=e.align;t="index"in e?e.index:eP.findIndex(function(t){return eK(t)===e.key});var r=e.offset;Z({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});r.useImperativeHandle(t,function(){return{getScrollInfo:th,scrollTo:function(e){e&&"object"===(0,p.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tE(e.left)),tT(e.top)):tT(e)}}}),(0,g.Z)(function(){eO&&eO(eP.slice(te,tt+1),eP)},[te,tt,eP]);var tA=(z=r.useMemo(function(){return[new Map,[]]},[eP,e5.id,K]),G=(H=(0,u.Z)(z,2))[0],$=H[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=G.get(e),r=G.get(t);if(void 0===n||void 0===r)for(var o=eP.length,a=$.length;aY&&r.createElement(eo,{ref:tl,prefixCls:V,scrollOffset:eF,scrollRange:e7,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tu,containerSize:ta.height,style:null==eT?void 0:eT.verticalScrollBar,thumbStyle:null==eT?void 0:eT.verticalScrollBarThumb}),eN&&eE&&r.createElement(eo,{ref:ts,prefixCls:V,scrollOffset:ez,scrollRange:eE,rtl:eR,onScroll:ty,onStartMove:eq,onStopMove:eY,spinSize:tc,containerSize:ta.width,horizontal:!0,style:null==eT?void 0:eT.horizontalScrollBar,thumbStyle:null==eT?void 0:eT.horizontalScrollBarThumb}))});ev.displayName="List";var ey=["disabled","title","children","style","className"];function eE(e){return"string"==typeof e||"number"==typeof e}var eS=r.forwardRef(function(e,t){var n=r.useContext(S),o=n.prefixCls,c=n.id,p=n.open,f=n.multiple,m=n.mode,g=n.searchValue,h=n.toggleOpen,v=n.notFoundContent,E=n.onPopupScroll,w=r.useContext(G),O=w.maxCount,k=w.flattenOptions,C=w.onActiveValue,T=w.defaultActiveFirstOption,A=w.onSelect,I=w.menuItemSelectedIcon,N=w.rawValues,R=w.fieldNames,_=w.virtual,P=w.direction,M=w.listHeight,L=w.listItemHeight,D=w.optionRender,j="".concat(o,"-item"),F=(0,X.Z)(function(){return k},[p,k],function(e,t){return t[0]&&e[1]!==t[1]}),B=r.useRef(null),U=r.useMemo(function(){return f&&void 0!==O&&(null==N?void 0:N.size)>=O},[f,O,null==N?void 0:N.size]),Z=function(e){e.preventDefault()},z=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},H=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=F.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=F[e];if(!r){C(null,-1,n);return}C(r.value,e,n)};(0,r.useEffect)(function(){Y(!1!==T?H(0):-1)},[F.length,g]);var K=r.useCallback(function(e){return N.has(e)&&"combobox"!==m},[m,(0,l.Z)(N).toString(),N.size]);(0,r.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&p&&1===N.size){var e=Array.from(N)[0],t=F.findIndex(function(t){return t.data.value===e});-1!==t&&(Y(t),z(t))}});return p&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[p,g]);var J=function(e){void 0!==e&&A(e,{selected:!N.has(e)}),f||h(!1)};if(r.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var r=0;if(t===b.Z.UP?r=-1:t===b.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?r=1:t===b.Z.P&&(r=-1)),0!==r){var o=H(V+r,r);z(o),Y(o,!0)}break;case b.Z.ENTER:var a,i=F[V];!i||null!=i&&null!==(a=i.data)&&void 0!==a&&a.disabled||U?J(void 0):J(i.value),p&&e.preventDefault();break;case b.Z.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===F.length)return r.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(j,"-empty"),onMouseDown:Z},v);var ee=Object.keys(R).map(function(e){return R[e]}),et=function(e){return e.label};function en(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var er=function(e){var t=F[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,l=(0,x.Z)(n,!0),s=et(t);return t?r.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof s||a?null:s},l,{key:e},en(t,e),{"aria-selected":K(o)}),o):null},eo={role:"listbox",id:"".concat(c,"_list")};return r.createElement(r.Fragment,null,_&&r.createElement("div",(0,i.Z)({},eo,{style:{height:0,width:0,overflow:"hidden"}}),er(V-1),er(V),er(V+1)),r.createElement(ev,{itemKey:"key",ref:B,data:F,height:M,itemHeight:L,fullHeight:!1,onMouseDown:Z,onScroll:E,virtual:_,direction:P,innerProps:_?null:eo},function(e,t){var n=e.group,o=e.groupOption,l=e.data,c=e.label,u=e.value,p=l.key;if(n){var f,m,g=null!==(m=l.title)&&void 0!==m?m:eE(c)?c.toString():void 0;return r.createElement("div",{className:a()(j,"".concat(j,"-group")),title:g},void 0!==c?c:p)}var h=l.disabled,b=l.title,v=(l.children,l.style),E=l.className,S=(0,d.Z)(l,ey),w=(0,Q.Z)(S,ee),O=K(u),k=h||!O&&U,C="".concat(j,"-option"),T=a()(j,C,E,(f={},(0,s.Z)(f,"".concat(C,"-grouped"),o),(0,s.Z)(f,"".concat(C,"-active"),V===t&&!k),(0,s.Z)(f,"".concat(C,"-disabled"),k),(0,s.Z)(f,"".concat(C,"-selected"),O),f)),A=et(e),N=!I||"function"==typeof I||O,R="number"==typeof A?A:A||u,P=eE(R)?R.toString():void 0;return void 0!==b&&(P=b),r.createElement("div",(0,i.Z)({},(0,x.Z)(w),_?{}:en(e,t),{"aria-selected":O,className:T,title:P,onMouseMove:function(){V===t||k||Y(t)},onClick:function(){k||J(u)},style:v}),r.createElement("div",{className:"".concat(C,"-content")},"function"==typeof D?D(e,{index:t}):R),r.isValidElement(I)||O,N&&r.createElement(y,{className:"".concat(j,"-option-state"),customizeIcon:I,customizeIconProps:{value:u,disabled:k,isSelected:O}},O?"✓":null))}))});function ew(e,t){return C(e).join("").toUpperCase().includes(t)}var ex=n(22127),eO=0,ek=(0,ex.Z)(),eC=n(33054),eT=["children","value"],eA=["children"];function eI(e){var t=r.useRef();return t.current=e,r.useCallback(function(){return t.current.apply(t,arguments)},[])}var eN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],eR=["inputValue"],e_=r.forwardRef(function(e,t){var n,o,a,m,g,h,b,v=e.id,y=e.mode,E=e.prefixCls,S=e.backfill,w=e.fieldNames,x=e.inputValue,O=e.searchValue,k=e.onSearch,T=e.autoClearSearchValue,A=void 0===T||T,I=e.onSelect,N=e.onDeselect,R=e.dropdownMatchSelectWidth,_=void 0===R||R,P=e.filterOption,M=e.filterSort,L=e.optionFilterProp,D=e.optionLabelProp,j=e.options,F=e.optionRender,B=e.children,H=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,W=e.virtual,Y=e.direction,K=e.listHeight,X=void 0===K?200:K,Q=e.listItemHeight,J=void 0===Q?20:Q,ee=e.value,et=e.defaultValue,en=e.labelInValue,er=e.onChange,eo=e.maxCount,ea=(0,d.Z)(e,eN),ei=(n=r.useState(),a=(o=(0,u.Z)(n,2))[0],m=o[1],r.useEffect(function(){var e;m("rc_select_".concat((ek?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),v||a),el=V(y),es=!!(!j&&B),ec=r.useMemo(function(){return(void 0!==P||"combobox"!==y)&&P},[P,y]),eu=r.useMemo(function(){return Z(w,es)},[JSON.stringify(w),es]),ed=(0,f.Z)("",{value:void 0!==O?O:x,postState:function(e){return e||""}}),ep=(0,u.Z)(ed,2),ef=ep[0],em=ep[1],eg=r.useMemo(function(){var e=j;j||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eC.Z)(t).map(function(t,o){if(!r.isValidElement(t)||!t.type)return null;var a,i,l,s,u,p=t.type.isSelectOptGroup,f=t.key,m=t.props,g=m.children,h=(0,d.Z)(m,eA);return n||!p?(a=t.key,l=(i=t.props).children,s=i.value,u=(0,d.Z)(i,eT),(0,c.Z)({key:a,value:void 0!==s?s:a,children:l},u)):(0,c.Z)((0,c.Z)({key:"__RC_SELECT_GRP__".concat(null===f?o:f,"__"),label:f},h),{},{options:e(g)})}).filter(function(e){return e})}(B));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Z(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&s in t){var a=t[c];void 0===a&&r&&(a=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:a}),e(t[s],!0)}else{var u=t[l];o.push({key:U(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(eH,{fieldNames:eu,childrenAsData:es})},[eH,eu,es]),e$=function(e){var t=ey(e);if(eP(t),er&&(t.length!==eD.length||t.some(function(e,t){var n;return(null===(n=eD[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=en?t:t.map(function(e){return e.value}),r=t.map(function(e){return z(ej(e.value))});er(el?n:n[0],el?r:r[0])}},eW=r.useState(null),eV=(0,u.Z)(eW,2),eq=eV[0],eY=eV[1],eK=r.useState(0),eX=(0,u.Z)(eK,2),eQ=eX[0],eJ=eX[1],e0=void 0!==H?H:"combobox"!==y,e1=r.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eJ(t),S&&"combobox"===y&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eY(String(e))},[S,y]),e2=function(e,t,n){var r=function(){var t,n=ej(e);return[en?{label:null==n?void 0:n[eu.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,z(n)]};if(t&&I){var o=r(),a=(0,u.Z)(o,2);I(a[0],a[1])}else if(!t&&N&&"clear"!==n){var i=r(),l=(0,u.Z)(i,2);N(l[0],l[1])}},e4=eI(function(e,t){var n=!el||t.selected;e$(n?el?[].concat((0,l.Z)(eD),[e]):[e]:eD.filter(function(t){return t.value!==e})),e2(e,n),"combobox"===y?eY(""):(!V||A)&&(em(""),eY(""))}),e3=r.useMemo(function(){var e=!1!==W&&!1!==_;return(0,c.Z)((0,c.Z)({},eg),{},{flattenOptions:eG,onActiveValue:e1,defaultActiveFirstOption:e0,onSelect:e4,menuItemSelectedIcon:$,rawValues:eB,fieldNames:eu,virtual:e,direction:Y,listHeight:X,listItemHeight:J,childrenAsData:es,maxCount:eo,optionRender:F})},[eo,eg,eG,e1,e0,e4,$,eB,eu,W,_,Y,X,J,es,F]);return r.createElement(G.Provider,{value:e3},r.createElement(q,(0,i.Z)({},ea,{id:ei,prefixCls:void 0===E?"rc-select":E,ref:t,omitDomProps:eR,mode:y,displayValues:eF,onDisplayValuesChange:function(e,t){e$(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){e2(e.value,!1,n)})},direction:Y,searchValue:ef,onSearch:function(e,t){if(em(e),eY(null),"submit"===t.source){var n=(e||"").trim();n&&(e$(Array.from(new Set([].concat((0,l.Z)(eB),[n])))),e2(n,!0),em(""));return}"blur"!==t.source&&("combobox"===y&&e$(e),null==k||k(e))},autoClearSearchValue:A,onSearchSplit:function(e){var t=e;"tags"!==y&&(t=e.map(function(e){var t=eb.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(eB),(0,l.Z)(t))));e$(n),n.forEach(function(e){e2(e,!0)})},dropdownMatchSelectWidth:_,OptionList:eS,emptyOptions:!eG.length,activeValue:eq,activeDescendantId:"".concat(ei,"_list_").concat(eQ)})))});e_.Option=K,e_.OptGroup=Y;var eP=n(51761),eM=n(47387),eL=n(21467),eD=n(47794),ej=n(57499),eF=n(70595),eB=n(6336),eU=n(24750),eZ=n(76585),ez=n(80316);let eH=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorText},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,["".concat(t,"-description")]:{color:e.colorTextDisabled},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}};var eG=(0,eZ.I$)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return[eH((0,ez.TS)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))]}),e$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let eW=r.createElement(()=>{let[,e]=(0,eU.ZP)(),t=new eB.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),eV=r.createElement(()=>{let[,e]=(0,eU.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=(0,r.useMemo)(()=>({borderColor:new eB.C(t).onBackground(a).toHexShortString(),shadowColor:new eB.C(n).onBackground(a).toHexShortString(),contentColor:new eB.C(o).onBackground(a).toHexShortString()}),[t,n,o,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:i},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},null),eq=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=eW,description:l,children:s,imageStyle:c,style:u}=e,d=e$(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:p,direction:f,empty:m}=r.useContext(ej.E_),g=p("empty",o),[h,b,v]=eG(g),[y]=(0,eF.Z)("Empty"),E=void 0!==l?l:null==y?void 0:y.description,S=null;return S="string"==typeof i?r.createElement("img",{alt:"string"==typeof E?E:"empty",src:i}):i,h(r.createElement("div",Object.assign({className:a()(b,v,g,null==m?void 0:m.className,{["".concat(g,"-normal")]:i===eV,["".concat(g,"-rtl")]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==m?void 0:m.style),u)},d),r.createElement("div",{className:"".concat(g,"-image"),style:c},S),E&&r.createElement("div",{className:"".concat(g,"-description")},E),s&&r.createElement("div",{className:"".concat(g,"-footer")},s)))};eq.PRESENTED_IMAGE_DEFAULT=eW,eq.PRESENTED_IMAGE_SIMPLE=eV;var eY=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(ej.E_),o=n("empty");switch(t){case"Table":case"List":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(eq,{image:eq.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});default:return r.createElement(eq,null)}},eK=n(17094),eX=n(92935),eQ=n(10693),eJ=n(47137),e0=n(8443),e1=n(92801);let e2=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var e4=n(11303),e3=n(12288),e6=n(202),e5=n(25926);let e8=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var e9=e=>{let{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n ".concat(o).concat(l,"bottomLeft,\n ").concat(a).concat(l,"bottomLeft\n ")]:{animationName:e6.fJ},["\n ".concat(o).concat(l,"topLeft,\n ").concat(a).concat(l,"topLeft,\n ").concat(o).concat(l,"topRight,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:e6.Qt},["".concat(i).concat(l,"bottomLeft")]:{animationName:e6.Uw},["\n ".concat(i).concat(l,"topLeft,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:e6.ly},"&-hidden":{display:"none"},["".concat(r)]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e4.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},(0,e6.oN)(e,"slide-up"),(0,e6.oN)(e,"slide-down"),(0,e5.Fm)(e,"move-up"),(0,e5.Fm)(e,"move-down")]},e7=n(8985);let te=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function tt(e,t){let{componentCls:n,iconCls:r}=e,o="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=te(e),l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(i).sub(2).equal(),borderRadius:e.borderRadius,["".concat(n,"-show-search&")]:{cursor:"text"},["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,e7.bf)(2)," 0"),lineHeight:(0,e7.bf)(a),visibility:"hidden",content:'"\\a0"'}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:(0,e7.bf)(e.calc(a).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,e4.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(r)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}}var tn=e=>{let{componentCls:t}=e,n=(0,ez.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,ez.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tt(e),tt(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},tt(r,"lg")]};function tr(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,e4.Wf)(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:(0,e7.bf)(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat((0,e7.bf)(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:(0,e7.bf)(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,e7.bf)(r)),"&:after":{display:"none"}}}}}}}let to=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,e7.bf)(o)," ").concat(t.activeShadowColor),outline:0}}}},ta=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},to(e,t))}),ti=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},to(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ta(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ta(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),tl=(e,t)=>{let{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ts=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},tl(e,t))}),tc=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tl(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ts(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ts(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),tu=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,e7.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}}});var td=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ti(e)),tc(e)),tu(e))});let tp=e=>{let{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},tf=e=>{let{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tm=e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,e4.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},tp(e)),tf(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e4.vS),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},e4.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,e4.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},tg=e=>{let{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},tm(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tr(e),tr((0,ez.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat((0,e7.bf)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tr((0,ez.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tn(e),e9(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,e3.c)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]};var th=(0,eZ.I$)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,ez.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tg(r),td(r)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:m,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:"".concat((r-t*n)/2,"px ").concat(o,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),tb=n(90507),tv=n(77136),ty=n(81303),tE=n(20383),tS=n(66155),tw=n(96871),tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tO="SECRET_COMBOBOX_MODE_DO_NOT_USE",tk=r.forwardRef((e,t)=>{var n,o,i;let l;let{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:p,popupClassName:f,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:b,size:v,disabled:y,notFoundContent:E,status:S,builtinPlacements:w,dropdownMatchSelectWidth:x,popupMatchSelectWidth:O,direction:k,style:C,allowClear:T,variant:A,dropdownStyle:I,transitionName:N,tagRender:R,maxCount:_}=e,P=tx(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:L,renderEmpty:D,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:U,select:Z}=r.useContext(ej.E_),[,z]=(0,eU.ZP)(),H=null!=b?b:null==z?void 0:z.controlHeight,G=L("select",s),$=L(),W=null!=k?k:j,{compactSize:V,compactItemClassnames:q}=(0,e1.ri)(G,W),[Y,K]=(0,e0.Z)(A,c),X=(0,eX.Z)(G),[J,ee,et]=th(G,X),en=r.useMemo(()=>{let{mode:t}=e;return"combobox"===t?void 0:t===tO?"combobox":t},[e.mode]),er="multiple"===en||"tags"===en,eo=(o=e.suffixIcon,void 0!==(i=e.showArrow)?i:null!==o),ea=null!==(n=null!=O?O:x)&&void 0!==n?n:B,{status:ei,hasFeedback:el,isFormItemInput:es,feedbackIcon:ec}=r.useContext(eJ.aM),eu=(0,eD.F)(ei,S);l=void 0!==E?E:"combobox"===en?null:(null==D?void 0:D("Select"))||r.createElement(eY,{componentName:"Select"});let{suffixIcon:ed,itemIcon:ep,removeIcon:ef,clearIcon:em}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e,m=null!=n?n:r.createElement(tv.Z,null),g=e=>null!==t||s||p?r.createElement(r.Fragment,null,!1!==u&&e,s&&d):null,h=null;if(void 0!==t)h=g(t);else if(i)h=g(r.createElement(tS.Z,{spin:!0}));else{let e="".concat(c,"-suffix");h=t=>{let{open:n,showSearch:o}=t;return n&&o?g(r.createElement(tw.Z,{className:e})):g(r.createElement(tE.Z,{className:e}))}}let b=null;return b=void 0!==o?o:l?r.createElement(tb.Z,null):null,{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:void 0!==a?a:r.createElement(ty.Z,null)}}(Object.assign(Object.assign({},P),{multiple:er,hasFeedback:el,feedbackIcon:ec,showSuffixIcon:eo,prefixCls:G,componentName:"Select"})),eg=(0,Q.Z)(P,["suffixIcon","itemIcon"]),eh=a()(f||m,{["".concat(G,"-dropdown-").concat(W)]:"rtl"===W},d,et,X,ee),eb=(0,eQ.Z)(e=>{var t;return null!==(t=null!=v?v:V)&&void 0!==t?t:e}),ev=r.useContext(eK.Z),ey=a()({["".concat(G,"-lg")]:"large"===eb,["".concat(G,"-sm")]:"small"===eb,["".concat(G,"-rtl")]:"rtl"===W,["".concat(G,"-").concat(Y)]:K,["".concat(G,"-in-form-item")]:es},(0,eD.Z)(G,eu,el),q,null==Z?void 0:Z.className,u,d,et,X,ee),eE=r.useMemo(()=>void 0!==h?h:"rtl"===W?"bottomRight":"bottomLeft",[h,W]),[eS]=(0,eP.Cn)("SelectLike",null==I?void 0:I.zIndex);return J(r.createElement(e_,Object.assign({ref:t,virtual:F,showSearch:null==Z?void 0:Z.showSearch},eg,{style:Object.assign(Object.assign({},null==Z?void 0:Z.style),C),dropdownMatchSelectWidth:ea,transitionName:(0,eM.m)($,"slide-up",N),builtinPlacements:w||e2(U),listHeight:g,listItemHeight:H,mode:en,prefixCls:G,placement:eE,direction:W,suffixIcon:ed,menuItemSelectedIcon:ep,removeIcon:ef,allowClear:!0===T?{clearIcon:em}:T,notFoundContent:l,className:ey,getPopupContainer:p||M,dropdownClassName:eh,disabled:null!=y?y:ev,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:eS}),maxCount:er?_:void 0,tagRender:er?R:void 0})))}),tC=(0,eL.Z)(tk);tk.SECRET_COMBOBOX_MODE_DO_NOT_USE=tO,tk.Option=K,tk.OptGroup=Y,tk._InternalPanelDoNotUseOrYouWillBeFired=tC;var tT=tk},92801:function(e,t,n){n.d(t,{BR:function(){return f},ri:function(){return p}});var r=n(16480),o=n.n(r),a=n(33054),i=n(64090),l=n(57499),s=n(10693),c=n(86682),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=i.createContext(null),p=(e,t)=>{let n=i.useContext(d),r=i.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:a,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return o()("".concat(e,"-compact").concat(l,"item"),{["".concat(e,"-compact").concat(l,"first-item")]:a,["".concat(e,"-compact").concat(l,"last-item")]:i,["".concat(e,"-compact").concat(l,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},f=e=>{let{children:t}=e;return i.createElement(d.Provider,{value:null},t)},m=e=>{var{children:t}=e,n=u(e,["children"]);return i.createElement(d.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=i.useContext(l.E_),{size:r,direction:p,block:f,prefixCls:g,className:h,rootClassName:b,children:v}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),E=(0,s.Z)(e=>null!=r?r:e),S=t("space-compact",g),[w,x]=(0,c.Z)(S),O=o()(S,x,{["".concat(S,"-rtl")]:"rtl"===n,["".concat(S,"-block")]:f,["".concat(S,"-vertical")]:"vertical"===p},h,b),k=i.useContext(d),C=(0,a.Z)(v),T=i.useMemo(()=>C.map((e,t)=>{let n=e&&e.key||"".concat(S,"-item-").concat(t);return i.createElement(m,{key:n,compactSize:E,compactDirection:p,isFirstItem:0===t&&(!k||(null==k?void 0:k.isFirstItem)),isLastItem:t===C.length-1&&(!k||(null==k?void 0:k.isLastItem))},e)}),[r,C,k]);return 0===C.length?null:w(i.createElement("div",Object.assign({className:O},y),T))}},65270:function(e,t,n){n.d(t,{Z:function(){return b}});var r=n(64090),o=n(16480),a=n.n(o),i=n(33054);function l(e){return["small","middle","large"].includes(e)}function s(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}var c=n(57499),u=n(92801);let d=r.createContext({latestIndex:0}),p=d.Provider;var f=e=>{let{className:t,index:n,children:o,split:a,style:i}=e,{latestIndex:l}=r.useContext(d);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:i},o),nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=r.forwardRef((e,t)=>{var n,o;let{getPrefixCls:u,space:d,direction:h}=r.useContext(c.E_),{size:b=(null==d?void 0:d.size)||"small",align:v,className:y,rootClassName:E,children:S,direction:w="horizontal",prefixCls:x,split:O,style:k,wrap:C=!1,classNames:T,styles:A}=e,I=g(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,R]=Array.isArray(b)?b:[b,b],_=l(R),P=l(N),M=s(R),L=s(N),D=(0,i.Z)(S,{keepEmpty:!0}),j=void 0===v&&"horizontal"===w?"center":v,F=u("space",x),[B,U,Z]=(0,m.Z)(F),z=a()(F,null==d?void 0:d.className,U,"".concat(F,"-").concat(w),{["".concat(F,"-rtl")]:"rtl"===h,["".concat(F,"-align-").concat(j)]:j,["".concat(F,"-gap-row-").concat(R)]:_,["".concat(F,"-gap-col-").concat(N)]:P},y,E,Z),H=a()("".concat(F,"-item"),null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==d?void 0:d.classNames)||void 0===o?void 0:o.item),G=0,$=D.map((e,t)=>{var n,o;null!=e&&(G=t);let a=e&&e.key||"".concat(H,"-").concat(t);return r.createElement(f,{className:H,key:a,index:t,split:O,style:null!==(n=null==A?void 0:A.item)&&void 0!==n?n:null===(o=null==d?void 0:d.styles)||void 0===o?void 0:o.item},e)}),W=r.useMemo(()=>({latestIndex:G}),[G]);if(0===D.length)return null;let V={};return C&&(V.flexWrap="wrap"),!P&&L&&(V.columnGap=N),!_&&M&&(V.rowGap=R),B(r.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),null==d?void 0:d.style),k)},I),r.createElement(p,{value:W},$)))});h.Compact=u.ZP;var b=h},86682:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(76585),o=n(80316),a=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var s=(0,r.I$)("Space",e=>{let t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[i(t),l(t),a(t)]},()=>({}),{resetStyle:!1})},12288:function(e,t,n){n.d(t,{c:function(){return r}});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(i)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(i)]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}},11303:function(e,t,n){n.d(t,{Lx:function(){return s},Qy:function(){return d},Ro:function(){return i},Wf:function(){return a},dF:function(){return l},du:function(){return c},oN:function(){return u},vS:function(){return o}});var r=n(8985);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]');return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:"".concat((0,r.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},46154:function(e,t){t.Z=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}})},13703:function(e,t,n){n.d(t,{J$:function(){return l}});var r=n(8985),o=n(59353);let a=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r="".concat(n,"-fade"),l=t?"&":"";return[(0,o.R)(r,a,i,e.motionDurationMid,t),{["\n ".concat(l).concat(r,"-enter,\n ").concat(l).concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(l).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]}},59353:function(e,t,n){n.d(t,{R:function(){return a}});let r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=i?"&":"";return{["\n ".concat(l).concat(e,"-enter,\n ").concat(l).concat(e,"-appear\n ")]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),["".concat(l).concat(e,"-leave")]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),["\n ".concat(l).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(l).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(l).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},25926:function(e,t,n){n.d(t,{Fm:function(){return p}});var r=n(8985),o=n(59353);let a=new r.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new r.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new r.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new r.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new r.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:a,outKeyframes:i},"move-left":{inKeyframes:l,outKeyframes:s},"move-right":{inKeyframes:c,outKeyframes:u}},p=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},202:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return i},fJ:function(){return a},ly:function(){return s},oN:function(){return d}});var r=n(8985),o=n(59353);let a=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},d=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=u[t];return[(0,o.R)(r,a,i,e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},58854:function(e,t,n){n.d(t,{_y:function(){return g},kr:function(){return a}});var r=n(8985),o=n(59353);let a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),p=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:d,outKeyframes:p},"zoom-right":{inKeyframes:f,outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},g=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=m[t];return[(0,o.R)(r,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},89869:function(e,t,n){n.d(t,{ZP:function(){return i},qN:function(){return o},wZ:function(){return a}});var r=n(2638);let o=8;function a(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o:r}}function i(e,t,n){var o,a,i,l,s,c,u,d;let{componentCls:p,boxShadowPopoverArrow:f,arrowOffsetVertical:m,arrowOffsetHorizontal:g}=e,{arrowDistance:h=0,arrowPlacement:b={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(p,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,r.W)(e,t,f)),{"&:before":{background:t}})]},(o=!!b.top,a={[["&-placement-top > ".concat(p,"-arrow"),"&-placement-topLeft > ".concat(p,"-arrow"),"&-placement-topRight > ".concat(p,"-arrow")].join(",")]:{bottom:h,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-topRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},o?a:{})),(i=!!b.bottom,l={[["&-placement-bottom > ".concat(p,"-arrow"),"&-placement-bottomLeft > ".concat(p,"-arrow"),"&-placement-bottomRight > ".concat(p,"-arrow")].join(",")]:{top:h,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(p,"-arrow")]:{left:{_skip_check_:!0,value:g}},["&-placement-bottomRight > ".concat(p,"-arrow")]:{right:{_skip_check_:!0,value:g}}},i?l:{})),(s=!!b.left,c={[["&-placement-left > ".concat(p,"-arrow"),"&-placement-leftTop > ".concat(p,"-arrow"),"&-placement-leftBottom > ".concat(p,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:h},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(p,"-arrow")]:{top:m},["&-placement-leftBottom > ".concat(p,"-arrow")]:{bottom:m}},s?c:{})),(u=!!b.right,d={[["&-placement-right > ".concat(p,"-arrow"),"&-placement-rightTop > ".concat(p,"-arrow"),"&-placement-rightBottom > ".concat(p,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:h},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(p,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(p,"-arrow")]:{top:m},["&-placement-rightBottom > ".concat(p,"-arrow")]:{bottom:m}},u?d:{}))}}},2638:function(e,t,n){n.d(t,{W:function(){return a},w:function(){return o}});var r=n(8985);function o(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=1*r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,s=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,c=2*o-l,u=2*o-a,d=2*o-0,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),f=r*(Math.sqrt(2)-1),m="polygon(".concat(f,"px 100%, 50% ").concat(f,"px, ").concat(2*o-f,"px 100%, ").concat(f,"px 100%)");return{arrowShadowWidth:p,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(a," ").concat(i," L ").concat(l," ").concat(s," A ").concat(n," ").concat(n," 0 0 1 ").concat(c," ").concat(s," L ").concat(u," ").concat(i," A ").concat(r," ").concat(r," 0 0 0 ").concat(d," ").concat(o," Z')"),arrowPolygon:m}}let a=(e,t,n)=>{let{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat((0,r.bf)(s)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},43345:function(e,t,n){n.d(t,{Mj:function(){return v},u_:function(){return b},uH:function(){return h}});var r=n(64090),o=n(8985),a=n(12215),i=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},l=n(46864),s=n(6336),c=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};let u=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),d=(e,t)=>new s.C(e).darken(t).toHexString(),p=e=>{let t=(0,a.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.88),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.15),colorFillSecondary:u(r,.06),colorFillTertiary:u(r,.04),colorFillQuaternary:u(r,.02),colorBgLayout:d(n,4),colorBgContainer:d(n,0),colorBgElevated:d(n,0),colorBgSpotlight:u(r,.85),colorBgBlur:"transparent",colorBorder:d(n,15),colorBorderSecondary:d(n,6)}};var m=n(49202),g=e=>{let t=(0,m.Z)(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};let h=(0,o.jG)(function(e){let t=Object.keys(l.M).map(t=>{let n=(0,a.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t,{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),f=n(o),m=n(a),g=n(i),h=n(l),b=r(u,d),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},b),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new s.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:p,generateNeutralColorPalettes:f})),g(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),i(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},c(r))}(e))}),b={token:l.Z,override:{override:l.Z},hashed:!0},v=r.createContext(b)},46864:function(e,t,n){n.d(t,{M:function(){return r}});let r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},49202:function(e,t,n){function r(e){return(e+8)/e}function o(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{D:function(){return r},Z:function(){return o}})},24750:function(e,t,n){n.d(t,{ZP:function(){return b},ID:function(){return m},NJ:function(){return f}});var r=n(64090),o=n(8985),a=n(43345),i=n(46864),l=n(6336);function s(e){return e>=0&&e<=255}var c=function(e,t){let{r:n,g:r,b:o,a:a}=new l.C(e).toRgb();if(a<1)return e;let{r:i,g:c,b:u}=new l.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-c*(1-e))/e),d=Math.round((o-u*(1-e))/e);if(s(t)&&s(a)&&s(d))return new l.C({r:t,g:a,b:d,a:Math.round(100*e)/100}).toRgbString()}return new l.C({r:n,g:r,b:o,a:1}).toRgbString()},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d(e){let{override:t}=e,n=u(e,["override"]),r=Object.assign({},t);Object.keys(i.Z).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:c(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:c(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:c(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:c(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new l.C("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new l.C("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new l.C("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},m={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,a=p(t,["override"]),i=Object.assign(Object.assign({},r),{override:o});return i=d(i),a&&Object.entries(a).forEach(e=>{let[t,n]=e,{theme:r}=n,o=p(n,["theme"]),a=o;r&&(a=h(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a}),i};function b(){let{token:e,hashed:t,theme:n,override:l,cssVar:s}=r.useContext(a.Mj),c="".concat("5.13.2","-").concat(t||""),u=n||a.uH,[p,b,v]=(0,o.fp)(u,[i.Z,e],{salt:c,override:l,getComputedToken:h,formatToken:d,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:f,ignore:m,preserve:g}});return[u,v,t?b:"",p,s]}},76585:function(e,t,n){n.d(t,{ZP:function(){return k},I$:function(){return A},bk:function(){return C}});var r=n(64090),o=n(8985);n(48563);var a=n(57499),i=n(11303),l=n(24750),s=n(47365),c=n(65127),u=n(72784),d=n(29676),p=n(68605),f=n(27478);let m=(0,c.Z)(function e(){(0,s.Z)(this,e)}),g=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(m),h="CALC_UNIT";function b(e){return"number"==typeof e?"".concat(e).concat(h):e}let v=function(e){function t(e){var n,r,o;return(0,s.Z)(this,t),r=t,r=(0,p.Z)(r),(n=(0,u.Z)(this,(0,d.Z)()?Reflect.construct(r,o||[],(0,p.Z)(this).constructor):r.apply(this,o))).result="",e instanceof t?n.result="(".concat(e.result,")"):"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,f.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){let{unit:t=!0}=e||{},n=RegExp("".concat(h),"g");return(this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),t}(m);var y=e=>{let t="css"===e?v:g;return e=>new t(e)},E=n(80316),S=n(28030);let w=(e,t,n)=>{var r;return"function"==typeof n?n((0,E.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},x=(e,t,n,r)=>{let o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){let{deprecatedTokens:e}=r;e.forEach(e=>{var t;let[n,r]=e;((null==o?void 0:o[n])||(null==o?void 0:o[r]))&&(null!==(t=o[r])&&void 0!==t||(o[r]=null==o?void 0:o[n]))})}let a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(e=>{a[e]===t[e]&&delete a[e]}),a},O=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function k(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{let[c,p,f,m,g]=(0,l.ZP)(),{getPrefixCls:h,iconPrefixCls:b,csp:v}=(0,r.useContext)(a.E_),k=h(),C=g?"css":"js",T=y(C),{max:A,min:I}="js"===C?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.bf)(e)).join(","),")")}},N={theme:c,token:m,hashId:f,nonce:()=>null==v?void 0:v.nonce,clientOnly:s.clientOnly,order:s.order||-999};return(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",k]}),()=>[{"&":(0,i.Lx)(m)}]),(0,S.Z)(b,v),[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,b]}),()=>{if(!1===s.injectStyle)return[];let{token:r,flush:a}=(0,E.ZP)(m),l=w(u,p,n),c=".".concat(e),d=x(u,p,l,{deprecatedTokens:s.deprecatedTokens});g&&Object.keys(l).forEach(e=>{l[e]="var(".concat((0,o.ks)(e,O(u,g.prefix)),")")});let h=(0,E.TS)(r,{componentCls:c,prefixCls:e,iconCls:".".concat(b),antCls:".".concat(k),calc:T,max:A,min:I},g?l:d),v=t(h,{hashId:f,prefixCls:e,rootPrefixCls:k,iconPrefixCls:b});return a(u,d),[!1===s.resetStyle?null:(0,i.du)(h,e),v]}),f]}}let C=(e,t,n,r)=>{let o=k(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n)=>{function a(t){return"".concat(e).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}let{unitless:i={},injectStyle:s=!0}=null!=n?n:{},c={[a("zIndexPopup")]:!0};Object.keys(i).forEach(e=>{c[a(e)]=i[e]});let u=r=>{let{rootCls:i,cssVar:s}=r,[,u]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},l.NJ),c),ignore:l.ID,token:u,scope:i},()=>{let r=w(e,u,t),o=x(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(e=>{o[a(e)]=o[e],delete o[e]}),o}),null};return t=>{let[,,,,n]=(0,l.ZP)();return[o=>s&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}},A=(e,t,n,r)=>{let o=k(e,t,n,r),a=T(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,[,n]=o(e),[r,i]=a(t);return[r,n,i]}}},80316:function(e,t,n){n.d(t,{TS:function(){return a}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}t.ZP=e=>{let t;let n=e,a=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{var r;i[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=i[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:a}}},28030:function(e,t,n){var r=n(8985),o=n(11303),a=n(24750);t.Z=(e,t)=>{let[n,i]=(0,a.ZP)();return(0,r.xy)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[".".concat(e)]:Object.assign(Object.assign({},(0,o.Ro)()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])}},1460:function(e,t,n){n.d(t,{Z:function(){return H}});var r=n(64090),o=n(16480),a=n.n(o);function i(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return r.createElement("div",{className:a()("".concat(n,"-content"),l),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}var l=n(14749),s=n(5239),c=n(6787),u=n(44101),d={shiftX:64,adjustY:1},p={adjustX:1,shiftY:!0},f=[0,0],m={left:{points:["cr","cl"],overflow:p,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:p,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:p,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:p,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:p,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:p,offset:[-4,0],targetOffset:f}},g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],h=(0,r.forwardRef)(function(e,t){var n=e.overlayClassName,o=e.trigger,a=e.mouseEnterDelay,d=e.mouseLeaveDelay,p=e.overlayStyle,f=e.prefixCls,h=void 0===f?"rc-tooltip":f,b=e.children,v=e.onVisibleChange,y=e.afterVisibleChange,E=e.transitionName,S=e.animation,w=e.motion,x=e.placement,O=e.align,k=e.destroyTooltipOnHide,C=e.defaultVisible,T=e.getTooltipContainer,A=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),N=e.id,R=e.showArrow,_=(0,c.Z)(e,g),P=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,function(){return P.current});var M=(0,s.Z)({},_);return"visible"in e&&(M.popupVisible=e.visible),r.createElement(u.Z,(0,l.Z)({popupClassName:n,prefixCls:h,popup:function(){return r.createElement(i,{key:"content",prefixCls:h,id:N,overlayInnerStyle:A},I)},action:void 0===o?["hover"]:o,builtinPlacements:m,popupPlacement:void 0===x?"right":x,ref:P,popupAlign:void 0===O?{}:O,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:E,popupAnimation:S,popupMotion:w,defaultPopupVisible:C,autoDestroy:void 0!==k&&k,mouseLeaveDelay:void 0===d?.1:d,popupStyle:p,mouseEnterDelay:void 0===a?0:a,arrow:void 0===R||R},M),b)}),b=n(44329),v=n(51761),y=n(47387),E=n(67966),S=n(65823),w=n(76564),x=n(86718),O=n(57499),k=n(92801),C=n(24750),T=n(11303),A=n(58854),I=n(89869);let N=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var R=n(80316),_=n(76585),P=n(8985),M=n(2638);let L=e=>{var t;let{componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,["".concat(n,"-inner")]:{minWidth:s,minHeight:s,padding:"".concat((0,P.bf)(e.calc(u).div(2).equal())," ").concat((0,P.bf)(d)),color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{["".concat(n,"-inner")]:{borderRadius:e.min(i,I.qN)}},["".concat(n,"-content")]:{position:"relative"}}),(t=(e,t)=>{let{darkColor:r}=t;return{["&".concat(n,"-").concat(e)]:{["".concat(n,"-inner")]:{backgroundColor:r},["".concat(n,"-arrow")]:{"--antd-arrow-background-color":r}}}},N.reduce((n,r)=>{let o=e["".concat(r,"1")],a=e["".concat(r,"3")],i=e["".concat(r,"6")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{}))),{"&-rtl":{direction:"rtl"}})},(0,I.ZP)(e,"var(--antd-arrow-background-color)"),{["".concat(n,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},D=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,I.wZ)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,M.w)((0,R.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));function j(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,_.I$)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[L((0,R.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),(0,A._y)(e,"zoom-big-fast")]},D,{resetStyle:!1,injectStyle:t})(e)}var F=n(63787);let B=N.map(e=>"".concat(e,"-inverse"));function U(e,t){let n=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,F.Z)(B),(0,F.Z)(N)).includes(e):N.includes(e)}(t),r=a()({["".concat(e,"-").concat(t)]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=r.forwardRef((e,t)=>{var n,o;let{prefixCls:i,openClassName:l,getTooltipContainer:s,overlayClassName:c,color:u,overlayInnerStyle:d,children:p,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:T=!0,title:A,overlay:I,builtinPlacements:N,arrowPointAtCenter:R=!1,autoAdjustOverflow:_=!0}=e,P=!!T,[,M]=(0,C.ZP)(),{getPopupContainer:L,getPrefixCls:D,direction:F}=r.useContext(O.E_),B=(0,w.ln)("Tooltip"),z=r.useRef(null),H=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>({forceAlign:H,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),H()}}));let[G,$]=(0,b.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),W=!A&&!I&&0!==A,V=r.useMemo(()=>{var e,t;let n=R;return"object"==typeof T&&(n=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:R),N||(0,E.Z)({arrowPointAtCenter:n,autoAdjustOverflow:_,arrowWidth:P?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[R,T,N,M]),q=r.useMemo(()=>0===A?A:I||A||"",[I,A]),Y=r.createElement(k.BR,null,"function"==typeof q?q():q),{getPopupContainer:K,placement:X="top",mouseEnterDelay:Q=.1,mouseLeaveDelay:J=.1,overlayStyle:ee,rootClassName:et}=e,en=Z(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),er=D("tooltip",i),eo=D(),ea=e["data-popover-inject"],ei=G;"open"in e||"visible"in e||!W||(ei=!1);let el=(0,S.l$)(p)&&!(0,S.M2)(p)?p:r.createElement("span",null,p),es=el.props,ec=es.className&&"string"!=typeof es.className?es.className:a()(es.className,l||"".concat(er,"-open")),[eu,ed,ep]=j(er,!ea),ef=U(er,u),em=ef.arrowStyle,eg=Object.assign(Object.assign({},d),ef.overlayStyle),eh=a()(c,{["".concat(er,"-rtl")]:"rtl"===F},ef.className,et,ed,ep),[eb,ev]=(0,v.Cn)("Tooltip",en.zIndex),ey=r.createElement(h,Object.assign({},en,{zIndex:eb,showArrow:P,placement:X,mouseEnterDelay:Q,mouseLeaveDelay:J,prefixCls:er,overlayClassName:eh,overlayStyle:Object.assign(Object.assign({},em),ee),getTooltipContainer:K||s||L,ref:z,builtinPlacements:V,overlay:Y,visible:ei,onVisibleChange:t=>{var n,r;$(!W&&t),W||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:m,overlayInnerStyle:eg,arrowContent:r.createElement("span",{className:"".concat(er,"-arrow-content")}),motion:{motionName:(0,y.m)(eo,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ei?(0,S.Tm)(el,{className:ec}):el);return eu(r.createElement(x.Z.Provider,{value:ev},ey))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:o="top",title:l,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=r.useContext(O.E_),d=u("tooltip",t),[p,f,m]=j(d),g=U(d,s),h=g.arrowStyle,b=Object.assign(Object.assign({},c),g.overlayStyle),v=a()(f,m,d,"".concat(d,"-pure"),"".concat(d,"-placement-").concat(o),n,g.className);return p(r.createElement("div",{className:v,style:h},r.createElement("div",{className:"".concat(d,"-arrow")}),r.createElement(i,Object.assign({},e,{className:f,prefixCls:d,overlayInnerStyle:b}),l)))};var H=z},36083:function(e,t,n){n.d(t,{default:function(){return eh}});var r=n(64090),o=n(90507),a=n(14749),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},l=n(60688),s=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},u=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:c}))}),d=n(16480),p=n.n(d),f=n(81441),m=n.n(f),g=n(46505),h=n(33054),b=n(24800),v=n(44329),y=n(35704),E=n(74084),S=n(22127),w=function(e){if((0,S.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},x=function(e,t){if(!w(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function O(e,t){return Array.isArray(e)||void 0===t?w(e):x(e,t)}var k=n(4295),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let T={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},A=r.forwardRef((e,t)=>{let{style:n,noStyle:o,disabled:a}=e,i=C(e,["style","noStyle","disabled"]),l={};return o||(l=Object.assign({},T)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),r.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{let{keyCode:t}=e;t===k.Z.ENTER&&e.preventDefault()},onKeyUp:t=>{let{keyCode:n}=t,{onClick:r}=e;n===k.Z.ENTER&&r&&r()},style:l}))});var I=n(57499),N=n(70595),R=n(1460),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},P=r.forwardRef(function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:_}))}),M=n(65823),L=n(78578);let D=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var j=n(76585),F=n(12215),B=n(8985);let U=(e,t,n,r)=>{let{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Z=e=>{let t={};return[1,2,3,4,5].forEach(n=>{t["\n h".concat(n,"&,\n div&-h").concat(n,",\n div&-h").concat(n," > textarea,\n h").concat(n,"\n ")]=U(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)}),t},z=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},D(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},H=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:F.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),G=e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:"calc(1em - ".concat((0,B.bf)(n),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),W=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),V=e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Z(e)),{["\n & + h1".concat(t,",\n & + h2").concat(t,",\n & + h3").concat(t,",\n & + h4").concat(t,",\n & + h5").concat(t,"\n ")]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),H(e)),z(e)),{["\n ".concat(t,"-expand,\n ").concat(t,"-edit,\n ").concat(t,"-copy\n ")]:Object.assign(Object.assign({},D(e)),{marginInlineStart:e.marginXXS})}),G(e)),$(e)),W()),{"&-rtl":{direction:"rtl"}})}};var q=(0,j.I$)("Typography",e=>[V(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),Y=e=>{let{prefixCls:t,"aria-label":n,className:o,style:a,direction:i,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=r.createElement(P,null)}=e,h=r.useRef(null),b=r.useRef(!1),v=r.useRef(),[y,E]=r.useState(c);r.useEffect(()=>{E(c)},[c]),r.useEffect(()=>{if(h.current&&h.current.resizableTextArea){let{textArea:e}=h.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let S=()=>{u(y.trim())},w=m?"".concat(t,"-").concat(m):"",[x,O,C]=q(t),T=p()(t,"".concat(t,"-edit-content"),{["".concat(t,"-rtl")]:"rtl"===i},o,w,O,C);return x(r.createElement("div",{className:T,style:a},r.createElement(L.Z,{ref:h,maxLength:l,value:y,onChange:e=>{let{target:t}=e;E(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;b.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:a}=e;v.current!==t||b.current||n||r||o||a||(t===k.Z.ENTER?(S(),null==f||f()):t===k.Z.ESC&&d())},onCompositionStart:()=>{b.current=!0},onCompositionEnd:()=>{b.current=!1},onBlur:()=>{S()},"aria-label":n,rows:1,autoSize:s}),null!==g?(0,M.Tm)(g,{className:"".concat(t,"-edit-content-confirm")}):null))};function K(e,t){return r.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var X=(e,t)=>{let n=r.useRef(!1);r.useEffect(()=>{n.current?e():n.current=!0},t)},Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let J=r.forwardRef((e,t)=>{let{prefixCls:n,component:o="article",className:a,rootClassName:i,setContentRef:l,children:s,direction:c,style:u}=e,d=Q(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,typography:g}=r.useContext(I.E_),h=t;l&&(h=(0,E.sQ)(t,l));let b=f("typography",n),[v,y,S]=q(b),w=p()(b,null==g?void 0:g.className,{["".concat(b,"-rtl")]:"rtl"===(null!=c?c:m)},a,i,y,S),x=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(o,Object.assign({className:w,style:x,ref:h},d),s))});function ee(e){let t=typeof e;return"string"===t||"number"===t}function et(e,t){let n=0,r=[];for(let o=0;ot){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=i}return e}var en=e=>{let{enabledMeasure:t,children:n,text:o,width:a,fontSize:i,rows:l,onEllipsis:s}=e,[[c,u,d],p]=r.useState([0,0,0]),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,E]=r.useState(0),S=r.useRef(null),w=r.useRef(null),x=r.useMemo(()=>(0,h.Z)(o),[o]),O=r.useMemo(()=>{let e;return e=0,x.forEach(t=>{ee(t)?e+=String(t).length:e+=1}),e},[x]),k=r.useMemo(()=>t&&3===g?n(et(x,u),u{t&&a&&i&&O&&(v(1),p([0,Math.ceil(O/2),O]))},[t,a,i,o,O,l]),(0,b.Z)(()=>{var e;1===g&&E((null===(e=S.current)||void 0===e?void 0:e.offsetHeight)||0)},[g]),(0,b.Z)(()=>{var e,t;if(y){if(1===g)((null===(e=w.current)||void 0===e?void 0:e.offsetHeight)||0)<=l*y?(v(4),s(!1)):v(2);else if(2===g){if(c!==d){let e=(null===(t=w.current)||void 0===t?void 0:t.offsetHeight)||0,n=l*y,r=c,o=d;c===d-1?o=c:e<=n?r=u:o=u;let a=Math.ceil((r+o)/2);p([r,a,o])}else v(3),m(u),s(!0)}}},[g,c,d,l,y]);let C=(e,t,n)=>r.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return r.createElement(r.Fragment,null,k,t&&3!==g&&4!==g&&r.createElement(r.Fragment,null,C("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),C(1===g?n(x,!1):n(et(x,u),!0),w,{width:a,whiteSpace:"normal",margin:0,padding:0})))},er=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:a}=e;return(null==a?void 0:a.title)&&t?r.createElement(R.Z,Object.assign({open:!!n&&void 0},a),o):o},eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ea(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ei(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}let el=r.forwardRef((e,t)=>{var n,a,i;let{prefixCls:l,className:c,style:d,type:f,disabled:S,children:w,ellipsis:x,editable:k,copyable:C,component:T,title:_}=e,P=eo(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:L}=r.useContext(I.E_),[D]=(0,N.Z)("Text"),j=r.useRef(null),F=r.useRef(null),B=M("typography",l),U=(0,y.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[Z,z]=K(k),[H,G]=(0,v.Z)(!1,{value:z.editing}),{triggerType:$=["icon"]}=z,W=e=>{var t;e&&(null===(t=z.onStart)||void 0===t||t.call(z)),G(e)};X(()=>{var e;H||null===(e=F.current)||void 0===e||e.focus()},[H]);let V=e=>{null==e||e.preventDefault(),W(!0)},[q,Q]=K(C),[ee,et]=r.useState(!1),el=r.useRef(null),es={};Q.format&&(es.format=Q.format);let ec=()=>{el.current&&clearTimeout(el.current)},eu=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),m()(Q.text||String(w)||"",es),et(!0),ec(),el.current=setTimeout(()=>{et(!1)},3e3),null===(t=Q.onCopy)||void 0===t||t.call(Q,e)};r.useEffect(()=>ec,[]);let[ed,ep]=r.useState(!1),[ef,em]=r.useState(!1),[eg,eh]=r.useState(!1),[eb,ev]=r.useState(!1),[ey,eE]=r.useState(!1),[eS,ew]=r.useState(!0),[ex,eO]=K(x,{expandable:!1}),ek=ex&&!eg,{rows:eC=1}=eO,eT=r.useMemo(()=>!ek||void 0!==eO.suffix||eO.onEllipsis||eO.expandable||Z||q,[ek,eO,Z,q]);(0,b.Z)(()=>{ex&&!eT&&(ep(O("webkitLineClamp")),em(O("textOverflow")))},[eT,ex]);let eA=r.useMemo(()=>!eT&&(1===eC?ef:ed),[eT,ef,ed]),eI=ek&&(eA?ey:eb),eN=ek&&1===eC&&eA,eR=ek&&eC>1&&eA,e_=e=>{var t;eh(!0),null===(t=eO.onExpand)||void 0===t||t.call(eO,e)},[eP,eM]=r.useState(0),[eL,eD]=r.useState(0),ej=e=>{var t;ev(e),eb!==e&&(null===(t=eO.onEllipsis)||void 0===t||t.call(eO,e))};r.useEffect(()=>{let e=j.current;if(ex&&eA&&e){let t=eR?e.offsetHeight{let e=j.current;if("undefined"==typeof IntersectionObserver||!e||!eA||!ek)return;let t=new IntersectionObserver(()=>{ew(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eA,ek]);let eF={};eF=!0===eO.tooltip?{title:null!==(n=z.text)&&void 0!==n?n:w}:r.isValidElement(eO.tooltip)?{title:eO.tooltip}:"object"==typeof eO.tooltip?Object.assign({title:null!==(a=z.text)&&void 0!==a?a:w},eO.tooltip):{title:eO.tooltip};let eB=r.useMemo(()=>{let e=e=>["string","number"].includes(typeof e);return!ex||eA?void 0:e(z.text)?z.text:e(w)?w:e(_)?_:e(eF.title)?eF.title:void 0},[ex,eA,_,eF.title,eI]);if(H)return r.createElement(Y,{value:null!==(i=z.text)&&void 0!==i?i:"string"==typeof w?w:"",onSave:e=>{var t;null===(t=z.onChange)||void 0===t||t.call(z,e),W(!1)},onCancel:()=>{var e;null===(e=z.onCancel)||void 0===e||e.call(z),W(!1)},onEnd:z.onEnd,prefixCls:B,className:c,style:d,direction:L,component:T,maxLength:z.maxLength,autoSize:z.autoSize,enterIcon:z.enterIcon});let eU=()=>{let e;let{expandable:t,symbol:n}=eO;return t?(e=n||(null==D?void 0:D.expand),r.createElement("a",{key:"expand",className:"".concat(B,"-expand"),onClick:e_,"aria-label":null==D?void 0:D.expand},e)):null},eZ=()=>{if(!Z)return;let{icon:e,tooltip:t}=z,n=(0,h.Z)(t)[0]||(null==D?void 0:D.edit),o="string"==typeof n?n:"";return $.includes("icon")?r.createElement(R.Z,{key:"edit",title:!1===t?"":n},r.createElement(A,{ref:F,className:"".concat(B,"-edit"),onClick:V,"aria-label":o},e||r.createElement(u,{role:"button"}))):null},ez=()=>{if(!q)return null;let{tooltips:e,icon:t}=Q,n=ei(e),a=ei(t),i=ee?ea(n[1],null==D?void 0:D.copied):ea(n[0],null==D?void 0:D.copy),l=ee?null==D?void 0:D.copied:null==D?void 0:D.copy,c="string"==typeof i?i:l;return r.createElement(R.Z,{key:"copy",title:i},r.createElement(A,{className:p()("".concat(B,"-copy"),{["".concat(B,"-copy-success")]:ee,["".concat(B,"-copy-icon-only")]:null==w}),onClick:eu,"aria-label":c},ee?ea(a[1],r.createElement(o.Z,null),!0):ea(a[0],r.createElement(s,null),!0)))},eH=e=>[e&&eU(),eZ(),ez()],eG=e=>[e&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),eO.suffix,eH(e)];return r.createElement(g.Z,{onResize:(e,t)=>{var n;let{offsetWidth:r}=e;eM(r),eD(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!ek},n=>r.createElement(er,{tooltipProps:eF,enabledEllipsis:ek,isEllipsis:eI},r.createElement(J,Object.assign({className:p()({["".concat(B,"-").concat(f)]:f,["".concat(B,"-disabled")]:S,["".concat(B,"-ellipsis")]:ex,["".concat(B,"-single-line")]:ek&&1===eC,["".concat(B,"-ellipsis-single-line")]:eN,["".concat(B,"-ellipsis-multiple-line")]:eR},c),prefixCls:l,style:Object.assign(Object.assign({},d),{WebkitLineClamp:eR?eC:void 0}),component:T,ref:(0,E.sQ)(n,j,t),direction:L,onClick:$.includes("text")?V:void 0,"aria-label":null==eB?void 0:eB.toString(),title:_},U),r.createElement(en,{enabledMeasure:ek&&!eA,text:w,rows:eC,width:eP,fontSize:eL,onEllipsis:ej},(t,n)=>{let o=t;return t.length&&n&&eB&&(o=r.createElement("span",{key:"show-content","aria-hidden":!0},o)),function(e,t){let{mark:n,code:o,underline:a,delete:i,strong:l,keyboard:s,italic:c}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",a),d("del",i),d("code",o),d("mark",n),d("kbd",s),d("i",c),u}(e,r.createElement(r.Fragment,null,o,eG(n)))}))))});var es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ec=r.forwardRef((e,t)=>{var{ellipsis:n,rel:o}=e,a=es(e,["ellipsis","rel"]);let i=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete i.navigate,r.createElement(el,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),eu=r.forwardRef((e,t)=>r.createElement(el,Object.assign({ref:t},e,{component:"div"})));var ed=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},ep=r.forwardRef((e,t)=>{var{ellipsis:n}=e,o=ed(e,["ellipsis"]);let a=r.useMemo(()=>n&&"object"==typeof n?(0,y.Z)(n,["expandable","rows"]):n,[n]);return r.createElement(el,Object.assign({ref:t},o,{ellipsis:a,component:"span"}))}),ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let em=[1,2,3,4,5],eg=r.forwardRef((e,t)=>{let n;let{level:o=1}=e,a=ef(e,["level"]);return n=em.includes(o)?"h".concat(o):"h1",r.createElement(el,Object.assign({ref:t},a,{component:n}))});J.Text=ep,J.Link=ec,J.Title=eg,J.Paragraph=eu;var eh=J},46495:function(e,t,n){n.d(t,{Z:function(){return ts}});var r=n(64090),o=n(63787),a=n(89542),i=n(16480),l=n.n(i),s=n(14749),c=n(47365),u=n(65127),d=n(34951),p=n(27478),f=n(85430),m=n(50833),g=n(5239),h=n(6787),b=n(86926),v=n(6976),y=n(74902),E=n(72480),S=n(53850);function w(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0}function x(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}var O=function(e,t,n){var r=function e(r,o){if(r){if(r.path=o||"",r.isFile)r.file(function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(r.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(o).concat(r.name,"/"))})},i=r.createReader(),l=[],function e(){i.readEntries(function(t){var n=Array.prototype.slice.apply(t);l=l.concat(n),n.length?e():a(l)})}()}}};e.forEach(function(e){r(e.webkitGetAsEntry())})},k=+new Date,C=0;function T(){return"rc-upload-".concat(k,"-").concat(++C)}var A=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],I=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){(0,c.Z)(this,n);for(var e,r,a=arguments.length,i=Array(a),l=0;l0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];if(Array.isArray(r)){r.forEach(function(e){n.append("".concat(t,"[]"),e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var n;return e.onError(((n=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,n.method=e.method,n.url=e.action,n),x(t))}return e.onSuccess(x(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}})({action:o,filename:c,data:n,file:a,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,a)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,a,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,a),delete t.reqs[f]}})}}},{key:"reset",value:function(){this.setState({uid:T()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e,t=this.props,n=t.component,o=t.prefixCls,a=t.className,i=t.classNames,c=t.disabled,u=t.id,d=t.style,p=t.styles,f=t.multiple,b=t.accept,v=t.capture,y=t.children,S=t.directory,w=t.openFileDialogOnClick,x=t.onMouseEnter,O=t.onMouseLeave,k=t.hasControlInside,C=(0,h.Z)(t,A),T=l()((e={},(0,m.Z)(e,o,!0),(0,m.Z)(e,"".concat(o,"-disabled"),c),(0,m.Z)(e,a,a),e)),I=c?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return r.createElement(n,(0,s.Z)({},I,{className:T,role:k?void 0:"button",style:d}),r.createElement("input",(0,s.Z)({},(0,E.Z)(C,{aria:!0,data:!0}),{id:u,disabled:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,g.Z)({display:"none"},(void 0===p?{}:p).input),className:(void 0===i?{}:i).input,accept:b},S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},{multiple:f,onChange:this.onChange},null!=v?{capture:v}:{})),y)}}]),n}(r.Component);function N(){}var R=function(e){(0,p.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,c.Z)(this,n);for(var r=arguments.length,o=Array(r),a=0;a{let{componentCls:t,iconCls:n}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-drag")]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),[t]:{padding:e.padding},["".concat(t,"-btn")]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:"".concat((0,Z.bf)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder)}},["".concat(t,"-drag-container")]:{display:"table-cell",verticalAlign:"middle"},["\n &:not(".concat(t,"-disabled):hover,\n &-hover:not(").concat(t,"-disabled)\n ")]:{borderColor:e.colorPrimaryHover},["p".concat(t,"-drag-icon")]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},["p".concat(t,"-text")]:{margin:"0 0 ".concat((0,Z.bf)(e.marginXXS)),color:e.colorTextHeading,fontSize:e.fontSizeLG},["p".concat(t,"-hint")]:{color:e.colorTextDescription,fontSize:e.fontSize},["&".concat(t,"-disabled")]:{["p".concat(t,"-drag-icon ").concat(n,",\n p").concat(t,"-text,\n p").concat(t,"-hint\n ")]:{color:e.colorTextDisabled}}}}}},H=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a,calc:i}=e,l="".concat(t,"-list-item"),s="".concat(l,"-actions"),c="".concat(l,"-action"),u=e.fontHeightSM;return{["".concat(t,"-wrapper")]:{["".concat(t,"-list")]:Object.assign(Object.assign({},(0,j.dF)()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:"background-color ".concat(e.motionDurationSlow),"&:hover":{backgroundColor:e.controlItemBgHover},["".concat(l,"-name")]:Object.assign(Object.assign({},j.vS),{padding:"0 ".concat((0,Z.bf)(e.paddingXS)),lineHeight:a,flex:"auto",transition:"all ".concat(e.motionDurationSlow)}),[s]:{[c]:{opacity:0},[r]:{color:e.actionsColor,transition:"all ".concat(e.motionDurationSlow)},["\n ".concat(c,":focus-visible,\n &.picture ").concat(c,"\n ")]:{opacity:1},["".concat(c).concat(n,"-btn")]:{height:u,border:0,lineHeight:1}},["".concat(t,"-icon ").concat(r)]:{color:e.colorTextDescription,fontSize:o},["".concat(l,"-progress")]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},["".concat(l,":hover ").concat(c)]:{opacity:1},["".concat(l,"-error")]:{color:e.colorError,["".concat(l,"-name, ").concat(t,"-icon ").concat(r)]:{color:e.colorError},[s]:{["".concat(r,", ").concat(r,":hover")]:{color:e.colorError},[c]:{opacity:1}}},["".concat(t,"-list-item-container")]:{transition:"opacity ".concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},G=n(13703);let $=new Z.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),W=new Z.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var V=e=>{let{componentCls:t}=e,n="".concat(t,"-animate-inline");return[{["".concat(t,"-wrapper")]:{["".concat(n,"-appear, ").concat(n,"-enter, ").concat(n,"-leave")]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},["".concat(n,"-appear, ").concat(n,"-enter")]:{animationName:$},["".concat(n,"-leave")]:{animationName:W}}},{["".concat(t,"-wrapper")]:(0,G.J$)(e)},$,W]},q=n(12215);let Y=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item");return{["".concat(t,"-wrapper")]:{["\n ".concat(i).concat(i,"-picture,\n ").concat(i).concat(i,"-picture-card,\n ").concat(i).concat(i,"-picture-circle\n ")]:{[l]:{position:"relative",height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:"".concat((0,Z.bf)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},["".concat(l,"-thumbnail")]:Object.assign(Object.assign({},j.vS),{width:r,height:r,lineHeight:(0,Z.bf)(a(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),["".concat(l,"-progress")]:{bottom:o,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingSM).mul(2).equal()),")"),marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},["".concat(l,"-error")]:{borderColor:e.colorError,["".concat(l,"-thumbnail ").concat(n)]:{["svg path[fill='".concat(q.iN[0],"']")]:{fill:e.colorErrorBg},["svg path[fill='".concat(q.iN.primary,"']")]:{fill:e.colorError}}},["".concat(l,"-uploading")]:{borderStyle:"dashed",["".concat(l,"-name")]:{marginBottom:o}}},["".concat(i).concat(i,"-picture-circle ").concat(l)]:{["&, &::before, ".concat(l,"-thumbnail")]:{borderRadius:"50%"}}}}},K=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:a}=e,i="".concat(t,"-list"),l="".concat(i,"-item"),s=e.uploadPicCardSize;return{["\n ".concat(t,"-wrapper").concat(t,"-picture-card-wrapper,\n ").concat(t,"-wrapper").concat(t,"-picture-circle-wrapper\n ")]:Object.assign(Object.assign({},(0,j.dF)()),{display:"inline-block",width:"100%",["".concat(t).concat(t,"-select")]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:"".concat((0,Z.bf)(e.lineWidth)," dashed ").concat(e.colorBorder),borderRadius:e.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(e.motionDurationSlow),["> ".concat(t)]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},["&:not(".concat(t,"-disabled):hover")]:{borderColor:e.colorPrimary}},["".concat(i).concat(i,"-picture-card, ").concat(i).concat(i,"-picture-circle")]:{["".concat(i,"-item-container")]:{display:"inline-block",width:s,height:s,marginBlock:"0 ".concat((0,Z.bf)(e.marginXS)),marginInline:"0 ".concat((0,Z.bf)(e.marginXS)),verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),height:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),backgroundColor:e.colorBgMask,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'" "'}},["".concat(l,":hover")]:{["&::before, ".concat(l,"-actions")]:{opacity:1}},["".concat(l,"-actions")]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(e.motionDurationSlow),["\n ".concat(n,"-eye,\n ").concat(n,"-download,\n ").concat(n,"-delete\n ")]:{zIndex:10,width:r,margin:"0 ".concat((0,Z.bf)(e.marginXXS)),fontSize:r,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},["".concat(l,"-thumbnail, ").concat(l,"-thumbnail img")]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},["".concat(l,"-name")]:{display:"none",textAlign:"center"},["".concat(l,"-file + ").concat(l,"-name")]:{position:"absolute",bottom:e.margin,display:"block",width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")")},["".concat(l,"-uploading")]:{["&".concat(l)]:{backgroundColor:e.colorFillAlter},["&::before, ".concat(n,"-eye, ").concat(n,"-download, ").concat(n,"-delete")]:{display:"none"}},["".concat(l,"-progress")]:{bottom:e.marginXL,width:"calc(100% - ".concat((0,Z.bf)(a(e.paddingXS).mul(2).equal()),")"),paddingInlineStart:0}}}),["".concat(t,"-wrapper").concat(t,"-picture-circle-wrapper")]:{["".concat(t).concat(t,"-select")]:{borderRadius:"50%"}}}};var X=e=>{let{componentCls:t}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"}}};let Q=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},(0,j.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},["".concat(t,"-select")]:{display:"inline-block"},["".concat(t,"-disabled")]:{color:n,cursor:"not-allowed"}})}};var J=(0,B.I$)("Upload",e=>{let{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=(0,U.TS)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Q(i),z(i),Y(i),K(i),H(i),V(i),X(i),(0,F.Z)(i)]},e=>({actionsColor:e.colorTextDescription})),ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},et=n(60688),en=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ee}))}),er=n(66155),eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ea=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eo}))}),ei={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},el=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ei}))}),es=n(49367),ec=n(47387),eu=n(65823),ed=n(1861);function ep(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ef(e,t){let n=(0,o.Z)(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return -1===r?n.push(e):n[r]=e,n}function em(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},eh=e=>0===e.indexOf("image/"),eb=e=>{if(e.type&&!e.thumbUrl)return eh(e.type);let t=e.thumbUrl||e.url||"",n=eg(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function ev(e){return new Promise(t=>{if(!e.type||!eh(e.type)){t("");return}let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,s=0,c=0;e>a?c=-((l=200/e*a)-i)/2:s=-((i=200/a*e)-l)/2,r.drawImage(o,s,c,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eE=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:ey}))}),eS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ew=r.forwardRef(function(e,t){return r.createElement(et.Z,(0,s.Z)({},e,{ref:t,icon:eS}))}),ex=n(41311),eO=n(99537),ek=n(90507),eC=n(77136),eT=n(81303),eA=n(35704),eI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eN=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current},eR=n(80406),e_=n(22127),eP=0,eM=(0,e_.Z)(),eL=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function eD(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n);return"".concat(e[n]," ").concat("".concat(Math.floor(r*t),"%"))})}var ej=r.forwardRef(function(e,t){var n=e.prefixCls,o=e.color,a=e.gradientId,i=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=o&&"object"===(0,v.Z)(o),m=d/2,g=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:f?"#FFF":void 0,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!f)return g;var h="".concat(a,"-conic"),b=eD(o,(360-p)/360),y=eD(o,1),E="conic-gradient(from ".concat(p?"".concat(180+p/2,"deg"):"0deg",", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:h},g),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(h,")")},r.createElement(eL,{bg:S},r.createElement(eL,{bg:E}))))}),eF=function(e,t,n,r,o,a,i,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=(100-r)/100*t;return"round"===s&&100!==r&&(d+=c/2)>=t&&(d=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:d+u,transform:"rotate(".concat(o+n/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function eU(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eZ=function(e){var t,n,o,a,i,c,u,d,p=(0,g.Z)((0,g.Z)({},eI),e),f=p.id,m=p.prefixCls,b=p.steps,y=p.strokeWidth,E=p.trailWidth,S=p.gapDegree,w=void 0===S?0:S,x=p.gapPosition,O=p.trailColor,k=p.strokeLinecap,C=p.style,T=p.className,A=p.strokeColor,I=p.percent,N=(0,h.Z)(p,eB),R=(t=r.useState(),o=(n=(0,eR.Z)(t,2))[0],a=n[1],r.useEffect(function(){var e;a("rc_progress_".concat((eM?(e=eP,eP+=1):e="TEST_OR_SSR",e)))},[]),f||o),_="".concat(R,"-gradient"),P=50-y/2,M=2*Math.PI*P,L=w>0?90+w/2:-90,D=(360-w)/360*M,j="object"===(0,v.Z)(b)?b:{count:b,space:2},F=j.count,B=j.space,U=eU(I),Z=eU(A),z=Z.find(function(e){return e&&"object"===(0,v.Z)(e)}),H=z&&"object"===(0,v.Z)(z)?"butt":k,G=eF(M,D,0,100,L,w,x,O,H,y),$=eN();return r.createElement("svg",(0,s.Z)({className:l()("".concat(m,"-circle"),T),viewBox:"0 0 ".concat(100," ").concat(100),style:C,id:f,role:"presentation"},N),!F&&r.createElement("circle",{className:"".concat(m,"-circle-trail"),r:P,cx:50,cy:50,stroke:O,strokeLinecap:H,strokeWidth:E||y,style:G}),F?(i=Math.round(U[0]/100*F),c=100/F,u=0,Array(F).fill(null).map(function(e,t){var n=t<=i-1?Z[0]:O,o=n&&"object"===(0,v.Z)(n)?"url(#".concat(_,")"):void 0,a=eF(M,D,u,c,L,w,x,n,"butt",y,B);return u+=(D-a.strokeDashoffset+B)*100/D,r.createElement("circle",{key:t,className:"".concat(m,"-circle-path"),r:P,cx:50,cy:50,stroke:o,strokeWidth:y,opacity:1,style:a,ref:function(e){$[t]=e}})})):(d=0,U.map(function(e,t){var n=Z[t]||Z[Z.length-1],o=eF(M,D,d,e,L,w,x,n,H,y);return d+=e,r.createElement(ej,{key:t,color:n,ptg:e,radius:P,prefixCls:m,gradientId:_,style:o,strokeLinecap:H,strokeWidth:y,gapDegree:w,ref:function(e){$[t]=e},size:100})}).reverse()))},ez=n(1460);function eH(e){return!e||e<0?0:e>100?100:e}function eG(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}let e$=e=>{let{percent:t,success:n,successPercent:r}=e,o=eH(eG({success:n,successPercent:r}));return[o,eH(eH(t)-o)]},eW=e=>{let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||q.ez.green,n||null]},eV=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if("step"===t){let t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=r?r:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=t}else if("line"===t){let t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[l,s]=[e,e]:[l=-1,s=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,s]},eq=e=>3/e*100;var eY=e=>{let{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:a,gapDegree:i,width:s=120,type:c,children:u,success:d,size:p=s}=e,[f,m]=eV(p,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(eq(f),6));let h=r.useMemo(()=>i||0===i?i:"dashboard"===c?75:void 0,[i,c]),b="[object Object]"===Object.prototype.toString.call(e.strokeColor),v=eW({success:d,strokeColor:e.strokeColor}),y=l()("".concat(t,"-inner"),{["".concat(t,"-circle-gradient")]:b}),E=r.createElement(eZ,{percent:e$(e),strokeWidth:g,trailWidth:g,strokeColor:v,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:a||"dashboard"===c&&"bottom"||void 0});return r.createElement("div",{className:y,style:{width:f,height:m,fontSize:.15*f+6}},f<=20?r.createElement(ez.Z,{title:u},r.createElement("span",null,E)):r.createElement(r.Fragment,null,E,u))};let eK="--progress-line-stroke-color",eX="--progress-percent",eQ=e=>{let t=e?"100%":"-100%";return new Z.E4("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eJ=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,j.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},["".concat(t,"-outer")]:{display:"inline-block",width:"100%"},["&".concat(t,"-show-info")]:{["".concat(t,"-outer")]:{marginInlineEnd:"calc(-2em - ".concat((0,Z.bf)(e.marginXS),")"),paddingInlineEnd:"calc(2em + ".concat((0,Z.bf)(e.paddingXS),")")}},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(eK,")")]},height:"100%",width:"calc(1 / var(".concat(eX,") * 100%)"),display:"block"}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:eQ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:eQ(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},e0=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},e1=e=>{let{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},e2=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}};var e4=(0,B.I$)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=(0,U.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eJ(n),e0(n),e1(n),e2(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})),e3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let e6=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")}).join(", ")},e5=(e,t)=>{let{from:n=q.ez.blue,to:r=q.ez.blue,direction:o="rtl"===t?"to left":"to right"}=e,a=e3(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=e6(a),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[eK]:t}}let i="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:i,[eK]:i}};var e8=e=>{let{prefixCls:t,direction:n,percent:o,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=l&&"string"!=typeof l?e5(l,n):{[eK]:l,background:l},f="square"===s||"butt"===s?0:void 0,[m,g]=eV(null!=a?a:[-1,i||("small"===a?6:8)],"line",{strokeWidth:i}),h=Object.assign(Object.assign({width:"".concat(eH(o),"%"),height:g,borderRadius:f},p),{[eX]:eH(o)/100}),b=eG(e),v={width:"".concat(eH(b),"%"),height:g,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor};return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(t,"-outer"),style:{width:m<0?"100%":m,height:g}},r.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:u||void 0,borderRadius:f}},r.createElement("div",{className:"".concat(t,"-bg"),style:h}),void 0!==b?r.createElement("div",{className:"".concat(t,"-success-bg"),style:v}):null)),c)},e9=e=>{let{size:t,steps:n,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:c,children:u}=e,d=Math.round(o/100*n),[p,f]=eV(null!=t?t:["small"===t?2:14,a],"step",{steps:n,strokeWidth:a}),m=p/n,g=Array(n);for(let e=0;et.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let te=["normal","exception","active","success"],tt=r.forwardRef((e,t)=>{let n;let{prefixCls:o,className:a,rootClassName:i,steps:s,strokeColor:c,percent:u=0,size:d="default",showInfo:p=!0,type:f="line",status:m,format:g,style:h}=e,b=e7(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=r.useMemo(()=>{var t,n;let r=eG(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=u?u:0)||void 0===n?void 0:n.toString(),10)},[u,e.success,e.successPercent]),y=r.useMemo(()=>!te.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:E,direction:S,progress:w}=r.useContext(P.E_),x=E("progress",o),[O,k,C]=e4(x),T=r.useMemo(()=>{let t;if(!p)return null;let n=eG(e),o=g||(e=>"".concat(e,"%")),a="line"===f;return g||"exception"!==y&&"success"!==y?t=o(eH(u),eH(n)):"exception"===y?t=a?r.createElement(eC.Z,null):r.createElement(eT.Z,null):"success"===y&&(t=a?r.createElement(eO.Z,null):r.createElement(ek.Z,null)),r.createElement("span",{className:"".concat(x,"-text"),title:"string"==typeof t?t:void 0},t)},[p,u,v,y,f,x,g]),A=Array.isArray(c)?c[0]:c,I="string"==typeof c||Array.isArray(c)?c:void 0;"line"===f?n=s?r.createElement(e9,Object.assign({},e,{strokeColor:I,prefixCls:x,steps:s}),T):r.createElement(e8,Object.assign({},e,{strokeColor:A,prefixCls:x,direction:S}),T):("circle"===f||"dashboard"===f)&&(n=r.createElement(eY,Object.assign({},e,{strokeColor:A,prefixCls:x,progressStatus:y}),T));let N=l()(x,"".concat(x,"-status-").concat(y),"".concat(x,"-").concat("dashboard"===f&&"circle"||s&&"steps"||f),{["".concat(x,"-inline-circle")]:"circle"===f&&eV(d,"circle")[0]<=20,["".concat(x,"-show-info")]:p,["".concat(x,"-").concat(d)]:"string"==typeof d,["".concat(x,"-rtl")]:"rtl"===S},null==w?void 0:w.className,a,i,k,C);return O(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==w?void 0:w.style),h),className:N,role:"progressbar","aria-valuenow":v},(0,eA.Z)(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),n))}),tn=r.forwardRef((e,t)=>{var n,o;let{prefixCls:a,className:i,style:s,locale:c,listType:u,file:d,items:p,progress:f,iconRender:m,actionIconRender:g,itemRender:h,isImgUrl:b,showPreviewIcon:v,showRemoveIcon:y,showDownloadIcon:E,previewIcon:S,removeIcon:w,downloadIcon:x,onPreview:O,onDownload:k,onClose:C}=e,{status:T}=d,[A,I]=r.useState(T);r.useEffect(()=>{"removed"!==T&&I(T)},[T]);let[N,R]=r.useState(!1);r.useEffect(()=>{let e=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(e)}},[]);let _=m(d),M=r.createElement("div",{className:"".concat(a,"-icon")},_);if("picture"===u||"picture-card"===u||"picture-circle"===u){if("uploading"!==A&&(d.thumbUrl||d.url)){let e=(null==b?void 0:b(d))?r.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(a,"-list-item-image"),crossOrigin:d.crossOrigin}):_,t=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:b&&!b(d)});M=r.createElement("a",{className:t,onClick:e=>O(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=l()("".concat(a,"-list-item-thumbnail"),{["".concat(a,"-list-item-file")]:"uploading"!==A});M=r.createElement("div",{className:e},_)}}let L=l()("".concat(a,"-list-item"),"".concat(a,"-list-item-").concat(A)),D="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,j=y?g(("function"==typeof w?w(d):w)||r.createElement(eE,null),()=>C(d),a,c.removeFile,!0):null,F=E&&"done"===A?g(("function"==typeof x?x(d):x)||r.createElement(ew,null),()=>k(d),a,c.downloadFile):null,B="picture-card"!==u&&"picture-circle"!==u&&r.createElement("span",{key:"download-delete",className:l()("".concat(a,"-list-item-actions"),{picture:"picture"===u})},F,j),U=l()("".concat(a,"-list-item-name")),Z=d.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:d.name},D,{href:d.url,onClick:e=>O(d,e)}),d.name),B]:[r.createElement("span",{key:"view",className:U,onClick:e=>O(d,e),title:d.name},d.name),B],z=v&&(d.url||d.thumbUrl)?r.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>O(d,e),title:c.previewFile},"function"==typeof S?S(d):S||r.createElement(ex.Z,null)):null,H=("picture-card"===u||"picture-circle"===u)&&"uploading"!==A&&r.createElement("span",{className:"".concat(a,"-list-item-actions")},z,"done"===A&&F,j),{getPrefixCls:G}=r.useContext(P.E_),$=G(),W=r.createElement("div",{className:L},M,Z,H,N&&r.createElement(es.ZP,{motionName:"".concat($,"-fade"),visible:"uploading"===A,motionDeadline:2e3},e=>{let{className:t}=e,n="percent"in d?r.createElement(tt,Object.assign({},f,{type:"line",percent:d.percent,"aria-label":d["aria-label"],"aria-labelledby":d["aria-labelledby"]})):null;return r.createElement("div",{className:l()("".concat(a,"-list-item-progress"),t)},n)})),V=d.response&&"string"==typeof d.response?d.response:(null===(n=d.error)||void 0===n?void 0:n.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||c.uploadError,q="error"===A?r.createElement(ez.Z,{title:V,getPopupContainer:e=>e.parentNode},W):W;return r.createElement("div",{className:l()("".concat(a,"-list-item-container"),i),style:s,ref:t},h?h(q,d,p,{download:k.bind(null,d),preview:O.bind(null,d),remove:C.bind(null,d)}):q)}),tr=r.forwardRef((e,t)=>{let{listType:n="text",previewFile:a=ev,onPreview:i,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=eb,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:v,previewIcon:y,downloadIcon:E,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:x=!0,itemRender:O,disabled:k}=e,C=function(){let[,e]=r.useReducer(e=>e+1,0);return e}(),[T,A]=r.useState(!1);r.useEffect(()=>{("picture"===n||"picture-card"===n||"picture-circle"===n)&&(m||[]).forEach(e=>{"undefined"!=typeof document&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",C()}))})},[n,m,a]),r.useEffect(()=>{A(!0)},[]);let I=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},N=e=>{"function"==typeof s?s(e):e.url&&window.open(e.url)},R=e=>{null==c||c(e)},_=e=>{if(d)return d(e,n);let t="uploading"===e.status,o=p&&p(e)?r.createElement(el,null):r.createElement(en,null),a=t?r.createElement(er.Z,null):r.createElement(ea,null);return"picture"===n?a=t?r.createElement(er.Z,null):o:("picture-card"===n||"picture-circle"===n)&&(a=t?u.uploading:o),a},M=(e,t,n,o,a)=>{let i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,eu.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-action")};if(a&&(i.disabled=k),(0,eu.l$)(e)){let t=(0,eu.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(ed.ZP,Object.assign({},i,{icon:t}))}return r.createElement(ed.ZP,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:I,handleDownload:N}));let{getPrefixCls:L}=r.useContext(P.E_),D=L("upload",f),j=L(),F=l()("".concat(D,"-list"),"".concat(D,"-list-").concat(n)),B=(0,o.Z)(m.map(e=>({key:e.uid,file:e}))),U={motionDeadline:2e3,motionName:"".concat(D,"-").concat("picture-card"===n||"picture-circle"===n?"animate-inline":"animate"),keys:B,motionAppear:T},Z=r.useMemo(()=>{let e=Object.assign({},(0,ec.Z)(j));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[j]);return"picture-card"!==n&&"picture-circle"!==n&&(U=Object.assign(Object.assign({},Z),U)),r.createElement("div",{className:F},r.createElement(es.V4,Object.assign({},U,{component:!1}),e=>{let{key:t,file:o,className:a,style:i}=e;return r.createElement(tn,{key:t,locale:u,prefixCls:D,className:a,style:i,file:o,items:m,progress:S,listType:n,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:h,showDownloadIcon:b,removeIcon:v,previewIcon:y,downloadIcon:E,iconRender:_,actionIconRender:M,itemRender:O,onPreview:I,onDownload:N,onClose:R})}),w&&r.createElement(es.ZP,Object.assign({},U,{visible:x,forceRender:!0}),e=>{let{className:t,style:n}=e;return(0,eu.Tm)(w,e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))}),to="__LIST_IGNORE_".concat(Date.now(),"__"),ta=r.forwardRef((e,t)=>{let{fileList:n,defaultFileList:i,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:f,onDrop:m,previewFile:g,disabled:h,locale:b,iconRender:v,isImageUrl:y,progress:E,prefixCls:S,className:w,type:x="select",children:O,style:k,itemRender:C,maxCount:T,data:A={},multiple:I=!1,hasControlInside:N=!0,action:j="",accept:F="",supportServerRender:B=!0,rootClassName:U}=e,Z=r.useContext(M.Z),z=null!=h?h:Z,[H,G]=(0,_.Z)(i||[],{value:n,postState:e=>null!=e?e:[]}),[$,W]=r.useState("drop"),V=r.useRef(null);r.useMemo(()=>{let e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))})},[n]);let q=(e,t,n)=>{let r=(0,o.Z)(t),i=!1;1===T?r=r.slice(-1):T&&(i=r.length>T,r=r.slice(0,T)),(0,a.flushSync)(()=>{G(r)});let l={file:e,fileList:r};n&&(l.event=n),(!i||r.some(t=>t.uid===e.uid))&&(0,a.flushSync)(()=>{null==f||f(l)})},Y=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let n=t.map(e=>ep(e.file)),r=(0,o.Z)(H);n.forEach(e=>{r=ef(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t;let{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}q(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!em(t,H))return;let r=ep(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=ef(r,H);q(r,o)},X=(e,t)=>{if(!em(t,H))return;let n=ep(t);n.status="uploading",n.percent=e.percent;let r=ef(n,H);q(n,r,e)},Q=(e,t,n)=>{if(!em(n,H))return;let r=ep(n);r.error=e,r.response=t,r.status="error";let o=ef(r,H);q(r,o)},ee=e=>{let t;Promise.resolve("function"==typeof s?s(e):s).then(n=>{var r;if(!1===n)return;let o=function(e,t){let n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,H);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==H||H.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=V.current)||void 0===r||r.abort(t),q(t,o))})},et=e=>{W(e.type),"drop"===e.type&&(null==m||m(e))};r.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:K,onProgress:X,onError:Q,fileList:H,upload:V.current}));let{getPrefixCls:en,direction:er,upload:eo}=r.useContext(P.E_),ea=en("upload",S),ei=Object.assign(Object.assign({onBatchStart:Y,onError:Q,onProgress:X,onSuccess:K},e),{data:A,multiple:I,action:j,accept:F,supportServerRender:B,prefixCls:ea,disabled:z,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}s((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:N});delete ei.className,delete ei.style,(!O||z)&&delete ei.id;let el="".concat(ea,"-wrapper"),[es,ec,eu]=J(ea,el),[ed]=(0,L.Z)("Upload",D.Z.Upload),{showRemoveIcon:eg,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE}="boolean"==typeof c?{}:c,eS=void 0===eg?!z:!!eg,ew=(e,t)=>c?r.createElement(tr,{prefixCls:ea,listType:u,items:H,previewFile:g,onPreview:d,onDownload:p,onRemove:ee,showRemoveIcon:eS,showPreviewIcon:eh,showDownloadIcon:eb,removeIcon:ev,previewIcon:ey,downloadIcon:eE,iconRender:v,locale:Object.assign(Object.assign({},ed),b),isImageUrl:y,progress:E,appendAction:e,appendActionVisible:t,itemRender:C,disabled:z}):e,ex=l()(el,w,U,ec,eu,null==eo?void 0:eo.className,{["".concat(ea,"-rtl")]:"rtl"===er,["".concat(ea,"-picture-card-wrapper")]:"picture-card"===u,["".concat(ea,"-picture-circle-wrapper")]:"picture-circle"===u}),eO=Object.assign(Object.assign({},null==eo?void 0:eo.style),k);if("drag"===x){let e=l()(ec,ea,"".concat(ea,"-drag"),{["".concat(ea,"-drag-uploading")]:H.some(e=>"uploading"===e.status),["".concat(ea,"-drag-hover")]:"dragover"===$,["".concat(ea,"-disabled")]:z,["".concat(ea,"-rtl")]:"rtl"===er});return es(r.createElement("span",{className:ex},r.createElement("div",{className:e,style:eO,onDrop:et,onDragOver:et,onDragLeave:et},r.createElement(R,Object.assign({},ei,{ref:V,className:"".concat(ea,"-btn")}),r.createElement("div",{className:"".concat(ea,"-drag-container")},O))),ew()))}let ek=l()(ea,"".concat(ea,"-select"),{["".concat(ea,"-disabled")]:z}),eC=r.createElement("div",{className:ek,style:O?void 0:{display:"none"}},r.createElement(R,Object.assign({},ei,{ref:V})));return es("picture-card"===u||"picture-circle"===u?r.createElement("span",{className:ex},ew(eC,!!O)):r.createElement("span",{className:ex},eC,ew()))});var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tl=r.forwardRef((e,t)=>{var{style:n,height:o,hasControlInside:a=!1}=e,i=ti(e,["style","height","hasControlInside"]);return r.createElement(ta,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))});ta.Dragger=tl,ta.LIST_IGNORE=to;var ts=ta},81441:function(e,t,n){var r=n(89090),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,s,c,u,d,p=!1;t||(t={}),i=t.debug||!1;try{if(s=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),s()}return p}},6122:function(e,t,n){var r;!function(o){var a,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,s="[DecimalError] ",c=s+"Invalid argument: ",u=s+"Exponent out of range: ",d=Math.floor,p=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=d(1286742750677284.5),g={};function h(e,t){var n,r,o,a,i,s,c,u,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?C(t,p):t;if(c=e.d,u=t.d,i=e.e,o=t.e,c=c.slice(),a=i-o){for(a<0?(r=c,a=-a,s=u.length):(r=u,o=i,s=c.length),a>(s=(i=Math.ceil(p/7))>s?i+1:s+1)&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((s=c.length)-(a=u.length)<0&&(a=s,r=u,u=c,c=r),n=0;a;)n=(c[--a]=c[a]+u[a]+n)/1e7|0,c[a]%=1e7;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,l?C(t,p):t}function b(e,t,n){if(e!==~~e||en)throw Error(c+e)}function v(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},g.dividedBy=g.div=function(e){return y(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return C(y(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return 0>this.cmp(e)},g.lessThanOrEqualTo=g.lte=function(e){return 1>this.cmp(e)},g.logarithm=g.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(a))throw Error(s+"NaN");if(this.s<1)throw Error(s+(this.s?"NaN":"-Infinity"));return this.eq(a)?new n(0):(l=!1,t=y(O(this,o),O(e,o),o),l=!0,C(t,r))},g.minus=g.sub=function(e){return e=new this.constructor(e),this.s==e.s?T(this,e):h(this,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return this.s?(l=!1,t=y(this,e,0,1).times(e),l=!0,this.minus(t)):C(new n(this),r)},g.naturalExponential=g.exp=function(){return E(this)},g.naturalLogarithm=g.ln=function(){return O(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){return e=new this.constructor(e),this.s==e.s?h(this,e):T(this,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(c+e);if(t=S(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,a,i,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(s+"NaN")}for(e=S(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=v(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=i=(n=c.precision)+3;;)if(r=(a=r).plus(y(this,a,i+2)).times(.5),v(a.d).slice(0,i)===(t=v(r.d)).slice(0,i)){if(t=t.slice(i-3,i+1),o==i&&"4999"==t){if(C(a,n+1,0),a.times(a).eq(this)){r=a;break}}else if("9999"!=t)break;i+=4}return l=!0,C(r,n)},g.times=g.mul=function(e){var t,n,r,o,a,i,s,c,u,d=this.constructor,p=this.d,f=(e=new d(e)).d;if(!this.s||!e.s)return new d(0);for(e.s*=this.s,n=this.e+e.e,(c=p.length)<(u=f.length)&&(a=p,p=f,f=a,i=c,c=u,u=i),a=[],r=i=c+u;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=a[o]+f[r]*p[o-r-1]+t,a[o--]=s%1e7|0,t=s/1e7|0;a[o]=(a[o]+t)%1e7|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,l?C(e,d.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(b(e,0,1e9),void 0===t?t=r.rounding:b(t,0,8),C(n,e+S(n)+1,t))},g.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=A(r,!0):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A(r=C(new o(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?A(this):(b(e,0,1e9),void 0===t?t=o.rounding:b(t,0,8),n=A((r=C(new o(this),e+S(this)+1,t)).abs(),!1,e+S(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this.constructor;return C(new e(this),S(this)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,i,c,u=this,p=u.constructor,f=+(e=new p(e));if(!e.s)return new p(a);if(!(u=new p(u)).s){if(e.s<1)throw Error(s+"Infinity");return u}if(u.eq(a))return u;if(r=p.precision,e.eq(a))return C(u,r);if(c=(t=e.e)>=(n=e.d.length-1),i=u.s,c){if((n=f<0?-f:f)<=9007199254740991){for(o=new p(a),t=Math.ceil(r/7+4),l=!1;n%2&&I((o=o.times(u)).d,t),0!==(n=d(n/2));)I((u=u.times(u)).d,t);return l=!0,e.s<0?new p(a).div(o):C(o,r)}}else if(i<0)throw Error(s+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,o=e.times(O(u,r+12)),l=!0,(o=E(o)).s=i,o},g.toPrecision=function(e,t){var n,r,o=this,a=o.constructor;return void 0===e?(n=S(o),r=A(o,n<=a.toExpNeg||n>=a.toExpPos)):(b(e,1,1e9),void 0===t?t=a.rounding:b(t,0,8),n=S(o=C(new a(o),e,t)),r=A(o,e<=n||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,1e9),void 0===t?t=n.rounding:b(t,0,8)),C(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=S(this),t=this.constructor;return A(this,e<=t.toExpNeg||e>=t.toExpPos)};var y=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,a;if(n!=r)a=n>r?1:-1;else for(o=a=0;ot[o]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,a,i){var l,c,u,d,p,f,m,g,h,b,v,y,E,w,x,O,k,T,A=r.constructor,I=r.s==o.s?1:-1,N=r.d,R=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(s+"Division by zero");for(u=0,c=r.e-o.e,k=R.length,x=N.length,g=(m=new A(I)).d=[];R[u]==(N[u]||0);)++u;if(R[u]>(N[u]||0)&&--c,(y=null==a?a=A.precision:i?a+(S(r)-S(o))+1:a)<0)return new A(0);if(y=y/7+2|0,u=0,1==k)for(d=0,R=R[0],y++;(u1&&(R=e(R,d),N=e(N,d),k=R.length,x=N.length),w=k,b=(h=N.slice(0,k)).length;b=1e7/2&&++O;do d=0,(l=t(R,h,k,b))<0?(v=h[0],k!=b&&(v=1e7*v+(h[1]||0)),(d=v/O|0)>1?(d>=1e7&&(d=1e7-1),f=(p=e(R,d)).length,b=h.length,1==(l=t(p,h,f,b))&&(d--,n(p,k16)throw Error(u+S(e));if(!e.s)return new f(a);for(null==t?(l=!1,s=m):s=t,i=new f(.03125);e.abs().gte(.1);)e=e.times(i),d+=5;for(s+=Math.log(p(2,d))/Math.LN10*2+5|0,n=r=o=new f(a),f.precision=s;;){if(r=C(r.times(e),s),n=n.times(++c),v((i=o.plus(y(r,n,s))).d).slice(0,s)===v(o.d).slice(0,s)){for(;d--;)o=C(o.times(o),s);return f.precision=m,null==t?(l=!0,C(o,m)):o}o=i}}function S(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function w(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return C(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function O(e,t){var n,r,o,i,c,u,d,p,f,m=1,g=e,h=g.d,b=g.constructor,E=b.precision;if(g.s<1)throw Error(s+(g.s?"NaN":"-Infinity"));if(g.eq(a))return new b(0);if(null==t?(l=!1,p=E):p=t,g.eq(10))return null==t&&(l=!0),w(b,p);if(p+=10,b.precision=p,r=(n=v(h)).charAt(0),!(15e14>Math.abs(i=S(g))))return d=w(b,p+2,E).times(i+""),g=O(new b(r+"."+n.slice(1)),p-10).plus(d),b.precision=E,null==t?(l=!0,C(g,E)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=v((g=g.times(e)).d)).charAt(0),m++;for(i=S(g),r>1?(g=new b("0."+n),i++):g=new b(r+"."+n.slice(1)),u=c=g=y(g.minus(a),g.plus(a),p),f=C(g.times(g),p),o=3;;){if(c=C(c.times(f),p),v((d=u.plus(y(c,new b(o),p))).d).slice(0,p)===v(u.d).slice(0,p))return u=u.times(2),0!==i&&(u=u.plus(w(b,p+2,E).times(i+""))),u=y(u,new b(m),p),b.precision=E,null==t?(l=!0,C(u,E)):u;u=d,o+=2}}function k(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=d(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rm||e.e<-m))throw Error(u+n)}else e.s=0,e.e=0,e.d=[0];return e}function C(e,t,n){var r,o,a,i,s,c,f,g,h=e.d;for(i=1,a=h[0];a>=10;a/=10)i++;if((r=t-i)<0)r+=7,o=t,f=h[g=0];else{if((g=Math.ceil((r+1)/7))>=(a=h.length))return e;for(i=1,f=a=h[g];a>=10;a/=10)i++;r%=7,o=r-7+i}if(void 0!==n&&(s=f/(a=p(10,i-o-1))%10|0,c=t<0||void 0!==h[g+1]||f%a,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?f/p(10,i-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(a=S(e),h.length=1,t=t-a-1,h[0]=p(10,(7-t%7)%7),e.e=d(-t/7)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(0==r?(h.length=g,a=1,g--):(h.length=g+1,a=p(10,7-r),h[g]=o>0?(f/p(10,i-o)%p(10,o)|0)*a:0),c)for(;;){if(0==g){1e7==(h[0]+=a)&&(h[0]=1,++e.e);break}if(h[g]+=a,1e7!=h[g])break;h[g--]=0,a=1}for(r=h.length;0===h[--r];)h.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+S(e));return e}function T(e,t){var n,r,o,a,i,s,c,u,d,p,f=e.constructor,m=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),l?C(t,m):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),i=u-r){for((d=i<0)?(n=c,i=-i,s=p.length):(n=p,r=u,s=c.length),i>(o=Math.max(Math.ceil(m/7),s)+2)&&(i=o,n.length=1),n.reverse(),o=i;o--;)n.push(0);n.reverse()}else{for((d=(o=c.length)<(s=p.length))&&(s=o),o=0;o0;--o)c[s++]=0;for(o=p.length;o>i;){if(c[--o]0?a=a.charAt(0)+"."+a.slice(1)+x(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(o<0?"e":"e+")+o):o<0?(a="0."+x(-o-1)+a,n&&(r=n-i)>0&&(a+=x(r))):o>=i?(a+=x(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+x(r))):((r=o+1)0&&(o+1===i&&(a+="."),a+=x(r))),e.s<0?"-"+a:a}function I(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(c+n+": "+r)}if(void 0!==(r=e[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(c+n+": "+r)}return this}(i=function e(t){var n,r,o;function a(e){if(!(this instanceof a))return new a(e);if(this.constructor=a,e instanceof a){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return k(this,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,f.test(e))k(this,e);else throw Error(c+e)}if(a.prototype=g,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=N,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n4&&m.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?g=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(f=(p=t).slice(4),t=s.test(f)?p:("-"!==(f=f.replace(c,u)).charAt(0)&&(f="-"+f),i+f)),h=o),new h(g,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},31872:function(e,t,n){var r=n(96130),o=n(64730),a=n(61861),i=n(46982),l=n(83671),s=n(53618);e.exports=r([a,o,i,l,s])},83671:function(e,t,n){var r=n(7667),o=n(13585),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},53618:function(e,t,n){var r=n(7667),o=n(13585),a=n(46640),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},46640:function(e,t,n){var r=n(25852);e.exports=function(e,t){return r(e,t.toLowerCase())}},25852:function(e){e.exports=function(e,t){return t in e?e[t]:t}},13585:function(e,t,n){var r=n(39900),o=n(94949),a=n(7478);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},7478:function(e,t,n){var r=n(74108),o=n(7667);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d-1}},64797:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},94410:function(e,t,n){var r=n(320)();e.exports=r},77458:function(e,t,n){var r=n(94410),o=n(39406);e.exports=function(e,t){return e&&r(e,t,o)}},38824:function(e,t,n){var r=n(53066),o=n(217);e.exports=function(e,t){t=r(t,e);for(var n=0,a=t.length;null!=e&&nt}},69959:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77095:function(e,t,n){var r=n(47495),o=n(77562),a=n(48150);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},63686:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},29759:function(e,t,n){var r=n(28685),o=n(19340);e.exports=function e(t,n,a,i,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,a,i,e,l):t!=t&&n!=n)}},28685:function(e,t,n){var r=n(4380),o=n(63859),a=n(41020),i=n(10701),l=n(96770),s=n(95059),c=n(64843),u=n(30484),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,h,b){var v=s(e),y=s(t),E=v?p:l(e),S=y?p:l(t);E=E==d?f:E,S=S==d?f:S;var w=E==f,x=S==f,O=E==S;if(O&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new r),v||u(e)?o(e,t,n,g,h,b):a(e,t,E,n,g,h,b);if(!(1&n)){var k=w&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(k||C){var T=k?e.value():e,A=C?t.value():t;return b||(b=new r),h(T,A,n,g,b)}}return!!O&&(b||(b=new r),i(e,t,n,g,h,b))}},59165:function(e,t,n){var r=n(4380),o=n(29759);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=200){var g=t?null:l(e);if(g)return s(g);p=!1,u=i,m=new r}else m=t?[]:f;t:for(;++c=o?e:r(e,t,n)}},9058:function(e,t,n){var r=n(62704);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e=s)return c;return c*("desc"==n[o]?-1:1)}}return e.index-t.index}},35852:function(e,t,n){var r=n(67741)["__core-js_shared__"];e.exports=r},91502:function(e,t,n){var r=n(10187);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i-1?l[s?t[c]:c]:void 0}}},16519:function(e,t,n){var r=n(67535),o=n(45021),a=n(55038);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?tu))return!1;var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=-1,g=!0,h=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++m-1&&e%1==0&&e-1}},42572:function(e,t,n){var r=n(89329);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},26528:function(e,t,n){var r=n(68193),o=n(5835),a=n(58246);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},90972:function(e,t,n){var r=n(72080);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},55981:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).get(e)}},76656:function(e,t,n){var r=n(72080);e.exports=function(e){return r(this,e).has(e)}},45541:function(e,t,n){var r=n(72080);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},38737:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},69794:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},53092:function(e,t,n){var r=n(49512);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},83463:function(e,t,n){var r=n(93245)(Object,"create");e.exports=r},51678:function(e,t,n){var r=n(93332)(Object.keys,Object);e.exports=r},16474:function(e,t,n){e=n.nmd(e);var r=n(58584),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},8611:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},93332:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7157:function(e,t,n){var r=n(24821),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},4800:function(e,t,n){var r=n(5835);e.exports=function(){this.__data__=new r,this.size=0}},73987:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},59728:function(e){e.exports=function(e){return this.__data__.get(e)}},4146:function(e){e.exports=function(e){return this.__data__.has(e)}},81333:function(e,t,n){var r=n(5835),o=n(58246),a=n(93785);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},48150:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r=t||n<0||h&&r>=u}function E(){var e,n,r,a=o();if(y(a))return S(a);p=setTimeout(E,(e=a-f,n=a-m,r=t-e,h?l(r,u-n):r))}function S(e){return(p=void 0,b&&s)?v(e):(s=c=void 0,d)}function w(){var e,n=o(),r=y(n);if(s=arguments,c=this,f=n,r){if(void 0===p)return m=e=f,p=setTimeout(E,t),g?v(e):d;if(h)return clearTimeout(p),p=setTimeout(E,t),v(f)}return void 0===p&&(p=setTimeout(E,t)),d}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(h="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),m=0,s=f=c=p=void 0},w.flush=function(){return void 0===p?d:S(o())},w}},61595:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72986:function(e,t,n){var r=n(31917),o=n(31062),a=n(49452),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:o;return n&&l(e,t,n)&&(t=void 0),s(e,a(t,3))}},209:function(e,t,n){var r=n(70493)(n(87539));e.exports=r},87539:function(e,t,n){var r=n(47495),o=n(49452),a=n(26018),i=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var s=null==n?0:a(n);return s<0&&(s=i(l+s,0)),r(e,o(t,3),s)}},20734:function(e,t,n){var r=n(9677),o=n(30677);e.exports=function(e,t){return r(o(e,t),1)}},44750:function(e,t,n){var r=n(38824);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},19955:function(e,t,n){var r=n(69959),o=n(24986);e.exports=function(e,t){return null!=e&&o(e,t,r)}},39100:function(e){e.exports=function(e){return e}},99782:function(e,t,n){var r=n(63686),o=n(19340),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},95059:function(e){var t=Array.isArray;e.exports=t},10187:function(e,t,n){var r=n(80509),o=n(54512);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},90849:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},64843:function(e,t,n){e=n.nmd(e);var r=n(67741),o=n(33879),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||o},93574:function(e,t,n){var r=n(29759);e.exports=function(e,t){return r(e,t)}},80509:function(e,t,n){var r=n(7976),o=n(70816);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},54512:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},96240:function(e,t,n){var r=n(39018);e.exports=function(e){return r(e)&&e!=+e}},71292:function(e){e.exports=function(e){return null==e}},39018:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},70816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19340:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},23393:function(e,t,n){var r=n(7976),o=n(28766),a=n(19340),i=Object.prototype,l=Function.prototype.toString,s=i.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},96907:function(e,t,n){var r=n(7976),o=n(95059),a=n(19340);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},62704:function(e,t,n){var r=n(7976),o=n(19340);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},30484:function(e,t,n){var r=n(80043),o=n(43863),a=n(16474),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},39406:function(e,t,n){var r=n(26546),o=n(92916),a=n(10187);e.exports=function(e){return a(e)?r(e):o(e)}},36887:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30677:function(e,t,n){var r=n(83690),o=n(49452),a=n(28245),i=n(95059);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},50924:function(e,t,n){var r=n(30804),o=n(77458),a=n(49452);e.exports=function(e,t){var n={};return t=a(t,3),o(e,function(e,o,a){r(n,o,t(e,o,a))}),n}},5037:function(e,t,n){var r=n(41764),o=n(92262),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},49512:function(e,t,n){var r=n(93785);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},30264:function(e,t,n){var r=n(41764),o=n(87004),a=n(39100);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},67222:function(e){e.exports=function(){}},80128:function(e,t,n){var r=n(67741);e.exports=function(){return r.Date.now()}},62973:function(e,t,n){var r=n(60411),o=n(34831),a=n(55632),i=n(217);e.exports=function(e){return a(e)?r(i(e)):o(e)}},1646:function(e,t,n){var r=n(16519)();e.exports=r},13435:function(e,t,n){var r=n(30927),o=n(49452),a=n(61700),i=n(95059),l=n(45021);e.exports=function(e,t,n){var s=i(e)?r:a;return n&&l(e,t,n)&&(t=void 0),s(e,o(t,3))}},97572:function(e,t,n){var r=n(9677),o=n(56871),a=n(70712),i=n(45021),l=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=l},30786:function(e){e.exports=function(){return[]}},33879:function(e){e.exports=function(){return!1}},68417:function(e,t,n){var r=n(54525),o=n(70816);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},55038:function(e,t,n){var r=n(89753),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},26018:function(e,t,n){var r=n(55038);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},89753:function(e,t,n){var r=n(33223),o=n(70816),a=n(62704),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?i:+e}},25635:function(e,t,n){var r=n(2218);e.exports=function(e){return null==e?"":r(e)}},98116:function(e,t,n){var r=n(49452),o=n(15375);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},9332:function(e,t,n){var r=n(6551)("toUpperCase");e.exports=r},8792:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(25250),o=n.n(r)},47907:function(e,t,n){var r=n(15313);n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},49079:function(e,t,n){var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(13127)},12956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(82139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let E=a.default.forwardRef(function(e,t){let n,r;let{href:s,as:b,children:E,prefetch:S=null,passHref:w,replace:x,shallow:O,scroll:k,locale:C,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:N=!1,...R}=e;n=E,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let _=a.default.useContext(d.RouterContext),P=a.default.useContext(p.AppRouterContext),M=null!=_?_:P,L=!_,D=!1!==S,j=null===S?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:F,as:B}=a.default.useMemo(()=>{if(!_){let e=y(s);return{href:e,as:b?y(b):e}}let[e,t]=(0,i.resolveHref)(_,s,!0);return{href:e,as:b?(0,i.resolveHref)(_,b):t||e}},[_,s,b]),U=a.default.useRef(F),Z=a.default.useRef(B);N&&(r=a.default.Children.only(n));let z=N?r&&"object"==typeof r&&r.ref:t,[H,G,$]=(0,f.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(Z.current!==B||U.current!==F)&&($(),Z.current=B,U.current=F),H(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,$,H]);a.default.useEffect(()=>{M&&G&&D&&v(M,F,B,{locale:C},{kind:j},L)},[B,F,G,C,D,null==_?void 0:_.locale,M,L,j]);let V={ref:W,onClick(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,o,i,s,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?a.default.startTransition(p):p()}(e,M,F,B,x,O,k,C,L)},onMouseEnter(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){N||"function"!=typeof I||I(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(D||!L)&&v(M,F,B,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,c.isAbsoluteUrl)(B))V.href=B;else if(!N||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==_?void 0:_.locale,t=(null==_?void 0:_.isLocaleDomain)&&(0,m.getDomainLocale)(B,e,null==_?void 0:_.locales,null==_?void 0:_.domainLocales);V.href=t||(0,g.addBasePath)((0,u.addLocale)(B,e,null==_?void 0:_.defaultLocale))}return N?a.default.cloneElement(r,V):(0,o.jsx)("a",{...R,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(95770),o=n(11030),a=n(24544),i=n(36874),l=n(82139),s=n(17434),c=n(22360),u=n(96735);function d(e,t,n){let d;let p="string"==typeof t?t:(0,o.formatWithValidation)(t),f=p.match(/^[a-zA-Z]{1,}:\/\//),m=f?p.slice(f[0].length):p;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+p+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);p=(f?f[0]:"")+t}if(!(0,s.isLocalURL)(p))return n?[p]:p;try{d=new URL(p.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(p,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,u.interpolateAs)(e.pathname,e.pathname,n);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(n,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[i,t||i]:i}catch(e){return n?[p]:p}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(64090),o=n(52185),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!a,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(a){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),i.set(n,t),t}(n);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8620:function(e){!function(){var t={675:function(e,t){t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=s(e),i=a[0],l=a[1],c=new o((i+l)*3/4-l),u=0,d=l>0?i-4:i;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=0,l=r-o;i>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}(e,i,i+16383>l?l:i+16383));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=a.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -29,4 +29,4 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},72784:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(6976),o=n(34951);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},86926:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(){o=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(t,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(s,"_invoke",{value:(a=new I(o||[]),l=m,function(n,o){if(l===g)throw Error("Generator is already running");if(l===h){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function t(n,r){var o=r.method,a=n.iterator[o];if(a===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(a,n.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(i,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===m)throw l=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=g;var c=f(t,r,a);if("normal"===c.type){if(l=a.done?h:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(l=h,a.method="throw",a.arg=c.arg)}})}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",g="executing",h="completed",b={};function v(){}function y(){}function E(){}var S={};d(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==n&&a.call(x,s)&&(S=x);var O=E.prototype=v.prototype=Object.create(S);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){var n;i(this,"_invoke",{value:function(o,i){function l(){return new t(function(n,l){!function n(o,i,l,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,l,s)},function(e){n("throw",e,l,s)}):t.resolve(d).then(function(e){u.value=e,l(u)},function(e){return n("throw",e,l,s)})}s(c.arg)}(o,i,n,l)})}return n=n?n.then(l,l):l()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},80406:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(19065),o=n(76057),a=n(93319);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},56721:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(19065),o=n(58194),a=n(76057),i=n(93319);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},63787:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(95180),o=n(58194),a=n(76057);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},29423:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},6976:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},76057:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(95180);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},68637:function(e,t,n){let r,o;n.d(t,{V:function(){return eE}});var a,i,l,s,c,u,d=n(64090),p=n.t(d,2),f=n(20044),m=n(10641),g=n(85235);function h(e,t,n,r){let o=(0,g.E)(n);(0,d.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var b=n(42219),v=n(21210);function y(e){let t=(0,m.z)(e),n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,v.Y)(()=>{n.current&&t()})}),[t])}var E=n(94819);function S(){for(var e=arguments.length,t=Array(e),n=0;n(0,E.r)(...t),[...t])}var w=n(92144),x=n(36601),O=n(61372),k=((a=k||{})[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a);function C(e,t){let n=(0,d.useRef)([]),r=(0,m.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}var T=n(37700);let A=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&A[0]!==e.target&&(A.unshift(e.target),(A=A.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var I=n(48803),N=n(72640),R=n(18318);function _(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var P=((i=P||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let M=Object.assign((0,R.yV)(function(e,t){let n,r=(0,d.useRef)(null),o=(0,x.T)(r,t),{initialFocus:a,containers:i,features:l=30,...s}=e;(0,w.H)()||(l=1);let c=S(r);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,d.useRef)(A.slice());return C((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,v.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=A.slice())},[e,A,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);C(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,I.C5)(r())},[t]),y(()=>{t&&(0,I.C5)(r())})}({ownerDocument:c},!!(16&l));let u=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,a=(0,d.useRef)(null),i=(0,b.t)();return C(()=>{if(!t)return;let e=r.current;e&&(0,v.Y)(()=>{if(!i.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=o&&o.current?(0,I.C5)(o.current):(0,I.jA)(e,I.TO.First)===I.fE.Error&&console.warn("There are no focusable elements inside the "),a.current=null==n?void 0:n.activeElement})},[t]),a}({ownerDocument:c,container:r,initialFocus:a},!!(2&l));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:a}=e,i=(0,b.t)();h(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!i.current)return;let n=_(o);r.current instanceof HTMLElement&&n.add(r.current);let l=a.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?L(n,s)?(a.current=s,(0,I.C5)(s)):(e.preventDefault(),e.stopPropagation(),(0,I.C5)(l)):(0,I.C5)(a.current)},!0)}({ownerDocument:c,container:r,containers:i,previousActiveElement:u},!!(8&l));let p=(n=(0,d.useRef)(0),(0,O.s)("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),g=(0,m.z)(e=>{let t=r.current;t&&(0,N.E)(p.current,{[k.Forwards]:()=>{(0,I.jA)(t,I.TO.First,{skipElements:[e.relatedTarget]})},[k.Backwards]:()=>{(0,I.jA)(t,I.TO.Last,{skipElements:[e.relatedTarget]})}})}),E=(0,f.G)(),P=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}),(0,R.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(P.current=!0,E.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){let t=_(i);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(L(t,n)||(P.current?(0,I.jA)(r.current,(0,N.E)(p.current,{[k.Forwards]:()=>I.TO.Next,[k.Backwards]:()=>I.TO.Previous})|I.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,I.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}))}),{features:P});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var D=n(89542),j=n(39790);let F=(0,d.createContext)(!1);function B(e){return d.createElement(F.Provider,{value:e.force},e.children)}var U=n(41879);let Z=d.Fragment,z=d.Fragment,H=(0,d.createContext)(null),G=(0,d.createContext)(null),$=Object.assign((0,R.yV)(function(e,t){let n=(0,d.useRef)(null),r=(0,x.T)((0,x.h)(e=>{n.current=e}),t),o=S(n),a=function(e){let t=(0,d.useContext)(F),n=(0,d.useContext)(H),r=S(e),[o,a]=(0,d.useState)(()=>{if(!t&&null!==n||U.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,d.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,d.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[i]=(0,d.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,d.useContext)(G),s=(0,w.H)();return(0,j.e)(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),(0,j.e)(()=>{if(i&&l)return l.register(i)},[l,i]),y(()=>{var e;a&&i&&(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),s&&a&&i?(0,D.createPortal)((0,R.sY)({ourProps:{ref:r},theirProps:e,defaultTag:Z,name:"Portal"}),i):null}),{Group:(0,R.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,x.T)(t)};return d.createElement(H.Provider,{value:n},(0,R.sY)({ourProps:o,theirProps:r,defaultTag:z,name:"Popover.Group"}))})}),{useState:W,useEffect:V,useLayoutEffect:q,useDebugValue:Y}=p;void 0!==window.document&&window.document.createElement;let K=p.useSyncExternalStore;var X=n(55205),Q=n(25256);let J=(l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,X.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,a={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},i=[(0,Q.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,X.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(a=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,a=o.clientWidth-o.offsetWidth,i=t-a;r.style(o,"paddingRight","".concat(i,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];i.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),i.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;ae()))}});J.subscribe(()=>{let e=J.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&J.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&J.dispatch("TEARDOWN",n)}});var ee=n(92381);let et=new Map,en=new Map;function er(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,j.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=en.get(r))?n:0;return en.set(r,o+1),0!==o||(et.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=en.get(r))?e:1;if(1===t?en.delete(r):en.set(r,t-1),1!==t)return;let n=et.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,et.delete(r))}},[e,t])}var eo=n(71679),ea=n(88358);let ei=(0,d.createContext)(()=>{});ei.displayName="StackContext";var el=((s=el||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function es(e){let{children:t,onUpdate:n,type:r,element:o,enabled:a}=e,i=(0,d.useContext)(ei),l=(0,m.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r{let e=void 0===a||!0===a;return e&&l(0,r,o),()=>{e&&l(1,r,o)}},[l,r,o,a]),d.createElement(ei.Provider,{value:l},t)}var ec=n(84152);let eu=(0,d.createContext)(null),ed=Object.assign((0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-description-".concat(n),...o}=e,a=function e(){let t=(0,d.useContext)(eu);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=(0,x.T)(t);(0,j.e)(()=>a.register(r),[r,a.register]);let l={ref:i,...a.props,id:r};return(0,R.sY)({ourProps:l,theirProps:o,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var ep=n(67409),ef=((c=ef||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eh=(0,d.createContext)(null);function eb(e){let t=(0,d.useContext)(eh);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}function ev(e,t){return(0,N.E)(t.type,eg,e,t)}eh.displayName="DialogContext";let ey=R.AN.RenderStrategy|R.AN.Static,eE=Object.assign((0,R.yV)(function(e,t){let n,r,o,a,i,l=(0,ee.M)(),{id:s="headlessui-dialog-".concat(l),open:c,onClose:u,initialFocus:p,role:f="dialog",__demoMode:g=!1,...b}=e,[v,y]=(0,d.useState)(0),E=(0,d.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(E.current||(E.current=!0,console.warn("Invalid role [".concat(f,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let O=(0,ea.oJ)();void 0===c&&null!==O&&(c=(O&ea.ZM.Open)===ea.ZM.Open);let k=(0,d.useRef)(null),C=(0,x.T)(k,t),A=S(k),I=e.hasOwnProperty("open")||null!==O,_=e.hasOwnProperty("onClose");if(!I&&!_)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!I)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof c)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(c));if("function"!=typeof u)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(u));let P=c?0:1,[L,D]=(0,d.useReducer)(ev,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),F=(0,m.z)(()=>u(!1)),U=(0,m.z)(e=>D({type:0,id:e})),Z=!!(0,w.H)()&&!g&&0===P,z=v>1,H=null!==(0,d.useContext)(eh),[W,V]=(n=(0,d.useContext)(G),r=(0,d.useRef)([]),o=(0,m.z)(e=>(r.current.push(e),n&&n.register(e),()=>a(e))),a=(0,m.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),i=(0,d.useMemo)(()=>({register:o,unregister:a,portals:r}),[o,a,r]),[r,(0,d.useMemo)(()=>function(e){let{children:t}=e;return d.createElement(G.Provider,{value:i},t)},[i])]),{resolveContainers:q,mainTreeNodeRef:Y,MainTreeNode:X}=function(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,d.useRef)(null!=(e=null==r?void 0:r.current)?e:null),a=S(o),i=(0,m.z)(()=>{var e,r,i;let l=[];for(let e of t)null!==e&&(e instanceof HTMLElement?l.push(e):"current"in e&&e.current instanceof HTMLElement&&l.push(e.current));if(null!=n&&n.current)for(let e of n.current)l.push(e);for(let t of null!=(e=null==a?void 0:a.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||t.contains(null==(i=null==(r=o.current)?void 0:r.getRootNode())?void 0:i.host)||l.some(e=>t.contains(e))||l.push(t));return l});return{resolveContainers:i,contains:(0,m.z)(e=>i().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,d.useMemo)(()=>function(){return null!=r?null:d.createElement(T._,{features:T.A.Hidden,ref:o})},[o,r])}}({portals:W,defaultContainers:[{get current(){var Q;return null!=(Q=L.panelRef.current)?Q:k.current}}]}),et=null!==O&&(O&ea.ZM.Closing)===ea.ZM.Closing,en=!H&&!et&&Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),en);let ei=!!z||Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ei);let ec=!(!Z||z);(0,eo.O)(q,F,ec);let ed=!(z||0!==P);h(null==A?void 0:A.defaultView,"keydown",e=>{ed&&(e.defaultPrevented||e.key===ep.R.Escape&&(e.preventDefault(),e.stopPropagation(),F()))}),function(e,t){var n;let r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],a]}},r=K(J.subscribe,J.getSnapshot,J.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,j.e)(()=>{if(!(!e||!t))return J.dispatch("PUSH",e,n),()=>J.dispatch("POP",e,n)},[t,e])}(A,!(et||0!==P||H),q),(0,d.useEffect)(()=>{if(0!==P||!k.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&F()}});return e.observe(k.current),()=>e.disconnect()},[P,k,F]);let[ef,em]=function(){let[e,t]=(0,d.useState)([]);return[e.length>0?e.join(" "):void 0,(0,d.useMemo)(()=>function(e){let n=(0,m.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,d.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return d.createElement(eu.Provider,{value:r},e.children)},[t])]}(),eg=(0,d.useMemo)(()=>[{dialogState:P,close:F,setTitleId:U},L],[P,L,F,U]),eb=(0,d.useMemo)(()=>({open:0===P}),[P]),eE={ref:C,id:s,role:f,"aria-modal":0===P||void 0,"aria-labelledby":L.titleId,"aria-describedby":ef};return d.createElement(es,{type:"Dialog",enabled:0===P,element:k,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,N.E)(e,{[el.Add]:()=>y(e=>e+1),[el.Remove]:()=>y(e=>e-1)})})},d.createElement(B,{force:!0},d.createElement($,null,d.createElement(eh.Provider,{value:eg},d.createElement($.Group,{target:k},d.createElement(B,{force:!1},d.createElement(em,{slot:eb,name:"Dialog.Description"},d.createElement(M,{initialFocus:p,containers:q,features:Z?(0,N.E)(z?"parent":"leaf",{parent:M.features.RestoreFocus,leaf:M.features.All&~M.features.FocusLock}):M.features.None},d.createElement(V,null,(0,R.sY)({ourProps:eE,theirProps:b,slot:eb,defaultTag:"div",features:ey,visible:0===P,name:"Dialog"}))))))))),d.createElement(X,null))}),{Backdrop:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Backdrop"),l=(0,x.T)(t);(0,d.useEffect)(()=>{if(null===i.panelRef.current)throw Error("A component is being used, but a component is missing.")},[i.panelRef]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return d.createElement(B,{force:!0},d.createElement($,null,(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Panel"),l=(0,x.T)(t,i.panelRef),s=(0,d.useMemo)(()=>({open:0===a}),[a]),c=(0,m.z)(e=>{e.stopPropagation()});return(0,R.sY)({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:a,close:i}]=eb("Dialog.Overlay"),l=(0,x.T)(t),s=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),c=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:a,setTitleId:i}]=eb("Dialog.Title"),l=(0,x.T)(t);(0,d.useEffect)(()=>(i(r),()=>i(null)),[r,i]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),Description:ed})},67409:function(e,t,n){n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},63416:function(e,t,n){n.d(t,{R:function(){return $}});var r,o,a,i,l,s=n(64090),c=n(39790),u=n(85235);function d(e,t){let[n,r]=(0,s.useState)(e),o=(0,u.E)(e);return(0,c.e)(()=>r(o.current),[o,r,...t]),n}var p=n(10641),f=n(20044),m=n(92381),g=n(71679),h=n(71454),b=n(36601);let v=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function y(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(n=o.innerText)?n:"":r;return v.test(i)&&(i=i.replace(v,"")),i}function E(e){return[e.screenX,e.screenY]}var S=n(37700),w=n(88358),x=n(84152),O=((r=O||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r),k=n(55205),C=n(48803);function T(e,t){return e?e+"["+t+"]":t}var A=n(72640),I=n(94819),N=n(18318),R=n(67409),_=((o=_||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),P=((a=P||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),M=((i=M||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),L=((l=L||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOption=5]="RegisterOption",l[l.UnregisterOption=6]="UnregisterOption",l[l.RegisterLabel=7]="RegisterLabel",l);function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,C.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let j={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=D(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;rr.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=o?e.options.indexOf(o):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=D(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=D(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},F=(0,s.createContext)(null);function B(e){let t=(0,s.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}F.displayName="ListboxActionsContext";let U=(0,s.createContext)(null);function Z(e){let t=(0,s.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Z),t}return t}function z(e,t){return(0,A.E)(t.type,j,e,t)}U.displayName="ListboxDataContext";let H=s.Fragment,G=N.AN.RenderStrategy|N.AN.Static,$=Object.assign((0,N.yV)(function(e,t){let{value:n,defaultValue:r,form:o,name:a,onChange:i,by:l=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:m=!1,...h}=e,v=d?"horizontal":"vertical",y=(0,b.T)(t),[E=m?[]:void 0,x]=function(e,t,n){let[r,o]=(0,s.useState)(n),a=void 0!==e,i=(0,s.useRef)(a),l=(0,s.useRef)(!1),c=(0,s.useRef)(!1);return!a||i.current||l.current?a||!i.current||c.current||(c.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,p.z)(e=>(a||o(e),null==t?void 0:t(e)))]}(n,i,r),[k,I]=(0,s.useReducer)(z,{dataRef:(0,s.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),R=(0,s.useRef)({static:!1,hold:!1}),_=(0,s.useRef)(null),P=(0,s.useRef)(null),M=(0,s.useRef)(null),L=(0,p.z)("string"==typeof l?(e,t)=>(null==e?void 0:e[l])===(null==t?void 0:t[l]):l),D=(0,s.useCallback)(e=>(0,A.E)(j.mode,{1:()=>E.some(t=>L(t,e)),0:()=>L(E,e)}),[E]),j=(0,s.useMemo)(()=>({...k,value:E,disabled:u,mode:m?1:0,orientation:v,compare:L,isSelected:D,optionsPropsRef:R,labelRef:_,buttonRef:P,optionsRef:M}),[E,u,m,k]);(0,c.e)(()=>{k.dataRef.current=j},[j]),(0,g.O)([j.buttonRef,j.optionsRef],(e,t)=>{var n;I({type:1}),(0,C.sP)(t,C.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let B=(0,s.useMemo)(()=>({open:0===j.listboxState,disabled:u,value:E}),[j,u,E]),Z=(0,p.z)(e=>{let t=j.options.find(t=>t.id===e);t&&K(t.dataRef.current.value)}),G=(0,p.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];K(e.current.value),I({type:2,focus:O.Specific,id:t})}}),$=(0,p.z)(()=>I({type:0})),W=(0,p.z)(()=>I({type:1})),V=(0,p.z)((e,t,n)=>e===O.Specific?I({type:2,focus:O.Specific,id:t,trigger:n}):I({type:2,focus:e,trigger:n})),q=(0,p.z)((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e}))),Y=(0,p.z)(e=>(I({type:7,id:e}),()=>I({type:7,id:null}))),K=(0,p.z)(e=>(0,A.E)(j.mode,{0:()=>null==x?void 0:x(e),1(){let t=j.value.slice(),n=t.findIndex(t=>L(t,e));return -1===n?t.push(e):t.splice(n,1),null==x?void 0:x(t)}})),X=(0,p.z)(e=>I({type:3,value:e})),Q=(0,p.z)(()=>I({type:4})),J=(0,s.useMemo)(()=>({onChange:K,registerOption:q,registerLabel:Y,goToOption:V,closeListbox:W,openListbox:$,selectActiveOption:G,selectOption:Z,search:X,clearSearch:Q}),[]),ee=(0,s.useRef)(null),et=(0,f.G)();return(0,s.useEffect)(()=>{ee.current&&void 0!==r&&et.addEventListener(ee.current,"reset",()=>{null==x||x(r)})},[ee,x]),s.createElement(F.Provider,{value:J},s.createElement(U.Provider,{value:j},s.createElement(w.up,{value:(0,A.E)(j.listboxState,{0:w.ZM.Open,1:w.ZM.Closed})},null!=a&&null!=E&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,a]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,a]of o.entries())t(n,T(r,e.toString()),a);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):e(o,r,n)}(r,T(n,o),a);return r})({[a]:E}).map((e,t)=>{let[n,r]=e;return s.createElement(S._,{features:S.A.Hidden,ref:0===t?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,N.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:n,value:r})})}),(0,N.sY)({ourProps:{ref:y},theirProps:h,slot:B,defaultTag:H,name:"Listbox"}))))}),{Button:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-button-".concat(r),...a}=e,i=Z("Listbox.Button"),l=B("Listbox.Button"),c=(0,b.T)(i.buttonRef,t),u=(0,f.G)(),g=(0,p.z)(e=>{switch(e.key){case R.R.Space:case R.R.Enter:case R.R.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.First)});break;case R.R.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.Last)})}}),v=(0,p.z)(e=>{e.key===R.R.Space&&e.preventDefault()}),y=(0,p.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),l.openListbox())}),E=d(()=>{if(i.labelId)return[i.labelId,o].join(" ")},[i.labelId,o]),S=(0,s.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value}),[i]),w={ref:c,id:o,type:(0,h.f)(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.listboxState,"aria-labelledby":E,disabled:i.disabled,onKeyDown:g,onKeyUp:v,onClick:y};return(0,N.sY)({ourProps:w,theirProps:a,slot:S,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,N.yV)(function(e,t){let n=(0,m.M)(),{id:r="headlessui-listbox-label-".concat(n),...o}=e,a=Z("Listbox.Label"),i=B("Listbox.Label"),l=(0,b.T)(a.labelRef,t);(0,c.e)(()=>i.registerLabel(r),[r]);let u=(0,p.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,s.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,N.sY)({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-options-".concat(r),...a}=e,i=Z("Listbox.Options"),l=B("Listbox.Options"),c=(0,b.T)(i.optionsRef,t),u=(0,f.G)(),g=(0,f.G)(),h=(0,w.oJ)(),v=null!==h?(h&w.ZM.Open)===w.ZM.Open:0===i.listboxState;(0,s.useEffect)(()=>{var e;let t=i.optionsRef.current;t&&0===i.listboxState&&t!==(null==(e=(0,I.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[i.listboxState,i.optionsRef]);let y=(0,p.z)(e=>{switch(g.dispose(),e.key){case R.R.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case R.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,A.E)(i.orientation,{vertical:R.R.ArrowDown,horizontal:R.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Next);case(0,A.E)(i.orientation,{vertical:R.R.ArrowUp,horizontal:R.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Previous);case R.R.Home:case R.R.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.First);case R.R.End:case R.R.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Last);case R.R.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case R.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),g.setTimeout(()=>l.clearSearch(),350))}}),E=d(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.id},[i.buttonRef.current]),S=(0,s.useMemo)(()=>({open:0===i.listboxState}),[i]),x={"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":E,"aria-orientation":i.orientation,id:o,onKeyDown:y,role:"listbox",tabIndex:0,ref:c};return(0,N.sY)({ourProps:x,theirProps:a,slot:S,defaultTag:"ul",features:G,visible:v,name:"Listbox.Options"})}),Option:(0,N.yV)(function(e,t){let n,r,o;let a=(0,m.M)(),{id:i="headlessui-listbox-option-".concat(a),disabled:l=!1,value:d,...f}=e,g=Z("Listbox.Option"),h=B("Listbox.Option"),v=null!==g.activeOptionIndex&&g.options[g.activeOptionIndex].id===i,S=g.isSelected(d),w=(0,s.useRef)(null),x=(n=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,p.z)(()=>{let e=w.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():y(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return y(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),C=(0,u.E)({disabled:l,value:d,domRef:w,get textValue(){return x()}}),T=(0,b.T)(t,w);(0,c.e)(()=>{if(0!==g.listboxState||!v||0===g.activationTrigger)return;let e=(0,k.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[w,v,g.listboxState,g.activationTrigger,g.activeOptionIndex]),(0,c.e)(()=>h.registerOption(i,C),[C,i]);let A=(0,p.z)(e=>{if(l)return e.preventDefault();h.onChange(d),0===g.mode&&(h.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),I=(0,p.z)(()=>{if(l)return h.goToOption(O.Nothing);h.goToOption(O.Specific,i)}),R=(o=(0,s.useRef)([-1,-1]),{wasMoved(e){let t=E(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=E(e)}}),_=(0,p.z)(e=>R.update(e)),P=(0,p.z)(e=>{R.wasMoved(e)&&(l||v||h.goToOption(O.Specific,i,0))}),M=(0,p.z)(e=>{R.wasMoved(e)&&(l||v&&h.goToOption(O.Nothing))}),L=(0,s.useMemo)(()=>({active:v,selected:S,disabled:l}),[v,S,l]);return(0,N.sY)({ourProps:{id:i,ref:T,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":S,disabled:void 0,onClick:A,onFocus:I,onPointerEnter:_,onMouseEnter:_,onPointerMove:P,onMouseMove:P,onPointerLeave:M,onMouseLeave:M},theirProps:f,slot:L,defaultTag:"li",name:"Listbox.Option"})})})},80991:function(e,t,n){n.d(t,{O:function(){return D}});var r,o,a,i=n(64090),l=n(67409),s=n(10641),c=n(92381),u=n(39790),d=n(85235),p=n(71454),f=n(36601),m=n(42219),g=n(37700);function h(e){let{onFocus:t}=e,[n,r]=(0,i.useState)(!0),o=(0,m.t)();return n?i.createElement(g._,{as:"button",type:"button",features:g.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!o.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var b=n(48803),v=n(72640),y=n(21210),E=n(94819),S=n(18318);let w=i.createContext(null);function x(e){let{children:t}=e,n=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(w.Provider,{value:n},t)}function O(e){let t=i.useContext(w);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],a=r;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return i.useEffect(()=>o,[]),r}var k=((r=k||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),C=((o=C||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),T=((a=T||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let A={0(e,t){var n;let r=(0,b.z2)(e.tabs,e=>e.current),o=(0,b.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),i={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,v.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,v.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return i;let o=(0,v.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:-1===o?e.selectedIndex:o}}let l=r.slice(0,t.index),s=[...r.slice(t.index),...l].find(e=>a.includes(e));if(!s)return i;let c=null!=(n=r.indexOf(s))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...i,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,b.z2)([...e.tabs,t.tab],e=>e.current),a=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===a&&(a=e.selectedIndex),{...e,tabs:o,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,b.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},I=(0,i.createContext)(null);function N(e){let t=(0,i.useContext)(I);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}I.displayName="TabsDataContext";let R=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function P(e,t){return(0,v.E)(t.type,A,e,t)}R.displayName="TabsActionsContext";let M=i.Fragment,L=S.AN.RenderStrategy|S.AN.Static,D=Object.assign((0,S.yV)(function(e,t){var n,r;let o=(0,c.M)(),{id:a="headlessui-tabs-tab-".concat(o),...d}=e,{orientation:m,activation:g,selectedIndex:h,tabs:w,panels:x}=N("Tab"),k=_("Tab"),C=N("Tab"),T=(0,i.useRef)(null),A=(0,f.T)(T,t);(0,u.e)(()=>k.registerTab(T),[k,T]);let I=O("tabs"),R=w.indexOf(T);-1===R&&(R=I);let P=R===h,M=(0,s.z)(e=>{var t;let n=e();if(n===b.fE.Success&&"auto"===g){let e=null==(t=(0,E.r)(T))?void 0:t.activeElement,n=C.tabs.findIndex(t=>t.current===e);-1!==n&&k.change(n)}return n}),L=(0,s.z)(e=>{let t=w.map(e=>e.current).filter(Boolean);if(e.key===l.R.Space||e.key===l.R.Enter){e.preventDefault(),e.stopPropagation(),k.change(R);return}switch(e.key){case l.R.Home:case l.R.PageUp:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.First));case l.R.End:case l.R.PageDown:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.Last))}if(M(()=>(0,v.E)(m,{vertical:()=>e.key===l.R.ArrowUp?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowDown?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error,horizontal:()=>e.key===l.R.ArrowLeft?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowRight?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error}))===b.fE.Success)return e.preventDefault()}),D=(0,i.useRef)(!1),j=(0,s.z)(()=>{var e;D.current||(D.current=!0,null==(e=T.current)||e.focus({preventScroll:!0}),k.change(R),(0,y.Y)(()=>{D.current=!1}))}),F=(0,s.z)(e=>{e.preventDefault()}),B=(0,i.useMemo)(()=>({selected:P}),[P]),U={ref:A,onKeyDown:L,onMouseDown:F,onClick:j,id:a,role:"tab",type:(0,p.f)(e,T),"aria-controls":null==(r=null==(n=x[R])?void 0:n.current)?void 0:r.id,"aria-selected":P,tabIndex:P?0:-1};return(0,S.sY)({ourProps:U,theirProps:d,slot:B,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,S.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:a,selectedIndex:l=null,...c}=e,p=r?"vertical":"horizontal",m=o?"manual":"auto",g=null!==l,v=(0,f.T)(t),[y,E]=(0,i.useReducer)(P,{selectedIndex:null!=l?l:n,tabs:[],panels:[]}),w=(0,i.useMemo)(()=>({selectedIndex:y.selectedIndex}),[y.selectedIndex]),O=(0,d.E)(a||(()=>{})),k=(0,d.E)(y.tabs),C=(0,i.useMemo)(()=>({orientation:p,activation:m,...y}),[p,m,y]),T=(0,s.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),A=(0,s.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),N=(0,s.z)(e=>{_.current!==e&&O.current(e),g||E({type:0,index:e})}),_=(0,d.E)(g?e.selectedIndex:y.selectedIndex),L=(0,i.useMemo)(()=>({registerTab:T,registerPanel:A,change:N}),[]);return(0,u.e)(()=>{E({type:0,index:null!=l?l:n})},[l]),(0,u.e)(()=>{if(void 0===_.current||y.tabs.length<=0)return;let e=(0,b.z2)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&N(e.indexOf(y.tabs[_.current]))}),i.createElement(x,null,i.createElement(R.Provider,{value:L},i.createElement(I.Provider,{value:C},C.tabs.length<=0&&i.createElement(h,{onFocus:()=>{var e,t;for(let n of k.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,S.sY)({ourProps:{ref:v},theirProps:c,slot:w,defaultTag:M,name:"Tabs"}))))}),List:(0,S.yV)(function(e,t){let{orientation:n,selectedIndex:r}=N("Tab.List"),o=(0,f.T)(t);return(0,S.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,S.yV)(function(e,t){let{selectedIndex:n}=N("Tab.Panels"),r=(0,f.T)(t),o=(0,i.useMemo)(()=>({selectedIndex:n}),[n]);return(0,S.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,S.yV)(function(e,t){var n,r,o,a;let l=(0,c.M)(),{id:s="headlessui-tabs-panel-".concat(l),tabIndex:d=0,...p}=e,{selectedIndex:m,tabs:h,panels:b}=N("Tab.Panel"),v=_("Tab.Panel"),y=(0,i.useRef)(null),E=(0,f.T)(y,t);(0,u.e)(()=>v.registerPanel(y),[v,y]);let w=O("panels"),x=b.indexOf(y);-1===x&&(x=w);let k=x===m,C=(0,i.useMemo)(()=>({selected:k}),[k]),T={ref:E,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=h[x])?void 0:n.current)?void 0:r.id,tabIndex:k?d:-1};return k||null!=(o=p.unmount)&&!o||null!=(a=p.static)&&a?(0,S.sY)({ourProps:T,theirProps:p,slot:C,defaultTag:"div",features:L,visible:k,name:"Tabs.Panel"}):i.createElement(g._,{as:"span","aria-hidden":"true",...T})})})},70129:function(e,t,n){n.d(t,{u:function(){return _}});var r,o=n(64090),a=n(20044),i=n(10641),l=n(42219),s=n(39790),c=n(85235),u=n(92144),d=n(36601),p=n(55205),f=n(72640);function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}var h=n(88358),b=n(82466),v=n(18318);function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let E=(0,o.createContext)(null);E.displayName="TransitionContext";var S=((r=S||{}).Visible="visible",r.Hidden="hidden",r);let w=(0,o.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function O(e,t){let n=(0,c.E)(e),r=(0,o.useRef)([]),s=(0,l.t)(),u=(0,a.G)(),d=(0,i.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,f.E)(t,{[v.l4.Unmount](){r.current.splice(o,1)},[v.l4.Hidden](){r.current[o].state="hidden"}}),u.microTask(()=>{var e;!x(r)&&s.current&&(null==(e=n.current)||e.call(n))}))}),p=(0,i.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,v.l4.Unmount)}),m=(0,o.useRef)([]),g=(0,o.useRef)(Promise.resolve()),h=(0,o.useRef)({enter:[],leave:[],idle:[]}),b=(0,i.z)((e,n,r)=>{m.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{m.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),y=(0,i.z)((e,t,n)=>{Promise.all(h.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=m.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:p,unregister:d,onStart:b,onStop:y,wait:g,chains:h}),[p,d,r,b,y,h,g])}function k(){}w.displayName="NestingContext";let C=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let n={};for(let r of C)n[r]=null!=(t=e[r])?t:k;return n}let A=v.AN.RenderStrategy,I=(0,v.yV)(function(e,t){let{show:n,appear:r=!1,unmount:a=!0,...l}=e,c=(0,o.useRef)(null),p=(0,d.T)(c,t);(0,u.H)();let f=(0,h.oJ)();if(void 0===n&&null!==f&&(n=(f&h.ZM.Open)===h.ZM.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,o.useState)(n?"visible":"hidden"),b=O(()=>{g("hidden")}),[y,S]=(0,o.useState)(!0),k=(0,o.useRef)([n]);(0,s.e)(()=>{!1!==y&&k.current[k.current.length-1]!==n&&(k.current.push(n),S(!1))},[k,n]);let C=(0,o.useMemo)(()=>({show:n,appear:r,initial:y}),[n,r,y]);(0,o.useEffect)(()=>{if(n)g("visible");else if(x(b)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[n,b]);let T={unmount:a},I=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeEnter)||t.call(e)}),R=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(w.Provider,{value:b},o.createElement(E.Provider,{value:C},(0,v.sY)({ourProps:{...T,as:o.Fragment,children:o.createElement(N,{ref:p,...T,...l,beforeEnter:I,beforeLeave:R})},theirProps:{},defaultTag:o.Fragment,features:A,visible:"visible"===m,name:"Transition"})))}),N=(0,v.yV)(function(e,t){var n,r,S;let k;let{beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R,enter:_,enterFrom:P,enterTo:M,entered:L,leave:D,leaveFrom:j,leaveTo:F,...B}=e,U=(0,o.useRef)(null),Z=(0,d.T)(U,t),z=null==(n=B.unmount)||n?v.l4.Unmount:v.l4.Hidden,{show:H,appear:G,initial:$}=function(){let e=(0,o.useContext)(E);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[W,V]=(0,o.useState)(H?"visible":"hidden"),q=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:Y,unregister:K}=q;(0,o.useEffect)(()=>Y(U),[Y,U]),(0,o.useEffect)(()=>{if(z===v.l4.Hidden&&U.current){if(H&&"visible"!==W){V("visible");return}return(0,f.E)(W,{hidden:()=>K(U),visible:()=>Y(U)})}},[W,U,Y,K,H,z]);let X=(0,c.E)({base:y(B.className),enter:y(_),enterFrom:y(P),enterTo:y(M),entered:y(L),leave:y(D),leaveFrom:y(j),leaveTo:y(F)}),Q=(S={beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R},k=(0,o.useRef)(T(S)),(0,o.useEffect)(()=>{k.current=T(S)},[S]),k),J=(0,u.H)();(0,o.useEffect)(()=>{if(J&&"visible"===W&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,W,J]);let ee=G&&H&&$,et=J&&(!$||G)?H?"enter":"leave":"idle",en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,o.useState)(e),r=(0,l.t)(),a=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.addFlag(h.ZM.Opening),Q.current.beforeEnter()},leave:()=>{en.addFlag(h.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),eo=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.removeFlag(h.ZM.Opening),Q.current.afterEnter()},leave:()=>{en.removeFlag(h.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),ea=O(()=>{V("hidden"),K(U)},q),ei=(0,o.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:i,onStop:u}=e,d=(0,l.t)(),h=(0,a.G)(),b=(0,c.E)(r);(0,s.e)(()=>{t&&(b.current="enter")},[t]),(0,s.e)(()=>{let e=(0,p.k)();h.add(e.dispose);let t=n.current;if(t&&"idle"!==b.current&&d.current){var r,a,l;let n,s,c,d,h,v,y;return e.dispose(),i.current(b.current),e.add((r=o.current,a="enter"===b.current,l=()=>{e.dispose(),u.current(b.current)},s=a?"enter":"leave",c=(0,p.k)(),d=void 0!==l?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,f.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),v=(0,f.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),y=(0,f.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),g(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),m(t,...r.base,...h,...y),c.nextFrame(()=>{g(t,...r.base,...h,...y),m(t,...r.base,...h,...v),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),l=a+i;if(0!==l){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},l),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(g(t,...r.base,...h),m(t,...r.base,...r.entered),d()))}),c.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.E)(e=>{ei.current=!0,ea.onStart(U,e,er)}),onStop:(0,c.E)(e=>{ei.current=!1,ea.onStop(U,e,eo),"leave"!==e||x(ea)||(V("hidden"),K(U))})});let el=B;return ee?el={...el,className:(0,b.A)(B.className,...X.current.enter,...X.current.enterFrom)}:ei.current&&(el.className=(0,b.A)(B.className,null==(r=U.current)?void 0:r.className),""===el.className&&delete el.className),o.createElement(w.Provider,{value:ea},o.createElement(h.up,{value:(0,f.E)(W,{visible:h.ZM.Open,hidden:h.ZM.Closed})|en.flags},(0,v.sY)({ourProps:{ref:Z},theirProps:el,defaultTag:"div",features:A,visible:"visible"===W,name:"Transition.Child"})))}),R=(0,v.yV)(function(e,t){let n=null!==(0,o.useContext)(E),r=null!==(0,h.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(I,{ref:t,...e}):o.createElement(N,{ref:t,...e}))}),_=Object.assign(I,{Child:R,Root:I})},20044:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(64090),o=n(55205);function a(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},10641:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64090),o=n(85235);let a=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;ra.O.nextId():null);return(0,i.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},42219:function(e,t,n){n.d(t,{t:function(){return a}});var r=n(64090),o=n(39790);function a(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},39790:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(64090),o=n(41879);let a=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},85235:function(e,t,n){n.d(t,{E:function(){return a}});var r=n(64090),o=n(39790);function a(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},71679:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(64090),o=n(48803),a=n(25256),i=n(85235);function l(e,t,n){let o=(0,i.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var s=n(61372);function c(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,r.useRef)(!1);function c(n,r){if(!i.current||n.defaultPrevented)return;let a=r(n);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(a,o.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);let u=(0,r.useRef)(null);l("pointerdown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("mousedown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("click",e=>{(0,a.tq)()||u.current&&(c(e,()=>u.current),u.current=null)},!0),l("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},71454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(64090),o=n(39790);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function i(e,t){let[n,i]=(0,r.useState)(()=>a(e));return(0,o.e)(()=>{i(a(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}},92144:function(e,t,n){n.d(t,{H:function(){return i}});var r,o=n(64090),a=n(41879);function i(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,l]=o.useState(a.O.isHandoffComplete);return i&&!1===a.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==i&&l(!0)},[i]),o.useEffect(()=>a.O.handoff(),[]),!t&&i}},36601:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(64090),o=n(10641);let a=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:l}},61372:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(64090),o=n(85235);function a(e,t,n){let a=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},37700:function(e,t,n){n.d(t,{A:function(){return a},_:function(){return i}});var r,o=n(18318),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let i=(0,o.yV)(function(e,t){var n;let{features:r=1,...a}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:i,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},88358:function(e,t,n){n.d(t,{ZM:function(){return i},oJ:function(){return l},up:function(){return s}});var r,o=n(64090);let a=(0,o.createContext)(null);a.displayName="OpenClosedContext";var i=((r=i||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(a)}function s(e){let{value:t,children:n}=e;return o.createElement(a.Provider,{value:t},n)}},84152:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},82466:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},55205:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(21210)},41879:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let l=new i},48803:function(e,t,n){n.d(t,{C5:function(){return b},TO:function(){return d},fE:function(){return p},jA:function(){return y},sP:function(){return g},tJ:function(){return m},z2:function(){return v}});var r,o,a,i,l,s=n(72640),c=n(94819);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),f=((a=f||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),m=((i=m||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,s.E)(n,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var h=((l=h||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function b(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t){var n,r,o;let{sorted:a=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?a?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.includes(e))),i=null!=i?i:s.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,h;do{if(m>=g||m+g<=0)return 0;let e=p+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(h=c[e])||h.focus(f),m+=d}while(h!==s.activeElement);return 6&t&&null!=(o=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&h.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},72640:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}},21210:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},94819:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(41879);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},25256:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},18318:function(e,t,n){n.d(t,{AN:function(){return s},l4:function(){return c},oA:function(){return g},sY:function(){return u},yV:function(){return m}});var r,o,a=n(64090),i=n(82466),l=n(72640),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:a,visible:i=!0,name:s,mergeRefs:c}=e;c=null!=c?c:p;let u=f(n,t);if(i)return d(u,r,o,s,c);let m=null!=a?a:0;if(2&m){let{static:e=!1,...t}=u;if(e)return d(t,r,o,s,c)}if(1&m){let{unmount:e=!0,...t}=u;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,c)})}return d(u,r,o,s,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:s,refName:c="ref",...u}=h(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},p="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(m["data-headlessui-state"]=n.join(" "))}if(l===a.Fragment&&Object.keys(g(u)).length>0){if(!(0,a.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;rnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function f(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},9454:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});t.Z=o},98941:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))});t.Z=o},33393:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});t.Z=o},37963:function(e,t,n){n.d(t,{o:function(){return o}});class r extends Error{}function o(e,t){let n;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let o=!0===t.header?0:1,a=e.split(".")[o];if("string"!=typeof a)throw new r("Invalid token specified: missing part #".concat(o+1));try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(a)}catch(e){throw new r("Invalid token specified: invalid base64 for part #".concat(o+1," (").concat(e.message,")"))}try{return JSON.parse(n)}catch(e){throw new r("Invalid token specified: invalid json for part #".concat(o+1," (").concat(e.message,")"))}}r.prototype.name="InvalidTokenError"},12968:function(e,t,n){let r,o,a,i,l,s,c,u,d,p;n.d(t,{ZP:function(){return t9}});var f,m,g,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W,V,q,Y,K,X={};n.r(X),n.d(X,{APIConnectionError:function(){return eo},APIConnectionTimeoutError:function(){return ea},APIError:function(){return en},APIUserAbortError:function(){return er},AuthenticationError:function(){return el},BadRequestError:function(){return ei},ConflictError:function(){return eu},InternalServerError:function(){return ef},NotFoundError:function(){return ec},OpenAIError:function(){return et},PermissionDeniedError:function(){return es},RateLimitError:function(){return ep},UnprocessableEntityError:function(){return ed}});let Q="4.28.0",J=!1;class ee{get[Symbol.toStringTag](){return"MultipartBody"}constructor(e){this.body=e}}o||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{auto:!1};if(J)throw Error("you must `import 'openai/shims/".concat(e.kind,"'` before importing anything else from openai"));if(o)throw Error("can't `import 'openai/shims/".concat(e.kind,"'` after `import 'openai/shims/").concat(o,"'`"));J=t.auto,o=e.kind,a=e.fetch,e.Request,e.Response,e.Headers,i=e.FormData,e.Blob,l=e.File,s=e.ReadableStream,c=e.getMultipartRequestOptions,u=e.getDefaultAgent,d=e.fileFromPath,p=e.isFsReadStream}(function(){let e,t,n,r,{manuallyImported:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";try{e=fetch,t=Request,n=Response,r=Headers}catch(e){throw Error("this environment is missing the following Web Fetch API type: ".concat(e.message,". ").concat(a))}return{kind:"web",fetch:e,Request:t,Response:n,Headers:r,FormData:"undefined"!=typeof FormData?FormData:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(a))}},Blob:"undefined"!=typeof Blob?Blob:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(a))}},File:"undefined"!=typeof File?File:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(a))}},ReadableStream:"undefined"!=typeof ReadableStream?ReadableStream:class{constructor(){throw Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(a))}},getMultipartRequestOptions:async(e,t)=>({...t,body:new ee(e)}),getDefaultAgent:e=>void 0,fileFromPath:()=>{throw Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class et extends Error{}class en extends et{static makeMessage(e,t,n){let r=(null==t?void 0:t.message)?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?"".concat(e," ").concat(r):e?"".concat(e," status code (no body)"):r||"(no status code or body)"}static generate(e,t,n,r){if(!e)return new eo({cause:e0(t)});let o=null==t?void 0:t.error;return 400===e?new ei(e,o,n,r):401===e?new el(e,o,n,r):403===e?new es(e,o,n,r):404===e?new ec(e,o,n,r):409===e?new eu(e,o,n,r):422===e?new ed(e,o,n,r):429===e?new ep(e,o,n,r):e>=500?new ef(e,o,n,r):new en(e,o,n,r)}constructor(e,t,n,r){super("".concat(en.makeMessage(e,t,n))),this.status=e,this.headers=r,this.error=t,this.code=null==t?void 0:t.code,this.param=null==t?void 0:t.param,this.type=null==t?void 0:t.type}}class er extends en{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class eo extends en{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),this.status=void 0,t&&(this.cause=t)}}class ea extends eo{constructor({message:e}={}){super({message:null!=e?e:"Request timed out."})}}class ei extends en{constructor(){super(...arguments),this.status=400}}class el extends en{constructor(){super(...arguments),this.status=401}}class es extends en{constructor(){super(...arguments),this.status=403}}class ec extends en{constructor(){super(...arguments),this.status=404}}class eu extends en{constructor(){super(...arguments),this.status=409}}class ed extends en{constructor(){super(...arguments),this.status=422}}class ep extends en{constructor(){super(...arguments),this.status=429}}class ef extends en{}var em=n(8620).Buffer;class eg{static fromSSEResponse(e,t){let n=!1,r=new eh;async function*o(){if(!e.body)throw t.abort(),new et("Attempted to iterate over a response with no body");let n=new eb;for await(let t of ev(e.body))for(let e of n.decode(t)){let t=r.decode(e);t&&(yield t)}for(let e of n.flush()){let t=r.decode(e);t&&(yield t)}}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of o())if(!e){if(t.data.startsWith("[DONE]")){e=!0;continue}if(null===t.event){let e;try{e=JSON.parse(t.data)}catch(e){throw console.error("Could not parse message into JSON:",t.data),console.error("From chunk:",t.raw),e}if(e&&e.error)throw new en(void 0,e.error,void 0,void 0);yield e}}e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}static fromReadableStream(e,t){let n=!1;async function*r(){let t=new eb;for await(let n of ev(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of r())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new eg(()=>r(e),this.controller),new eg(()=>r(t),this.controller)]}toReadableStream(){let e;let t=this,n=new TextEncoder;return new s({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:r,done:o}=await e.next();if(o)return t.close();let a=n.encode(JSON.stringify(r)+"\n");t.enqueue(a)}catch(e){t.error(e)}},async cancel(){var t;await (null===(t=e.return)||void 0===t?void 0:t.call(e))}})}constructor(e,t){this.iterator=e,this.controller=t}}class eh{decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,n,r]=function(e,t){let n=e.indexOf(t);return -1!==n?[e.substring(0,n),t,e.substring(n+t.length)]:[e,"",""]}(e,":");return r.startsWith(" ")&&(r=r.substring(1)),"event"===t?this.event=r:"data"===t&&this.data.push(r),null}constructor(){this.event=null,this.data=[],this.chunks=[]}}class eb{decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];let n=eb.NEWLINE_CHARS.has(t[t.length-1]||""),r=t.split(eb.NEWLINE_REGEXP);return 1!==r.length||n?(this.buffer.length>0&&(r=[this.buffer.join("")+r[0],...r.slice(1)],this.buffer=[]),n||(this.buffer=[r.pop()||""]),r):(this.buffer.push(r[0]),[])}decodeText(e){if(null==e)return"";if("string"==typeof e)return e;if(void 0!==em){if(e instanceof em)return e.toString();if(e instanceof Uint8Array)return em.from(e).toString();throw new et("Unexpected: received non-Uint8Array (".concat(e.constructor.name,') stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.'))}if("undefined"!=typeof TextDecoder){if(e instanceof Uint8Array||e instanceof ArrayBuffer){var t;return null!==(t=this.textDecoder)&&void 0!==t||(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e)}throw new et("Unexpected: received non-Uint8Array/ArrayBuffer (".concat(e.constructor.name,") in a web platform. Please report this error."))}throw new et("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];let e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}constructor(){this.buffer=[],this.trailingCR=!1}}function ev(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return(null==e?void 0:e.done)&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}eb.NEWLINE_CHARS=new Set(["\n","\r","\v","\f","\x1c","\x1d","\x1e","\x85","\u2028","\u2029"]),eb.NEWLINE_REGEXP=/\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;var ey=n(8620).Buffer;let eE=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob,eS=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&ew(e),ew=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,ex=e=>eS(e)||eE(e)||p(e);async function eO(e,t){var n,r,o,a,i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(eE(e=await e)){let r=await e.blob();return t||(t=null!==(n=new URL(e.url).pathname.split(/[\\/]/).pop())&&void 0!==n?n:"unknown_file"),new l([r],t,s)}let c=await ek(e);if(t||(t=null!==(r=eC((a=e).name)||eC(a.filename)||(null===(i=eC(a.path))||void 0===i?void 0:i.split(/[\\/]/).pop()))&&void 0!==r?r:"unknown_file"),!s.type){let e=null===(o=c[0])||void 0===o?void 0:o.type;"string"==typeof e&&(s={...s,type:e})}return new l(c,t,s)}async function ek(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(ew(e))t.push(await e.arrayBuffer());else if(eT(e))for await(let n of e)t.push(n);else{var n;throw Error("Unexpected data type: ".concat(typeof e,"; constructor: ").concat(null==e?void 0:null===(n=e.constructor)||void 0===n?void 0:n.name,"; props: ").concat(function(e){let t=Object.getOwnPropertyNames(e);return"[".concat(t.map(e=>'"'.concat(e,'"')).join(", "),"]")}(e)))}return t}let eC=e=>"string"==typeof e?e:void 0!==ey&&e instanceof ey?String(e):void 0,eT=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eA=e=>e&&"object"==typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],eI=async e=>{let t=await eN(e.body);return c(t,e)},eN=async e=>{let t=new i;return await Promise.all(Object.entries(e||{}).map(e=>{let[n,r]=e;return e_(t,n,r)})),t},eR=e=>{if(ex(e))return!0;if(Array.isArray(e))return e.some(eR);if(e&&"object"==typeof e){for(let t in e)if(eR(e[t]))return!0}return!1},e_=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError('Received null for "'.concat(t,"\"; to pass null in FormData, you must use the string 'null'"));if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(ex(n)){let r=await eO(n);e.append(t,r)}else if(Array.isArray(n))await Promise.all(n.map(n=>e_(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(n=>{let[r,o]=n;return e_(e,"".concat(t,"[").concat(r,"]"),o)}));else throw TypeError("Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ".concat(n," instead"))}};var eP=n(8620).Buffer,eM=n(49079),eL=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},eD=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};async function ej(e){let{response:t}=e;if(e.options.stream)return(e6("response",t.status,t.url,t.headers,t.body),e.options.__streamClass)?e.options.__streamClass.fromSSEResponse(t,e.controller):eg.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;let n=t.headers.get("content-type");if((null==n?void 0:n.includes("application/json"))||(null==n?void 0:n.includes("application/vnd.api+json"))){let e=await t.json();return e6("response",t.status,t.url,t.headers,e),e}let r=await t.text();return e6("response",t.status,t.url,t.headers,r),r}class eF extends Promise{_thenUnwrap(e){return new eF(this.responsePromise,async t=>e(await this.parseResponse(t)))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}constructor(e,t=ej){super(e=>{e(null)}),this.responsePromise=e,this.parseResponse=t}}class eB{authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...eq(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return"stainless-node-retry-".concat(e5())}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}calculateContentLength(e){if("string"==typeof e){if(void 0!==eP)return eP.byteLength(e,"utf8").toString();if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e).length.toString()}return null}buildRequest(e){var t,n,r,o,a,i;let{method:l,path:s,query:c,headers:d={}}=e,p=eA(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,f=this.calculateContentLength(p),m=this.buildURL(s,c);"timeout"in e&&eJ("timeout",e.timeout);let g=null!==(n=e.timeout)&&void 0!==n?n:this.timeout,h=null!==(o=null!==(r=e.httpAgent)&&void 0!==r?r:this.httpAgent)&&void 0!==o?o:u(m),b=g+1e3;"number"==typeof(null==h?void 0:null===(t=h.options)||void 0===t?void 0:t.timeout)&&b>(null!==(a=h.options.timeout)&&void 0!==a?a:0)&&(h.options.timeout=b),this.idempotencyHeader&&"get"!==l&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),d[this.idempotencyHeader]=e.idempotencyKey);let v=this.buildHeaders({options:e,headers:d,contentLength:f});return{req:{method:l,...p&&{body:p},headers:v,...h&&{agent:h},signal:null!==(i=e.signal)&&void 0!==i?i:null},url:m,timeout:g}}buildHeaders(e){let{options:t,headers:n,contentLength:r}=e,a={};return r&&(a["content-length"]=r),e3(a,this.defaultHeaders(t)),e3(a,n),eA(t.body)&&"node"!==o&&delete a["content-type"],this.validateHeaders(a,n),a}async prepareOptions(e){}async prepareRequest(e,t){let{url:n,options:r}=t}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(e=>[...e])):{...e}:{}}makeStatusError(e,t,n,r){return en.generate(e,t,n,r)}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new eF(this.makeRequest(e,t))}async makeRequest(e,t){var n,r,o;let a=await e;null==t&&(t=null!==(r=a.maxRetries)&&void 0!==r?r:this.maxRetries),await this.prepareOptions(a);let{req:i,url:l,timeout:s}=this.buildRequest(a);if(await this.prepareRequest(i,{url:l,options:a}),e6("request",l,a,i.headers),null===(n=a.signal)||void 0===n?void 0:n.aborted)throw new er;let c=new AbortController,u=await this.fetchWithTimeout(l,i,s,c).catch(e0);if(u instanceof Error){if(null===(o=a.signal)||void 0===o?void 0:o.aborted)throw new er;if(t)return this.retryRequest(a,t);if("AbortError"===u.name)throw new ea;throw new eo({cause:u})}let d=ez(u.headers);if(!u.ok){if(t&&this.shouldRetry(u)){let e="retrying, ".concat(t," attempts remaining");return e6("response (error; ".concat(e,")"),u.status,l,d),this.retryRequest(a,t,d)}let e=await u.text().catch(e=>e0(e).message),n=eY(e),r=n?void 0:e,o=t?"(error; no more retries left)":"(error; not retryable)";throw e6("response (error; ".concat(o,")"),u.status,l,d,r),this.makeStatusError(u.status,n,r,d)}return{response:u,options:a,controller:c}}requestAPIList(e,t){return new eZ(this,this.makeRequest(t,null),e)}buildURL(e,t){let n=new URL(eX(e)?e:this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),r=this.defaultQuery();return e2(r)||(t={...r,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(n.search=this.stringifyQuery(t)),n.toString()}stringifyQuery(e){return Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}).map(e=>{let[t,n]=e;if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n));if(null===n)return"".concat(encodeURIComponent(t),"=");throw new et("Cannot stringify type ".concat(typeof n,"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case."))}).join("&")}async fetchWithTimeout(e,t,n,r){let{signal:o,...a}=t||{};o&&o.addEventListener("abort",()=>r.abort());let i=setTimeout(()=>r.abort(),n);return this.getRequestClient().fetch.call(void 0,e,{signal:r.signal,...a}).finally(()=>{clearTimeout(i)})}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||e.status>=500)}async retryRequest(e,t,n){let r;let o=null==n?void 0:n["retry-after-ms"];if(o){let e=parseFloat(o);Number.isNaN(e)||(r=e)}let a=null==n?void 0:n["retry-after"];if(a&&!r){let e=parseFloat(a);r=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(r&&0<=r&&r<6e4)){var i;let n=null!==(i=e.maxRetries)&&void 0!==i?i:this.maxRetries;r=this.calculateDefaultRetryTimeoutMillis(t,n)}return await eQ(r),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}getUserAgent(){return"".concat(this.constructor.name,"/JS ").concat(Q)}constructor({baseURL:e,maxRetries:t=2,timeout:n=6e5,httpAgent:r,fetch:o}){this.baseURL=e,this.maxRetries=eJ("maxRetries",t),this.timeout=eJ("timeout",n),this.httpAgent=r,this.fetch=null!=o?o:a}}class eU{hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){let e=this.nextPageInfo();if(!e)throw new et("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");let t={...this.options};if("params"in e&&"object"==typeof t.query)t.query={...t.query,...e.params};else if("url"in e){for(let[n,r]of[...Object.entries(t.query||{}),...e.url.searchParams.entries()])e.url.searchParams.set(n,r);t.query=void 0,t.path=e.url.toString()}return await eD(this,w,"f").requestAPIList(this.constructor,t)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(w=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}constructor(e,t,n,r){w.set(this,void 0),eL(this,w,e,"f"),this.options=r,this.response=t,this.body=n}}class eZ extends eF{async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}constructor(e,t,n){super(t,async t=>new n(e,t.response,await ej(t),t.options))}}let ez=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){let n=t.toString();return e[n.toLowerCase()]||e[n]}}),eH={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryResponse:!0,__streamClass:!0},eG=e=>"object"==typeof e&&null!==e&&!e2(e)&&Object.keys(e).every(e=>e4(eH,e)),e$=()=>{if("undefined"!=typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(Deno.build.os),"X-Stainless-Arch":eW(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":Deno.version};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"other:".concat(EdgeRuntime),"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":eM.version};if("[object process]"===Object.prototype.toString.call(void 0!==eM?eM:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(eM.platform),"X-Stainless-Arch":eW(eM.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":eM.version};let e=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,o=n[3]||0;return{browser:e,version:"".concat(t,".").concat(r,".").concat(o)}}}return null}();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"browser:".concat(e.browser),"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},eW=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?"other:".concat(e):"unknown",eV=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?"Other:".concat(e):"Unknown",eq=()=>null!=r?r:r=e$(),eY=e=>{try{return JSON.parse(e)}catch(e){return}},eK=RegExp("^(?:[a-z]+:)?//","i"),eX=e=>eK.test(e),eQ=e=>new Promise(t=>setTimeout(t,e)),eJ=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new et("".concat(e," must be an integer"));if(t<0)throw new et("".concat(e," must be a positive integer"));return t},e0=e=>e instanceof Error?e:Error(e),e1=e=>{var t,n,r,o,a,i;return void 0!==eM?null!==(r=null===(n=eM.env)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.trim())&&void 0!==r?r:void 0:"undefined"!=typeof Deno?null===(i=Deno.env)||void 0===i?void 0:null===(a=i.get)||void 0===a?void 0:null===(o=a.call(i,e))||void 0===o?void 0:o.trim():void 0};function e2(e){if(!e)return!0;for(let t in e)return!1;return!0}function e4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e3(e,t){for(let n in t){if(!e4(t,n))continue;let r=n.toLowerCase();if(!r)continue;let o=t[n];null===o?delete e[r]:void 0!==o&&(e[r]=o)}}function e6(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e8=()=>void 0!==window.document&&"undefined"!=typeof navigator;class e9 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){return null}nextPageInfo(){return null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}}class e7 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){let e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;let t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){var e;let t=this.getPaginatedItems();if(!t.length)return null;let n=null===(e=t[t.length-1])||void 0===e?void 0:e.id;return n?{params:{after:n}}:null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[]}}class te{constructor(e){this._client=e}}class tt extends te{create(e,t){var n;return this._client.post("/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tt||(tt={});class tn extends te{create(e,t){var n;return this._client.post("/chat/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tn||(tn={});class tr extends te{constructor(){super(...arguments),this.completions=new tn(this._client)}}(tr||(tr={})).Completions=tn;class to extends te{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}to||(to={});class ta extends te{create(e,t){return this._client.post("/files",eI({body:e,...t}))}retrieve(e,t){return this._client.get("/files/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/files",ti,{query:e,...t})}del(e,t){return this._client.delete("/files/".concat(e),t)}content(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,headers:{Accept:"application/json",...null==t?void 0:t.headers}})}async waitForProcessing(e){let{pollInterval:t=5e3,maxWait:n=18e5}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Set(["processed","error","deleted"]),o=Date.now(),a=await this.retrieve(e);for(;!a.status||!r.has(a.status);)if(await eQ(t),a=await this.retrieve(e),Date.now()-o>n)throw new ea({message:"Giving up on waiting for file ".concat(e," to finish processing after ").concat(n," milliseconds.")});return a}}class ti extends e9{}(ta||(ta={})).FileObjectsPage=ti;class tl extends te{createVariation(e,t){return this._client.post("/images/variations",eI({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",eI({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}tl||(tl={});class ts extends te{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}ts||(ts={});class tc extends te{create(e,t){return this._client.post("/audio/transcriptions",eI({body:e,...t}))}}tc||(tc={});class tu extends te{create(e,t){return this._client.post("/audio/translations",eI({body:e,...t}))}}tu||(tu={});class td extends te{constructor(){super(...arguments),this.transcriptions=new tc(this._client),this.translations=new tu(this._client),this.speech=new ts(this._client)}}(f=td||(td={})).Transcriptions=tc,f.Translations=tu,f.Speech=ts;class tp extends te{create(e,t){return this._client.post("/moderations",{body:e,...t})}}tp||(tp={});class tf extends te{retrieve(e,t){return this._client.get("/models/".concat(e),t)}list(e){return this._client.getAPIList("/models",tm,e)}del(e,t){return this._client.delete("/models/".concat(e),t)}}class tm extends e9{}(tf||(tf={})).ModelsPage=tm;class tg extends te{create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get("/fine_tuning/jobs/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",th,{query:e,...t})}cancel(e,t){return this._client.post("/fine_tuning/jobs/".concat(e,"/cancel"),t)}listEvents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.listEvents(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/events"),tb,{query:t,...n})}}class th extends e7{}class tb extends e7{}(m=tg||(tg={})).FineTuningJobsPage=th,m.FineTuningJobEventsPage=tb;class tv extends te{constructor(){super(...arguments),this.jobs=new tg(this._client)}}(g=tv||(tv={})).Jobs=tg,g.FineTuningJobsPage=th,g.FineTuningJobEventsPage=tb;class ty extends te{create(e,t,n){return this._client.post("/assistants/".concat(e,"/files"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/assistants/".concat(e,"/files"),tE,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}}class tE extends e7{}(ty||(ty={})).AssistantFilesPage=tE;class tS extends te{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/assistants/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/assistants",tw,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}del(e,t){return this._client.delete("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.files=new ty(this._client)}}class tw extends e7{}function tx(e){return"function"==typeof e.parse}(h=tS||(tS={})).AssistantsPage=tw,h.Files=ty,h.AssistantFilesPage=tE;let tO=e=>(null==e?void 0:e.role)==="assistant",tk=e=>(null==e?void 0:e.role)==="function",tC=e=>(null==e?void 0:e.role)==="tool";var tT=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},tA=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class tI{_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},tA(this,U,"f"))},0)}_addChatCompletion(e){var t;this._chatCompletions.push(e),this._emit("chatCompletion",e);let n=null===(t=e.choices[0])||void 0===t?void 0:t.message;return n&&this._addMessage(n),e}_addMessage(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),(tk(e)||tC(e))&&e.content)this._emit("functionCallResult",e.content);else if(tO(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(tO(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionCall",t.function)}}_connected(){this.ended||(tA(this,k,"f").call(this),this._emit("connect"))}get ended(){return tA(this,R,"f")}get errored(){return tA(this,_,"f")}get aborted(){return tA(this,P,"f")}abort(){this.controller.abort()}on(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t}),this}off(e,t){let n=tA(this,N,"f")[e];if(!n)return this;let r=n.findIndex(e=>e.listener===t);return r>=0&&n.splice(r,1),this}once(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,n)=>{tT(this,M,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)})}async done(){tT(this,M,!0,"f"),await tA(this,T,"f")}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new et("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),tA(this,x,"m",L).call(this)}async finalMessage(){return await this.done(),tA(this,x,"m",D).call(this)}async finalFunctionCall(){return await this.done(),tA(this,x,"m",j).call(this)}async finalFunctionCallResult(){return await this.done(),tA(this,x,"m",F).call(this)}async totalUsage(){return await this.done(),tA(this,x,"m",B).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r!e.once),o.forEach(e=>{let{listener:t}=e;return t(...n)})),"abort"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end");return}if("error"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end")}}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=tA(this,x,"m",D).call(this);t&&this._emit("finalMessage",t);let n=tA(this,x,"m",L).call(this);n&&this._emit("finalContent",n);let r=tA(this,x,"m",j).call(this);r&&this._emit("finalFunctionCall",r);let o=tA(this,x,"m",F).call(this);null!=o&&this._emit("finalFunctionCallResult",o),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",tA(this,x,"m",B).call(this))}async _createChatCompletion(e,t,n){let r=null==n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),tA(this,x,"m",Z).call(this,t);let o=await e.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(o)}async _runChatCompletion(e,t,n){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,n)}async _runFunctions(e,t,n){let r="function",{function_call:o="auto",stream:a,...i}=t,l="string"!=typeof o&&(null==o?void 0:o.name),{maxChatCompletions:s=10}=n||{},c={};for(let e of t.functions)c[e.name||e.function.name]=e;let u=t.functions.map(e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description}));for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.name)).join(", "),". Please try again");this._addMessage({role:r,name:s,content:e});continue}try{t=tx(f)?await f.parse(p):p}catch(e){this._addMessage({role:r,name:s,content:e instanceof Error?e.message:String(e)});continue}let m=await f.function(t,this),g=tA(this,x,"m",z).call(this,m);if(this._addMessage({role:r,name:s,content:g}),l)return}}async _runTools(e,t,n){var r,o;let a="tool",{tool_choice:i="auto",stream:l,...s}=t,c="string"!=typeof i&&(null==i?void 0:null===(r=i.function)||void 0===r?void 0:r.name),{maxChatCompletions:u=10}=n||{},d={};for(let e of t.tools)"function"===e.type&&(d[e.function.name||e.function.function.name]=e.function);let p="tools"in t?t.tools.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.function.name)).join(", "),". Please try again");this._addMessage({role:a,tool_call_id:n,content:e});continue}try{t=tx(i)?await i.parse(o):o}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:a,tool_call_id:n,content:e});continue}let l=await i.function(t,this),s=tA(this,x,"m",z).call(this,l);if(this._addMessage({role:a,tool_call_id:n,content:s}),c)return}}}constructor(){x.add(this),this.controller=new AbortController,O.set(this,void 0),k.set(this,()=>{}),C.set(this,()=>{}),T.set(this,void 0),A.set(this,()=>{}),I.set(this,()=>{}),N.set(this,{}),this._chatCompletions=[],this.messages=[],R.set(this,!1),_.set(this,!1),P.set(this,!1),M.set(this,!1),U.set(this,e=>{if(tT(this,_,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new er),e instanceof er)return tT(this,P,!0,"f"),this._emit("abort",e);if(e instanceof et)return this._emit("error",e);if(e instanceof Error){let t=new et(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new et(String(e)))}),tT(this,O,new Promise((e,t)=>{tT(this,k,e,"f"),tT(this,C,t,"f")}),"f"),tT(this,T,new Promise((e,t)=>{tT(this,A,e,"f"),tT(this,I,t,"f")}),"f"),tA(this,O,"f").catch(()=>{}),tA(this,T,"f").catch(()=>{})}}O=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,A=new WeakMap,I=new WeakMap,N=new WeakMap,R=new WeakMap,_=new WeakMap,P=new WeakMap,M=new WeakMap,U=new WeakMap,x=new WeakSet,L=function(){var e;return null!==(e=tA(this,x,"m",D).call(this).content)&&void 0!==e?e:null},D=function(){let e=this.messages.length;for(;e-- >0;){let n=this.messages[e];if(tO(n)){var t;return{...n,content:null!==(t=n.content)&&void 0!==t?t:null}}}throw new et("stream ended without producing a ChatCompletionMessage with role=assistant")},j=function(){for(let n=this.messages.length-1;n>=0;n--){var e,t;let r=this.messages[n];if(tO(r)&&(null==r?void 0:r.function_call))return r.function_call;if(tO(r)&&(null==r?void 0:null===(e=r.tool_calls)||void 0===e?void 0:e.length))return null===(t=r.tool_calls.at(-1))||void 0===t?void 0:t.function}},F=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tk(t)&&null!=t.content||tC(t)&&null!=t.content&&this.messages.some(e=>{var n;return"assistant"===e.role&&(null===(n=e.tool_calls)||void 0===n?void 0:n.some(e=>"function"===e.type&&e.id===t.tool_call_id))}))return t.content}},B=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},Z=function(e){if(null!=e.n&&e.n>1)throw new et("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},z=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class tN extends tI{static runFunctions(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}_addMessage(e){super._addMessage(e),tO(e)&&e.content&&this._emit("content",e.content)}}var tR=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},t_=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class tP extends tI{get currentChatCompletionSnapshot(){return tR(this,G,"f")}static fromReadableStream(e){let t=new tP;return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,n){let r=new tP;return r._run(()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createChatCompletion(e,t,n){var r;let o=null==n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this);let a=await e.create({...t,stream:!0},{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))tR(this,H,"m",W).call(this,e);if(null===(r=a.controller.signal)||void 0===r?void 0:r.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}async _fromReadableStream(e,t){var n;let r;let o=null==t?void 0:t.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this),this._connected();let a=eg.fromReadableStream(e,this.controller);for await(let e of a)r&&r!==e.id&&this._addChatCompletion(tR(this,H,"m",V).call(this)),tR(this,H,"m",W).call(this,e),r=e.id;if(null===(n=a.controller.signal)||void 0===n?void 0:n.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}[(G=new WeakMap,H=new WeakSet,$=function(){this.ended||t_(this,G,void 0,"f")},W=function(e){var t,n,r;if(this.ended)return;let o=tR(this,H,"m",q).call(this,e);this._emit("chunk",e,o);let a=null===(n=e.choices[0])||void 0===n?void 0:null===(t=n.delta)||void 0===t?void 0:t.content,i=null===(r=o.choices[0])||void 0===r?void 0:r.message;null!=a&&(null==i?void 0:i.role)==="assistant"&&(null==i?void 0:i.content)&&this._emit("content",a,i.content)},V=function(){if(this.ended)throw new et("stream has ended, this shouldn't happen");let e=tR(this,G,"f");if(!e)throw new et("request ended without sending any chunks");return t_(this,G,void 0,"f"),function(e){let{id:t,choices:n,created:r,model:o,system_fingerprint:a,...i}=e;return{...i,id:t,choices:n.map(t=>{let{message:n,finish_reason:r,index:o,logprobs:a,...i}=t;if(!r)throw new et("missing finish_reason for choice ".concat(o));let{content:l=null,function_call:s,tool_calls:c,...u}=n,d=n.role;if(!d)throw new et("missing role for choice ".concat(o));if(s){let{arguments:e,name:t}=s;if(null==e)throw new et("missing function_call.arguments for choice ".concat(o));if(!t)throw new et("missing function_call.name for choice ".concat(o));return{...i,message:{content:l,function_call:{arguments:e,name:t},role:d},finish_reason:r,index:o,logprobs:a}}return c?{...i,index:o,finish_reason:r,logprobs:a,message:{...u,role:d,content:l,tool_calls:c.map((t,n)=>{let{function:r,type:a,id:i,...l}=t,{arguments:s,name:c,...u}=r||{};if(null==i)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].id\n").concat(tM(e)));if(null==a)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].type\n").concat(tM(e)));if(null==c)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.name\n").concat(tM(e)));if(null==s)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.arguments\n").concat(tM(e)));return{...l,id:i,type:a,function:{...u,name:c,arguments:s}}})}}:{...i,message:{...u,content:l,role:d},finish_reason:r,index:o,logprobs:a}}),created:r,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}}}(e)},q=function(e){var t,n,r,o,a,i,l;let s=tR(this,G,"f"),{choices:c,...u}=e;for(let{delta:c,finish_reason:d,index:p,logprobs:f=null,...m}of(s?Object.assign(s,u):s=t_(this,G,{...u,choices:[]},"f"),e.choices)){let e=s.choices[p];if(e||(e=s.choices[p]={finish_reason:d,index:p,message:{},logprobs:f,...m}),f){if(e.logprobs){let{content:n,...r}=f;Object.assign(e.logprobs,r),n&&(null!==(o=(t=e.logprobs).content)&&void 0!==o||(t.content=[]),e.logprobs.content.push(...n))}else e.logprobs=Object.assign({},f)}if(d&&(e.finish_reason=d),Object.assign(e,m),!c)continue;let{content:u,function_call:g,role:h,tool_calls:b,...v}=c;if(Object.assign(e.message,v),u&&(e.message.content=(e.message.content||"")+u),h&&(e.message.role=h),g&&(e.message.function_call?(g.name&&(e.message.function_call.name=g.name),g.arguments&&(null!==(a=(n=e.message.function_call).arguments)&&void 0!==a||(n.arguments=""),e.message.function_call.arguments+=g.arguments)):e.message.function_call=g),b)for(let{index:t,id:n,type:o,function:a,...s}of(e.message.tool_calls||(e.message.tool_calls=[]),b)){let c=null!==(i=(r=e.message.tool_calls)[t])&&void 0!==i?i:r[t]={};Object.assign(c,s),n&&(c.id=n),o&&(c.type=o),a&&(null!==(l=c.function)&&void 0!==l||(c.function={arguments:""})),(null==a?void 0:a.name)&&(c.function.name=a.name),(null==a?void 0:a.arguments)&&(c.function.arguments+=a.arguments)}}return s},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("chunk",n=>{let r=t.shift();r?r(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e(void 0);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise(e=>t.push(e)).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0})}}toReadableStream(){return new eg(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}constructor(){super(...arguments),H.add(this),G.set(this,void 0)}}function tM(e){return JSON.stringify(e)}class tL extends tP{static fromReadableStream(e){let t=new tL;return t._run(()=>t._fromReadableStream(e)),t}static runFunctions(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}}class tD extends te{runFunctions(e,t){return e.stream?tL.runFunctions(this._client.chat.completions,e,t):tN.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?tL.runTools(this._client.chat.completions,e,t):tN.runTools(this._client.chat.completions,e,t)}stream(e,t){return tP.createChatCompletion(this._client.chat.completions,e,t)}}class tj extends te{constructor(){super(...arguments),this.completions=new tD(this._client)}}(tj||(tj={})).Completions=tD;class tF extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/messages/").concat(t,"/files/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/messages/").concat(t,"/files"),tB,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tB extends e7{}(tF||(tF={})).MessageFilesPage=tB;class tU extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/messages"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/messages/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/messages"),tZ,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}constructor(){super(...arguments),this.files=new tF(this._client)}}class tZ extends e7{}(b=tU||(tU={})).ThreadMessagesPage=tZ,b.Files=tF,b.MessageFilesPage=tB;class tz extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/runs/").concat(t,"/steps/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/runs/").concat(t,"/steps"),tH,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tH extends e7{}(tz||(tz={})).RunStepsPage=tH;class tG extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/runs"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/runs/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/runs"),t$,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}submitToolOutputs(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/submit_tool_outputs"),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}constructor(){super(...arguments),this.steps=new tz(this._client)}}class t$ extends e7{}(v=tG||(tG={})).RunsPage=t$,v.Steps=tz,v.RunStepsPage=tH;class tW extends te{create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/threads/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t){return this._client.delete("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.runs=new tG(this._client),this.messages=new tU(this._client)}}(y=tW||(tW={})).Runs=tG,y.RunsPage=t$,y.Messages=tU,y.ThreadMessagesPage=tZ;class tV extends te{constructor(){super(...arguments),this.chat=new tj(this._client),this.assistants=new tS(this._client),this.threads=new tW(this._client)}}(E=tV||(tV={})).Chat=tj,E.Assistants=tS,E.AssistantsPage=tw,E.Threads=tW;class tq extends eB{defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:"Bearer ".concat(this.apiKey)}}constructor({baseURL:e=e1("OPENAI_BASE_URL"),apiKey:t=e1("OPENAI_API_KEY"),organization:n=null!==(K=e1("OPENAI_ORG_ID"))&&void 0!==K?K:null,...r}={}){var o;if(void 0===t)throw new et("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");let a={apiKey:t,organization:n,...r,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&e8())throw new et("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:a.baseURL,timeout:null!==(o=a.timeout)&&void 0!==o?o:6e5,httpAgent:a.httpAgent,maxRetries:a.maxRetries,fetch:a.fetch}),this.completions=new tt(this),this.chat=new tr(this),this.embeddings=new to(this),this.files=new ta(this),this.images=new tl(this),this.audio=new td(this),this.moderations=new tp(this),this.models=new tf(this),this.fineTuning=new tv(this),this.beta=new tV(this),this._options=a,this.apiKey=t,this.organization=n}}Y=tq,tq.OpenAI=Y,tq.OpenAIError=et,tq.APIError=en,tq.APIConnectionError=eo,tq.APIConnectionTimeoutError=ea,tq.APIUserAbortError=er,tq.NotFoundError=ec,tq.ConflictError=eu,tq.RateLimitError=ep,tq.BadRequestError=ei,tq.AuthenticationError=el,tq.InternalServerError=ef,tq.PermissionDeniedError=es,tq.UnprocessableEntityError=ed;let{OpenAIError:tY,APIError:tK,APIConnectionError:tX,APIConnectionTimeoutError:tQ,APIUserAbortError:tJ,NotFoundError:t0,ConflictError:t1,RateLimitError:t2,BadRequestError:t4,AuthenticationError:t3,InternalServerError:t6,PermissionDeniedError:t5,UnprocessableEntityError:t8}=X;(S=tq||(tq={})).toFile=eO,S.fileFromPath=d,S.Page=e9,S.CursorPage=e7,S.Completions=tt,S.Chat=tr,S.Embeddings=to,S.Files=ta,S.FileObjectsPage=ti,S.Images=tl,S.Audio=td,S.Moderations=tp,S.Models=tf,S.ModelsPage=tm,S.FineTuning=tv,S.Beta=tV;var t9=tq},69703:function(e,t,n){function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}n.d(t,{_T:function(){return r}}),"function"==typeof SuppressedError&&SuppressedError},72890:function(e){e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},55229:function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file +*/function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},72784:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(6976),o=n(34951);function a(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},86926:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(){o=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(t,n,r,o){var a,l,s=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(s,"_invoke",{value:(a=new I(o||[]),l=m,function(n,o){if(l===g)throw Error("Generator is already running");if(l===h){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var s=function t(n,r){var o=r.method,a=n.iterator[o];if(a===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(a,n.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var l=i.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(i,a);if(s){if(s===b)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===m)throw l=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=g;var c=f(t,r,a);if("normal"===c.type){if(l=a.done?h:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(l=h,a.method="throw",a.arg=c.arg)}})}),s}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",g="executing",h="completed",b={};function v(){}function y(){}function E(){}var S={};d(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==n&&a.call(x,s)&&(S=x);var O=E.prototype=v.prototype=Object.create(S);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){var n;i(this,"_invoke",{value:function(o,i){function l(){return new t(function(n,l){!function n(o,i,l,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,l,s)},function(e){n("throw",e,l,s)}):t.resolve(d).then(function(e){u.value=e,l(u)},function(e){return n("throw",e,l,s)})}s(c.arg)}(o,i,n,l)})}return n=n?n.then(l,l):l()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},80406:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(19065),o=n(76057),a=n(93319);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},56721:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(19065),o=n(58194),a=n(76057),i=n(93319);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},63787:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(95180),o=n(58194),a=n(76057);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},29423:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6976);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},6976:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},76057:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(95180);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},68637:function(e,t,n){let r,o;n.d(t,{V:function(){return eE}});var a,i,l,s,c,u,d=n(64090),p=n.t(d,2),f=n(20044),m=n(10641),g=n(85235);function h(e,t,n,r){let o=(0,g.E)(n);(0,d.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var b=n(42219),v=n(21210);function y(e){let t=(0,m.z)(e),n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,v.Y)(()=>{n.current&&t()})}),[t])}var E=n(94819);function S(){for(var e=arguments.length,t=Array(e),n=0;n(0,E.r)(...t),[...t])}var w=n(92144),x=n(36601),O=n(61372),k=((a=k||{})[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a);function C(e,t){let n=(0,d.useRef)([]),r=(0,m.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}var T=n(37700);let A=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&A[0]!==e.target&&(A.unshift(e.target),(A=A.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var I=n(48803),N=n(72640),R=n(18318);function _(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var P=((i=P||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let M=Object.assign((0,R.yV)(function(e,t){let n,r=(0,d.useRef)(null),o=(0,x.T)(r,t),{initialFocus:a,containers:i,features:l=30,...s}=e;(0,w.H)()||(l=1);let c=S(r);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,d.useRef)(A.slice());return C((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,v.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=A.slice())},[e,A,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);C(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,I.C5)(r())},[t]),y(()=>{t&&(0,I.C5)(r())})}({ownerDocument:c},!!(16&l));let u=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,a=(0,d.useRef)(null),i=(0,b.t)();return C(()=>{if(!t)return;let e=r.current;e&&(0,v.Y)(()=>{if(!i.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=o&&o.current?(0,I.C5)(o.current):(0,I.jA)(e,I.TO.First)===I.fE.Error&&console.warn("There are no focusable elements inside the "),a.current=null==n?void 0:n.activeElement})},[t]),a}({ownerDocument:c,container:r,initialFocus:a},!!(2&l));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:a}=e,i=(0,b.t)();h(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!i.current)return;let n=_(o);r.current instanceof HTMLElement&&n.add(r.current);let l=a.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?L(n,s)?(a.current=s,(0,I.C5)(s)):(e.preventDefault(),e.stopPropagation(),(0,I.C5)(l)):(0,I.C5)(a.current)},!0)}({ownerDocument:c,container:r,containers:i,previousActiveElement:u},!!(8&l));let p=(n=(0,d.useRef)(0),(0,O.s)("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),g=(0,m.z)(e=>{let t=r.current;t&&(0,N.E)(p.current,{[k.Forwards]:()=>{(0,I.jA)(t,I.TO.First,{skipElements:[e.relatedTarget]})},[k.Backwards]:()=>{(0,I.jA)(t,I.TO.Last,{skipElements:[e.relatedTarget]})}})}),E=(0,f.G)(),P=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}),(0,R.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(P.current=!0,E.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){let t=_(i);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(L(t,n)||(P.current?(0,I.jA)(r.current,(0,N.E)(p.current,{[k.Forwards]:()=>I.TO.Next,[k.Backwards]:()=>I.TO.Previous})|I.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,I.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&d.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:T.A.Focusable}))}),{features:P});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var D=n(89542),j=n(39790);let F=(0,d.createContext)(!1);function B(e){return d.createElement(F.Provider,{value:e.force},e.children)}var U=n(41879);let Z=d.Fragment,z=d.Fragment,H=(0,d.createContext)(null),G=(0,d.createContext)(null),$=Object.assign((0,R.yV)(function(e,t){let n=(0,d.useRef)(null),r=(0,x.T)((0,x.h)(e=>{n.current=e}),t),o=S(n),a=function(e){let t=(0,d.useContext)(F),n=(0,d.useContext)(H),r=S(e),[o,a]=(0,d.useState)(()=>{if(!t&&null!==n||U.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,d.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,d.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[i]=(0,d.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,d.useContext)(G),s=(0,w.H)();return(0,j.e)(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),(0,j.e)(()=>{if(i&&l)return l.register(i)},[l,i]),y(()=>{var e;a&&i&&(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),s&&a&&i?(0,D.createPortal)((0,R.sY)({ourProps:{ref:r},theirProps:e,defaultTag:Z,name:"Portal"}),i):null}),{Group:(0,R.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,x.T)(t)};return d.createElement(H.Provider,{value:n},(0,R.sY)({ourProps:o,theirProps:r,defaultTag:z,name:"Popover.Group"}))})}),{useState:W,useEffect:V,useLayoutEffect:q,useDebugValue:Y}=p;void 0!==window.document&&window.document.createElement;let K=p.useSyncExternalStore;var X=n(55205),Q=n(25256);let J=(l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,X.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,a={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},i=[(0,Q.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,X.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),i=t.querySelector(r);i&&!o(i)&&(a=i)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,a=o.clientWidth-o.offsetWidth,i=t-a;r.style(o,"paddingRight","".concat(i,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];i.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),i.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;ae()))}});J.subscribe(()=>{let e=J.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&J.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&J.dispatch("TEARDOWN",n)}});var ee=n(92381);let et=new Map,en=new Map;function er(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,j.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=en.get(r))?n:0;return en.set(r,o+1),0!==o||(et.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=en.get(r))?e:1;if(1===t?en.delete(r):en.set(r,t-1),1!==t)return;let n=et.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,et.delete(r))}},[e,t])}var eo=n(71679),ea=n(88358);let ei=(0,d.createContext)(()=>{});ei.displayName="StackContext";var el=((s=el||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function es(e){let{children:t,onUpdate:n,type:r,element:o,enabled:a}=e,i=(0,d.useContext)(ei),l=(0,m.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r{let e=void 0===a||!0===a;return e&&l(0,r,o),()=>{e&&l(1,r,o)}},[l,r,o,a]),d.createElement(ei.Provider,{value:l},t)}var ec=n(84152);let eu=(0,d.createContext)(null),ed=Object.assign((0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-description-".concat(n),...o}=e,a=function e(){let t=(0,d.useContext)(eu);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=(0,x.T)(t);(0,j.e)(()=>a.register(r),[r,a.register]);let l={ref:i,...a.props,id:r};return(0,R.sY)({ourProps:l,theirProps:o,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var ep=n(67409),ef=((c=ef||{})[c.Open=0]="Open",c[c.Closed=1]="Closed",c),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eh=(0,d.createContext)(null);function eb(e){let t=(0,d.useContext)(eh);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}function ev(e,t){return(0,N.E)(t.type,eg,e,t)}eh.displayName="DialogContext";let ey=R.AN.RenderStrategy|R.AN.Static,eE=Object.assign((0,R.yV)(function(e,t){let n,r,o,a,i,l=(0,ee.M)(),{id:s="headlessui-dialog-".concat(l),open:c,onClose:u,initialFocus:p,role:f="dialog",__demoMode:g=!1,...b}=e,[v,y]=(0,d.useState)(0),E=(0,d.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(E.current||(E.current=!0,console.warn("Invalid role [".concat(f,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let O=(0,ea.oJ)();void 0===c&&null!==O&&(c=(O&ea.ZM.Open)===ea.ZM.Open);let k=(0,d.useRef)(null),C=(0,x.T)(k,t),A=S(k),I=e.hasOwnProperty("open")||null!==O,_=e.hasOwnProperty("onClose");if(!I&&!_)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!I)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof c)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(c));if("function"!=typeof u)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(u));let P=c?0:1,[L,D]=(0,d.useReducer)(ev,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),F=(0,m.z)(()=>u(!1)),U=(0,m.z)(e=>D({type:0,id:e})),Z=!!(0,w.H)()&&!g&&0===P,z=v>1,H=null!==(0,d.useContext)(eh),[W,V]=(n=(0,d.useContext)(G),r=(0,d.useRef)([]),o=(0,m.z)(e=>(r.current.push(e),n&&n.register(e),()=>a(e))),a=(0,m.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),i=(0,d.useMemo)(()=>({register:o,unregister:a,portals:r}),[o,a,r]),[r,(0,d.useMemo)(()=>function(e){let{children:t}=e;return d.createElement(G.Provider,{value:i},t)},[i])]),{resolveContainers:q,mainTreeNodeRef:Y,MainTreeNode:X}=function(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,d.useRef)(null!=(e=null==r?void 0:r.current)?e:null),a=S(o),i=(0,m.z)(()=>{var e,r,i;let l=[];for(let e of t)null!==e&&(e instanceof HTMLElement?l.push(e):"current"in e&&e.current instanceof HTMLElement&&l.push(e.current));if(null!=n&&n.current)for(let e of n.current)l.push(e);for(let t of null!=(e=null==a?void 0:a.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||t.contains(null==(i=null==(r=o.current)?void 0:r.getRootNode())?void 0:i.host)||l.some(e=>t.contains(e))||l.push(t));return l});return{resolveContainers:i,contains:(0,m.z)(e=>i().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,d.useMemo)(()=>function(){return null!=r?null:d.createElement(T._,{features:T.A.Hidden,ref:o})},[o,r])}}({portals:W,defaultContainers:[{get current(){var Q;return null!=(Q=L.panelRef.current)?Q:k.current}}]}),et=null!==O&&(O&ea.ZM.Closing)===ea.ZM.Closing,en=!H&&!et&&Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),en);let ei=!!z||Z;er((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==A?void 0:A.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Y.current)&&e instanceof HTMLElement))?t:null},[Y]),ei);let ec=!(!Z||z);(0,eo.O)(q,F,ec);let ed=!(z||0!==P);h(null==A?void 0:A.defaultView,"keydown",e=>{ed&&(e.defaultPrevented||e.key===ep.R.Escape&&(e.preventDefault(),e.stopPropagation(),F()))}),function(e,t){var n;let r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],a]}},r=K(J.subscribe,J.getSnapshot,J.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,j.e)(()=>{if(!(!e||!t))return J.dispatch("PUSH",e,n),()=>J.dispatch("POP",e,n)},[t,e])}(A,!(et||0!==P||H),q),(0,d.useEffect)(()=>{if(0!==P||!k.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&F()}});return e.observe(k.current),()=>e.disconnect()},[P,k,F]);let[ef,em]=function(){let[e,t]=(0,d.useState)([]);return[e.length>0?e.join(" "):void 0,(0,d.useMemo)(()=>function(e){let n=(0,m.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,d.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return d.createElement(eu.Provider,{value:r},e.children)},[t])]}(),eg=(0,d.useMemo)(()=>[{dialogState:P,close:F,setTitleId:U},L],[P,L,F,U]),eb=(0,d.useMemo)(()=>({open:0===P}),[P]),eE={ref:C,id:s,role:f,"aria-modal":0===P||void 0,"aria-labelledby":L.titleId,"aria-describedby":ef};return d.createElement(es,{type:"Dialog",enabled:0===P,element:k,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,N.E)(e,{[el.Add]:()=>y(e=>e+1),[el.Remove]:()=>y(e=>e-1)})})},d.createElement(B,{force:!0},d.createElement($,null,d.createElement(eh.Provider,{value:eg},d.createElement($.Group,{target:k},d.createElement(B,{force:!1},d.createElement(em,{slot:eb,name:"Dialog.Description"},d.createElement(M,{initialFocus:p,containers:q,features:Z?(0,N.E)(z?"parent":"leaf",{parent:M.features.RestoreFocus,leaf:M.features.All&~M.features.FocusLock}):M.features.None},d.createElement(V,null,(0,R.sY)({ourProps:eE,theirProps:b,slot:eb,defaultTag:"div",features:ey,visible:0===P,name:"Dialog"}))))))))),d.createElement(X,null))}),{Backdrop:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Backdrop"),l=(0,x.T)(t);(0,d.useEffect)(()=>{if(null===i.panelRef.current)throw Error("A component is being used, but a component is missing.")},[i.panelRef]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return d.createElement(B,{force:!0},d.createElement($,null,(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:a},i]=eb("Dialog.Panel"),l=(0,x.T)(t,i.panelRef),s=(0,d.useMemo)(()=>({open:0===a}),[a]),c=(0,m.z)(e=>{e.stopPropagation()});return(0,R.sY)({ourProps:{ref:l,id:r,onClick:c},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:a,close:i}]=eb("Dialog.Overlay"),l=(0,x.T)(t),s=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),i()}}),c=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,R.yV)(function(e,t){let n=(0,ee.M)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:a,setTitleId:i}]=eb("Dialog.Title"),l=(0,x.T)(t);(0,d.useEffect)(()=>(i(r),()=>i(null)),[r,i]);let s=(0,d.useMemo)(()=>({open:0===a}),[a]);return(0,R.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})}),Description:ed})},11754:function(e,t,n){n.d(t,{p:function(){return A}});var r,o,a,i=n(64090),l=n(10641),s=n(92381),c=n(71454),u=n(36601),d=n(88358),p=n(84152),f=n(72640),m=n(94819),g=n(18318);let h=null!=(a=i.startTransition)?a:function(e){e()};var b=n(67409),v=((r=v||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),y=((o=y||{})[o.ToggleDisclosure=0]="ToggleDisclosure",o[o.CloseDisclosure=1]="CloseDisclosure",o[o.SetButtonId=2]="SetButtonId",o[o.SetPanelId=3]="SetPanelId",o[o.LinkPanel=4]="LinkPanel",o[o.UnlinkPanel=5]="UnlinkPanel",o);let E={0:e=>({...e,disclosureState:(0,f.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},S=(0,i.createContext)(null);function w(e){let t=(0,i.useContext)(S);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}S.displayName="DisclosureContext";let x=(0,i.createContext)(null);x.displayName="DisclosureAPIContext";let O=(0,i.createContext)(null);function k(e,t){return(0,f.E)(t.type,E,e,t)}O.displayName="DisclosurePanelContext";let C=i.Fragment,T=g.AN.RenderStrategy|g.AN.Static,A=Object.assign((0,g.yV)(function(e,t){let{defaultOpen:n=!1,...r}=e,o=(0,i.useRef)(null),a=(0,u.T)(t,(0,u.h)(e=>{o.current=e},void 0===e.as||e.as===i.Fragment)),s=(0,i.useRef)(null),c=(0,i.useRef)(null),p=(0,i.useReducer)(k,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:c,panelRef:s,buttonId:null,panelId:null}),[{disclosureState:h,buttonId:b},v]=p,y=(0,l.z)(e=>{v({type:1});let t=(0,m.r)(o);if(!t||!b)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(b):t.getElementById(b);null==n||n.focus()}),E=(0,i.useMemo)(()=>({close:y}),[y]),w=(0,i.useMemo)(()=>({open:0===h,close:y}),[h,y]);return i.createElement(S.Provider,{value:p},i.createElement(x.Provider,{value:E},i.createElement(d.up,{value:(0,f.E)(h,{0:d.ZM.Open,1:d.ZM.Closed})},(0,g.sY)({ourProps:{ref:a},theirProps:r,slot:w,defaultTag:C,name:"Disclosure"}))))}),{Button:(0,g.yV)(function(e,t){let n=(0,s.M)(),{id:r="headlessui-disclosure-button-".concat(n),...o}=e,[a,d]=w("Disclosure.Button"),f=(0,i.useContext)(O),m=null!==f&&f===a.panelId,h=(0,i.useRef)(null),v=(0,u.T)(h,t,m?null:a.buttonRef),y=(0,g.Y2)();(0,i.useEffect)(()=>{if(!m)return d({type:2,buttonId:r}),()=>{d({type:2,buttonId:null})}},[r,d,m]);let E=(0,l.z)(e=>{var t;if(m){if(1===a.disclosureState)return;switch(e.key){case b.R.Space:case b.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case b.R.Space:case b.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0})}}),S=(0,l.z)(e=>{e.key===b.R.Space&&e.preventDefault()}),x=(0,l.z)(t=>{var n;(0,p.P)(t.currentTarget)||e.disabled||(m?(d({type:0}),null==(n=a.buttonRef.current)||n.focus()):d({type:0}))}),k=(0,i.useMemo)(()=>({open:0===a.disclosureState}),[a]),C=(0,c.f)(e,h),T=m?{ref:v,type:C,onKeyDown:E,onClick:x}:{ref:v,id:r,type:C,"aria-expanded":0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:E,onKeyUp:S,onClick:x};return(0,g.sY)({mergeRefs:y,ourProps:T,theirProps:o,slot:k,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,g.yV)(function(e,t){let n=(0,s.M)(),{id:r="headlessui-disclosure-panel-".concat(n),...o}=e,[a,l]=w("Disclosure.Panel"),{close:c}=function e(t){let n=(0,i.useContext)(x);if(null===n){let n=Error("<".concat(t," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),p=(0,g.Y2)(),f=(0,u.T)(t,a.panelRef,e=>{h(()=>l({type:e?4:5}))});(0,i.useEffect)(()=>(l({type:3,panelId:r}),()=>{l({type:3,panelId:null})}),[r,l]);let m=(0,d.oJ)(),b=null!==m?(m&d.ZM.Open)===d.ZM.Open:0===a.disclosureState,v=(0,i.useMemo)(()=>({open:0===a.disclosureState,close:c}),[a,c]);return i.createElement(O.Provider,{value:a.panelId},(0,g.sY)({mergeRefs:p,ourProps:{ref:f,id:r},theirProps:o,slot:v,defaultTag:"div",features:T,visible:b,name:"Disclosure.Panel"}))})})},67409:function(e,t,n){n.d(t,{R:function(){return o}});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},63416:function(e,t,n){n.d(t,{R:function(){return $}});var r,o,a,i,l,s=n(64090),c=n(39790),u=n(85235);function d(e,t){let[n,r]=(0,s.useState)(e),o=(0,u.E)(e);return(0,c.e)(()=>r(o.current),[o,r,...t]),n}var p=n(10641),f=n(20044),m=n(92381),g=n(71679),h=n(71454),b=n(36601);let v=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function y(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(n=o.innerText)?n:"":r;return v.test(i)&&(i=i.replace(v,"")),i}function E(e){return[e.screenX,e.screenY]}var S=n(37700),w=n(88358),x=n(84152),O=((r=O||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r),k=n(55205),C=n(48803);function T(e,t){return e?e+"["+t+"]":t}var A=n(72640),I=n(94819),N=n(18318),R=n(67409),_=((o=_||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),P=((a=P||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),M=((i=M||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),L=((l=L||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOption=5]="RegisterOption",l[l.UnregisterOption=6]="UnregisterOption",l[l.RegisterLabel=7]="RegisterLabel",l);function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,C.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let j={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=D(e),o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;rr.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),a=o?e.options.indexOf(o):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=D(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=D(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},F=(0,s.createContext)(null);function B(e){let t=(0,s.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}F.displayName="ListboxActionsContext";let U=(0,s.createContext)(null);function Z(e){let t=(0,s.useContext)(U);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Z),t}return t}function z(e,t){return(0,A.E)(t.type,j,e,t)}U.displayName="ListboxDataContext";let H=s.Fragment,G=N.AN.RenderStrategy|N.AN.Static,$=Object.assign((0,N.yV)(function(e,t){let{value:n,defaultValue:r,form:o,name:a,onChange:i,by:l=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:m=!1,...h}=e,v=d?"horizontal":"vertical",y=(0,b.T)(t),[E=m?[]:void 0,x]=function(e,t,n){let[r,o]=(0,s.useState)(n),a=void 0!==e,i=(0,s.useRef)(a),l=(0,s.useRef)(!1),c=(0,s.useRef)(!1);return!a||i.current||l.current?a||!i.current||c.current||(c.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,(0,p.z)(e=>(a||o(e),null==t?void 0:t(e)))]}(n,i,r),[k,I]=(0,s.useReducer)(z,{dataRef:(0,s.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),R=(0,s.useRef)({static:!1,hold:!1}),_=(0,s.useRef)(null),P=(0,s.useRef)(null),M=(0,s.useRef)(null),L=(0,p.z)("string"==typeof l?(e,t)=>(null==e?void 0:e[l])===(null==t?void 0:t[l]):l),D=(0,s.useCallback)(e=>(0,A.E)(j.mode,{1:()=>E.some(t=>L(t,e)),0:()=>L(E,e)}),[E]),j=(0,s.useMemo)(()=>({...k,value:E,disabled:u,mode:m?1:0,orientation:v,compare:L,isSelected:D,optionsPropsRef:R,labelRef:_,buttonRef:P,optionsRef:M}),[E,u,m,k]);(0,c.e)(()=>{k.dataRef.current=j},[j]),(0,g.O)([j.buttonRef,j.optionsRef],(e,t)=>{var n;I({type:1}),(0,C.sP)(t,C.tJ.Loose)||(e.preventDefault(),null==(n=j.buttonRef.current)||n.focus())},0===j.listboxState);let B=(0,s.useMemo)(()=>({open:0===j.listboxState,disabled:u,value:E}),[j,u,E]),Z=(0,p.z)(e=>{let t=j.options.find(t=>t.id===e);t&&K(t.dataRef.current.value)}),G=(0,p.z)(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];K(e.current.value),I({type:2,focus:O.Specific,id:t})}}),$=(0,p.z)(()=>I({type:0})),W=(0,p.z)(()=>I({type:1})),V=(0,p.z)((e,t,n)=>e===O.Specific?I({type:2,focus:O.Specific,id:t,trigger:n}):I({type:2,focus:e,trigger:n})),q=(0,p.z)((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e}))),Y=(0,p.z)(e=>(I({type:7,id:e}),()=>I({type:7,id:null}))),K=(0,p.z)(e=>(0,A.E)(j.mode,{0:()=>null==x?void 0:x(e),1(){let t=j.value.slice(),n=t.findIndex(t=>L(t,e));return -1===n?t.push(e):t.splice(n,1),null==x?void 0:x(t)}})),X=(0,p.z)(e=>I({type:3,value:e})),Q=(0,p.z)(()=>I({type:4})),J=(0,s.useMemo)(()=>({onChange:K,registerOption:q,registerLabel:Y,goToOption:V,closeListbox:W,openListbox:$,selectActiveOption:G,selectOption:Z,search:X,clearSearch:Q}),[]),ee=(0,s.useRef)(null),et=(0,f.G)();return(0,s.useEffect)(()=>{ee.current&&void 0!==r&&et.addEventListener(ee.current,"reset",()=>{null==x||x(r)})},[ee,x]),s.createElement(F.Provider,{value:J},s.createElement(U.Provider,{value:j},s.createElement(w.up,{value:(0,A.E)(j.listboxState,{0:w.ZM.Open,1:w.ZM.Closed})},null!=a&&null!=E&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,a]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,a]of o.entries())t(n,T(r,e.toString()),a);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):e(o,r,n)}(r,T(n,o),a);return r})({[a]:E}).map((e,t)=>{let[n,r]=e;return s.createElement(S._,{features:S.A.Hidden,ref:0===t?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,N.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:n,value:r})})}),(0,N.sY)({ourProps:{ref:y},theirProps:h,slot:B,defaultTag:H,name:"Listbox"}))))}),{Button:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-button-".concat(r),...a}=e,i=Z("Listbox.Button"),l=B("Listbox.Button"),c=(0,b.T)(i.buttonRef,t),u=(0,f.G)(),g=(0,p.z)(e=>{switch(e.key){case R.R.Space:case R.R.Enter:case R.R.ArrowDown:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.First)});break;case R.R.ArrowUp:e.preventDefault(),l.openListbox(),u.nextFrame(()=>{i.value||l.goToOption(O.Last)})}}),v=(0,p.z)(e=>{e.key===R.R.Space&&e.preventDefault()}),y=(0,p.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===i.listboxState?(l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),l.openListbox())}),E=d(()=>{if(i.labelId)return[i.labelId,o].join(" ")},[i.labelId,o]),S=(0,s.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled,value:i.value}),[i]),w={ref:c,id:o,type:(0,h.f)(e,i.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=i.optionsRef.current)?void 0:n.id,"aria-expanded":0===i.listboxState,"aria-labelledby":E,disabled:i.disabled,onKeyDown:g,onKeyUp:v,onClick:y};return(0,N.sY)({ourProps:w,theirProps:a,slot:S,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,N.yV)(function(e,t){let n=(0,m.M)(),{id:r="headlessui-listbox-label-".concat(n),...o}=e,a=Z("Listbox.Label"),i=B("Listbox.Label"),l=(0,b.T)(a.labelRef,t);(0,c.e)(()=>i.registerLabel(r),[r]);let u=(0,p.z)(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,s.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled}),[a]);return(0,N.sY)({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:d,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,N.yV)(function(e,t){var n;let r=(0,m.M)(),{id:o="headlessui-listbox-options-".concat(r),...a}=e,i=Z("Listbox.Options"),l=B("Listbox.Options"),c=(0,b.T)(i.optionsRef,t),u=(0,f.G)(),g=(0,f.G)(),h=(0,w.oJ)(),v=null!==h?(h&w.ZM.Open)===w.ZM.Open:0===i.listboxState;(0,s.useEffect)(()=>{var e;let t=i.optionsRef.current;t&&0===i.listboxState&&t!==(null==(e=(0,I.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[i.listboxState,i.optionsRef]);let y=(0,p.z)(e=>{switch(g.dispose(),e.key){case R.R.Space:if(""!==i.searchQuery)return e.preventDefault(),e.stopPropagation(),l.search(e.key);case R.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==i.activeOptionIndex){let{dataRef:e}=i.options[i.activeOptionIndex];l.onChange(e.current.value)}0===i.mode&&(l.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case(0,A.E)(i.orientation,{vertical:R.R.ArrowDown,horizontal:R.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Next);case(0,A.E)(i.orientation,{vertical:R.R.ArrowUp,horizontal:R.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Previous);case R.R.Home:case R.R.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.First);case R.R.End:case R.R.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(O.Last);case R.R.Escape:return e.preventDefault(),e.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case R.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(l.search(e.key),g.setTimeout(()=>l.clearSearch(),350))}}),E=d(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.id},[i.buttonRef.current]),S=(0,s.useMemo)(()=>({open:0===i.listboxState}),[i]),x={"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===i.mode||void 0,"aria-labelledby":E,"aria-orientation":i.orientation,id:o,onKeyDown:y,role:"listbox",tabIndex:0,ref:c};return(0,N.sY)({ourProps:x,theirProps:a,slot:S,defaultTag:"ul",features:G,visible:v,name:"Listbox.Options"})}),Option:(0,N.yV)(function(e,t){let n,r,o;let a=(0,m.M)(),{id:i="headlessui-listbox-option-".concat(a),disabled:l=!1,value:d,...f}=e,g=Z("Listbox.Option"),h=B("Listbox.Option"),v=null!==g.activeOptionIndex&&g.options[g.activeOptionIndex].id===i,S=g.isSelected(d),w=(0,s.useRef)(null),x=(n=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,p.z)(()=>{let e=w.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():y(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return y(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),C=(0,u.E)({disabled:l,value:d,domRef:w,get textValue(){return x()}}),T=(0,b.T)(t,w);(0,c.e)(()=>{if(0!==g.listboxState||!v||0===g.activationTrigger)return;let e=(0,k.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=w.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[w,v,g.listboxState,g.activationTrigger,g.activeOptionIndex]),(0,c.e)(()=>h.registerOption(i,C),[C,i]);let A=(0,p.z)(e=>{if(l)return e.preventDefault();h.onChange(d),0===g.mode&&(h.closeListbox(),(0,k.k)().nextFrame(()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),I=(0,p.z)(()=>{if(l)return h.goToOption(O.Nothing);h.goToOption(O.Specific,i)}),R=(o=(0,s.useRef)([-1,-1]),{wasMoved(e){let t=E(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=E(e)}}),_=(0,p.z)(e=>R.update(e)),P=(0,p.z)(e=>{R.wasMoved(e)&&(l||v||h.goToOption(O.Specific,i,0))}),M=(0,p.z)(e=>{R.wasMoved(e)&&(l||v&&h.goToOption(O.Nothing))}),L=(0,s.useMemo)(()=>({active:v,selected:S,disabled:l}),[v,S,l]);return(0,N.sY)({ourProps:{id:i,ref:T,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":S,disabled:void 0,onClick:A,onFocus:I,onPointerEnter:_,onMouseEnter:_,onPointerMove:P,onMouseMove:P,onPointerLeave:M,onMouseLeave:M},theirProps:f,slot:L,defaultTag:"li",name:"Listbox.Option"})})})},80991:function(e,t,n){n.d(t,{O:function(){return D}});var r,o,a,i=n(64090),l=n(67409),s=n(10641),c=n(92381),u=n(39790),d=n(85235),p=n(71454),f=n(36601),m=n(42219),g=n(37700);function h(e){let{onFocus:t}=e,[n,r]=(0,i.useState)(!0),o=(0,m.t)();return n?i.createElement(g._,{as:"button",type:"button",features:g.A.Focusable,onFocus:e=>{e.preventDefault();let n,a=50;n=requestAnimationFrame(function e(){if(a--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!o.current)return;r(!1);return}n=requestAnimationFrame(e)})}}):null}var b=n(48803),v=n(72640),y=n(21210),E=n(94819),S=n(18318);let w=i.createContext(null);function x(e){let{children:t}=e,n=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(w.Provider,{value:n},t)}function O(e){let t=i.useContext(w);if(!t)throw Error("You must wrap your component in a ");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],a=r;for(;a;)o.push(a.index),a=a.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return i.useEffect(()=>o,[]),r}var k=((r=k||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),C=((o=C||{})[o.Less=-1]="Less",o[o.Equal=0]="Equal",o[o.Greater=1]="Greater",o),T=((a=T||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let A={0(e,t){var n;let r=(0,b.z2)(e.tabs,e=>e.current),o=(0,b.z2)(e.panels,e=>e.current),a=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),i={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=(0,v.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,v.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return i;let o=(0,v.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])});return{...i,selectedIndex:-1===o?e.selectedIndex:o}}let l=r.slice(0,t.index),s=[...r.slice(t.index),...l].find(e=>a.includes(e));if(!s)return i;let c=null!=(n=r.indexOf(s))?n:e.selectedIndex;return -1===c&&(c=e.selectedIndex),{...i,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=(0,b.z2)([...e.tabs,t.tab],e=>e.current),a=null!=(n=o.indexOf(r))?n:e.selectedIndex;return -1===a&&(a=e.selectedIndex),{...e,tabs:o,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,b.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},I=(0,i.createContext)(null);function N(e){let t=(0,i.useContext)(I);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}I.displayName="TabsDataContext";let R=(0,i.createContext)(null);function _(e){let t=(0,i.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,_),t}return t}function P(e,t){return(0,v.E)(t.type,A,e,t)}R.displayName="TabsActionsContext";let M=i.Fragment,L=S.AN.RenderStrategy|S.AN.Static,D=Object.assign((0,S.yV)(function(e,t){var n,r;let o=(0,c.M)(),{id:a="headlessui-tabs-tab-".concat(o),...d}=e,{orientation:m,activation:g,selectedIndex:h,tabs:w,panels:x}=N("Tab"),k=_("Tab"),C=N("Tab"),T=(0,i.useRef)(null),A=(0,f.T)(T,t);(0,u.e)(()=>k.registerTab(T),[k,T]);let I=O("tabs"),R=w.indexOf(T);-1===R&&(R=I);let P=R===h,M=(0,s.z)(e=>{var t;let n=e();if(n===b.fE.Success&&"auto"===g){let e=null==(t=(0,E.r)(T))?void 0:t.activeElement,n=C.tabs.findIndex(t=>t.current===e);-1!==n&&k.change(n)}return n}),L=(0,s.z)(e=>{let t=w.map(e=>e.current).filter(Boolean);if(e.key===l.R.Space||e.key===l.R.Enter){e.preventDefault(),e.stopPropagation(),k.change(R);return}switch(e.key){case l.R.Home:case l.R.PageUp:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.First));case l.R.End:case l.R.PageDown:return e.preventDefault(),e.stopPropagation(),M(()=>(0,b.jA)(t,b.TO.Last))}if(M(()=>(0,v.E)(m,{vertical:()=>e.key===l.R.ArrowUp?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowDown?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error,horizontal:()=>e.key===l.R.ArrowLeft?(0,b.jA)(t,b.TO.Previous|b.TO.WrapAround):e.key===l.R.ArrowRight?(0,b.jA)(t,b.TO.Next|b.TO.WrapAround):b.fE.Error}))===b.fE.Success)return e.preventDefault()}),D=(0,i.useRef)(!1),j=(0,s.z)(()=>{var e;D.current||(D.current=!0,null==(e=T.current)||e.focus({preventScroll:!0}),k.change(R),(0,y.Y)(()=>{D.current=!1}))}),F=(0,s.z)(e=>{e.preventDefault()}),B=(0,i.useMemo)(()=>({selected:P}),[P]),U={ref:A,onKeyDown:L,onMouseDown:F,onClick:j,id:a,role:"tab",type:(0,p.f)(e,T),"aria-controls":null==(r=null==(n=x[R])?void 0:n.current)?void 0:r.id,"aria-selected":P,tabIndex:P?0:-1};return(0,S.sY)({ourProps:U,theirProps:d,slot:B,defaultTag:"button",name:"Tabs.Tab"})}),{Group:(0,S.yV)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:a,selectedIndex:l=null,...c}=e,p=r?"vertical":"horizontal",m=o?"manual":"auto",g=null!==l,v=(0,f.T)(t),[y,E]=(0,i.useReducer)(P,{selectedIndex:null!=l?l:n,tabs:[],panels:[]}),w=(0,i.useMemo)(()=>({selectedIndex:y.selectedIndex}),[y.selectedIndex]),O=(0,d.E)(a||(()=>{})),k=(0,d.E)(y.tabs),C=(0,i.useMemo)(()=>({orientation:p,activation:m,...y}),[p,m,y]),T=(0,s.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),A=(0,s.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),N=(0,s.z)(e=>{_.current!==e&&O.current(e),g||E({type:0,index:e})}),_=(0,d.E)(g?e.selectedIndex:y.selectedIndex),L=(0,i.useMemo)(()=>({registerTab:T,registerPanel:A,change:N}),[]);return(0,u.e)(()=>{E({type:0,index:null!=l?l:n})},[l]),(0,u.e)(()=>{if(void 0===_.current||y.tabs.length<=0)return;let e=(0,b.z2)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&N(e.indexOf(y.tabs[_.current]))}),i.createElement(x,null,i.createElement(R.Provider,{value:L},i.createElement(I.Provider,{value:C},C.tabs.length<=0&&i.createElement(h,{onFocus:()=>{var e,t;for(let n of k.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),(0,S.sY)({ourProps:{ref:v},theirProps:c,slot:w,defaultTag:M,name:"Tabs"}))))}),List:(0,S.yV)(function(e,t){let{orientation:n,selectedIndex:r}=N("Tab.List"),o=(0,f.T)(t);return(0,S.sY)({ourProps:{ref:o,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})}),Panels:(0,S.yV)(function(e,t){let{selectedIndex:n}=N("Tab.Panels"),r=(0,f.T)(t),o=(0,i.useMemo)(()=>({selectedIndex:n}),[n]);return(0,S.sY)({ourProps:{ref:r},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.Panels"})}),Panel:(0,S.yV)(function(e,t){var n,r,o,a;let l=(0,c.M)(),{id:s="headlessui-tabs-panel-".concat(l),tabIndex:d=0,...p}=e,{selectedIndex:m,tabs:h,panels:b}=N("Tab.Panel"),v=_("Tab.Panel"),y=(0,i.useRef)(null),E=(0,f.T)(y,t);(0,u.e)(()=>v.registerPanel(y),[v,y]);let w=O("panels"),x=b.indexOf(y);-1===x&&(x=w);let k=x===m,C=(0,i.useMemo)(()=>({selected:k}),[k]),T={ref:E,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=h[x])?void 0:n.current)?void 0:r.id,tabIndex:k?d:-1};return k||null!=(o=p.unmount)&&!o||null!=(a=p.static)&&a?(0,S.sY)({ourProps:T,theirProps:p,slot:C,defaultTag:"div",features:L,visible:k,name:"Tabs.Panel"}):i.createElement(g._,{as:"span","aria-hidden":"true",...T})})})},70129:function(e,t,n){n.d(t,{u:function(){return _}});var r,o=n(64090),a=n(20044),i=n(10641),l=n(42219),s=n(39790),c=n(85235),u=n(92144),d=n(36601),p=n(55205),f=n(72640);function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.add(...n)}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&e.classList.remove(...n)}var h=n(88358),b=n(82466),v=n(18318);function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let E=(0,o.createContext)(null);E.displayName="TransitionContext";var S=((r=S||{}).Visible="visible",r.Hidden="hidden",r);let w=(0,o.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function O(e,t){let n=(0,c.E)(e),r=(0,o.useRef)([]),s=(0,l.t)(),u=(0,a.G)(),d=(0,i.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,f.E)(t,{[v.l4.Unmount](){r.current.splice(o,1)},[v.l4.Hidden](){r.current[o].state="hidden"}}),u.microTask(()=>{var e;!x(r)&&s.current&&(null==(e=n.current)||e.call(n))}))}),p=(0,i.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,v.l4.Unmount)}),m=(0,o.useRef)([]),g=(0,o.useRef)(Promise.resolve()),h=(0,o.useRef)({enter:[],leave:[],idle:[]}),b=(0,i.z)((e,n,r)=>{m.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{m.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(h.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?g.current=g.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),y=(0,i.z)((e,t,n)=>{Promise.all(h.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=m.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:p,unregister:d,onStart:b,onStop:y,wait:g,chains:h}),[p,d,r,b,y,h,g])}function k(){}w.displayName="NestingContext";let C=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let n={};for(let r of C)n[r]=null!=(t=e[r])?t:k;return n}let A=v.AN.RenderStrategy,I=(0,v.yV)(function(e,t){let{show:n,appear:r=!1,unmount:a=!0,...l}=e,c=(0,o.useRef)(null),p=(0,d.T)(c,t);(0,u.H)();let f=(0,h.oJ)();if(void 0===n&&null!==f&&(n=(f&h.ZM.Open)===h.ZM.Open),![!0,!1].includes(n))throw Error("A is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,o.useState)(n?"visible":"hidden"),b=O(()=>{g("hidden")}),[y,S]=(0,o.useState)(!0),k=(0,o.useRef)([n]);(0,s.e)(()=>{!1!==y&&k.current[k.current.length-1]!==n&&(k.current.push(n),S(!1))},[k,n]);let C=(0,o.useMemo)(()=>({show:n,appear:r,initial:y}),[n,r,y]);(0,o.useEffect)(()=>{if(n)g("visible");else if(x(b)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&g("hidden")}else g("hidden")},[n,b]);let T={unmount:a},I=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeEnter)||t.call(e)}),R=(0,i.z)(()=>{var t;y&&S(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(w.Provider,{value:b},o.createElement(E.Provider,{value:C},(0,v.sY)({ourProps:{...T,as:o.Fragment,children:o.createElement(N,{ref:p,...T,...l,beforeEnter:I,beforeLeave:R})},theirProps:{},defaultTag:o.Fragment,features:A,visible:"visible"===m,name:"Transition"})))}),N=(0,v.yV)(function(e,t){var n,r,S;let k;let{beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R,enter:_,enterFrom:P,enterTo:M,entered:L,leave:D,leaveFrom:j,leaveTo:F,...B}=e,U=(0,o.useRef)(null),Z=(0,d.T)(U,t),z=null==(n=B.unmount)||n?v.l4.Unmount:v.l4.Hidden,{show:H,appear:G,initial:$}=function(){let e=(0,o.useContext)(E);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[W,V]=(0,o.useState)(H?"visible":"hidden"),q=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:Y,unregister:K}=q;(0,o.useEffect)(()=>Y(U),[Y,U]),(0,o.useEffect)(()=>{if(z===v.l4.Hidden&&U.current){if(H&&"visible"!==W){V("visible");return}return(0,f.E)(W,{hidden:()=>K(U),visible:()=>Y(U)})}},[W,U,Y,K,H,z]);let X=(0,c.E)({base:y(B.className),enter:y(_),enterFrom:y(P),enterTo:y(M),entered:y(L),leave:y(D),leaveFrom:y(j),leaveTo:y(F)}),Q=(S={beforeEnter:C,afterEnter:I,beforeLeave:N,afterLeave:R},k=(0,o.useRef)(T(S)),(0,o.useEffect)(()=>{k.current=T(S)},[S]),k),J=(0,u.H)();(0,o.useEffect)(()=>{if(J&&"visible"===W&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,W,J]);let ee=G&&H&&$,et=J&&(!$||G)?H?"enter":"leave":"idle",en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,o.useState)(e),r=(0,l.t)(),a=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),i=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.addFlag(h.ZM.Opening),Q.current.beforeEnter()},leave:()=>{en.addFlag(h.ZM.Closing),Q.current.beforeLeave()},idle:()=>{}})),eo=(0,i.z)(e=>(0,f.E)(e,{enter:()=>{en.removeFlag(h.ZM.Opening),Q.current.afterEnter()},leave:()=>{en.removeFlag(h.ZM.Closing),Q.current.afterLeave()},idle:()=>{}})),ea=O(()=>{V("hidden"),K(U)},q),ei=(0,o.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:i,onStop:u}=e,d=(0,l.t)(),h=(0,a.G)(),b=(0,c.E)(r);(0,s.e)(()=>{t&&(b.current="enter")},[t]),(0,s.e)(()=>{let e=(0,p.k)();h.add(e.dispose);let t=n.current;if(t&&"idle"!==b.current&&d.current){var r,a,l;let n,s,c,d,h,v,y;return e.dispose(),i.current(b.current),e.add((r=o.current,a="enter"===b.current,l=()=>{e.dispose(),u.current(b.current)},s=a?"enter":"leave",c=(0,p.k)(),d=void 0!==l?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r{},"enter"===s&&(t.removeAttribute("hidden"),t.style.display=""),h=(0,f.E)(s,{enter:()=>r.enter,leave:()=>r.leave}),v=(0,f.E)(s,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),y=(0,f.E)(s,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),g(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),m(t,...r.base,...h,...y),c.nextFrame(()=>{g(t,...r.base,...h,...y),m(t,...r.base,...h,...v),function(e,t){let n=(0,p.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),l=a+i;if(0!==l){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},l),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(g(t,...r.base,...h),m(t,...r.base,...r.entered),d()))}),c.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.E)(e=>{ei.current=!0,ea.onStart(U,e,er)}),onStop:(0,c.E)(e=>{ei.current=!1,ea.onStop(U,e,eo),"leave"!==e||x(ea)||(V("hidden"),K(U))})});let el=B;return ee?el={...el,className:(0,b.A)(B.className,...X.current.enter,...X.current.enterFrom)}:ei.current&&(el.className=(0,b.A)(B.className,null==(r=U.current)?void 0:r.className),""===el.className&&delete el.className),o.createElement(w.Provider,{value:ea},o.createElement(h.up,{value:(0,f.E)(W,{visible:h.ZM.Open,hidden:h.ZM.Closed})|en.flags},(0,v.sY)({ourProps:{ref:Z},theirProps:el,defaultTag:"div",features:A,visible:"visible"===W,name:"Transition.Child"})))}),R=(0,v.yV)(function(e,t){let n=null!==(0,o.useContext)(E),r=null!==(0,h.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(I,{ref:t,...e}):o.createElement(N,{ref:t,...e}))}),_=Object.assign(I,{Child:R,Root:I})},20044:function(e,t,n){n.d(t,{G:function(){return a}});var r=n(64090),o=n(55205);function a(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},10641:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64090),o=n(85235);let a=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;ra.O.nextId():null);return(0,i.e)(()=>{null===t&&n(a.O.nextId())},[t]),null!=t?""+t:void 0}},42219:function(e,t,n){n.d(t,{t:function(){return a}});var r=n(64090),o=n(39790);function a(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},39790:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(64090),o=n(41879);let a=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},85235:function(e,t,n){n.d(t,{E:function(){return a}});var r=n(64090),o=n(39790);function a(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},71679:function(e,t,n){n.d(t,{O:function(){return c}});var r=n(64090),o=n(48803),a=n(25256),i=n(85235);function l(e,t,n){let o=(0,i.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var s=n(61372);function c(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,r.useRef)(!1);function c(n,r){if(!i.current||n.defaultPrevented)return;let a=r(n);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(a,o.tJ.Loose)||-1===a.tabIndex||n.preventDefault(),t(n,a)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{i.current=n})},[n]);let u=(0,r.useRef)(null);l("pointerdown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("mousedown",e=>{var t,n;i.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),l("click",e=>{(0,a.tq)()||u.current&&(c(e,()=>u.current),u.current=null)},!0),l("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,s.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},71454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(64090),o=n(39790);function a(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function i(e,t){let[n,i]=(0,r.useState)(()=>a(e));return(0,o.e)(()=>{i(a(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}},92144:function(e,t,n){n.d(t,{H:function(){return i}});var r,o=n(64090),a=n(41879);function i(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,l]=o.useState(a.O.isHandoffComplete);return i&&!1===a.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==i&&l(!0)},[i]),o.useEffect(()=>a.O.handoff(),[]),!t&&i}},36601:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(64090),o=n(10641);let a=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:l}},61372:function(e,t,n){n.d(t,{s:function(){return a}});var r=n(64090),o=n(85235);function a(e,t,n){let a=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){a.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},37700:function(e,t,n){n.d(t,{A:function(){return a},_:function(){return i}});var r,o=n(18318),a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let i=(0,o.yV)(function(e,t){var n;let{features:r=1,...a}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=a["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:i,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},88358:function(e,t,n){n.d(t,{ZM:function(){return i},oJ:function(){return l},up:function(){return s}});var r,o=n(64090);let a=(0,o.createContext)(null);a.displayName="OpenClosedContext";var i=((r=i||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(a)}function s(e){let{value:t,children:n}=e;return o.createElement(a.Provider,{value:t},n)}},84152:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},82466:function(e,t,n){n.d(t,{A:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},55205:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{a.current&&t[0]()}),n.add(()=>{a.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(21210)},41879:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let l=new i},48803:function(e,t,n){n.d(t,{C5:function(){return b},TO:function(){return d},fE:function(){return p},jA:function(){return y},sP:function(){return g},tJ:function(){return m},z2:function(){return v}});var r,o,a,i,l,s=n(72640),c=n(94819);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),f=((a=f||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),m=((i=m||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,s.E)(n,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var h=((l=h||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function b(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t){var n,r,o;let{sorted:a=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?a?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.includes(e))),i=null!=i?i:s.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,h;do{if(m>=g||m+g<=0)return 0;let e=p+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(h=c[e])||h.focus(f),m+=d}while(h!==s.activeElement);return 6&t&&null!=(o=null==(r=null==(n=h)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&h.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},72640:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}},21210:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},94819:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(41879);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},25256:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},18318:function(e,t,n){n.d(t,{AN:function(){return s},Y2:function(){return p},l4:function(){return c},oA:function(){return h},sY:function(){return u},yV:function(){return g}});var r,o,a=n(64090),i=n(82466),l=n(72640),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:a,visible:i=!0,name:s,mergeRefs:c}=e;c=null!=c?c:f;let u=m(n,t);if(i)return d(u,r,o,s,c);let p=null!=a?a:0;if(2&p){let{static:e=!1,...t}=u;if(e)return d(t,r,o,s,c)}if(1&p){let{unmount:e=!0,...t}=u;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,c)})}return d(u,r,o,s,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:s,refName:c="ref",...u}=b(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},p="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(l===a.Fragment&&Object.keys(h(u)).length>0){if(!(0,a.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"));let e=p.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;r{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return function(){for(var n=arguments.length,r=Array(n),o=0;onull==e))return e.current=r,t}}function f(){for(var e=arguments.length,t=Array(e),n=0;nnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function m(){for(var e=arguments.length,t=Array(e),n=0;n[e,void 0])));for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},9454:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});t.Z=o},98941:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}))});t.Z=o},33393:function(e,t,n){var r=n(64090);let o=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});t.Z=o},37963:function(e,t,n){n.d(t,{o:function(){return o}});class r extends Error{}function o(e,t){let n;if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});let o=!0===t.header?0:1,a=e.split(".")[o];if("string"!=typeof a)throw new r("Invalid token specified: missing part #".concat(o+1));try{n=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(a)}catch(e){throw new r("Invalid token specified: invalid base64 for part #".concat(o+1," (").concat(e.message,")"))}try{return JSON.parse(n)}catch(e){throw new r("Invalid token specified: invalid json for part #".concat(o+1," (").concat(e.message,")"))}}r.prototype.name="InvalidTokenError"},12968:function(e,t,n){let r,o,a,i,l,s,c,u,d,p;n.d(t,{ZP:function(){return t9}});var f,m,g,h,b,v,y,E,S,w,x,O,k,C,T,A,I,N,R,_,P,M,L,D,j,F,B,U,Z,z,H,G,$,W,V,q,Y,K,X={};n.r(X),n.d(X,{APIConnectionError:function(){return eo},APIConnectionTimeoutError:function(){return ea},APIError:function(){return en},APIUserAbortError:function(){return er},AuthenticationError:function(){return el},BadRequestError:function(){return ei},ConflictError:function(){return eu},InternalServerError:function(){return ef},NotFoundError:function(){return ec},OpenAIError:function(){return et},PermissionDeniedError:function(){return es},RateLimitError:function(){return ep},UnprocessableEntityError:function(){return ed}});let Q="4.28.0",J=!1;class ee{get[Symbol.toStringTag](){return"MultipartBody"}constructor(e){this.body=e}}o||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{auto:!1};if(J)throw Error("you must `import 'openai/shims/".concat(e.kind,"'` before importing anything else from openai"));if(o)throw Error("can't `import 'openai/shims/".concat(e.kind,"'` after `import 'openai/shims/").concat(o,"'`"));J=t.auto,o=e.kind,a=e.fetch,e.Request,e.Response,e.Headers,i=e.FormData,e.Blob,l=e.File,s=e.ReadableStream,c=e.getMultipartRequestOptions,u=e.getDefaultAgent,d=e.fileFromPath,p=e.isFsReadStream}(function(){let e,t,n,r,{manuallyImported:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";try{e=fetch,t=Request,n=Response,r=Headers}catch(e){throw Error("this environment is missing the following Web Fetch API type: ".concat(e.message,". ").concat(a))}return{kind:"web",fetch:e,Request:t,Response:n,Headers:r,FormData:"undefined"!=typeof FormData?FormData:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(a))}},Blob:"undefined"!=typeof Blob?Blob:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(a))}},File:"undefined"!=typeof File?File:class{constructor(){throw Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(a))}},ReadableStream:"undefined"!=typeof ReadableStream?ReadableStream:class{constructor(){throw Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(a))}},getMultipartRequestOptions:async(e,t)=>({...t,body:new ee(e)}),getDefaultAgent:e=>void 0,fileFromPath:()=>{throw Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class et extends Error{}class en extends et{static makeMessage(e,t,n){let r=(null==t?void 0:t.message)?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?"".concat(e," ").concat(r):e?"".concat(e," status code (no body)"):r||"(no status code or body)"}static generate(e,t,n,r){if(!e)return new eo({cause:e0(t)});let o=null==t?void 0:t.error;return 400===e?new ei(e,o,n,r):401===e?new el(e,o,n,r):403===e?new es(e,o,n,r):404===e?new ec(e,o,n,r):409===e?new eu(e,o,n,r):422===e?new ed(e,o,n,r):429===e?new ep(e,o,n,r):e>=500?new ef(e,o,n,r):new en(e,o,n,r)}constructor(e,t,n,r){super("".concat(en.makeMessage(e,t,n))),this.status=e,this.headers=r,this.error=t,this.code=null==t?void 0:t.code,this.param=null==t?void 0:t.param,this.type=null==t?void 0:t.type}}class er extends en{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class eo extends en{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),this.status=void 0,t&&(this.cause=t)}}class ea extends eo{constructor({message:e}={}){super({message:null!=e?e:"Request timed out."})}}class ei extends en{constructor(){super(...arguments),this.status=400}}class el extends en{constructor(){super(...arguments),this.status=401}}class es extends en{constructor(){super(...arguments),this.status=403}}class ec extends en{constructor(){super(...arguments),this.status=404}}class eu extends en{constructor(){super(...arguments),this.status=409}}class ed extends en{constructor(){super(...arguments),this.status=422}}class ep extends en{constructor(){super(...arguments),this.status=429}}class ef extends en{}var em=n(8620).Buffer;class eg{static fromSSEResponse(e,t){let n=!1,r=new eh;async function*o(){if(!e.body)throw t.abort(),new et("Attempted to iterate over a response with no body");let n=new eb;for await(let t of ev(e.body))for(let e of n.decode(t)){let t=r.decode(e);t&&(yield t)}for(let e of n.flush()){let t=r.decode(e);t&&(yield t)}}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of o())if(!e){if(t.data.startsWith("[DONE]")){e=!0;continue}if(null===t.event){let e;try{e=JSON.parse(t.data)}catch(e){throw console.error("Could not parse message into JSON:",t.data),console.error("From chunk:",t.raw),e}if(e&&e.error)throw new en(void 0,e.error,void 0,void 0);yield e}}e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}static fromReadableStream(e,t){let n=!1;async function*r(){let t=new eb;for await(let n of ev(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new eg(async function*(){if(n)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of r())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new eg(()=>r(e),this.controller),new eg(()=>r(t),this.controller)]}toReadableStream(){let e;let t=this,n=new TextEncoder;return new s({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:r,done:o}=await e.next();if(o)return t.close();let a=n.encode(JSON.stringify(r)+"\n");t.enqueue(a)}catch(e){t.error(e)}},async cancel(){var t;await (null===(t=e.return)||void 0===t?void 0:t.call(e))}})}constructor(e,t){this.iterator=e,this.controller=t}}class eh{decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,n,r]=function(e,t){let n=e.indexOf(t);return -1!==n?[e.substring(0,n),t,e.substring(n+t.length)]:[e,"",""]}(e,":");return r.startsWith(" ")&&(r=r.substring(1)),"event"===t?this.event=r:"data"===t&&this.data.push(r),null}constructor(){this.event=null,this.data=[],this.chunks=[]}}class eb{decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];let n=eb.NEWLINE_CHARS.has(t[t.length-1]||""),r=t.split(eb.NEWLINE_REGEXP);return 1!==r.length||n?(this.buffer.length>0&&(r=[this.buffer.join("")+r[0],...r.slice(1)],this.buffer=[]),n||(this.buffer=[r.pop()||""]),r):(this.buffer.push(r[0]),[])}decodeText(e){if(null==e)return"";if("string"==typeof e)return e;if(void 0!==em){if(e instanceof em)return e.toString();if(e instanceof Uint8Array)return em.from(e).toString();throw new et("Unexpected: received non-Uint8Array (".concat(e.constructor.name,') stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.'))}if("undefined"!=typeof TextDecoder){if(e instanceof Uint8Array||e instanceof ArrayBuffer){var t;return null!==(t=this.textDecoder)&&void 0!==t||(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e)}throw new et("Unexpected: received non-Uint8Array/ArrayBuffer (".concat(e.constructor.name,") in a web platform. Please report this error."))}throw new et("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];let e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}constructor(){this.buffer=[],this.trailingCR=!1}}function ev(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return(null==e?void 0:e.done)&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}eb.NEWLINE_CHARS=new Set(["\n","\r","\v","\f","\x1c","\x1d","\x1e","\x85","\u2028","\u2029"]),eb.NEWLINE_REGEXP=/\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;var ey=n(8620).Buffer;let eE=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob,eS=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&ew(e),ew=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,ex=e=>eS(e)||eE(e)||p(e);async function eO(e,t){var n,r,o,a,i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(eE(e=await e)){let r=await e.blob();return t||(t=null!==(n=new URL(e.url).pathname.split(/[\\/]/).pop())&&void 0!==n?n:"unknown_file"),new l([r],t,s)}let c=await ek(e);if(t||(t=null!==(r=eC((a=e).name)||eC(a.filename)||(null===(i=eC(a.path))||void 0===i?void 0:i.split(/[\\/]/).pop()))&&void 0!==r?r:"unknown_file"),!s.type){let e=null===(o=c[0])||void 0===o?void 0:o.type;"string"==typeof e&&(s={...s,type:e})}return new l(c,t,s)}async function ek(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(ew(e))t.push(await e.arrayBuffer());else if(eT(e))for await(let n of e)t.push(n);else{var n;throw Error("Unexpected data type: ".concat(typeof e,"; constructor: ").concat(null==e?void 0:null===(n=e.constructor)||void 0===n?void 0:n.name,"; props: ").concat(function(e){let t=Object.getOwnPropertyNames(e);return"[".concat(t.map(e=>'"'.concat(e,'"')).join(", "),"]")}(e)))}return t}let eC=e=>"string"==typeof e?e:void 0!==ey&&e instanceof ey?String(e):void 0,eT=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eA=e=>e&&"object"==typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],eI=async e=>{let t=await eN(e.body);return c(t,e)},eN=async e=>{let t=new i;return await Promise.all(Object.entries(e||{}).map(e=>{let[n,r]=e;return e_(t,n,r)})),t},eR=e=>{if(ex(e))return!0;if(Array.isArray(e))return e.some(eR);if(e&&"object"==typeof e){for(let t in e)if(eR(e[t]))return!0}return!1},e_=async(e,t,n)=>{if(void 0!==n){if(null==n)throw TypeError('Received null for "'.concat(t,"\"; to pass null in FormData, you must use the string 'null'"));if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)e.append(t,String(n));else if(ex(n)){let r=await eO(n);e.append(t,r)}else if(Array.isArray(n))await Promise.all(n.map(n=>e_(e,t+"[]",n)));else if("object"==typeof n)await Promise.all(Object.entries(n).map(n=>{let[r,o]=n;return e_(e,"".concat(t,"[").concat(r,"]"),o)}));else throw TypeError("Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ".concat(n," instead"))}};var eP=n(8620).Buffer,eM=n(49079),eL=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},eD=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};async function ej(e){let{response:t}=e;if(e.options.stream)return(e6("response",t.status,t.url,t.headers,t.body),e.options.__streamClass)?e.options.__streamClass.fromSSEResponse(t,e.controller):eg.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;let n=t.headers.get("content-type");if((null==n?void 0:n.includes("application/json"))||(null==n?void 0:n.includes("application/vnd.api+json"))){let e=await t.json();return e6("response",t.status,t.url,t.headers,e),e}let r=await t.text();return e6("response",t.status,t.url,t.headers,r),r}class eF extends Promise{_thenUnwrap(e){return new eF(this.responsePromise,async t=>e(await this.parseResponse(t)))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}constructor(e,t=ej){super(e=>{e(null)}),this.responsePromise=e,this.parseResponse=t}}class eB{authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...eq(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return"stainless-node-retry-".concat(e5())}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}calculateContentLength(e){if("string"==typeof e){if(void 0!==eP)return eP.byteLength(e,"utf8").toString();if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e).length.toString()}return null}buildRequest(e){var t,n,r,o,a,i;let{method:l,path:s,query:c,headers:d={}}=e,p=eA(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,f=this.calculateContentLength(p),m=this.buildURL(s,c);"timeout"in e&&eJ("timeout",e.timeout);let g=null!==(n=e.timeout)&&void 0!==n?n:this.timeout,h=null!==(o=null!==(r=e.httpAgent)&&void 0!==r?r:this.httpAgent)&&void 0!==o?o:u(m),b=g+1e3;"number"==typeof(null==h?void 0:null===(t=h.options)||void 0===t?void 0:t.timeout)&&b>(null!==(a=h.options.timeout)&&void 0!==a?a:0)&&(h.options.timeout=b),this.idempotencyHeader&&"get"!==l&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),d[this.idempotencyHeader]=e.idempotencyKey);let v=this.buildHeaders({options:e,headers:d,contentLength:f});return{req:{method:l,...p&&{body:p},headers:v,...h&&{agent:h},signal:null!==(i=e.signal)&&void 0!==i?i:null},url:m,timeout:g}}buildHeaders(e){let{options:t,headers:n,contentLength:r}=e,a={};return r&&(a["content-length"]=r),e3(a,this.defaultHeaders(t)),e3(a,n),eA(t.body)&&"node"!==o&&delete a["content-type"],this.validateHeaders(a,n),a}async prepareOptions(e){}async prepareRequest(e,t){let{url:n,options:r}=t}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(e=>[...e])):{...e}:{}}makeStatusError(e,t,n,r){return en.generate(e,t,n,r)}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new eF(this.makeRequest(e,t))}async makeRequest(e,t){var n,r,o;let a=await e;null==t&&(t=null!==(r=a.maxRetries)&&void 0!==r?r:this.maxRetries),await this.prepareOptions(a);let{req:i,url:l,timeout:s}=this.buildRequest(a);if(await this.prepareRequest(i,{url:l,options:a}),e6("request",l,a,i.headers),null===(n=a.signal)||void 0===n?void 0:n.aborted)throw new er;let c=new AbortController,u=await this.fetchWithTimeout(l,i,s,c).catch(e0);if(u instanceof Error){if(null===(o=a.signal)||void 0===o?void 0:o.aborted)throw new er;if(t)return this.retryRequest(a,t);if("AbortError"===u.name)throw new ea;throw new eo({cause:u})}let d=ez(u.headers);if(!u.ok){if(t&&this.shouldRetry(u)){let e="retrying, ".concat(t," attempts remaining");return e6("response (error; ".concat(e,")"),u.status,l,d),this.retryRequest(a,t,d)}let e=await u.text().catch(e=>e0(e).message),n=eY(e),r=n?void 0:e,o=t?"(error; no more retries left)":"(error; not retryable)";throw e6("response (error; ".concat(o,")"),u.status,l,d,r),this.makeStatusError(u.status,n,r,d)}return{response:u,options:a,controller:c}}requestAPIList(e,t){return new eZ(this,this.makeRequest(t,null),e)}buildURL(e,t){let n=new URL(eX(e)?e:this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),r=this.defaultQuery();return e2(r)||(t={...r,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(n.search=this.stringifyQuery(t)),n.toString()}stringifyQuery(e){return Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}).map(e=>{let[t,n]=e;if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n));if(null===n)return"".concat(encodeURIComponent(t),"=");throw new et("Cannot stringify type ".concat(typeof n,"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case."))}).join("&")}async fetchWithTimeout(e,t,n,r){let{signal:o,...a}=t||{};o&&o.addEventListener("abort",()=>r.abort());let i=setTimeout(()=>r.abort(),n);return this.getRequestClient().fetch.call(void 0,e,{signal:r.signal,...a}).finally(()=>{clearTimeout(i)})}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||e.status>=500)}async retryRequest(e,t,n){let r;let o=null==n?void 0:n["retry-after-ms"];if(o){let e=parseFloat(o);Number.isNaN(e)||(r=e)}let a=null==n?void 0:n["retry-after"];if(a&&!r){let e=parseFloat(a);r=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(r&&0<=r&&r<6e4)){var i;let n=null!==(i=e.maxRetries)&&void 0!==i?i:this.maxRetries;r=this.calculateDefaultRetryTimeoutMillis(t,n)}return await eQ(r),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}getUserAgent(){return"".concat(this.constructor.name,"/JS ").concat(Q)}constructor({baseURL:e,maxRetries:t=2,timeout:n=6e5,httpAgent:r,fetch:o}){this.baseURL=e,this.maxRetries=eJ("maxRetries",t),this.timeout=eJ("timeout",n),this.httpAgent=r,this.fetch=null!=o?o:a}}class eU{hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){let e=this.nextPageInfo();if(!e)throw new et("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");let t={...this.options};if("params"in e&&"object"==typeof t.query)t.query={...t.query,...e.params};else if("url"in e){for(let[n,r]of[...Object.entries(t.query||{}),...e.url.searchParams.entries()])e.url.searchParams.set(n,r);t.query=void 0,t.path=e.url.toString()}return await eD(this,w,"f").requestAPIList(this.constructor,t)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(w=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}constructor(e,t,n,r){w.set(this,void 0),eL(this,w,e,"f"),this.options=r,this.response=t,this.body=n}}class eZ extends eF{async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}constructor(e,t,n){super(t,async t=>new n(e,t.response,await ej(t),t.options))}}let ez=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){let n=t.toString();return e[n.toLowerCase()]||e[n]}}),eH={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryResponse:!0,__streamClass:!0},eG=e=>"object"==typeof e&&null!==e&&!e2(e)&&Object.keys(e).every(e=>e4(eH,e)),e$=()=>{if("undefined"!=typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(Deno.build.os),"X-Stainless-Arch":eW(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":Deno.version};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"other:".concat(EdgeRuntime),"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":eM.version};if("[object process]"===Object.prototype.toString.call(void 0!==eM?eM:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":eV(eM.platform),"X-Stainless-Arch":eW(eM.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":eM.version};let e=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,o=n[3]||0;return{browser:e,version:"".concat(t,".").concat(r,".").concat(o)}}}return null}();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"browser:".concat(e.browser),"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Q,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},eW=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?"other:".concat(e):"unknown",eV=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?"Other:".concat(e):"Unknown",eq=()=>null!=r?r:r=e$(),eY=e=>{try{return JSON.parse(e)}catch(e){return}},eK=RegExp("^(?:[a-z]+:)?//","i"),eX=e=>eK.test(e),eQ=e=>new Promise(t=>setTimeout(t,e)),eJ=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new et("".concat(e," must be an integer"));if(t<0)throw new et("".concat(e," must be a positive integer"));return t},e0=e=>e instanceof Error?e:Error(e),e1=e=>{var t,n,r,o,a,i;return void 0!==eM?null!==(r=null===(n=eM.env)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.trim())&&void 0!==r?r:void 0:"undefined"!=typeof Deno?null===(i=Deno.env)||void 0===i?void 0:null===(a=i.get)||void 0===a?void 0:null===(o=a.call(i,e))||void 0===o?void 0:o.trim():void 0};function e2(e){if(!e)return!0;for(let t in e)return!1;return!0}function e4(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e3(e,t){for(let n in t){if(!e4(t,n))continue;let r=n.toLowerCase();if(!r)continue;let o=t[n];null===o?delete e[r]:void 0!==o&&(e[r]=o)}}function e6(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e8=()=>void 0!==window.document&&"undefined"!=typeof navigator;class e9 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){return null}nextPageInfo(){return null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}}class e7 extends eU{getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){let e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;let t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){var e;let t=this.getPaginatedItems();if(!t.length)return null;let n=null===(e=t[t.length-1])||void 0===e?void 0:e.id;return n?{params:{after:n}}:null}constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[]}}class te{constructor(e){this._client=e}}class tt extends te{create(e,t){var n;return this._client.post("/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tt||(tt={});class tn extends te{create(e,t){var n;return this._client.post("/chat/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}tn||(tn={});class tr extends te{constructor(){super(...arguments),this.completions=new tn(this._client)}}(tr||(tr={})).Completions=tn;class to extends te{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}to||(to={});class ta extends te{create(e,t){return this._client.post("/files",eI({body:e,...t}))}retrieve(e,t){return this._client.get("/files/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/files",ti,{query:e,...t})}del(e,t){return this._client.delete("/files/".concat(e),t)}content(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,headers:{Accept:"application/json",...null==t?void 0:t.headers}})}async waitForProcessing(e){let{pollInterval:t=5e3,maxWait:n=18e5}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Set(["processed","error","deleted"]),o=Date.now(),a=await this.retrieve(e);for(;!a.status||!r.has(a.status);)if(await eQ(t),a=await this.retrieve(e),Date.now()-o>n)throw new ea({message:"Giving up on waiting for file ".concat(e," to finish processing after ").concat(n," milliseconds.")});return a}}class ti extends e9{}(ta||(ta={})).FileObjectsPage=ti;class tl extends te{createVariation(e,t){return this._client.post("/images/variations",eI({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",eI({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}tl||(tl={});class ts extends te{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}ts||(ts={});class tc extends te{create(e,t){return this._client.post("/audio/transcriptions",eI({body:e,...t}))}}tc||(tc={});class tu extends te{create(e,t){return this._client.post("/audio/translations",eI({body:e,...t}))}}tu||(tu={});class td extends te{constructor(){super(...arguments),this.transcriptions=new tc(this._client),this.translations=new tu(this._client),this.speech=new ts(this._client)}}(f=td||(td={})).Transcriptions=tc,f.Translations=tu,f.Speech=ts;class tp extends te{create(e,t){return this._client.post("/moderations",{body:e,...t})}}tp||(tp={});class tf extends te{retrieve(e,t){return this._client.get("/models/".concat(e),t)}list(e){return this._client.getAPIList("/models",tm,e)}del(e,t){return this._client.delete("/models/".concat(e),t)}}class tm extends e9{}(tf||(tf={})).ModelsPage=tm;class tg extends te{create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get("/fine_tuning/jobs/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",th,{query:e,...t})}cancel(e,t){return this._client.post("/fine_tuning/jobs/".concat(e,"/cancel"),t)}listEvents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.listEvents(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/events"),tb,{query:t,...n})}}class th extends e7{}class tb extends e7{}(m=tg||(tg={})).FineTuningJobsPage=th,m.FineTuningJobEventsPage=tb;class tv extends te{constructor(){super(...arguments),this.jobs=new tg(this._client)}}(g=tv||(tv={})).Jobs=tg,g.FineTuningJobsPage=th,g.FineTuningJobEventsPage=tb;class ty extends te{create(e,t,n){return this._client.post("/assistants/".concat(e,"/files"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/assistants/".concat(e,"/files"),tE,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/assistants/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}}class tE extends e7{}(ty||(ty={})).AssistantFilesPage=tE;class tS extends te{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/assistants/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.list({},e):this._client.getAPIList("/assistants",tw,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}del(e,t){return this._client.delete("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.files=new ty(this._client)}}class tw extends e7{}function tx(e){return"function"==typeof e.parse}(h=tS||(tS={})).AssistantsPage=tw,h.Files=ty,h.AssistantFilesPage=tE;let tO=e=>(null==e?void 0:e.role)==="assistant",tk=e=>(null==e?void 0:e.role)==="function",tC=e=>(null==e?void 0:e.role)==="tool";var tT=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},tA=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class tI{_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},tA(this,U,"f"))},0)}_addChatCompletion(e){var t;this._chatCompletions.push(e),this._emit("chatCompletion",e);let n=null===(t=e.choices[0])||void 0===t?void 0:t.message;return n&&this._addMessage(n),e}_addMessage(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),(tk(e)||tC(e))&&e.content)this._emit("functionCallResult",e.content);else if(tO(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(tO(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionCall",t.function)}}_connected(){this.ended||(tA(this,k,"f").call(this),this._emit("connect"))}get ended(){return tA(this,R,"f")}get errored(){return tA(this,_,"f")}get aborted(){return tA(this,P,"f")}abort(){this.controller.abort()}on(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t}),this}off(e,t){let n=tA(this,N,"f")[e];if(!n)return this;let r=n.findIndex(e=>e.listener===t);return r>=0&&n.splice(r,1),this}once(e,t){return(tA(this,N,"f")[e]||(tA(this,N,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,n)=>{tT(this,M,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)})}async done(){tT(this,M,!0,"f"),await tA(this,T,"f")}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new et("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),tA(this,x,"m",L).call(this)}async finalMessage(){return await this.done(),tA(this,x,"m",D).call(this)}async finalFunctionCall(){return await this.done(),tA(this,x,"m",j).call(this)}async finalFunctionCallResult(){return await this.done(),tA(this,x,"m",F).call(this)}async totalUsage(){return await this.done(),tA(this,x,"m",B).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r!e.once),o.forEach(e=>{let{listener:t}=e;return t(...n)})),"abort"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end");return}if("error"===e){let e=n[0];tA(this,M,"f")||(null==o?void 0:o.length)||Promise.reject(e),tA(this,C,"f").call(this,e),tA(this,I,"f").call(this,e),this._emit("end")}}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=tA(this,x,"m",D).call(this);t&&this._emit("finalMessage",t);let n=tA(this,x,"m",L).call(this);n&&this._emit("finalContent",n);let r=tA(this,x,"m",j).call(this);r&&this._emit("finalFunctionCall",r);let o=tA(this,x,"m",F).call(this);null!=o&&this._emit("finalFunctionCallResult",o),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",tA(this,x,"m",B).call(this))}async _createChatCompletion(e,t,n){let r=null==n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),tA(this,x,"m",Z).call(this,t);let o=await e.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(o)}async _runChatCompletion(e,t,n){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,n)}async _runFunctions(e,t,n){let r="function",{function_call:o="auto",stream:a,...i}=t,l="string"!=typeof o&&(null==o?void 0:o.name),{maxChatCompletions:s=10}=n||{},c={};for(let e of t.functions)c[e.name||e.function.name]=e;let u=t.functions.map(e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description}));for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.name)).join(", "),". Please try again");this._addMessage({role:r,name:s,content:e});continue}try{t=tx(f)?await f.parse(p):p}catch(e){this._addMessage({role:r,name:s,content:e instanceof Error?e.message:String(e)});continue}let m=await f.function(t,this),g=tA(this,x,"m",z).call(this,m);if(this._addMessage({role:r,name:s,content:g}),l)return}}async _runTools(e,t,n){var r,o;let a="tool",{tool_choice:i="auto",stream:l,...s}=t,c="string"!=typeof i&&(null==i?void 0:null===(r=i.function)||void 0===r?void 0:r.name),{maxChatCompletions:u=10}=n||{},d={};for(let e of t.tools)"function"===e.type&&(d[e.function.name||e.function.function.name]=e.function);let p="tools"in t?t.tools.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.function.name)).join(", "),". Please try again");this._addMessage({role:a,tool_call_id:n,content:e});continue}try{t=tx(i)?await i.parse(o):o}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:a,tool_call_id:n,content:e});continue}let l=await i.function(t,this),s=tA(this,x,"m",z).call(this,l);if(this._addMessage({role:a,tool_call_id:n,content:s}),c)return}}}constructor(){x.add(this),this.controller=new AbortController,O.set(this,void 0),k.set(this,()=>{}),C.set(this,()=>{}),T.set(this,void 0),A.set(this,()=>{}),I.set(this,()=>{}),N.set(this,{}),this._chatCompletions=[],this.messages=[],R.set(this,!1),_.set(this,!1),P.set(this,!1),M.set(this,!1),U.set(this,e=>{if(tT(this,_,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new er),e instanceof er)return tT(this,P,!0,"f"),this._emit("abort",e);if(e instanceof et)return this._emit("error",e);if(e instanceof Error){let t=new et(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new et(String(e)))}),tT(this,O,new Promise((e,t)=>{tT(this,k,e,"f"),tT(this,C,t,"f")}),"f"),tT(this,T,new Promise((e,t)=>{tT(this,A,e,"f"),tT(this,I,t,"f")}),"f"),tA(this,O,"f").catch(()=>{}),tA(this,T,"f").catch(()=>{})}}O=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,A=new WeakMap,I=new WeakMap,N=new WeakMap,R=new WeakMap,_=new WeakMap,P=new WeakMap,M=new WeakMap,U=new WeakMap,x=new WeakSet,L=function(){var e;return null!==(e=tA(this,x,"m",D).call(this).content)&&void 0!==e?e:null},D=function(){let e=this.messages.length;for(;e-- >0;){let n=this.messages[e];if(tO(n)){var t;return{...n,content:null!==(t=n.content)&&void 0!==t?t:null}}}throw new et("stream ended without producing a ChatCompletionMessage with role=assistant")},j=function(){for(let n=this.messages.length-1;n>=0;n--){var e,t;let r=this.messages[n];if(tO(r)&&(null==r?void 0:r.function_call))return r.function_call;if(tO(r)&&(null==r?void 0:null===(e=r.tool_calls)||void 0===e?void 0:e.length))return null===(t=r.tool_calls.at(-1))||void 0===t?void 0:t.function}},F=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tk(t)&&null!=t.content||tC(t)&&null!=t.content&&this.messages.some(e=>{var n;return"assistant"===e.role&&(null===(n=e.tool_calls)||void 0===n?void 0:n.some(e=>"function"===e.type&&e.id===t.tool_call_id))}))return t.content}},B=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},Z=function(e){if(null!=e.n&&e.n>1)throw new et("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},z=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class tN extends tI{static runFunctions(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tN,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}_addMessage(e){super._addMessage(e),tO(e)&&e.content&&this._emit("content",e.content)}}var tR=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},t_=function(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class tP extends tI{get currentChatCompletionSnapshot(){return tR(this,G,"f")}static fromReadableStream(e){let t=new tP;return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,n){let r=new tP;return r._run(()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),r}async _createChatCompletion(e,t,n){var r;let o=null==n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this);let a=await e.create({...t,stream:!0},{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))tR(this,H,"m",W).call(this,e);if(null===(r=a.controller.signal)||void 0===r?void 0:r.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}async _fromReadableStream(e,t){var n;let r;let o=null==t?void 0:t.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort())),tR(this,H,"m",$).call(this),this._connected();let a=eg.fromReadableStream(e,this.controller);for await(let e of a)r&&r!==e.id&&this._addChatCompletion(tR(this,H,"m",V).call(this)),tR(this,H,"m",W).call(this,e),r=e.id;if(null===(n=a.controller.signal)||void 0===n?void 0:n.aborted)throw new er;return this._addChatCompletion(tR(this,H,"m",V).call(this))}[(G=new WeakMap,H=new WeakSet,$=function(){this.ended||t_(this,G,void 0,"f")},W=function(e){var t,n,r;if(this.ended)return;let o=tR(this,H,"m",q).call(this,e);this._emit("chunk",e,o);let a=null===(n=e.choices[0])||void 0===n?void 0:null===(t=n.delta)||void 0===t?void 0:t.content,i=null===(r=o.choices[0])||void 0===r?void 0:r.message;null!=a&&(null==i?void 0:i.role)==="assistant"&&(null==i?void 0:i.content)&&this._emit("content",a,i.content)},V=function(){if(this.ended)throw new et("stream has ended, this shouldn't happen");let e=tR(this,G,"f");if(!e)throw new et("request ended without sending any chunks");return t_(this,G,void 0,"f"),function(e){let{id:t,choices:n,created:r,model:o,system_fingerprint:a,...i}=e;return{...i,id:t,choices:n.map(t=>{let{message:n,finish_reason:r,index:o,logprobs:a,...i}=t;if(!r)throw new et("missing finish_reason for choice ".concat(o));let{content:l=null,function_call:s,tool_calls:c,...u}=n,d=n.role;if(!d)throw new et("missing role for choice ".concat(o));if(s){let{arguments:e,name:t}=s;if(null==e)throw new et("missing function_call.arguments for choice ".concat(o));if(!t)throw new et("missing function_call.name for choice ".concat(o));return{...i,message:{content:l,function_call:{arguments:e,name:t},role:d},finish_reason:r,index:o,logprobs:a}}return c?{...i,index:o,finish_reason:r,logprobs:a,message:{...u,role:d,content:l,tool_calls:c.map((t,n)=>{let{function:r,type:a,id:i,...l}=t,{arguments:s,name:c,...u}=r||{};if(null==i)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].id\n").concat(tM(e)));if(null==a)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].type\n").concat(tM(e)));if(null==c)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.name\n").concat(tM(e)));if(null==s)throw new et("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.arguments\n").concat(tM(e)));return{...l,id:i,type:a,function:{...u,name:c,arguments:s}}})}}:{...i,message:{...u,content:l,role:d},finish_reason:r,index:o,logprobs:a}}),created:r,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}}}(e)},q=function(e){var t,n,r,o,a,i,l;let s=tR(this,G,"f"),{choices:c,...u}=e;for(let{delta:c,finish_reason:d,index:p,logprobs:f=null,...m}of(s?Object.assign(s,u):s=t_(this,G,{...u,choices:[]},"f"),e.choices)){let e=s.choices[p];if(e||(e=s.choices[p]={finish_reason:d,index:p,message:{},logprobs:f,...m}),f){if(e.logprobs){let{content:n,...r}=f;Object.assign(e.logprobs,r),n&&(null!==(o=(t=e.logprobs).content)&&void 0!==o||(t.content=[]),e.logprobs.content.push(...n))}else e.logprobs=Object.assign({},f)}if(d&&(e.finish_reason=d),Object.assign(e,m),!c)continue;let{content:u,function_call:g,role:h,tool_calls:b,...v}=c;if(Object.assign(e.message,v),u&&(e.message.content=(e.message.content||"")+u),h&&(e.message.role=h),g&&(e.message.function_call?(g.name&&(e.message.function_call.name=g.name),g.arguments&&(null!==(a=(n=e.message.function_call).arguments)&&void 0!==a||(n.arguments=""),e.message.function_call.arguments+=g.arguments)):e.message.function_call=g),b)for(let{index:t,id:n,type:o,function:a,...s}of(e.message.tool_calls||(e.message.tool_calls=[]),b)){let c=null!==(i=(r=e.message.tool_calls)[t])&&void 0!==i?i:r[t]={};Object.assign(c,s),n&&(c.id=n),o&&(c.type=o),a&&(null!==(l=c.function)&&void 0!==l||(c.function={arguments:""})),(null==a?void 0:a.name)&&(c.function.name=a.name),(null==a?void 0:a.arguments)&&(c.function.arguments+=a.arguments)}}return s},Symbol.asyncIterator)](){let e=[],t=[],n=!1;return this.on("chunk",n=>{let r=t.shift();r?r(n):e.push(n)}),this.on("end",()=>{for(let e of(n=!0,t))e(void 0);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise(e=>t.push(e)).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0})}}toReadableStream(){return new eg(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}constructor(){super(...arguments),H.add(this),G.set(this,void 0)}}function tM(e){return JSON.stringify(e)}class tL extends tP{static fromReadableStream(e){let t=new tL;return t._run(()=>t._fromReadableStream(e)),t}static runFunctions(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run(()=>r._runFunctions(e,t,o)),r}static runTools(e,t,n){let r=new tL,o={...n,headers:{...null==n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run(()=>r._runTools(e,t,o)),r}}class tD extends te{runFunctions(e,t){return e.stream?tL.runFunctions(this._client.chat.completions,e,t):tN.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?tL.runTools(this._client.chat.completions,e,t):tN.runTools(this._client.chat.completions,e,t)}stream(e,t){return tP.createChatCompletion(this._client.chat.completions,e,t)}}class tj extends te{constructor(){super(...arguments),this.completions=new tD(this._client)}}(tj||(tj={})).Completions=tD;class tF extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/messages/").concat(t,"/files/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/messages/").concat(t,"/files"),tB,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tB extends e7{}(tF||(tF={})).MessageFilesPage=tB;class tU extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/messages"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/messages/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/messages"),tZ,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}constructor(){super(...arguments),this.files=new tF(this._client)}}class tZ extends e7{}(b=tU||(tU={})).ThreadMessagesPage=tZ,b.Files=tF,b.MessageFilesPage=tB;class tz extends te{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/runs/").concat(t,"/steps/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return eG(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/runs/").concat(t,"/steps"),tH,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}}class tH extends e7{}(tz||(tz={})).RunStepsPage=tH;class tG extends te{create(e,t,n){return this._client.post("/threads/".concat(e,"/runs"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/runs/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return eG(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/runs"),t$,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}submitToolOutputs(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/submit_tool_outputs"),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v1",...null==r?void 0:r.headers}})}constructor(){super(...arguments),this.steps=new tz(this._client)}}class t$ extends e7{}(v=tG||(tG={})).RunsPage=t$,v.Steps=tz,v.RunStepsPage=tH;class tW extends te{create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return eG(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}update(e,t,n){return this._client.post("/threads/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v1",...null==n?void 0:n.headers}})}del(e,t){return this._client.delete("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...null==t?void 0:t.headers}})}constructor(){super(...arguments),this.runs=new tG(this._client),this.messages=new tU(this._client)}}(y=tW||(tW={})).Runs=tG,y.RunsPage=t$,y.Messages=tU,y.ThreadMessagesPage=tZ;class tV extends te{constructor(){super(...arguments),this.chat=new tj(this._client),this.assistants=new tS(this._client),this.threads=new tW(this._client)}}(E=tV||(tV={})).Chat=tj,E.Assistants=tS,E.AssistantsPage=tw,E.Threads=tW;class tq extends eB{defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:"Bearer ".concat(this.apiKey)}}constructor({baseURL:e=e1("OPENAI_BASE_URL"),apiKey:t=e1("OPENAI_API_KEY"),organization:n=null!==(K=e1("OPENAI_ORG_ID"))&&void 0!==K?K:null,...r}={}){var o;if(void 0===t)throw new et("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");let a={apiKey:t,organization:n,...r,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&e8())throw new et("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:a.baseURL,timeout:null!==(o=a.timeout)&&void 0!==o?o:6e5,httpAgent:a.httpAgent,maxRetries:a.maxRetries,fetch:a.fetch}),this.completions=new tt(this),this.chat=new tr(this),this.embeddings=new to(this),this.files=new ta(this),this.images=new tl(this),this.audio=new td(this),this.moderations=new tp(this),this.models=new tf(this),this.fineTuning=new tv(this),this.beta=new tV(this),this._options=a,this.apiKey=t,this.organization=n}}Y=tq,tq.OpenAI=Y,tq.OpenAIError=et,tq.APIError=en,tq.APIConnectionError=eo,tq.APIConnectionTimeoutError=ea,tq.APIUserAbortError=er,tq.NotFoundError=ec,tq.ConflictError=eu,tq.RateLimitError=ep,tq.BadRequestError=ei,tq.AuthenticationError=el,tq.InternalServerError=ef,tq.PermissionDeniedError=es,tq.UnprocessableEntityError=ed;let{OpenAIError:tY,APIError:tK,APIConnectionError:tX,APIConnectionTimeoutError:tQ,APIUserAbortError:tJ,NotFoundError:t0,ConflictError:t1,RateLimitError:t2,BadRequestError:t4,AuthenticationError:t3,InternalServerError:t6,PermissionDeniedError:t5,UnprocessableEntityError:t8}=X;(S=tq||(tq={})).toFile=eO,S.fileFromPath=d,S.Page=e9,S.CursorPage=e7,S.Completions=tt,S.Chat=tr,S.Embeddings=to,S.Files=ta,S.FileObjectsPage=ti,S.Images=tl,S.Audio=td,S.Moderations=tp,S.Models=tf,S.ModelsPage=tm,S.FineTuning=tv,S.Beta=tV;var t9=tq},69703:function(e,t,n){function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}n.d(t,{_T:function(){return r}}),"function"==typeof SuppressedError&&SuppressedError},72890:function(e){e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},55229:function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/app/_not-found-28e7651bceba9aa1.js b/ui/litellm-dashboard/out/_next/static/chunks/app/_not-found-a166f65a6af292d9.js similarity index 100% rename from ui/litellm-dashboard/out/_next/static/chunks/app/_not-found-28e7651bceba9aa1.js rename to ui/litellm-dashboard/out/_next/static/chunks/app/_not-found-a166f65a6af292d9.js diff --git a/ui/litellm-dashboard/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js b/ui/litellm-dashboard/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js new file mode 100644 index 000000000..696bbfce8 --- /dev/null +++ b/ui/litellm-dashboard/out/_next/static/chunks/app/page-93ac11fb17dce9d6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{20661:function(e,l,t){Promise.resolve().then(t.bind(t,16586))},16586:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ln}});var s,a,r=t(3827),n=t(64090),o=t(47907),i=t(8792),c=t(40491),d=t(65270),m=e=>{let{userID:l,userRole:t,userEmail:s,showSSOBanner:a}=e;console.log("User ID:",l),console.log("userEmail:",s),console.log("showSSOBanner:",a);let n=[{key:"1",label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{children:["Role: ",t]}),(0,r.jsxs)("p",{children:["ID: ",l]})]})}];return(0,r.jsxs)("nav",{className:"left-0 right-0 top-0 flex justify-between items-center h-12 mb-4",children:[(0,r.jsx)("div",{className:"text-left my-2 absolute top-0 left-0",children:(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(i.default,{href:"/",children:(0,r.jsx)("button",{className:"text-gray-800 text-2xl py-1 rounded text-center",children:(0,r.jsx)("img",{src:"/get_image",width:200,height:200,alt:"LiteLLM Brand",className:"mr-2"})})})})}),(0,r.jsxs)("div",{className:"text-right mx-4 my-2 absolute top-0 right-0 flex items-center justify-end space-x-2",children:[a?(0,r.jsx)("div",{style:{padding:"6px",borderRadius:"8px"},children:(0,r.jsx)("a",{href:"https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat",target:"_blank",style:{fontSize:"14px",textDecoration:"underline"},children:"Request hosted proxy"})}):null,(0,r.jsx)("div",{style:{border:"1px solid #391085",padding:"6px",borderRadius:"8px"},children:(0,r.jsx)(c.Z,{menu:{items:n},children:(0,r.jsx)(d.Z,{children:s})})})]})]})},h=t(80588);let u=async()=>{try{let e=await fetch("https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"),l=await e.json();return console.log("received data: ".concat(l)),l}catch(e){throw console.error("Failed to get model cost map:",e),e}},x=async(e,l)=>{try{let t=await fetch("/model/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model created successfully. Wait 60s and refresh on 'All Models' page"),s}catch(e){throw console.error("Failed to create key:",e),e}},p=async(e,l)=>{console.log("model_id in model delete call: ".concat(l));try{let t=await fetch("/model/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({id:l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model deleted successfully. Restart server to see this."),s}catch(e){throw console.error("Failed to create key:",e),e}},j=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/key/generate",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},g=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/user/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},y=async(e,l)=>{try{console.log("in keyDeleteCall:",l);let t=await fetch("/key/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},Z=async(e,l)=>{try{console.log("in teamDeleteCall:",l);let t=await fetch("/team/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_ids:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete team: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to delete key:",e),e}},f=async function(e,l,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;try{let n="/user/info";"App Owner"==t&&l&&(n="".concat(n,"?user_id=").concat(l)),console.log("in userInfoCall viewAll=",s),s&&r&&null!=a&&void 0!=a&&(n="".concat(n,"?view_all=true&page=").concat(a,"&page_size=").concat(r));let o=await fetch(n,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!o.ok){let e=await o.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let i=await o.json();return console.log("API Response:",i),i}catch(e){throw console.error("Failed to create key:",e),e}},w=async e=>{try{let l=await fetch("/global/spend",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},b=async(e,l,t)=>{try{let l=await fetch("/v2/model/info",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log("modelInfoCall:",t),t}catch(e){throw console.error("Failed to create key:",e),e}},_=async(e,l,t)=>{try{let l=await fetch("/model/metrics",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},k=async(e,l,t)=>{try{let l=await fetch("/models",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},v=async(e,l)=>{try{let t="/global/spend/logs";console.log("in keySpendLogsCall:",t);let s=await fetch("".concat(t,"?api_key=").concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to create key:",e),e}},S=async e=>{try{let l="/global/spend/teams";console.log("in teamSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},A=async e=>{try{let l="/global/spend/tags";console.log("in tagsSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},N=async(e,l,t,s,a,r)=>{try{console.log("user role in spend logs call: ".concat(t));let l="/spend/logs";l="App Owner"==t?"".concat(l,"?user_id=").concat(s,"&start_date=").concat(a,"&end_date=").concat(r):"".concat(l,"?start_date=").concat(a,"&end_date=").concat(r);let n=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!n.ok){let e=await n.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let o=await n.json();return console.log(o),o}catch(e){throw console.error("Failed to create key:",e),e}},C=async e=>{try{let l=await fetch("/global/spend/logs",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},I=async e=>{try{let l=await fetch("/global/spend/keys?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},P=async(e,l)=>{try{l&&JSON.stringify({api_key:l});let t={method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}};l&&(t.body=JSON.stringify({api_key:l}));let s=await fetch("/global/spend/end_users",t);if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to create key:",e),e}},T=async e=>{try{let l=await fetch("/global/spend/models?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},E=async(e,l)=>{try{let t=await fetch("/v2/key/info",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},O=async e=>{try{let l="/user/get_requests";console.log("in userGetRequesedtModelsCall:",l);let t=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to get requested models:",e),e}},F=async(e,l)=>{try{let t="/user/get_users?role=".concat(l);console.log("in userGetAllUsersCall:",t);let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let a=await s.json();return console.log(a),a}catch(e){throw console.error("Failed to get requested models:",e),e}},M=async(e,l)=>{try{console.log("Form Values in teamCreateCall:",l);let t=await fetch("/team/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},R=async(e,l)=>{try{console.log("Form Values in keyUpdateCall:",l);let t=await fetch("/key/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update key Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},D=async(e,l)=>{try{console.log("Form Values in teamUpateCall:",l);let t=await fetch("/team/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update team: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update Team Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},L=async(e,l,t)=>{try{console.log("Form Values in teamMemberAddCall:",t);let s=await fetch("/team/member_add",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_id:l,member:t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await s.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},U=async(e,l,t)=>{try{console.log("Form Values in userUpdateUserCall:",l);let s={...l};null!==t&&(s.user_role=t),s=JSON.stringify(s);let a=await fetch("/user/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:s});if(!a.ok){let e=await a.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await a.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},z=async(e,l)=>{try{let t=await fetch("/global/predict/spend/logs",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({data:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},B=async(e,l)=>{try{let t="/health/services?service=".concat(l);console.log("Checking Slack Budget Alerts service health");let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed ".concat(l," service health check ")+e),Error(e)}let a=await s.json();return h.ZP.success("Test request to ".concat(l," made - check logs on ").concat(l," dashboard!")),a}catch(e){throw console.error("Failed to perform health check:",e),e}},q=async(e,l,t)=>{try{let l=await fetch("/get/config/callbacks",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to get callbacks:",e),e}},V=async(e,l)=>{try{let t=await fetch("/config/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await t.json()}catch(e){throw console.error("Failed to set callbacks:",e),e}},K=async e=>{try{let l=await fetch("/health",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to call /health:",e),e}};var G=t(10384),J=t(46453),W=t(2179),Y=t(71801),H=t(42440),$=t(42308),X=t(50670),Q=t(81583),ee=t(99129),el=t(44839),et=t(88707),es=t(1861);let{Option:ea}=X.default;var er=e=>{let{userID:l,team:t,userRole:s,accessToken:a,data:o,setData:i}=e,[c]=Q.Z.useForm(),[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[y,Z]=(0,n.useState)([]),f=()=>{m(!1),c.resetFields()},w=()=>{m(!1),x(null),c.resetFields()};(0,n.useEffect)(()=>{(async()=>{try{if(null===l||null===s)return;if(null!==a){let e=(await k(a,l,s)).data.map(e=>e.id);console.log("available_model_names:",e),Z(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[a,l,s]);let b=async e=>{try{h.ZP.info("Making API Call"),m(!0);let t=await j(a,l,e);console.log("key create Response:",t),i(e=>e?[...e,t]:[t]),x(t.key),g(t.soft_budget),h.ZP.success("API Key Created"),c.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the key:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>m(!0),children:"+ Create New Key"}),(0,r.jsx)(ee.Z,{title:"Create Key",visible:d,width:800,footer:null,onOk:f,onCancel:w,children:(0,r.jsxs)(Q.Z,{form:c,onFinish:b,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:["App Owner"===s||"Admin"===s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",hidden:!0,initialValue:t?t.team_id:null,valuePropName:"team_id",className:"mt-8",children:(0,r.jsx)(el.Z,{value:t?t.team_alias:"",disabled:!0})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{required:!0,message:"Please select a model"}],help:"required",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(ea,{value:"all-team-models",children:"All Team Models"},"all-team-models"),t&&t.models?t.models.includes("all-proxy-models")?y.map(e=>(0,r.jsx)(ea,{value:e,children:e},e)):t.models.map(e=>(0,r.jsx)(ea,{value:e,children:e},e)):y.map(e=>(0,r.jsx)(ea,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: $".concat((null==t?void 0:t.max_budget)!==null&&(null==t?void 0:t.max_budget)!==void 0?null==t?void 0:t.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.max_budget&&l>t.max_budget)throw Error("Budget cannot exceed team max budget: $".concat(t.max_budget))}}],children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Reset Budget",name:"budget_duration",help:"Team Reset Budget: ".concat((null==t?void 0:t.budget_duration)!==null&&(null==t?void 0:t.budget_duration)!==void 0?null==t?void 0:t.budget_duration:"None"),children:(0,r.jsxs)(X.default,{defaultValue:null,placeholder:"n/a",children:[(0,r.jsx)(X.default.Option,{value:"24h",children:"daily"}),(0,r.jsx)(X.default.Option,{value:"30d",children:"monthly"})]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Tokens per minute Limit (TPM)",name:"tpm_limit",help:"TPM cannot exceed team TPM limit: ".concat((null==t?void 0:t.tpm_limit)!==null&&(null==t?void 0:t.tpm_limit)!==void 0?null==t?void 0:t.tpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.tpm_limit&&l>t.tpm_limit)throw Error("TPM limit cannot exceed team TPM limit: ".concat(t.tpm_limit))}}],children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Requests per minute Limit (RPM)",name:"rpm_limit",help:"RPM cannot exceed team RPM limit: ".concat((null==t?void 0:t.rpm_limit)!==null&&(null==t?void 0:t.rpm_limit)!==void 0?null==t?void 0:t.rpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.rpm_limit&&l>t.rpm_limit)throw Error("RPM limit cannot exceed team RPM limit: ".concat(t.rpm_limit))}}],children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Expire Key (eg: 30s, 30h, 30d)",name:"duration",className:"mt-8",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,r.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID (Contact Group)",name:"team_id",children:(0,r.jsx)(el.Z,{placeholder:"default team (create a new team)"})}),(0,r.jsx)(Q.Z.Item,{label:"Description",name:"description",children:(0,r.jsx)(el.Z.TextArea,{placeholder:"Enter description",rows:4})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create Key"})})]})}),u&&(0,r.jsx)(ee.Z,{visible:d,onOk:f,onCancel:w,footer:null,children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,r.jsx)(H.Z,{children:"Save your Key"}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("p",{children:["Please save this secret key somewhere safe and accessible. For security reasons, ",(0,r.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret key, you will need to generate a new one."]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:null!=u?(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{className:"mt-3",children:"API Key:"}),(0,r.jsx)("div",{style:{background:"#f8f8f8",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:(0,r.jsx)("pre",{style:{wordWrap:"break-word",whiteSpace:"normal"},children:u})}),(0,r.jsx)($.CopyToClipboard,{text:u,onCopy:()=>{h.ZP.success("API Key copied to clipboard")},children:(0,r.jsx)(W.Z,{className:"mt-3",children:"Copy API Key"})})]}):(0,r.jsx)(Y.Z,{children:"Key being created, this might take 30s"})})]})})]})},en=t(9454),eo=t(98941),ei=t(33393),ec=t(5),ed=t(9853),em=t(13810),eh=t(39290),eu=t(66952),ex=t(61244),ep=t(10827),ej=t(3851),eg=t(2044),ey=t(64167),eZ=t(74480),ef=t(7178),ew=t(95093),eb=t(27166);let{Option:e_}=X.default;var ek=e=>{let{userID:l,userRole:t,accessToken:s,selectedTeam:a,data:o,setData:i,teams:c}=e,[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,j]=(0,n.useState)(null),[g,Z]=n.useState(null),[f,w]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[S,A]=(0,n.useState)(""),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),[T,E]=(0,n.useState)([]),O=new Set,[F,M]=(0,n.useState)(O);(0,n.useEffect)(()=>{(async()=>{try{if(null===l)return;if(null!==s&&null!==t){let e=(await k(s,l,t)).data.map(e=>e.id);console.log("available_model_names:",e),E(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,l,t]),(0,n.useEffect)(()=>{if(c){let e=new Set;c.forEach((l,t)=>{let s=l.team_id;e.add(s)}),M(e)}},[c]);let D=e=>{console.log("handleEditClick:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),P(e),C(!0)},L=async e=>{if(null==s)return;let l=e.token;e.key=l,console.log("handleEditSubmit:",e);let t=await R(s,e);console.log("handleEditSubmit: newKeyValues",t),o&&i(o.map(e=>e.token===l?t:e)),h.ZP.success("Key updated successfully"),C(!1),P(null)},U=async e=>{try{if(null==s||null==e)return;console.log("accessToken: ".concat(s,"; token: ").concat(e.token));let l=await v(s,e.token);console.log("Response:",l),_(l);try{let e=await z(s,l);console.log("Response2:",e);let t=[...l,...e.response];_(t),A(e.predicted_spend),console.log("Combined Data:",t)}catch(e){console.error("There was an error fetching the predicted data",e)}}catch(e){console.error("There was an error fetching the data",e)}};(0,n.useEffect)(()=>{U(f)},[f]);let B=async e=>{console.log("handleDelete:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),null!=o&&(j(e.token),localStorage.removeItem("userData"+l),x(!0))},q=async()=>{if(null!=p&&null!=o){try{await y(s,p);let e=o.filter(e=>e.token!==p);i(e)}catch(e){console.error("Error deleting the key:",e)}x(!1),j(null)}};if(null!=o)return console.log("RERENDER TRIGGERED"),(0,r.jsxs)("div",{children:[(0,r.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4 mt-2",children:[(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Key Alias"}),(0,r.jsx)(eZ.Z,{children:"Secret Key"}),(0,r.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,r.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,r.jsx)(eZ.Z,{children:"Models"}),(0,r.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,r.jsx)(ej.Z,{children:o.map(e=>{if(console.log(e),"litellm-dashboard"===e.team_id)return null;if(a){if(console.log("item team id: ".concat(e.team_id,", knownTeamIDs.has(item.team_id): ").concat(F.has(e.team_id),", selectedTeam id: ").concat(a.team_id)),(null!=a.team_id||null===e.team_id||F.has(e.team_id))&&e.team_id!=a.team_id)return null;console.log("item team id: ".concat(e.team_id,", is returned"))}return(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{style:{maxWidth:"2px",whiteSpace:"pre-wrap",overflow:"hidden"},children:null!=e.key_alias?(0,r.jsx)(Y.Z,{children:e.key_alias}):(0,r.jsx)(Y.Z,{children:"Not Set"})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:e.key_name})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:(()=>{try{return parseFloat(e.spend).toFixed(4)}catch(l){return e.spend}})()})}),(0,r.jsx)(eg.Z,{children:null!=e.max_budget?(0,r.jsx)(Y.Z,{children:e.max_budget}):(0,r.jsx)(Y.Z,{children:"Unlimited"})}),(0,r.jsx)(eg.Z,{children:Array.isArray(e.models)?(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,r.jsx)(r.Fragment,{children:a&&a.models&&a.models.length>0?a.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Team Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l)):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:"all-proxy-models"})})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Team Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,r.jsx)(eg.Z,{children:(0,r.jsxs)(Y.Z,{children:["TPM: ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,r.jsx)("br",{})," RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{onClick:()=>{w(e),Z(e.id)},icon:en.Z,size:"sm"}),(0,r.jsx)(eh.Z,{open:null!==g,onClose:()=>{Z(null),w(null)},children:(0,r.jsx)(eu.Z,{children:f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:[(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Spend"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:(()=>{try{return parseFloat(f.spend).toFixed(4)}catch(e){return f.spend}})()})})]}),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Budget"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.max_budget?(0,r.jsx)(r.Fragment,{children:f.max_budget}):(0,r.jsx)(r.Fragment,{children:"Unlimited"})})})]},e.name),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Expires"}),(0,r.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,r.jsx)("p",{className:"text-tremor-default font-small text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.expires?(0,r.jsx)(r.Fragment,{children:new Date(f.expires).toLocaleString(void 0,{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}):(0,r.jsx)(r.Fragment,{children:"Never"})})})]},e.name)]}),(0,r.jsx)(em.Z,{className:"mt-6 mb-6",children:b&&(0,r.jsx)(ed.Z,{className:"mt-6",data:b,colors:["blue","amber"],index:"date",categories:["spend","predicted_spend"],yAxisWidth:80})}),(0,r.jsx)(H.Z,{children:"Metadata"}),(0,r.jsx)(Y.Z,{children:JSON.stringify(f.metadata)}),(0,r.jsx)(W.Z,{variant:"light",className:"mx-auto flex items-center",onClick:()=>{Z(null),w(null)},children:"Close"})]})})}),(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>D(e)}),(0,r.jsx)(ex.Z,{onClick:()=>B(e),icon:ei.Z,size:"sm"})]})]},e.token)})})]}),u&&(0,r.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,r.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,r.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,r.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Key"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this key ?"})})]})})}),(0,r.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)(W.Z,{onClick:q,color:"red",className:"ml-2",children:"Delete"}),(0,r.jsx)(W.Z,{onClick:()=>{x(!1),j(null)},children:"Cancel"})]})]})]})})]}),I&&(0,r.jsx)(e=>{let{visible:l,onCancel:t,token:s,onSubmit:o}=e,[i]=Q.Z.useForm(),[d,m]=(0,n.useState)(a),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)(!1);return(0,r.jsx)(ee.Z,{title:"Edit Key",visible:l,width:800,footer:null,onOk:()=>{i.validateFields().then(e=>{i.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,r.jsxs)(Q.Z,{form:i,onFinish:L,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{validator:(e,l)=>{let t=l.filter(e=>!d.models.includes(e)&&"all-team-models"!==e&&"all-proxy-models"!==e);return(console.log("errorModels: ".concat(t)),t.length>0)?Promise.reject("Some models are not part of the new team's models - ".concat(t)):Promise.resolve()}}],children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(e_,{value:"all-team-models",children:"All Team Models"},"all-team-models"),d&&d.models?d.models.includes("all-proxy-models")?T.filter(e=>"all-proxy-models"!==e).map(e=>(0,r.jsx)(e_,{value:e,children:e},e)):d.models.map(e=>(0,r.jsx)(e_,{value:e,children:e},e)):T.map(e=>(0,r.jsx)(e_,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: ".concat((null==d?void 0:d.max_budget)!==null&&(null==d?void 0:d.max_budget)!==void 0?null==d?void 0:d.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&d&&null!==d.max_budget&&l>d.max_budget)throw console.log("keyTeam.max_budget: ".concat(d.max_budget)),Error("Budget cannot exceed team max budget: $".concat(d.max_budget))}}],children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"token",name:"token",hidden:!0}),(0,r.jsx)(Q.Z.Item,{label:"Team",name:"team_id",help:"the team this key belongs to",children:(0,r.jsx)(ew.Z,{value:s.team_alias,children:null==c?void 0:c.map((e,l)=>(0,r.jsx)(eb.Z,{value:e.team_id,onClick:()=>m(e),children:e.team_alias},l))})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Edit Key"})})]})})},{visible:N,onCancel:()=>{C(!1),P(null)},token:I,onSubmit:L})]})},ev=e=>{let{userID:l,userRole:t,accessToken:s,userSpend:a}=e;console.log("userSpend: ".concat(a));let[o,i]=(0,n.useState)(null!==a?a:0),[c,d]=(0,n.useState)(0);(0,n.useEffect)(()=>{(async()=>{if(s&&l&&t&&"Admin"===t&&null==a)try{let e=await w(s);e&&(e.spend?i(e.spend):i(0),e.max_budget?d(e.max_budget):d(0))}catch(e){console.error("Error fetching global spend data:",e)}})()},[t,s]),(0,n.useEffect)(()=>{null!==a&&i(a)},[a]);let m=void 0!==o?o.toFixed(4):null;return console.log("spend in view user spend: ".concat(o)),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-tremor-default text-tremor-content dark:text-dark-tremor-content",children:"Total Spend "}),(0,r.jsxs)("p",{className:"text-3xl text-tremor-content-strong dark:text-dark-tremor-content-strong font-semibold",children:["$",m]})]})},eS=e=>{let{teams:l,setSelectedTeam:t}=e,s={models:[],team_id:null,team_alias:"Default Team"},[a,o]=(0,n.useState)(s),i=l?[...l,s]:[s];return(0,r.jsxs)("div",{className:"mt-5 mb-5",children:[(0,r.jsx)(H.Z,{children:"Select Team"}),(0,r.jsx)(Y.Z,{children:"If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys."}),(0,r.jsxs)(Y.Z,{className:"mt-3 mb-3",children:[(0,r.jsx)("b",{children:"Default Team:"})," If no team_id is set for a key, it will be grouped under here."]}),i&&i.length>0?(0,r.jsx)(ew.Z,{defaultValue:"0",children:i.map((e,l)=>(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>t(e),children:e.team_alias},l))}):(0,r.jsxs)(Y.Z,{children:["No team created. ",(0,r.jsx)("b",{children:"Defaulting to personal account."})]})]})},eA=t(37963),eN=t(36083);console.log("isLocal:",!1);var eC=e=>{let{userID:l,userRole:t,teams:s,keys:a,setUserRole:i,userEmail:c,setUserEmail:d,setTeams:m,setKeys:h}=e,[u,x]=(0,n.useState)(null),p=(0,o.useSearchParams)();p.get("viewSpend"),(0,o.useRouter)();let j=p.get("token"),[g,y]=(0,n.useState)(null),[Z,b]=(0,n.useState)(null),[_,v]=(0,n.useState)([]),[S,A]=(0,n.useState)(s?s[0]:null);if(window.addEventListener("beforeunload",function(){sessionStorage.clear()}),(0,n.useEffect)(()=>{if(j){let e=(0,eA.o)(j);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),y(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),i(l)}else console.log("User role not defined");e.user_email?d(e.user_email):console.log("User Email is not set ".concat(e))}}if(l&&g&&t&&!a&&!u){let e=sessionStorage.getItem("userModels"+l);e?v(JSON.parse(e)):(async()=>{try{let e=await f(g,l,t,!1,null,null);if(console.log("received teams in user dashboard: ".concat(Object.keys(e),"; team values: ").concat(Object.entries(e.teams))),"Admin"==t){let e=await w(g);x(e),console.log("globalSpend:",e)}else x(e.user_info);h(e.keys),m(e.teams),A(e.teams?e.teams[0]:null),sessionStorage.setItem("userData"+l,JSON.stringify(e.keys)),sessionStorage.setItem("userSpendData"+l,JSON.stringify(e.user_info));let s=(await k(g,l,t)).data.map(e=>e.id);console.log("available_model_names:",s),v(s),console.log("userModels:",_),sessionStorage.setItem("userModels"+l,JSON.stringify(s))}catch(e){console.error("There was an error fetching the data",e)}})()}},[l,j,g,a,t]),(0,n.useEffect)(()=>{if(null!==a&&null!=S){let e=0;for(let l of a)S.hasOwnProperty("team_id")&&null!==l.team_id&&l.team_id===S.team_id&&(e+=l.spend);b(e)}else if(null!==a){let e=0;for(let l of a)e+=l.spend;b(e)}},[S]),null==l||null==j){let e="/sso/key/generate";return console.log("Full URL:",e),window.location.href=e,null}if(null==g)return null;if(null==t&&i("App Owner"),t&&"Admin Viewer"==t){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to create keys"})]})}return console.log("inside user dashboard, selected team",S),console.log("teamSpend: ".concat(Z)),(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsx)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(ev,{userID:l,userRole:t,accessToken:g,userSpend:Z}),(0,r.jsx)(ek,{userID:l,userRole:t,accessToken:g,selectedTeam:S||null,data:a,setData:h,teams:s}),(0,r.jsx)(er,{userID:l,team:S||null,userRole:t,accessToken:g,data:a,setData:h},S?S.team_id:null),(0,r.jsx)(eS,{teams:s,setSelectedTeam:A})]})})})},eI=t(26780),eP=t(15595),eT=t(6698),eE=t(92836),eO=t(26734),eF=t(41608),eM=t(32126),eR=t(23682),eD=t(52273),eL=t(47047),eU=t(76628),ez=t(38302),eB=t(28683),eq=t(1460),eV=t(78578),eK=e=>{let{modelID:l,accessToken:t}=e,[s,a]=(0,n.useState)(!1),o=async()=>{try{h.ZP.info("Making API Call"),a(!0);let e=await p(t,l);console.log("model delete Response:",e),h.ZP.success("Model ".concat(l," deleted successfully")),a(!1)}catch(e){console.error("Error deleting the model:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(ex.Z,{onClick:()=>a(!0),icon:ei.Z,size:"sm"}),(0,r.jsx)(ee.Z,{open:s,onOk:o,okType:"danger",onCancel:()=>a(!1),children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,r.jsx)(H.Z,{children:"Delete Model"}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsx)("p",{children:"Are you sure you want to delete this model? This action is irreversible."})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("p",{children:["Model ID: ",(0,r.jsx)("b",{children:l})]})})]})})]})},eG=t(97766),eJ=t(46495);let{Title:eW,Link:eY}=eN.default;(s=a||(a={})).OpenAI="OpenAI",s.Azure="Azure",s.Anthropic="Anthropic",s.Google_AI_Studio="Gemini (Google AI Studio)",s.Bedrock="Amazon Bedrock",s.OpenAI_Compatible="OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)",s.Vertex_AI="Vertex AI (Anthropic, Gemini, etc.)";let eH={OpenAI:"openai",Azure:"azure",Anthropic:"anthropic",Google_AI_Studio:"gemini",Bedrock:"bedrock",OpenAI_Compatible:"openai",Vertex_AI:"vertex_ai"};var e$=e=>{var l,t,s;let{accessToken:o,token:i,userRole:c,userID:d}=e,[m,p]=(0,n.useState)({data:[]}),[j,g]=(0,n.useState)([]),[y]=Q.Z.useForm(),[Z,f]=(0,n.useState)(null),[w,_]=(0,n.useState)([]),k=Object.values(a).filter(e=>isNaN(Number(e))),[v,S]=(0,n.useState)("OpenAI"),[A,N]=(0,n.useState)("");if((0,n.useEffect)(()=>{if(!o||!i||!c||!d)return;let e=async()=>{try{let e=await b(o,d,c);if(console.log("Model data response:",e.data),p(e),"Admin"===c&&o){let e=await O(o);console.log("Pending Requests:",j),g(e.requests||[])}}catch(e){console.error("There was an error fetching the model data",e)}};o&&i&&c&&d&&e();let l=async()=>{let e=await u();console.log("received model cost map data: ".concat(Object.keys(e))),f(e)};null==Z&&l()},[o,i,c,d,Z]),!m||!o||!i||!c||!d)return(0,r.jsx)("div",{children:"Loading..."});let C=[];for(let e=0;e(console.log("GET PROVIDER CALLED! - ".concat(Z)),null!=Z&&"object"==typeof Z&&e in Z)?Z[e].litellm_provider:"openai";if(a){let e=a.split("/"),l=e[0];n=1===e.length?h(a):l}else n="openai";r&&(o=null==r?void 0:r.input_cost_per_token,i=null==r?void 0:r.output_cost_per_token,c=null==r?void 0:r.max_tokens),(null==s?void 0:s.litellm_params)&&(d=Object.fromEntries(Object.entries(null==s?void 0:s.litellm_params).filter(e=>{let[l]=e;return"model"!==l&&"api_base"!==l}))),m.data[e].provider=n,m.data[e].input_cost=o,m.data[e].output_cost=i,m.data[e].max_tokens=c,m.data[e].api_base=null==s?void 0:null===(t=s.litellm_params)||void 0===t?void 0:t.api_base,m.data[e].cleanedLitellmParams=d,C.push(s.model_name),console.log(m.data[e])}if(c&&"Admin Viewer"==c){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to view all models"})]})}let I=e=>{console.log("received provider string: ".concat(e));let l=Object.keys(a).find(l=>a[l]===e);if(l){let e=eH[l];console.log("mappingResult: ".concat(e));let t=[];"object"==typeof Z&&Object.entries(Z).forEach(l=>{let[s,a]=l;null!==a&&"object"==typeof a&&"litellm_provider"in a&&(a.litellm_provider===e||a.litellm_provider.includes(e))&&t.push(s)}),_(t),console.log("providerModels: ".concat(w))}},P=async()=>{try{h.ZP.info("Running health check..."),N("");let e=await K(o);N(e)}catch(e){console.error("Error running health check:",e),N("Error running health check")}},T=async e=>{try{let l=Object.values(e.model);console.log("received deployments: ".concat(l)),console.log("received type of deployments: ".concat(typeof l)),l.forEach(async l=>{console.log("litellm_model: ".concat(l));let t={},s={};t.model=l;let a="";for(let[l,r]of Object.entries(e))if("model_name"==l)a+=r;else if("custom_llm_provider"==l)continue;else if("model"==l)continue;else if("base_model"===l)s[l]=r;else if("litellm_extra_params"==l){console.log("litellm_extra_params:",r);let e={};if(r&&void 0!=r){try{e=JSON.parse(r)}catch(e){throw h.ZP.error("Failed to parse LiteLLM Extra Params: "+e,20),Error("Failed to parse litellm_extra_params: "+e)}for(let[l,s]of Object.entries(e))t[l]=s}}else t[l]=r;let r={model_name:a,litellm_params:t,model_info:s},n=await x(o,r);console.log("response for model create call: ".concat(n.data))}),y.resetFields()}catch(e){h.ZP.error("Failed to create model: "+e,20)}};return console.log("selectedProvider: ".concat(v)),console.log("providerModels.length: ".concat(w.length)),(0,r.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,r.jsxs)(eO.Z,{className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,r.jsxs)(eF.Z,{className:"mt-2",children:[(0,r.jsx)(eE.Z,{children:"All Models"}),(0,r.jsx)(eE.Z,{children:"Add Model"}),(0,r.jsx)(eE.Z,{children:(0,r.jsx)("pre",{children:"/health Models"})})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsx)(J.Z,{children:(0,r.jsx)(em.Z,{children:(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Model Name "}),(0,r.jsx)(eZ.Z,{children:"Provider"}),"Admin"===c&&(0,r.jsx)(eZ.Z,{children:"API Base"}),(0,r.jsx)(eZ.Z,{children:"Extra litellm Params"}),(0,r.jsx)(eZ.Z,{children:"Input Price per token ($)"}),(0,r.jsx)(eZ.Z,{children:"Output Price per token ($)"}),(0,r.jsx)(eZ.Z,{children:"Max Tokens"})]})}),(0,r.jsx)(ej.Z,{children:m.data.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:e.model_name})}),(0,r.jsx)(eg.Z,{children:e.provider}),"Admin"===c&&(0,r.jsx)(eg.Z,{children:e.api_base}),(0,r.jsx)(eg.Z,{children:(0,r.jsxs)(eI.Z,{children:[(0,r.jsx)(eT.Z,{children:(0,r.jsx)(Y.Z,{children:"Litellm params"})}),(0,r.jsx)(eP.Z,{children:(0,r.jsx)("pre",{children:JSON.stringify(e.cleanedLitellmParams,null,2)})})]})}),(0,r.jsx)(eg.Z,{children:e.input_cost}),(0,r.jsx)(eg.Z,{children:e.output_cost}),(0,r.jsx)(eg.Z,{children:e.max_tokens}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(eK,{modelID:e.model_info.id,accessToken:o})})]},l))})]})})})}),(0,r.jsxs)(eM.Z,{className:"h-full",children:[(0,r.jsx)(eW,{level:2,children:"Add new model"}),(0,r.jsx)(em.Z,{children:(0,r.jsxs)(Q.Z,{form:y,onFinish:()=>{y.validateFields().then(e=>{T(e)}).catch(e=>{console.error("Validation failed:",e)})},labelCol:{span:10},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Provider:",name:"custom_llm_provider",tooltip:"E.g. OpenAI, Azure OpenAI, Anthropic, Bedrock, etc.",labelCol:{span:10},labelAlign:"left",children:(0,r.jsx)(ew.Z,{value:v.toString(),children:k.map((e,l)=>(0,r.jsx)(eb.Z,{value:e,onClick:()=>{I(e),S(e)},children:e},l))})}),(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Public Model Name",name:"model_name",tooltip:"Model name your users will pass in. Also used for load-balancing, LiteLLM will load balance between all models with this public name.",className:"mb-0",children:(0,r.jsx)(eD.Z,{placeholder:"Vertex AI (Anthropic, Gemini, etc.)"===(s=v.toString())?"gemini-pro":"Anthropic"==s?"claude-3-opus":"Amazon Bedrock"==s?"claude-3-opus":"Gemini (Google AI Studio)"==s?"gemini-pro":"gpt-3.5-turbo"})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Model name your users will pass in."})})]}),(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"LiteLLM Model Name(s)",name:"model",tooltip:"Actual model name used for making litellm.completion() call.",className:"mb-0",children:"Azure"===v?(0,r.jsx)(eD.Z,{placeholder:"Enter model name"}):w.length>0?(0,r.jsx)(eL.Z,{value:w,children:w.map((e,l)=>(0,r.jsx)(eU.Z,{value:e,children:e},l))}):(0,r.jsx)(eD.Z,{placeholder:"gpt-3.5-turbo-0125"})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Actual model name used for making ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/providers",target:"_blank",children:"litellm.completion() call"}),". We'll ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/proxy/reliability#step-1---set-deployments-on-config",target:"_blank",children:"loadbalance"})," models with the same 'public name'"]})})]}),"Amazon Bedrock"!=v&&"Vertex AI (Anthropic, Gemini, etc.)"!=v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Key",name:"api_key",children:(0,r.jsx)(eD.Z,{placeholder:"sk-",type:"password"})}),"OpenAI"==v&&(0,r.jsx)(Q.Z.Item,{label:"Organization ID",name:"organization_id",children:(0,r.jsx)(eD.Z,{placeholder:"[OPTIONAL] my-unique-org"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Project",name:"vertex_project",children:(0,r.jsx)(eD.Z,{placeholder:"adroit-cadet-1234.."})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Location",name:"vertex_location",children:(0,r.jsx)(eD.Z,{placeholder:"us-east-1"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Credentials",name:"vertex_credentials",className:"mb-0",children:(0,r.jsx)(eJ.Z,{name:"file",accept:".json",beforeUpload:e=>{if("application/json"===e.type){let l=new FileReader;l.onload=e=>{if(e.target){let l=e.target.result;y.setFieldsValue({vertex_credentials:l})}},l.readAsText(e)}return!1},onChange(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?h.ZP.success("".concat(e.file.name," file uploaded successfully")):"error"===e.file.status&&h.ZP.error("".concat(e.file.name," file upload failed."))},children:(0,r.jsx)(es.ZP,{icon:(0,r.jsx)(eG.Z,{}),children:"Click to Upload"})})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Give litellm a gcp service account(.json file), so it can make the relevant calls"})})]}),("Azure"==v||"OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)"==v)&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Base",name:"api_base",children:(0,r.jsx)(eD.Z,{placeholder:"https://..."})}),"Azure"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Version",name:"api_version",children:(0,r.jsx)(eD.Z,{placeholder:"2023-07-01-preview"})}),"Azure"==v&&(0,r.jsxs)(Q.Z.Item,{label:"Base Model",name:"base_model",children:[(0,r.jsx)(eD.Z,{placeholder:"azure/gpt-3.5-turbo"}),(0,r.jsxs)(Y.Z,{children:["The actual model your azure deployment uses. Used for accurate cost tracking. Select name from ",(0,r.jsx)(eY,{href:"https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json",target:"_blank",children:"here"})]})]}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Access Key ID",name:"aws_access_key_id",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Secret Access Key",name:"aws_secret_access_key",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Region Name",name:"aws_region_name",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,r.jsx)(eD.Z,{placeholder:"us-east-1"})}),(0,r.jsx)(Q.Z.Item,{label:"LiteLLM Params",name:"litellm_extra_params",tooltip:"Optional litellm params used for making a litellm.completion() call.",className:"mb-0",children:(0,r.jsx)(eV.Z,{rows:4,placeholder:'{ "rpm": 100, "timeout": 0, "stream_timeout": 0 }'})}),(0,r.jsxs)(ez.Z,{children:[(0,r.jsx)(eB.Z,{span:10}),(0,r.jsx)(eB.Z,{span:10,children:(0,r.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Pass JSON of litellm supported params ",(0,r.jsx)(eY,{href:"https://docs.litellm.ai/docs/completion/input",target:"_blank",children:"litellm.completion() call"})]})})]})]}),(0,r.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add Model"})}),(0,r.jsx)(eq.Z,{title:"Get help on our github",children:(0,r.jsx)(eN.default.Link,{href:"https://github.com/BerriAI/litellm/issues",children:"Need Help?"})})]})})]}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(Y.Z,{children:"`/health` will run a very small request through your models configured on litellm"}),(0,r.jsx)(W.Z,{onClick:P,children:"Run `/health`"}),A&&(0,r.jsx)("pre",{children:JSON.stringify(A,null,2)})]})})]})]})})};let{Option:eX}=X.default;var eQ=e=>{let{userID:l,accessToken:t}=e,[s]=Q.Z.useForm(),[a,o]=(0,n.useState)(!1),[i,c]=(0,n.useState)(null),[d,m]=(0,n.useState)([]);(0,n.useEffect)(()=>{(async()=>{try{let e=await k(t,l,"any"),s=[];for(let l=0;l{o(!1),s.resetFields()},x=()=>{o(!1),c(null),s.resetFields()},p=async e=>{try{h.ZP.info("Making API Call"),o(!0),console.log("formValues in create user:",e);let a=await g(t,l,e);console.log("user create Response:",a),c(a.key),h.ZP.success("API user Created"),s.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the user:",e)}};return(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>o(!0),children:"+ Create New User"}),(0,r.jsx)(ee.Z,{title:"Create User",visible:a,width:800,footer:null,onOk:u,onCancel:x,children:(0,r.jsxs)(Q.Z,{form:s,onFinish:p,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",children:(0,r.jsx)(el.Z,{placeholder:"Enter User ID"})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",children:(0,r.jsx)(el.Z,{placeholder:"ai_team"})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsx)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:d.map(e=>(0,r.jsx)(eX,{value:e,children:e},e))})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Duration (eg: 30s, 30h, 30d)",name:"duration",children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,r.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create User"})})]})}),i&&(0,r.jsxs)(ee.Z,{title:"Save Your User",visible:a,onOk:u,onCancel:x,footer:null,children:[(0,r.jsxs)("p",{children:["Please save this secret user somewhere safe and accessible. For security reasons, ",(0,r.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret user, you will need to generate a new one."]}),(0,r.jsx)("p",{children:null!=i?"API user: ".concat(i):"User being created, this might take 30s"})]})]})},e0=e=>{let{accessToken:l,token:t,keys:s,userRole:a,userID:o,setKeys:i}=e,[c,d]=(0,n.useState)(null),[m,h]=(0,n.useState)(null),[u,x]=(0,n.useState)(0),[p,j]=n.useState(null),[g,y]=(0,n.useState)(null);if((0,n.useEffect)(()=>{if(!l||!t||!a||!o)return;let e=async()=>{try{let e=await f(l,null,a,!0,u,25);console.log("user data response:",e),d(e)}catch(e){console.error("There was an error fetching the model data",e)}};l&&t&&a&&o&&e();let s=async()=>{try{let e=await P(l,null);console.log("user data response:",e),h(e)}catch(e){console.error("There was an error fetching the model data",e)}};a&&("Admin"==a||"Admin Viewer"==a)&&!m&&s()},[l,t,a,o,u]),!c||!l||!t||!a||!o)return(0,r.jsx)("div",{children:"Loading..."});let Z=async e=>{try{let t=await P(l,e);console.log("user data response:",t),h(t)}catch(e){console.error("There was an error fetching the model data",e)}};return(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsxs)(J.Z,{className:"gap-2 p-2 h-[75vh] w-full mt-8",children:[(0,r.jsx)(eQ,{userID:o,accessToken:l}),(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4",children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{variant:"line",defaultValue:"1",children:[(0,r.jsx)(eE.Z,{value:"1",children:"Key Owners"}),(0,r.jsx)(eE.Z,{value:"2",children:"End-Users"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(ep.Z,{className:"mt-5",children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"User ID"}),(0,r.jsx)(eZ.Z,{children:"User Email"}),(0,r.jsx)(eZ.Z,{children:"User Models"}),(0,r.jsx)(eZ.Z,{children:"User Spend ($ USD)"}),(0,r.jsx)(eZ.Z,{children:"User Max Budget ($ USD)"}),(0,r.jsx)(eZ.Z,{children:"User API Key Aliases"})]})}),(0,r.jsx)(ej.Z,{children:c.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_id}),(0,r.jsx)(eg.Z,{children:e.user_email}),(0,r.jsx)(eg.Z,{children:e.models&&e.models.length>0?e.models:"All Models"}),(0,r.jsx)(eg.Z,{children:e.spend?e.spend:0}),(0,r.jsx)(eg.Z,{children:e.max_budget?e.max_budget:"Unlimited"}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(J.Z,{numItems:2,children:e&&e.key_aliases&&e.key_aliases.filter(e=>null!==e).length>0?(0,r.jsx)(ec.Z,{size:"xs",color:"indigo",children:e.key_aliases.filter(e=>null!==e).join(", ")}):(0,r.jsx)(ec.Z,{size:"xs",color:"gray",children:"No Keys"})})})]},e.user_id))})]})}),(0,r.jsxs)(eM.Z,{children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsxs)("div",{className:"flex-1 flex justify-between items-center",children:[(0,r.jsx)(Y.Z,{className:"w-1/4 mr-2 text-right",children:"Key"}),(0,r.jsx)(ew.Z,{defaultValue:"1",className:"w-3/4",children:null==s?void 0:s.map((e,l)=>{if(e&&null!==e.key_name&&e.key_name.length>0)return(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>Z(e.token),children:e.key_name},l)})})]})]}),(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"End User"}),(0,r.jsx)(eZ.Z,{children:"Spend"}),(0,r.jsx)(eZ.Z,{children:"Total Events"})]})}),(0,r.jsx)(ej.Z,{children:null==m?void 0:m.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.end_user}),(0,r.jsx)(eg.Z,{children:e.total_spend}),(0,r.jsx)(eg.Z,{children:e.total_events})]},l))})]})]})]})]})}),function(){if(!c)return null;let e=Math.ceil(c.length/25);return(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsxs)("div",{children:["Showing Page ",u+1," of ",e]}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-l focus:outline-none",disabled:0===u,onClick:()=>x(u-1),children:"← Prev"}),(0,r.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-r focus:outline-none",onClick:()=>{x(u+1)},children:"Next →"})]})]})}()]})})},e1=e=>{let{teams:l,searchParams:t,accessToken:s,setTeams:a,userID:o,userRole:i}=e,[c]=Q.Z.useForm(),[d]=Q.Z.useForm(),{Title:m,Paragraph:u}=eN.default,[x,p]=(0,n.useState)(""),[j,g]=(0,n.useState)(!1),[y,f]=(0,n.useState)(l?l[0]:null),[w,b]=(0,n.useState)(!1),[_,v]=(0,n.useState)(!1),[S,A]=(0,n.useState)([]),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),T=e=>{f(e),g(!0)},E=async e=>{let t=e.team_id;if(console.log("handleEditSubmit:",e),null==s)return;let r=await D(s,e);l&&a(l.map(e=>e.team_id===t?r.data:e)),h.ZP.success("Team updated successfully"),g(!1),f(null)},O=async e=>{P(e),C(!0)},F=async()=>{if(null!=I&&null!=l&&null!=s){try{await Z(s,I);let e=l.filter(e=>e.team_id!==I);a(e)}catch(e){console.error("Error deleting the team:",e)}C(!1),P(null)}};(0,n.useEffect)(()=>{(async()=>{try{if(null===o||null===i)return;if(null!==s){let e=(await k(s,o,i)).data.map(e=>e.id);console.log("available_model_names:",e),A(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,o,i]);let R=async e=>{try{if(null!=s){h.ZP.info("Creating Team");let t=await M(s,e);null!==l?a([...l,t]):a([t]),console.log("response for team create call: ".concat(t)),h.ZP.success("Team created"),b(!1)}}catch(e){console.error("Error creating the team:",e),h.ZP.error("Error creating the team: "+e,20)}},U=async e=>{try{if(null!=s&&null!=l){h.ZP.info("Adding Member");let t={role:"user",user_email:e.user_email,user_id:e.user_id},r=await L(s,y.team_id,t);console.log("response for team create call: ".concat(r.data));let n=l.findIndex(e=>(console.log("team.team_id=".concat(e.team_id,"; response.data.team_id=").concat(r.data.team_id)),e.team_id===r.data.team_id));if(console.log("foundIndex: ".concat(n)),-1!==n){let e=[...l];e[n]=r.data,a(e),f(r.data)}v(!1)}}catch(e){console.error("Error creating the team:",e)}};return console.log("received teams ".concat(l)),(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(m,{level:4,children:"All Teams"}),(0,r.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:[(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Team Name"}),(0,r.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,r.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,r.jsx)(eZ.Z,{children:"Models"}),(0,r.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,r.jsx)(ej.Z,{children:l&&l.length>0?l.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.team_alias}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.spend}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.max_budget?e.max_budget:"No limit"}),(0,r.jsx)(eg.Z,{style:{maxWidth:"8-x",whiteSpace:"pre-wrap",overflow:"hidden"},children:Array.isArray(e.models)?(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,r.jsx)(Y.Z,{children:"All Proxy Models"})},l):(0,r.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,r.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,r.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:(0,r.jsxs)(Y.Z,{children:["TPM:"," ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,r.jsx)("br",{}),"RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>T(e)}),(0,r.jsx)(ex.Z,{onClick:()=>O(e.team_id),icon:ei.Z,size:"sm"})]})]},e.team_id)):null})]}),N&&(0,r.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,r.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,r.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,r.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,r.jsx)("div",{className:"sm:flex sm:items-start",children:(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Team"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this team ?"})})]})})}),(0,r.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)(W.Z,{onClick:F,color:"red",className:"ml-2",children:"Delete"}),(0,r.jsx)(W.Z,{onClick:()=>{C(!1),P(null)},children:"Cancel"})]})]})]})})]})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(W.Z,{className:"mx-auto",onClick:()=>b(!0),children:"+ Create New Team"}),(0,r.jsx)(ee.Z,{title:"Create Team",visible:w,width:800,footer:null,onOk:()=>{b(!1),c.resetFields()},onCancel:()=>{b(!1),c.resetFields()},children:(0,r.jsxs)(Q.Z,{form:c,onFinish:R,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S.map(e=>(0,r.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Create Team"})})]})})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(m,{level:4,children:"Team Members"}),(0,r.jsx)(u,{children:"If you belong to multiple teams, this setting controls which teams members you see."}),l&&l.length>0?(0,r.jsx)(ew.Z,{defaultValue:"0",children:l.map((e,l)=>(0,r.jsx)(eb.Z,{value:String(l),onClick:()=>{f(e)},children:e.team_alias},l))}):(0,r.jsxs)(u,{children:["No team created. ",(0,r.jsx)("b",{children:"Defaulting to personal account."})]})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Member Name"}),(0,r.jsx)(eZ.Z,{children:"Role"})]})}),(0,r.jsx)(ej.Z,{children:y?y.members_with_roles.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,r.jsx)(eg.Z,{children:e.role})]},l)):null})]})}),y&&(0,r.jsx)(e=>{let{visible:l,onCancel:t,team:s,onSubmit:a}=e,[n]=Q.Z.useForm();return(0,r.jsx)(ee.Z,{title:"Edit Team",visible:l,width:800,footer:null,onOk:()=>{n.validateFields().then(e=>{a({...e,team_id:s.team_id}),n.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,r.jsxs)(Q.Z,{form:n,onFinish:E,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,r.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,r.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S&&S.map(e=>(0,r.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,r.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,r.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,r.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,r.jsx)(et.Z,{step:1,width:400})}),(0,r.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"team_id",hidden:!0})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Edit Team"})})]})})},{visible:j,onCancel:()=>{g(!1),f(null)},team:y,onSubmit:E})]}),(0,r.jsxs)(G.Z,{numColSpan:1,children:[(0,r.jsx)(W.Z,{className:"mx-auto mb-5",onClick:()=>v(!0),children:"+ Add member"}),(0,r.jsx)(ee.Z,{title:"Add member",visible:_,width:800,footer:null,onOk:()=>{v(!1),d.resetFields()},onCancel:()=>{v(!1),d.resetFields()},children:(0,r.jsxs)(Q.Z,{form:c,onFinish:U,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,r.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]})})]})]})})},e2=t(18190),e4=e=>{let l,{searchParams:t,accessToken:s,showSSOBanner:a}=e,[o]=Q.Z.useForm(),[i]=Q.Z.useForm(),{Title:c,Paragraph:d}=eN.default,[m,u]=(0,n.useState)(""),[x,p]=(0,n.useState)(null),[j,g]=(0,n.useState)(!1),[y,Z]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),[b,_]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1);try{l=window.location.origin}catch(e){l=""}l+="/fallback/login";let S=()=>{v(!1)},A=["proxy_admin","proxy_admin_viewer"];(0,n.useEffect)(()=>{(async()=>{if(null!=s){let e=[],l=await F(s,"proxy_admin_viewer");l.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy viewers: ".concat(l));let t=await F(s,"proxy_admin");t.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy admins: ".concat(t)),console.log("combinedList: ".concat(e)),p(e)}})()},[s]);let N=()=>{w(!1),i.resetFields()},C=()=>{w(!1),i.resetFields()},I=e=>(0,r.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,r.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,r.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,r.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]}),P=(e,l,t)=>(0,r.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"User Role",name:"user_role",labelCol:{span:10},labelAlign:"left",children:(0,r.jsx)(ew.Z,{value:l,children:A.map((e,l)=>(0,r.jsx)(eb.Z,{value:e,children:e},l))})}),(0,r.jsx)(Q.Z.Item,{label:"Team ID",name:"user_id",hidden:!0,initialValue:t,valuePropName:"user_id",className:"mt-8",children:(0,r.jsx)(el.Z,{value:t,disabled:!0})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Update role"})})]}),T=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,null);console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),h.ZP.success("Refresh tab to see updated user role"),w(!1)}}catch(e){console.error("Error creating the key:",e)}},E=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,"proxy_admin_viewer");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),g(!1)}}catch(e){console.error("Error creating the key:",e)}},O=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call"),e.user_email,e.user_id;let l=await U(s,e,"proxy_admin");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),Z(!1)}}catch(e){console.error("Error creating the key:",e)}},M=async e=>{null!=s&&V(s,{environment_variables:{PROXY_BASE_URL:e.proxy_base_url,GOOGLE_CLIENT_ID:e.google_client_id,GOOGLE_CLIENT_SECRET:e.google_client_secret}})};return console.log("admins: ".concat(null==x?void 0:x.length)),(0,r.jsxs)("div",{className:"w-full m-2 mt-2 p-8",children:[(0,r.jsx)(c,{level:4,children:"Admin Access "}),(0,r.jsxs)(d,{children:[a&&(0,r.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/ui#restrict-ui-access",children:"Requires SSO Setup"}),(0,r.jsx)("br",{}),(0,r.jsx)("b",{children:"Proxy Admin: "})," Can create keys, teams, users, add models, etc. ",(0,r.jsx)("br",{}),(0,r.jsx)("b",{children:"Proxy Admin Viewer: "}),"Can just view spend. They cannot create keys, teams or grant users access to new models."," "]}),(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-2 w-full",children:[(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Member Name"}),(0,r.jsx)(eZ.Z,{children:"Role"})]})}),(0,r.jsx)(ej.Z,{children:x?x.map((e,l)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,r.jsx)(eg.Z,{children:e.user_role}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>w(!0)}),(0,r.jsx)(ee.Z,{title:"Update role",visible:f,width:800,footer:null,onOk:N,onCancel:C,children:P(T,e.user_role,e.user_id)})]})]},l)):null})]})})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)("div",{className:"flex justify-start",children:[(0,r.jsx)(W.Z,{className:"mr-4 mb-5",onClick:()=>Z(!0),children:"+ Add admin"}),(0,r.jsx)(ee.Z,{title:"Add admin",visible:y,width:800,footer:null,onOk:()=>{Z(!1),i.resetFields()},onCancel:()=>{Z(!1),i.resetFields()},children:I(O)}),(0,r.jsx)(W.Z,{className:"mb-5",onClick:()=>g(!0),children:"+ Add viewer"}),(0,r.jsx)(ee.Z,{title:"Add viewer",visible:j,width:800,footer:null,onOk:()=>{g(!1),i.resetFields()},onCancel:()=>{g(!1),i.resetFields()},children:I(E)})]})})]}),(0,r.jsxs)(J.Z,{children:[(0,r.jsx)(c,{level:4,children:"Add SSO"}),(0,r.jsxs)("div",{className:"flex justify-start mb-4",children:[(0,r.jsx)(W.Z,{onClick:()=>_(!0),children:"Add SSO"}),(0,r.jsx)(ee.Z,{title:"Add SSO",visible:b,width:800,footer:null,onOk:()=>{_(!1),o.resetFields()},onCancel:()=>{_(!1),o.resetFields()},children:(0,r.jsxs)(Q.Z,{form:o,onFinish:e=>{O(e),M(e),_(!1),v(!0)},labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"Admin Email",name:"user_email",rules:[{required:!0,message:"Please enter the email of the proxy admin"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"PROXY BASE URL",name:"proxy_base_url",rules:[{required:!0,message:"Please enter the proxy base url"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT ID",name:"google_client_id",rules:[{required:!0,message:"Please enter the google client id"}],children:(0,r.jsx)(el.Z.Password,{})}),(0,r.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT SECRET",name:"google_client_secret",rules:[{required:!0,message:"Please enter the google client secret"}],children:(0,r.jsx)(el.Z.Password,{})})]}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})}),(0,r.jsxs)(ee.Z,{title:"SSO Setup Instructions",visible:k,width:800,footer:null,onOk:S,onCancel:()=>{v(!1)},children:[(0,r.jsx)("p",{children:"Follow these steps to complete the SSO setup:"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"1. DO NOT Exit this TAB"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"2. Open a new tab, visit your proxy base url"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"3. Confirm your SSO is configured correctly and you can login on the new Tab"}),(0,r.jsx)(Y.Z,{className:"mt-2",children:"4. If Step 3 is successful, you can close this tab"}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{onClick:S,children:"Done"})})]})]}),(0,r.jsxs)(e2.Z,{title:"Login without SSO",color:"teal",children:["If you need to login without sso, you can access ",(0,r.jsxs)("a",{href:l,target:"_blank",children:[(0,r.jsx)("b",{children:l})," "]})]})]})]})},e8=e=>{let{accessToken:l,userRole:t,userID:s}=e,[a,o]=(0,n.useState)([]),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null),[x,p]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.data)})},[l,t,s]);let j=e=>{p(e),console.log("Selected values:",e)},g=e=>{if(!l)return;let t=Object.fromEntries(Object.entries(e.variables).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t),console.log("updateAlertTypes",x);try{V(l,{environment_variables:t,general_settings:{alert_types:x}})}catch(e){h.ZP.error("Failed to update callback: "+e,20)}h.ZP.success("Callback updated successfully")},y=()=>{l&&d.validateFields().then(e=>{console.log("Form values:",e),"langfuse"===e.callback?(V(l,{environment_variables:{LANGFUSE_PUBLIC_KEY:e.langfusePublicKey,LANGFUSE_SECRET_KEY:e.langfusePrivateKey},litellm_settings:{success_callback:[e.callback]}}),o(a?[...a,e.callback]:[e.callback])):"slack"===e.callback&&(V(l,{general_settings:{alerting:["slack"],alerting_threshold:300},environment_variables:{SLACK_WEBHOOK_URL:e.slackWebhookUrl}}),o(a?[...a,e.callback]:[e.callback])),c(!1),d.resetFields(),u(null)})};return l?(0,r.jsxs)("div",{className:"w-full mx-4",children:[(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,r.jsx)(H.Z,{children:"Logging Callbacks"}),(0,r.jsxs)(em.Z,{children:[(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Callback"}),(0,r.jsx)(eZ.Z,{children:"Callback Env Vars"})]})}),(0,r.jsx)(ej.Z,{children:a.map((e,t)=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(ec.Z,{color:"emerald",children:e.name})}),(0,r.jsxs)(eg.Z,{children:[(0,r.jsx)("ul",{children:Object.entries(e.variables).map(e=>{let[l,t]=e;return(0,r.jsxs)("li",{children:[(0,r.jsx)(Y.Z,{className:"mt-2",children:l}),"LANGFUSE_HOST"===l?(0,r.jsx)("p",{children:"default value=https://cloud.langfuse.com"}):(0,r.jsx)("div",{}),(0,r.jsx)(eD.Z,{name:l,defaultValue:t,type:"password"})]},l)})}),e.all_alert_types&&(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{className:"mt-2",children:"Alerting Types"}),(0,r.jsx)(X.default,{mode:"multiple",style:{width:"100%"},placeholder:"Select Alerting Types",optionLabelProp:"label",onChange:j,defaultValue:e.alerting_types,children:e.all_alert_types.map(e=>(0,r.jsx)(X.default.Option,{value:e,label:e,children:e},e))})]}),(0,r.jsx)(W.Z,{className:"mt-2",onClick:()=>g(e),children:"Save Changes"}),(0,r.jsx)(W.Z,{onClick:()=>B(l,e.name),className:"mx-2",children:"Test Callback"})]})]},t))})]}),(0,r.jsx)(W.Z,{size:"xs",className:"mt-2",onClick:()=>{console.log("Add callback clicked"),c(!0)},children:"Add Callback"})]})]}),(0,r.jsx)(ee.Z,{title:"Add Callback",visible:i,onOk:y,width:800,onCancel:()=>{c(!1),d.resetFields(),u(null)},footer:null,children:(0,r.jsxs)(Q.Z,{form:d,layout:"vertical",onFinish:y,children:[(0,r.jsx)(Q.Z.Item,{label:"Callback",name:"callback",rules:[{required:!0,message:"Please select a callback"}],children:(0,r.jsxs)(X.default,{onChange:e=>{u(e)},children:[(0,r.jsx)(X.default.Option,{value:"langfuse",children:"langfuse"}),(0,r.jsx)(X.default.Option,{value:"slack",children:"slack alerting"})]})}),"langfuse"===m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z.Item,{label:"LANGFUSE_PUBLIC_KEY",name:"langfusePublicKey",rules:[{required:!0,message:"Please enter the public key"}],children:(0,r.jsx)(el.Z.Password,{})}),(0,r.jsx)(Q.Z.Item,{label:"LANGFUSE_PRIVATE_KEY",name:"langfusePrivateKey",rules:[{required:!0,message:"Please enter the private key"}],children:(0,r.jsx)(el.Z.Password,{})})]}),"slack"===m&&(0,r.jsx)(Q.Z.Item,{label:"SLACK_WEBHOOK_URL",name:"slackWebhookUrl",rules:[{required:!0,message:"Please enter the Slack webhook URL"}],children:(0,r.jsx)(el.Z,{})}),(0,r.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,r.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})})]}):null},e3=e=>{let{accessToken:l,userRole:t,userID:s}=e,[a,o]=(0,n.useState)({}),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.router_settings)})},[l,t,s]);let x=e=>{if(!l)return;console.log("router_settings",e);let t=Object.fromEntries(Object.entries(e).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t);try{V(l,{router_settings:t})}catch(e){h.ZP.error("Failed to update router settings: "+e,20)}h.ZP.success("router settings updated successfully")};return l?(0,r.jsx)("div",{className:"w-full mx-4",children:(0,r.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,r.jsx)(H.Z,{children:"Router Settings"}),(0,r.jsx)(em.Z,{children:(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Setting"}),(0,r.jsx)(eZ.Z,{children:"Value"})]})}),(0,r.jsx)(ej.Z,{children:Object.entries(a).map(e=>{let[l,t]=e;return(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:(0,r.jsx)(Y.Z,{children:l})}),(0,r.jsx)(eg.Z,{children:(0,r.jsx)(eD.Z,{name:l,defaultValue:"object"==typeof t?JSON.stringify(t,null,2):t.toString()})})]},l)})})]})}),(0,r.jsx)(G.Z,{children:(0,r.jsx)(W.Z,{className:"mt-2",onClick:()=>x(a),children:"Save Changes"})})]})}):null},e5=t(12968),e6=t(67951);async function e7(e,l,t,s){console.log("isLocal:",!1);let a=window.location.origin,r=new e5.ZP.OpenAI({apiKey:s,baseURL:a,dangerouslyAllowBrowser:!0});try{for await(let s of(await r.chat.completions.create({model:t,stream:!0,messages:[{role:"user",content:e}]})))console.log(s),s.choices[0].delta.content&&l(s.choices[0].delta.content)}catch(e){h.ZP.error("Error occurred while generating model response. Please try again. Error: ".concat(e),20)}}var e9=e=>{let{accessToken:l,token:t,userRole:s,userID:a}=e,[o,i]=(0,n.useState)(""),[c,d]=(0,n.useState)(""),[m,h]=(0,n.useState)([]),[u,x]=(0,n.useState)(void 0),[p,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&a&&(async()=>{try{let e=await k(l,a,s);if(console.log("model_info:",e),(null==e?void 0:e.data.length)>0){let l=e.data.map(e=>({value:e.id,label:e.id}));console.log(l),j(l),x(e.data[0].id)}}catch(e){console.error("Error fetching model info:",e)}})()},[l,a,s]);let g=(e,l)=>{h(t=>{let s=t[t.length-1];return s&&s.role===e?[...t.slice(0,t.length-1),{role:e,content:s.content+l}]:[...t,{role:e,content:l}]})},y=async()=>{if(""!==c.trim()&&o&&t&&s&&a){h(e=>[...e,{role:"user",content:c}]);try{u&&await e7(c,e=>g("assistant",e),u,o)}catch(e){console.error("Error fetching model response",e),g("assistant","Error fetching model response")}d("")}};if(s&&"Admin Viewer"==s){let{Title:e,Paragraph:l}=eN.default;return(0,r.jsxs)("div",{children:[(0,r.jsx)(e,{level:1,children:"Access Denied"}),(0,r.jsx)(l,{children:"Ask your proxy admin for access to test models"})]})}return(0,r.jsx)("div",{style:{width:"100%",position:"relative"},children:(0,r.jsx)(J.Z,{className:"gap-2 p-8 h-[80vh] w-full mt-2",children:(0,r.jsx)(em.Z,{children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{children:[(0,r.jsx)(eE.Z,{children:"Chat"}),(0,r.jsx)(eE.Z,{children:"API Reference"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsxs)(eM.Z,{children:[(0,r.jsx)("div",{className:"sm:max-w-2xl",children:(0,r.jsxs)(J.Z,{numItems:2,children:[(0,r.jsxs)(G.Z,{children:[(0,r.jsx)(Y.Z,{children:"API Key"}),(0,r.jsx)(eD.Z,{placeholder:"Type API Key here",type:"password",onValueChange:i,value:o})]}),(0,r.jsxs)(G.Z,{className:"mx-2",children:[(0,r.jsx)(Y.Z,{children:"Select Model:"}),(0,r.jsx)(X.default,{placeholder:"Select a Model",onChange:e=>{console.log("selected ".concat(e)),x(e)},options:p,style:{width:"200px"}})]})]})}),(0,r.jsxs)(ep.Z,{className:"mt-5",style:{display:"block",maxHeight:"60vh",overflowY:"auto"},children:[(0,r.jsx)(ey.Z,{children:(0,r.jsx)(ef.Z,{children:(0,r.jsx)(eg.Z,{})})}),(0,r.jsx)(ej.Z,{children:m.map((e,l)=>(0,r.jsx)(ef.Z,{children:(0,r.jsx)(eg.Z,{children:"".concat(e.role,": ").concat(e.content)})},l))})]}),(0,r.jsx)("div",{className:"mt-3",style:{position:"absolute",bottom:5,width:"95%"},children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(eD.Z,{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Type your message..."}),(0,r.jsx)(W.Z,{onClick:y,className:"ml-2",children:"Send"})]})})]}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{children:[(0,r.jsx)(eE.Z,{children:"OpenAI Python SDK"}),(0,r.jsx)(eE.Z,{children:"LlamaIndex"}),(0,r.jsx)(eE.Z,{children:"Langchain Py"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nimport openai\nclient = openai.OpenAI(\n api_key="your_api_key",\n base_url="http://0.0.0.0:4000" # proxy base url\n)\n\nresponse = client.chat.completions.create(\n model="gpt-3.5-turbo", # model to use from Models Tab\n messages = [\n {\n "role": "user",\n "content": "this is a test request, write a short poem"\n }\n ],\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-openai-client",\n "generation_id": "openai-client-gen-id22",\n "trace_id": "openai-client-trace-id22",\n "trace_user_id": "openai-client-user-id2"\n }\n }\n)\n\nprint(response)\n '})}),(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nimport os, dotenv\n\nfrom llama_index.llms import AzureOpenAI\nfrom llama_index.embeddings import AzureOpenAIEmbedding\nfrom llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n\nllm = AzureOpenAI(\n engine="azure-gpt-3.5", # model_name on litellm proxy\n temperature=0.0,\n azure_endpoint="http://0.0.0.0:4000", # litellm proxy endpoint\n api_key="sk-1234", # litellm proxy API Key\n api_version="2023-07-01-preview",\n)\n\nembed_model = AzureOpenAIEmbedding(\n deployment_name="azure-embedding-model",\n azure_endpoint="http://0.0.0.0:4000",\n api_key="sk-1234",\n api_version="2023-07-01-preview",\n)\n\n\ndocuments = SimpleDirectoryReader("llama_index_data").load_data()\nservice_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)\nindex = VectorStoreIndex.from_documents(documents, service_context=service_context)\n\nquery_engine = index.as_query_engine()\nresponse = query_engine.query("What did the author do growing up?")\nprint(response)\n\n '})}),(0,r.jsx)(eM.Z,{children:(0,r.jsx)(e6.Z,{language:"python",children:'\nfrom langchain.chat_models import ChatOpenAI\nfrom langchain.prompts.chat import (\n ChatPromptTemplate,\n HumanMessagePromptTemplate,\n SystemMessagePromptTemplate,\n)\nfrom langchain.schema import HumanMessage, SystemMessage\n\nchat = ChatOpenAI(\n openai_api_base="http://0.0.0.0:8000",\n model = "gpt-3.5-turbo",\n temperature=0.1,\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-langchain-client",\n "generation_id": "langchain-client-gen-id22",\n "trace_id": "langchain-client-trace-id22",\n "trace_user_id": "langchain-client-user-id2"\n }\n }\n)\n\nmessages = [\n SystemMessage(\n content="You are a helpful assistant that im using to make a test request to."\n ),\n HumanMessage(\n content="test from litellm. tell me why it\'s amazing in 1 sentence"\n ),\n]\nresponse = chat(messages)\n\nprint(response)\n\n '})})]})]})})]})]})})})})},le=t(33509),ll=t(95781);let{Sider:lt}=le.default;var ls=e=>{let{setPage:l,userRole:t,defaultSelectedKey:s}=e;return"Admin Viewer"==t?(0,r.jsx)(le.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,r.jsx)(lt,{width:120,children:(0,r.jsxs)(ll.Z,{mode:"inline",defaultSelectedKeys:s||["4"],style:{height:"100%",borderRight:0},children:[(0,r.jsx)(ll.Z.Item,{onClick:()=>l("api-keys"),children:"API Keys"},"4"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("models"),children:"Models"},"2"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("llm-playground"),children:"Chat UI"},"3"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("usage"),children:"Usage"},"1")]})})}):(0,r.jsx)(le.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,r.jsx)(lt,{width:120,children:(0,r.jsxs)(ll.Z,{mode:"inline",defaultSelectedKeys:s||["1"],style:{height:"100%",borderRight:0},children:[(0,r.jsx)(ll.Z.Item,{onClick:()=>l("api-keys"),children:(0,r.jsx)(Y.Z,{children:"API Keys"})},"1"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("llm-playground"),children:(0,r.jsx)(Y.Z,{children:"Test Key"})},"3"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("models"),children:(0,r.jsx)(Y.Z,{children:"Models"})},"2"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("teams"),children:(0,r.jsx)(Y.Z,{children:"Teams"})},"6"):null,(0,r.jsx)(ll.Z.Item,{onClick:()=>l("usage"),children:(0,r.jsx)(Y.Z,{children:"Usage"})},"4"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("users"),children:(0,r.jsx)(Y.Z,{children:"Users"})},"5"):null,(0,r.jsx)(ll.Z.Item,{onClick:()=>l("settings"),children:(0,r.jsx)(Y.Z,{children:"Integrations"})},"8"),(0,r.jsx)(ll.Z.Item,{onClick:()=>l("general-settings"),children:(0,r.jsx)(Y.Z,{children:"Settings"})},"9"),"Admin"==t?(0,r.jsx)(ll.Z.Item,{onClick:()=>l("admin-panel"),children:(0,r.jsx)(Y.Z,{children:"Admin"})},"7"):null]})})})},la=t(67989),lr=e=>{let{accessToken:l,token:t,userRole:s,userID:a}=e,o=new Date,[i,c]=(0,n.useState)([]),[d,m]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)([]),[j,g]=(0,n.useState)([]),[y,Z]=(0,n.useState)([]),[f,w]=(0,n.useState)([]),[b,k]=(0,n.useState)([]),[v,P]=(0,n.useState)([]),[O,F]=(0,n.useState)([]),M=new Date(o.getFullYear(),o.getMonth(),1),R=new Date(o.getFullYear(),o.getMonth()+1,0),D=U(M),L=U(R);function U(e){let l=e.getFullYear(),t=e.getMonth()+1,s=e.getDate();return"".concat(l,"-").concat(t<10?"0"+t:t,"-").concat(s<10?"0"+s:s)}return console.log("Start date is ".concat(D)),console.log("End date is ".concat(L)),(0,n.useEffect)(()=>{l&&t&&s&&a&&(async()=>{try{if(console.log("user role: ".concat(s)),"Admin"==s||"Admin Viewer"==s){let e=await C(l);c(e);let t=(await I(l)).map(e=>({key:(e.key_name||e.key_alias||e.api_key).substring(0,10),spend:e.total_spend}));m(t);let s=(await T(l)).map(e=>({key:e.model,spend:e.total_spend}));u(s);let a=await S(l);console.log("teamSpend",a),g(a.daily_spend),w(a.teams);let r=a.total_spend_per_team;r=r.map(e=>(e.name=e.team_id||"",e.value=e.total_spend||0,e)),k(r);let n=await A(l);Z(n.top_10_tags)}else"App Owner"==s&&await N(l,t,s,a,D,L).then(async e=>{if(console.log("result from spend logs call",e),"daily_spend"in e){let l=e.daily_spend;console.log("daily spend",l),c(l);let t=e.top_api_keys;m(t)}else{let t=(await E(l,function(e){let l=[];e.forEach(e=>{Object.entries(e).forEach(e=>{let[t,s]=e;"spend"!==t&&"startTime"!==t&&"models"!==t&&"users"!==t&&l.push({key:t,spend:s})})}),l.sort((e,l)=>Number(l.spend)-Number(e.spend));let t=l.slice(0,5).map(e=>e.key);return console.log("topKeys: ".concat(Object.keys(t[0]))),t}(e))).info.map(e=>({key:(e.key_name||e.key_alias).substring(0,10),spend:e.spend}));m(t),p(function(e){let l={};e.forEach(e=>{Object.entries(e.users).forEach(e=>{let[t,s]=e;""!==t&&null!=t&&"None"!=t&&(l[t]||(l[t]=0),l[t]+=s)})});let t=Object.entries(l).map(e=>{let[l,t]=e;return{user_id:l,spend:t}});t.sort((e,l)=>l.spend-e.spend);let s=t.slice(0,5);return console.log("topKeys: ".concat(Object.values(s[0]))),s}(e)),c(e)}});let e=await _(l,a,s);console.log("Model metrics response:",e);let r=[...e].sort((e,l)=>l.avg_latency_seconds-e.avg_latency_seconds);console.log("Sorted by latency:",r),P(e),F(r)}catch(e){console.error("There was an error fetching the data",e)}})()},[l,t,s,a,D,L]),(0,r.jsxs)("div",{style:{width:"100%"},className:"p-8",children:[(0,r.jsx)(ev,{userID:a,userRole:s,accessToken:l,userSpend:null}),(0,r.jsxs)(eO.Z,{children:[(0,r.jsxs)(eF.Z,{className:"mt-2",children:[(0,r.jsx)(eE.Z,{children:"All Up"}),(0,r.jsx)(eE.Z,{children:"Team Based Usage"}),(0,r.jsx)(eE.Z,{children:"Tag Based Usage"}),(0,r.jsx)(eE.Z,{children:"Model Based Usage"})]}),(0,r.jsxs)(eR.Z,{children:[(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,r.jsx)(G.Z,{numColSpan:2,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Monthly Spend"}),(0,r.jsx)(ed.Z,{data:i,index:"date",categories:["spend"],colors:["blue"],valueFormatter:e=>"$ ".concat(new Intl.NumberFormat("us").format(e).toString()),yAxisWidth:100,tickGap:5})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top API Keys"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:d,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:80,tickGap:5,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top Users"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:x,index:"user_id",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,r.jsx)(G.Z,{numColSpan:1,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Top Models"}),(0,r.jsx)(ed.Z,{className:"mt-4 h-40",data:h,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})})]})}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,r.jsxs)(G.Z,{numColSpan:2,children:[(0,r.jsxs)(em.Z,{className:"mb-2",children:[(0,r.jsx)(H.Z,{children:"Total Spend Per Team"}),(0,r.jsx)(la.Z,{data:b})]}),(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Daily Spend Per Team"}),(0,r.jsx)(ed.Z,{className:"h-72",data:j,showLegend:!0,index:"date",categories:f,yAxisWidth:80,stack:!0})]})]}),(0,r.jsx)(G.Z,{numColSpan:2})]})}),(0,r.jsx)(eM.Z,{children:(0,r.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full mb-4",children:[(0,r.jsx)(G.Z,{numColSpan:2,children:(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Spend Per Tag - Last 30 Days"}),(0,r.jsxs)(Y.Z,{children:["Get Started Tracking cost per tag ",(0,r.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/enterprise#tracking-spend-for-custom-tags",target:"_blank",children:"here"})]}),(0,r.jsxs)(ep.Z,{children:[(0,r.jsx)(ey.Z,{children:(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eZ.Z,{children:"Tag"}),(0,r.jsx)(eZ.Z,{children:"Spend"}),(0,r.jsx)(eZ.Z,{children:"Requests"})]})}),(0,r.jsx)(ej.Z,{children:y.map(e=>(0,r.jsxs)(ef.Z,{children:[(0,r.jsx)(eg.Z,{children:e.name}),(0,r.jsx)(eg.Z,{children:e.value}),(0,r.jsx)(eg.Z,{children:e.log_count})]},e.name))})]})]})}),(0,r.jsx)(G.Z,{numColSpan:2})]})}),(0,r.jsxs)(eM.Z,{children:[(0,r.jsxs)(em.Z,{children:[(0,r.jsx)(H.Z,{children:"Number Requests per Model"}),(0,r.jsx)(ed.Z,{data:v,className:"h-[50vh]",index:"model",categories:["num_requests"],colors:["blue"],yAxisWidth:400,layout:"vertical",tickGap:5})]}),(0,r.jsxs)(em.Z,{className:"mt-4",children:[(0,r.jsx)(H.Z,{children:"Latency Per Model"}),(0,r.jsx)(ed.Z,{data:O,className:"h-[50vh]",index:"model",categories:["avg_latency_seconds"],colors:["red"],yAxisWidth:400,layout:"vertical",tickGap:5})]})]})]})]})]})},ln=()=>{let{Title:e,Paragraph:l}=eN.default,[t,s]=(0,n.useState)(""),[a,i]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[h,u]=(0,n.useState)(null),[x,p]=(0,n.useState)(!0),j=(0,o.useSearchParams)(),g=j.get("userID"),y=j.get("token"),[Z,f]=(0,n.useState)("api-keys"),[w,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(y){let e=(0,eA.o)(y);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),b(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e.toLowerCase())),console.log("Received user role length: ".concat(e.toLowerCase().length)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),s(l),"Admin Viewer"==l&&f("usage")}else console.log("User role not defined");e.user_email?i(e.user_email):console.log("User Email is not set ".concat(e)),e.login_method?p("username_password"==e.login_method):console.log("User Email is not set ".concat(e))}}},[y]),(0,r.jsx)(n.Suspense,{fallback:(0,r.jsx)("div",{children:"Loading..."}),children:(0,r.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,r.jsx)(m,{userID:g,userRole:t,userEmail:a,showSSOBanner:x}),(0,r.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)(ls,{setPage:f,userRole:t,defaultSelectedKey:null})}),"api-keys"==Z?(0,r.jsx)(eC,{userID:g,userRole:t,teams:c,keys:h,setUserRole:s,userEmail:a,setUserEmail:i,setTeams:d,setKeys:u}):"models"==Z?(0,r.jsx)(e$,{userID:g,userRole:t,token:y,accessToken:w}):"llm-playground"==Z?(0,r.jsx)(e9,{userID:g,userRole:t,token:y,accessToken:w}):"users"==Z?(0,r.jsx)(e0,{userID:g,userRole:t,token:y,keys:h,accessToken:w,setKeys:u}):"teams"==Z?(0,r.jsx)(e1,{teams:c,setTeams:d,searchParams:j,accessToken:w,userID:g,userRole:t}):"admin-panel"==Z?(0,r.jsx)(e4,{setTeams:d,searchParams:j,accessToken:w,showSSOBanner:x}):"settings"==Z?(0,r.jsx)(e8,{userID:g,userRole:t,accessToken:w}):"general-settings"==Z?(0,r.jsx)(e3,{userID:g,userRole:t,accessToken:w}):(0,r.jsx)(lr,{userID:g,userRole:t,token:y,accessToken:w})]})]})})}}},function(e){e.O(0,[968,971,69,744],function(){return e(e.s=20661)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/app/page-cb85da9a307105a0.js b/ui/litellm-dashboard/out/_next/static/chunks/app/page-cb85da9a307105a0.js deleted file mode 100644 index f853f5dff..000000000 --- a/ui/litellm-dashboard/out/_next/static/chunks/app/page-cb85da9a307105a0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{20661:function(e,l,t){Promise.resolve().then(t.bind(t,21225))},21225:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ls}});var s,r,a=t(3827),n=t(64090),o=t(47907),i=t(8792),c=t(40491),d=t(65270),m=e=>{let{userID:l,userRole:t,userEmail:s,showSSOBanner:r}=e;console.log("User ID:",l),console.log("userEmail:",s),console.log("showSSOBanner:",r);let n=[{key:"1",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["Role: ",t]}),(0,a.jsxs)("p",{children:["ID: ",l]})]})}];return(0,a.jsxs)("nav",{className:"left-0 right-0 top-0 flex justify-between items-center h-12 mb-4",children:[(0,a.jsx)("div",{className:"text-left my-2 absolute top-0 left-0",children:(0,a.jsx)("div",{className:"flex flex-col items-center",children:(0,a.jsx)(i.default,{href:"/",children:(0,a.jsx)("button",{className:"text-gray-800 text-2xl py-1 rounded text-center",children:(0,a.jsx)("img",{src:"/get_image",width:200,height:200,alt:"LiteLLM Brand",className:"mr-2"})})})})}),(0,a.jsxs)("div",{className:"text-right mx-4 my-2 absolute top-0 right-0 flex items-center justify-end space-x-2",children:[r?(0,a.jsx)("div",{style:{padding:"6px",borderRadius:"8px"},children:(0,a.jsx)("a",{href:"https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat",target:"_blank",style:{fontSize:"14px",textDecoration:"underline"},children:"Request hosted proxy"})}):null,(0,a.jsx)("div",{style:{border:"1px solid #391085",padding:"6px",borderRadius:"8px"},children:(0,a.jsx)(c.Z,{menu:{items:n},children:(0,a.jsx)(d.Z,{children:s})})})]})]})},h=t(80588);let u=async()=>{try{let e=await fetch("https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"),l=await e.json();return console.log("received data: ".concat(l)),l}catch(e){throw console.error("Failed to get model cost map:",e),e}},x=async(e,l)=>{try{let t=await fetch("/model/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model created successfully. Wait 60s and refresh on 'All Models' page"),s}catch(e){throw console.error("Failed to create key:",e),e}},p=async(e,l)=>{console.log("model_id in model delete call: ".concat(l));try{let t=await fetch("/model/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({id:l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),h.ZP.success("Model deleted successfully. Restart server to see this."),s}catch(e){throw console.error("Failed to create key:",e),e}},j=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/key/generate",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},g=async(e,l,t)=>{try{if(console.log("Form Values in keyCreateCall:",t),t.description&&(t.metadata||(t.metadata={}),t.metadata.description=t.description,delete t.description,t.metadata=JSON.stringify(t.metadata)),t.metadata){console.log("formValues.metadata:",t.metadata);try{t.metadata=JSON.parse(t.metadata)}catch(e){throw h.ZP.error("Failed to parse metadata: "+e,20),Error("Failed to parse metadata: "+e)}}console.log("Form Values after check:",t);let s=await fetch("/user/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({user_id:l,...t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},y=async(e,l)=>{try{console.log("in keyDeleteCall:",l);let t=await fetch("/key/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},Z=async(e,l)=>{try{console.log("in teamDeleteCall:",l);let t=await fetch("/team/delete",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_ids:[l]})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete team: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to delete key:",e),e}},f=async function(e,l,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;try{let n="/user/info";"App Owner"==t&&l&&(n="".concat(n,"?user_id=").concat(l)),console.log("in userInfoCall viewAll=",s),s&&a&&null!=r&&void 0!=r&&(n="".concat(n,"?view_all=true&page=").concat(r,"&page_size=").concat(a));let o=await fetch(n,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!o.ok){let e=await o.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let i=await o.json();return console.log("API Response:",i),i}catch(e){throw console.error("Failed to create key:",e),e}},w=async e=>{try{let l=await fetch("/global/spend",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},b=async(e,l,t)=>{try{let l=await fetch("/v2/model/info",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log("modelInfoCall:",t),t}catch(e){throw console.error("Failed to create key:",e),e}},_=async(e,l,t)=>{try{let l=await fetch("/model/metrics",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},k=async(e,l,t)=>{try{let l=await fetch("/models",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to create key:",e),e}},v=async(e,l)=>{try{let t="/global/spend/logs";console.log("in keySpendLogsCall:",t);let s=await fetch("".concat(t,"?api_key=").concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to create key:",e),e}},S=async e=>{try{let l="/global/spend/teams";console.log("in teamSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},A=async e=>{try{let l="/global/spend/tags";console.log("in tagsSpendLogsCall:",l);let t=await fetch("".concat(l),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},N=async(e,l,t,s,r,a)=>{try{console.log("user role in spend logs call: ".concat(t));let l="/spend/logs";l="App Owner"==t?"".concat(l,"?user_id=").concat(s,"&start_date=").concat(r,"&end_date=").concat(a):"".concat(l,"?start_date=").concat(r,"&end_date=").concat(a);let n=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!n.ok){let e=await n.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let o=await n.json();return console.log(o),o}catch(e){throw console.error("Failed to create key:",e),e}},C=async e=>{try{let l=await fetch("/global/spend/logs",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},I=async e=>{try{let l=await fetch("/global/spend/keys?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},P=async(e,l)=>{try{l&&JSON.stringify({api_key:l});let t={method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}};l&&(t.body=JSON.stringify({api_key:l}));let s=await fetch("/global/spend/end_users",t);if(!s.ok){let e=await s.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to create key:",e),e}},T=async e=>{try{let l=await fetch("/global/spend/models?limit=5",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let t=await l.json();return console.log(t),t}catch(e){throw console.error("Failed to create key:",e),e}},E=async(e,l)=>{try{let t=await fetch("/v2/key/info",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({keys:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},O=async e=>{try{let l="/user/get_requests";console.log("in userGetRequesedtModelsCall:",l);let t=await fetch(l,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to get requested models:",e),e}},F=async(e,l)=>{try{let t="/user/get_users?role=".concat(l);console.log("in userGetAllUsersCall:",t);let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to delete key: "+e,20),Error("Network response was not ok")}let r=await s.json();return console.log(r),r}catch(e){throw console.error("Failed to get requested models:",e),e}},M=async(e,l)=>{try{console.log("Form Values in teamCreateCall:",l);let t=await fetch("/team/new",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("API Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},R=async(e,l)=>{try{console.log("Form Values in keyUpdateCall:",l);let t=await fetch("/key/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update key Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},D=async(e,l)=>{try{console.log("Form Values in teamUpateCall:",l);let t=await fetch("/team/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error("Failed to update team: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let s=await t.json();return console.log("Update Team Response:",s),s}catch(e){throw console.error("Failed to create key:",e),e}},L=async(e,l,t)=>{try{console.log("Form Values in teamMemberAddCall:",t);let s=await fetch("/team/member_add",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({team_id:l,member:t})});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let r=await s.json();return console.log("API Response:",r),r}catch(e){throw console.error("Failed to create key:",e),e}},U=async(e,l,t)=>{try{console.log("Form Values in userUpdateUserCall:",l);let s={...l};null!==t&&(s.user_role=t),s=JSON.stringify(s);let r=await fetch("/user/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:s});if(!r.ok){let e=await r.text();throw h.ZP.error("Failed to create key: "+e,20),console.error("Error response from the server:",e),Error("Network response was not ok")}let a=await r.json();return console.log("API Response:",a),a}catch(e){throw console.error("Failed to create key:",e),e}},z=async(e,l)=>{try{let t=await fetch("/global/predict/spend/logs",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({data:l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}let s=await t.json();return console.log(s),s}catch(e){throw console.error("Failed to create key:",e),e}},B=async(e,l)=>{try{let t="/health/services?service=".concat(l);console.log("Checking Slack Budget Alerts service health");let s=await fetch(t,{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!s.ok){let e=await s.text();throw h.ZP.error("Failed ".concat(l," service health check ")+e),Error(e)}let r=await s.json();return h.ZP.success("Test request to ".concat(l," made - check logs on ").concat(l," dashboard!")),r}catch(e){throw console.error("Failed to perform health check:",e),e}},q=async(e,l,t)=>{try{let l=await fetch("/get/config/callbacks",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to get callbacks:",e),e}},V=async(e,l)=>{try{let t=await fetch("/config/update",{method:"POST",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"},body:JSON.stringify({...l})});if(!t.ok){let e=await t.text();throw h.ZP.error(e,20),Error("Network response was not ok")}return await t.json()}catch(e){throw console.error("Failed to set callbacks:",e),e}},G=async e=>{try{let l=await fetch("/health",{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});if(!l.ok){let e=await l.text();throw h.ZP.error(e),Error("Network response was not ok")}return await l.json()}catch(e){throw console.error("Failed to call /health:",e),e}};var K=t(10384),J=t(46453),W=t(2179),Y=t(71801),H=t(42440),$=t(42308),X=t(50670),Q=t(81583),ee=t(99129),el=t(44839),et=t(88707),es=t(1861);let{Option:er}=X.default;var ea=e=>{let{userID:l,team:t,userRole:s,accessToken:r,data:o,setData:i}=e,[c]=Q.Z.useForm(),[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[y,Z]=(0,n.useState)([]),f=()=>{m(!1),c.resetFields()},w=()=>{m(!1),x(null),c.resetFields()};(0,n.useEffect)(()=>{(async()=>{try{if(null===l||null===s)return;if(null!==r){let e=(await k(r,l,s)).data.map(e=>e.id);console.log("available_model_names:",e),Z(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[r,l,s]);let b=async e=>{try{h.ZP.info("Making API Call"),m(!0);let t=await j(r,l,e);console.log("key create Response:",t),i(e=>e?[...e,t]:[t]),x(t.key),g(t.soft_budget),h.ZP.success("API Key Created"),c.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the key:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>m(!0),children:"+ Create New Key"}),(0,a.jsx)(ee.Z,{title:"Create Key",visible:d,width:800,footer:null,onOk:f,onCancel:w,children:(0,a.jsxs)(Q.Z,{form:c,onFinish:b,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:["App Owner"===s||"Admin"===s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",hidden:!0,initialValue:t?t.team_id:null,valuePropName:"team_id",className:"mt-8",children:(0,a.jsx)(el.Z,{value:t?t.team_alias:"",disabled:!0})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{required:!0,message:"Please select a model"}],help:"required",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(er,{value:"all-team-models",children:"All Team Models"},"all-team-models"),t&&t.models?t.models.includes("all-proxy-models")?y.map(e=>(0,a.jsx)(er,{value:e,children:e},e)):t.models.map(e=>(0,a.jsx)(er,{value:e,children:e},e)):y.map(e=>(0,a.jsx)(er,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: $".concat((null==t?void 0:t.max_budget)!==null&&(null==t?void 0:t.max_budget)!==void 0?null==t?void 0:t.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.max_budget&&l>t.max_budget)throw Error("Budget cannot exceed team max budget: $".concat(t.max_budget))}}],children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Reset Budget",name:"budget_duration",help:"Team Reset Budget: ".concat((null==t?void 0:t.budget_duration)!==null&&(null==t?void 0:t.budget_duration)!==void 0?null==t?void 0:t.budget_duration:"None"),children:(0,a.jsxs)(X.default,{defaultValue:null,placeholder:"n/a",children:[(0,a.jsx)(X.default.Option,{value:"24h",children:"daily"}),(0,a.jsx)(X.default.Option,{value:"30d",children:"monthly"})]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Tokens per minute Limit (TPM)",name:"tpm_limit",help:"TPM cannot exceed team TPM limit: ".concat((null==t?void 0:t.tpm_limit)!==null&&(null==t?void 0:t.tpm_limit)!==void 0?null==t?void 0:t.tpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.tpm_limit&&l>t.tpm_limit)throw Error("TPM limit cannot exceed team TPM limit: ".concat(t.tpm_limit))}}],children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Requests per minute Limit (RPM)",name:"rpm_limit",help:"RPM cannot exceed team RPM limit: ".concat((null==t?void 0:t.rpm_limit)!==null&&(null==t?void 0:t.rpm_limit)!==void 0?null==t?void 0:t.rpm_limit:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&t&&null!==t.rpm_limit&&l>t.rpm_limit)throw Error("RPM limit cannot exceed team RPM limit: ".concat(t.rpm_limit))}}],children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Expire Key (eg: 30s, 30h, 30d)",name:"duration",className:"mt-8",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,a.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID (Contact Group)",name:"team_id",children:(0,a.jsx)(el.Z,{placeholder:"default team (create a new team)"})}),(0,a.jsx)(Q.Z.Item,{label:"Description",name:"description",children:(0,a.jsx)(el.Z.TextArea,{placeholder:"Enter description",rows:4})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create Key"})})]})}),u&&(0,a.jsx)(ee.Z,{visible:d,onOk:f,onCancel:w,footer:null,children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,a.jsx)(H.Z,{children:"Save your Key"}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("p",{children:["Please save this secret key somewhere safe and accessible. For security reasons, ",(0,a.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret key, you will need to generate a new one."]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:null!=u?(0,a.jsxs)("div",{children:[(0,a.jsx)(Y.Z,{className:"mt-3",children:"API Key:"}),(0,a.jsx)("div",{style:{background:"#f8f8f8",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:(0,a.jsx)("pre",{style:{wordWrap:"break-word",whiteSpace:"normal"},children:u})}),(0,a.jsx)($.CopyToClipboard,{text:u,onCopy:()=>{h.ZP.success("API Key copied to clipboard")},children:(0,a.jsx)(W.Z,{className:"mt-3",children:"Copy API Key"})})]}):(0,a.jsx)(Y.Z,{children:"Key being created, this might take 30s"})})]})})]})},en=t(9454),eo=t(98941),ei=t(33393),ec=t(5),ed=t(9853),em=t(13810),eh=t(39290),eu=t(66952),ex=t(61244),ep=t(10827),ej=t(3851),eg=t(2044),ey=t(64167),eZ=t(74480),ef=t(7178),ew=t(95093),eb=t(27166);let{Option:e_}=X.default;var ek=e=>{let{userID:l,userRole:t,accessToken:s,selectedTeam:r,data:o,setData:i,teams:c}=e,[d,m]=(0,n.useState)(!1),[u,x]=(0,n.useState)(!1),[p,j]=(0,n.useState)(null),[g,Z]=n.useState(null),[f,w]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[S,A]=(0,n.useState)(""),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),[T,E]=(0,n.useState)([]),O=new Set,[F,M]=(0,n.useState)(O);(0,n.useEffect)(()=>{(async()=>{try{if(null===l)return;if(null!==s&&null!==t){let e=(await k(s,l,t)).data.map(e=>e.id);console.log("available_model_names:",e),E(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,l,t]),(0,n.useEffect)(()=>{if(c){let e=new Set;c.forEach((l,t)=>{let s=l.team_id;e.add(s)}),M(e)}},[c]);let D=e=>{console.log("handleEditClick:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),P(e),C(!0)},L=async e=>{if(null==s)return;let l=e.token;e.key=l,console.log("handleEditSubmit:",e);let t=await R(s,e);console.log("handleEditSubmit: newKeyValues",t),o&&i(o.map(e=>e.token===l?t:e)),h.ZP.success("Key updated successfully"),C(!1),P(null)},U=async e=>{try{if(null==s||null==e)return;console.log("accessToken: ".concat(s,"; token: ").concat(e.token));let l=await v(s,e.token);console.log("Response:",l),_(l);try{let e=await z(s,l);console.log("Response2:",e);let t=[...l,...e.response];_(t),A(e.predicted_spend),console.log("Combined Data:",t)}catch(e){console.error("There was an error fetching the predicted data",e)}}catch(e){console.error("There was an error fetching the data",e)}};(0,n.useEffect)(()=>{U(f)},[f]);let B=async e=>{console.log("handleDelete:",e),null==e.token&&null!==e.token_id&&(e.token=e.token_id),null!=o&&(j(e.token),localStorage.removeItem("userData"+l),x(!0))},q=async()=>{if(null!=p&&null!=o){try{await y(s,p);let e=o.filter(e=>e.token!==p);i(e)}catch(e){console.error("Error deleting the key:",e)}x(!1),j(null)}};if(null!=o)return console.log("RERENDER TRIGGERED"),(0,a.jsxs)("div",{children:[(0,a.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4 mt-2",children:[(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Key Alias"}),(0,a.jsx)(eZ.Z,{children:"Secret Key"}),(0,a.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,a.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,a.jsx)(eZ.Z,{children:"Models"}),(0,a.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,a.jsx)(ej.Z,{children:o.map(e=>{if(console.log(e),"litellm-dashboard"===e.team_id)return null;if(r){if(console.log("item team id: ".concat(e.team_id,", knownTeamIDs.has(item.team_id): ").concat(F.has(e.team_id),", selectedTeam id: ").concat(r.team_id)),(null!=r.team_id||null===e.team_id||F.has(e.team_id))&&e.team_id!=r.team_id)return null;console.log("item team id: ".concat(e.team_id,", is returned"))}return(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{style:{maxWidth:"2px",whiteSpace:"pre-wrap",overflow:"hidden"},children:null!=e.key_alias?(0,a.jsx)(Y.Z,{children:e.key_alias}):(0,a.jsx)(Y.Z,{children:"Not Set"})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:e.key_name})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:(()=>{try{return parseFloat(e.spend).toFixed(4)}catch(l){return e.spend}})()})}),(0,a.jsx)(eg.Z,{children:null!=e.max_budget?(0,a.jsx)(Y.Z,{children:e.max_budget}):(0,a.jsx)(Y.Z,{children:"Unlimited"})}),(0,a.jsx)(eg.Z,{children:Array.isArray(e.models)?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,a.jsx)(a.Fragment,{children:r&&r.models&&r.models.length>0?r.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Team Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l)):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:"all-proxy-models"})})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):"all-team-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Team Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,a.jsx)(eg.Z,{children:(0,a.jsxs)(Y.Z,{children:["TPM: ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,a.jsx)("br",{})," RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{onClick:()=>{w(e),Z(e.id)},icon:en.Z,size:"sm"}),(0,a.jsx)(eh.Z,{open:null!==g,onClose:()=>{Z(null),w(null)},children:(0,a.jsx)(eu.Z,{children:f&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:[(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Spend"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:(()=>{try{return parseFloat(f.spend).toFixed(4)}catch(e){return f.spend}})()})})]}),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Budget"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor font-semibold text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.max_budget?(0,a.jsx)(a.Fragment,{children:f.max_budget}):(0,a.jsx)(a.Fragment,{children:"Unlimited"})})})]},e.name),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)("p",{className:"text-tremor-default font-medium text-tremor-content dark:text-dark-tremor-content",children:"Expires"}),(0,a.jsx)("div",{className:"mt-2 flex items-baseline space-x-2.5",children:(0,a.jsx)("p",{className:"text-tremor-default font-small text-tremor-content-strong dark:text-dark-tremor-content-strong",children:null!=f.expires?(0,a.jsx)(a.Fragment,{children:new Date(f.expires).toLocaleString(void 0,{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}):(0,a.jsx)(a.Fragment,{children:"Never"})})})]},e.name)]}),(0,a.jsx)(em.Z,{className:"mt-6 mb-6",children:b&&(0,a.jsx)(ed.Z,{className:"mt-6",data:b,colors:["blue","amber"],index:"date",categories:["spend","predicted_spend"],yAxisWidth:80})}),(0,a.jsx)(H.Z,{children:"Metadata"}),(0,a.jsx)(Y.Z,{children:JSON.stringify(f.metadata)}),(0,a.jsx)(W.Z,{variant:"light",className:"mx-auto flex items-center",onClick:()=>{Z(null),w(null)},children:"Close"})]})})}),(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>D(e)}),(0,a.jsx)(ex.Z,{onClick:()=>B(e),icon:ei.Z,size:"sm"})]})]},e.token)})})]}),u&&(0,a.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,a.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,a.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,a.jsx)("div",{className:"sm:flex sm:items-start",children:(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,a.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Key"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this key ?"})})]})})}),(0,a.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,a.jsx)(W.Z,{onClick:q,color:"red",className:"ml-2",children:"Delete"}),(0,a.jsx)(W.Z,{onClick:()=>{x(!1),j(null)},children:"Cancel"})]})]})]})})]}),I&&(0,a.jsx)(e=>{let{visible:l,onCancel:t,token:s,onSubmit:o}=e,[i]=Q.Z.useForm(),[d,m]=(0,n.useState)(r),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)(!1);return(0,a.jsx)(ee.Z,{title:"Edit Key",visible:l,width:800,footer:null,onOk:()=>{i.validateFields().then(e=>{i.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,a.jsxs)(Q.Z,{form:i,onFinish:L,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Key Name",name:"key_alias",rules:[{required:!0,message:"Please input a key name"}],help:"required",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",rules:[{validator:(e,l)=>{let t=l.filter(e=>!d.models.includes(e)&&"all-team-models"!==e&&"all-proxy-models"!==e);return(console.log("errorModels: ".concat(t)),t.length>0)?Promise.reject("Some models are not part of the new team's models - ".concat(t)):Promise.resolve()}}],children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(e_,{value:"all-team-models",children:"All Team Models"},"all-team-models"),d&&d.models?d.models.includes("all-proxy-models")?T.filter(e=>"all-proxy-models"!==e).map(e=>(0,a.jsx)(e_,{value:e,children:e},e)):d.models.map(e=>(0,a.jsx)(e_,{value:e,children:e},e)):T.map(e=>(0,a.jsx)(e_,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{className:"mt-8",label:"Max Budget (USD)",name:"max_budget",help:"Budget cannot exceed team max budget: ".concat((null==d?void 0:d.max_budget)!==null&&(null==d?void 0:d.max_budget)!==void 0?null==d?void 0:d.max_budget:"unlimited"),rules:[{validator:async(e,l)=>{if(l&&d&&null!==d.max_budget&&l>d.max_budget)throw console.log("keyTeam.max_budget: ".concat(d.max_budget)),Error("Budget cannot exceed team max budget: $".concat(d.max_budget))}}],children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"token",name:"token",hidden:!0}),(0,a.jsx)(Q.Z.Item,{label:"Team",name:"team_id",help:"the team this key belongs to",children:(0,a.jsx)(ew.Z,{value:s.team_alias,children:null==c?void 0:c.map((e,l)=>(0,a.jsx)(eb.Z,{value:e.team_id,onClick:()=>m(e),children:e.team_alias},l))})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Edit Key"})})]})})},{visible:N,onCancel:()=>{C(!1),P(null)},token:I,onSubmit:L})]})},ev=e=>{let{userID:l,userRole:t,accessToken:s,userSpend:r}=e;console.log("userSpend: ".concat(r));let[o,i]=(0,n.useState)(null!==r?r:0),[c,d]=(0,n.useState)(0);(0,n.useEffect)(()=>{(async()=>{if(s&&l&&t&&"Admin"===t&&null==r)try{let e=await w(s);e&&(e.spend?i(e.spend):i(0),e.max_budget?d(e.max_budget):d(0))}catch(e){console.error("Error fetching global spend data:",e)}})()},[t,s]),(0,n.useEffect)(()=>{null!==r&&i(r)},[r]);let m=void 0!==o?o.toFixed(4):null;return console.log("spend in view user spend: ".concat(o)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-tremor-default text-tremor-content dark:text-dark-tremor-content",children:"Total Spend "}),(0,a.jsxs)("p",{className:"text-3xl text-tremor-content-strong dark:text-dark-tremor-content-strong font-semibold",children:["$",m]})]})},eS=e=>{let{teams:l,setSelectedTeam:t}=e,s={models:[],team_id:null,team_alias:"Default Team"},[r,o]=(0,n.useState)(s),i=l?[...l,s]:[s];return(0,a.jsxs)("div",{className:"mt-5 mb-5",children:[(0,a.jsx)(H.Z,{children:"Select Team"}),(0,a.jsx)(Y.Z,{children:"If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys."}),(0,a.jsxs)(Y.Z,{className:"mt-3 mb-3",children:[(0,a.jsx)("b",{children:"Default Team:"})," If no team_id is set for a key, it will be grouped under here."]}),i&&i.length>0?(0,a.jsx)(ew.Z,{defaultValue:"0",children:i.map((e,l)=>(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>t(e),children:e.team_alias},l))}):(0,a.jsxs)(Y.Z,{children:["No team created. ",(0,a.jsx)("b",{children:"Defaulting to personal account."})]})]})},eA=t(37963),eN=t(36083);console.log("isLocal:",!1);var eC=e=>{let{userID:l,userRole:t,teams:s,keys:r,setUserRole:i,userEmail:c,setUserEmail:d,setTeams:m,setKeys:h}=e,[u,x]=(0,n.useState)(null),p=(0,o.useSearchParams)();p.get("viewSpend"),(0,o.useRouter)();let j=p.get("token"),[g,y]=(0,n.useState)(null),[Z,b]=(0,n.useState)(null),[_,v]=(0,n.useState)([]),[S,A]=(0,n.useState)(s?s[0]:null);if(window.addEventListener("beforeunload",function(){sessionStorage.clear()}),(0,n.useEffect)(()=>{if(j){let e=(0,eA.o)(j);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),y(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),i(l)}else console.log("User role not defined");e.user_email?d(e.user_email):console.log("User Email is not set ".concat(e))}}if(l&&g&&t&&!r&&!u){let e=sessionStorage.getItem("userModels"+l);e?v(JSON.parse(e)):(async()=>{try{let e=await f(g,l,t,!1,null,null);if(console.log("received teams in user dashboard: ".concat(Object.keys(e),"; team values: ").concat(Object.entries(e.teams))),"Admin"==t){let e=await w(g);x(e),console.log("globalSpend:",e)}else x(e.user_info);h(e.keys),m(e.teams),A(e.teams?e.teams[0]:null),sessionStorage.setItem("userData"+l,JSON.stringify(e.keys)),sessionStorage.setItem("userSpendData"+l,JSON.stringify(e.user_info));let s=(await k(g,l,t)).data.map(e=>e.id);console.log("available_model_names:",s),v(s),console.log("userModels:",_),sessionStorage.setItem("userModels"+l,JSON.stringify(s))}catch(e){console.error("There was an error fetching the data",e)}})()}},[l,j,g,r,t]),(0,n.useEffect)(()=>{if(null!==r&&null!=S){let e=0;for(let l of r)S.hasOwnProperty("team_id")&&null!==l.team_id&&l.team_id===S.team_id&&(e+=l.spend);b(e)}else if(null!==r){let e=0;for(let l of r)e+=l.spend;b(e)}},[S]),null==l||null==j){let e="/sso/key/generate";return console.log("Full URL:",e),window.location.href=e,null}if(null==g)return null;if(null==t&&i("App Owner"),t&&"Admin Viewer"==t){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to create keys"})]})}return console.log("inside user dashboard, selected team",S),console.log("teamSpend: ".concat(Z)),(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsx)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(ev,{userID:l,userRole:t,accessToken:g,userSpend:Z}),(0,a.jsx)(ek,{userID:l,userRole:t,accessToken:g,selectedTeam:S||null,data:r,setData:h,teams:s}),(0,a.jsx)(ea,{userID:l,team:S||null,userRole:t,accessToken:g,data:r,setData:h},S?S.team_id:null),(0,a.jsx)(eS,{teams:s,setSelectedTeam:A})]})})})},eI=t(92836),eP=t(26734),eT=t(41608),eE=t(32126),eO=t(23682),eF=t(52273),eM=t(47047),eR=t(76628),eD=t(38302),eL=t(28683),eU=t(1460),ez=t(78578),eB=e=>{let{modelID:l,accessToken:t}=e,[s,r]=(0,n.useState)(!1),o=async()=>{try{h.ZP.info("Making API Call"),r(!0);let e=await p(t,l);console.log("model delete Response:",e),h.ZP.success("Model ".concat(l," deleted successfully")),r(!1)}catch(e){console.error("Error deleting the model:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(ex.Z,{onClick:()=>r(!0),icon:ei.Z,size:"sm"}),(0,a.jsx)(ee.Z,{open:s,onOk:o,okType:"danger",onCancel:()=>r(!1),children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 w-full",children:[(0,a.jsx)(H.Z,{children:"Delete Model"}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsx)("p",{children:"Are you sure you want to delete this model? This action is irreversible."})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("p",{children:["Model ID: ",(0,a.jsx)("b",{children:l})]})})]})})]})},eq=t(97766),eV=t(46495);let{Title:eG,Link:eK}=eN.default;(s=r||(r={})).OpenAI="OpenAI",s.Azure="Azure",s.Anthropic="Anthropic",s.Google_AI_Studio="Gemini (Google AI Studio)",s.Bedrock="Amazon Bedrock",s.OpenAI_Compatible="OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)",s.Vertex_AI="Vertex AI (Anthropic, Gemini, etc.)";let eJ={OpenAI:"openai",Azure:"azure",Anthropic:"anthropic",Google_AI_Studio:"gemini",Bedrock:"bedrock",OpenAI_Compatible:"openai",Vertex_AI:"vertex_ai"};var eW=e=>{var l,t,s;let{accessToken:o,token:i,userRole:c,userID:d}=e,[m,p]=(0,n.useState)({data:[]}),[j,g]=(0,n.useState)([]),[y]=Q.Z.useForm(),[Z,f]=(0,n.useState)(null),[w,_]=(0,n.useState)([]),k=Object.values(r).filter(e=>isNaN(Number(e))),[v,S]=(0,n.useState)("OpenAI"),[A,N]=(0,n.useState)("");if((0,n.useEffect)(()=>{if(!o||!i||!c||!d)return;let e=async()=>{try{let e=await b(o,d,c);if(console.log("Model data response:",e.data),p(e),"Admin"===c&&o){let e=await O(o);console.log("Pending Requests:",j),g(e.requests||[])}}catch(e){console.error("There was an error fetching the model data",e)}};o&&i&&c&&d&&e();let l=async()=>{let e=await u();console.log("received model cost map data: ".concat(Object.keys(e))),f(e)};null==Z&&l()},[o,i,c,d,Z]),!m||!o||!i||!c||!d)return(0,a.jsx)("div",{children:"Loading..."});let C=[];for(let e=0;e(console.log("GET PROVIDER CALLED! - ".concat(Z)),null!=Z&&"object"==typeof Z&&e in Z)?Z[e].litellm_provider:"openai";if(r){let e=r.split("/"),l=e[0];n=1===e.length?h(r):l}else n="openai";a&&(o=null==a?void 0:a.input_cost_per_token,i=null==a?void 0:a.output_cost_per_token,c=null==a?void 0:a.max_tokens),(null==s?void 0:s.litellm_params)&&(d=Object.fromEntries(Object.entries(null==s?void 0:s.litellm_params).filter(e=>{let[l]=e;return"model"!==l&&"api_base"!==l}))),m.data[e].provider=n,m.data[e].input_cost=o,m.data[e].output_cost=i,m.data[e].max_tokens=c,m.data[e].api_base=null==s?void 0:null===(t=s.litellm_params)||void 0===t?void 0:t.api_base,m.data[e].cleanedLitellmParams=d,C.push(s.model_name),console.log(m.data[e])}if(c&&"Admin Viewer"==c){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to view all models"})]})}let I=e=>{console.log("received provider string: ".concat(e));let l=Object.keys(r).find(l=>r[l]===e);if(l){let e=eJ[l];console.log("mappingResult: ".concat(e));let t=[];"object"==typeof Z&&Object.entries(Z).forEach(l=>{let[s,r]=l;null!==r&&"object"==typeof r&&"litellm_provider"in r&&(r.litellm_provider===e||r.litellm_provider.includes(e))&&t.push(s)}),_(t),console.log("providerModels: ".concat(w))}},P=async()=>{try{h.ZP.info("Running health check..."),N("");let e=await G(o);N(e)}catch(e){console.error("Error running health check:",e),N("Error running health check")}},T=async e=>{try{let l=Object.values(e.model);console.log("received deployments: ".concat(l)),console.log("received type of deployments: ".concat(typeof l)),l.forEach(async l=>{console.log("litellm_model: ".concat(l));let t={},s={};t.model=l;let r="";for(let[l,a]of Object.entries(e))if("model_name"==l)r+=a;else if("custom_llm_provider"==l)continue;else if("model"==l)continue;else if("base_model"===l)s[l]=a;else if("litellm_extra_params"==l){console.log("litellm_extra_params:",a);let e={};if(a&&void 0!=a){try{e=JSON.parse(a)}catch(e){throw h.ZP.error("Failed to parse LiteLLM Extra Params: "+e,20),Error("Failed to parse litellm_extra_params: "+e)}for(let[l,s]of Object.entries(e))t[l]=s}}else t[l]=a;let a={model_name:r,litellm_params:t,model_info:s},n=await x(o,a);console.log("response for model create call: ".concat(n.data))}),y.resetFields()}catch(e){h.ZP.error("Failed to create model: "+e,20)}};return console.log("selectedProvider: ".concat(v)),console.log("providerModels.length: ".concat(w.length)),(0,a.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,a.jsxs)(eP.Z,{className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,a.jsxs)(eT.Z,{className:"mt-2",children:[(0,a.jsx)(eI.Z,{children:"All Models"}),(0,a.jsx)(eI.Z,{children:"Add Model"}),(0,a.jsx)(eI.Z,{children:(0,a.jsx)("pre",{children:"/health Models"})})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsx)(J.Z,{children:(0,a.jsx)(em.Z,{children:(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Model Name "}),(0,a.jsx)(eZ.Z,{children:"Provider"}),"Admin"===c&&(0,a.jsx)(eZ.Z,{children:"API Base"}),(0,a.jsx)(eZ.Z,{children:"Extra litellm Params"}),(0,a.jsx)(eZ.Z,{children:"Input Price per token ($)"}),(0,a.jsx)(eZ.Z,{children:"Output Price per token ($)"}),(0,a.jsx)(eZ.Z,{children:"Max Tokens"})]})}),(0,a.jsx)(ej.Z,{children:m.data.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:e.model_name})}),(0,a.jsx)(eg.Z,{children:e.provider}),"Admin"===c&&(0,a.jsx)(eg.Z,{children:e.api_base}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)("pre",{children:JSON.stringify(e.cleanedLitellmParams,null,2)})}),(0,a.jsx)(eg.Z,{children:e.input_cost}),(0,a.jsx)(eg.Z,{children:e.output_cost}),(0,a.jsx)(eg.Z,{children:e.max_tokens}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(eB,{modelID:e.model_info.id,accessToken:o})})]},l))})]})})})}),(0,a.jsxs)(eE.Z,{className:"h-full",children:[(0,a.jsx)(eG,{level:2,children:"Add new model"}),(0,a.jsx)(em.Z,{children:(0,a.jsxs)(Q.Z,{form:y,onFinish:()=>{y.validateFields().then(e=>{T(e)}).catch(e=>{console.error("Validation failed:",e)})},labelCol:{span:10},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Provider:",name:"custom_llm_provider",tooltip:"E.g. OpenAI, Azure OpenAI, Anthropic, Bedrock, etc.",labelCol:{span:10},labelAlign:"left",children:(0,a.jsx)(ew.Z,{value:v.toString(),children:k.map((e,l)=>(0,a.jsx)(eb.Z,{value:e,onClick:()=>{I(e),S(e)},children:e},l))})}),(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Public Model Name",name:"model_name",tooltip:"Model name your users will pass in. Also used for load-balancing, LiteLLM will load balance between all models with this public name.",className:"mb-0",children:(0,a.jsx)(eF.Z,{placeholder:"Vertex AI (Anthropic, Gemini, etc.)"===(s=v.toString())?"gemini-pro":"Anthropic"==s?"claude-3-opus":"Amazon Bedrock"==s?"claude-3-opus":"Gemini (Google AI Studio)"==s?"gemini-pro":"gpt-3.5-turbo"})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Model name your users will pass in."})})]}),(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"LiteLLM Model Name(s)",name:"model",tooltip:"Actual model name used for making litellm.completion() call.",className:"mb-0",children:"Azure"===v?(0,a.jsx)(eF.Z,{placeholder:"Enter model name"}):w.length>0?(0,a.jsx)(eM.Z,{value:w,children:w.map((e,l)=>(0,a.jsx)(eR.Z,{value:e,children:e},l))}):(0,a.jsx)(eF.Z,{placeholder:"gpt-3.5-turbo-0125"})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Actual model name used for making ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/providers",target:"_blank",children:"litellm.completion() call"}),". We'll ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/proxy/reliability#step-1---set-deployments-on-config",target:"_blank",children:"loadbalance"})," models with the same 'public name'"]})})]}),"Amazon Bedrock"!=v&&"Vertex AI (Anthropic, Gemini, etc.)"!=v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Key",name:"api_key",children:(0,a.jsx)(eF.Z,{placeholder:"sk-",type:"password"})}),"OpenAI"==v&&(0,a.jsx)(Q.Z.Item,{label:"Organization ID",name:"organization_id",children:(0,a.jsx)(eF.Z,{placeholder:"[OPTIONAL] my-unique-org"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Project",name:"vertex_project",children:(0,a.jsx)(eF.Z,{placeholder:"adroit-cadet-1234.."})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Location",name:"vertex_location",children:(0,a.jsx)(eF.Z,{placeholder:"us-east-1"})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"Vertex Credentials",name:"vertex_credentials",className:"mb-0",children:(0,a.jsx)(eV.Z,{name:"file",accept:".json",beforeUpload:e=>{if("application/json"===e.type){let l=new FileReader;l.onload=e=>{if(e.target){let l=e.target.result;y.setFieldsValue({vertex_credentials:l})}},l.readAsText(e)}return!1},onChange(e){"uploading"!==e.file.status&&console.log(e.file,e.fileList),"done"===e.file.status?h.ZP.success("".concat(e.file.name," file uploaded successfully")):"error"===e.file.status&&h.ZP.error("".concat(e.file.name," file upload failed."))},children:(0,a.jsx)(es.ZP,{icon:(0,a.jsx)(eq.Z,{}),children:"Click to Upload"})})}),"Vertex AI (Anthropic, Gemini, etc.)"==v&&(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsx)(Y.Z,{className:"mb-3 mt-1",children:"Give litellm a gcp service account(.json file), so it can make the relevant calls"})})]}),("Azure"==v||"OpenAI-Compatible Endpoints (Groq, Together AI, Mistral AI, etc.)"==v)&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Base",name:"api_base",children:(0,a.jsx)(eF.Z,{placeholder:"https://..."})}),"Azure"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"API Version",name:"api_version",children:(0,a.jsx)(eF.Z,{placeholder:"2023-07-01-preview"})}),"Azure"==v&&(0,a.jsxs)(Q.Z.Item,{label:"Base Model",name:"base_model",children:[(0,a.jsx)(eF.Z,{placeholder:"azure/gpt-3.5-turbo"}),(0,a.jsxs)(Y.Z,{children:["The actual model your azure deployment uses. Used for accurate cost tracking. Select name from ",(0,a.jsx)(eK,{href:"https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json",target:"_blank",children:"here"})]})]}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Access Key ID",name:"aws_access_key_id",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Secret Access Key",name:"aws_secret_access_key",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:""})}),"Amazon Bedrock"==v&&(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"AWS Region Name",name:"aws_region_name",tooltip:"You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`).",children:(0,a.jsx)(eF.Z,{placeholder:"us-east-1"})}),(0,a.jsx)(Q.Z.Item,{label:"LiteLLM Params",name:"litellm_extra_params",tooltip:"Optional litellm params used for making a litellm.completion() call.",className:"mb-0",children:(0,a.jsx)(ez.Z,{rows:4,placeholder:'{ "rpm": 100, "timeout": 0, "stream_timeout": 0 }'})}),(0,a.jsxs)(eD.Z,{children:[(0,a.jsx)(eL.Z,{span:10}),(0,a.jsx)(eL.Z,{span:10,children:(0,a.jsxs)(Y.Z,{className:"mb-3 mt-1",children:["Pass JSON of litellm supported params ",(0,a.jsx)(eK,{href:"https://docs.litellm.ai/docs/completion/input",target:"_blank",children:"litellm.completion() call"})]})})]})]}),(0,a.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add Model"})}),(0,a.jsx)(eU.Z,{title:"Get help on our github",children:(0,a.jsx)(eN.default.Link,{href:"https://github.com/BerriAI/litellm/issues",children:"Need Help?"})})]})})]}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(Y.Z,{children:"`/health` will run a very small request through your models configured on litellm"}),(0,a.jsx)(W.Z,{onClick:P,children:"Run `/health`"}),A&&(0,a.jsx)("pre",{children:JSON.stringify(A,null,2)})]})})]})]})})};let{Option:eY}=X.default;var eH=e=>{let{userID:l,accessToken:t}=e,[s]=Q.Z.useForm(),[r,o]=(0,n.useState)(!1),[i,c]=(0,n.useState)(null),[d,m]=(0,n.useState)([]);(0,n.useEffect)(()=>{(async()=>{try{let e=await k(t,l,"any"),s=[];for(let l=0;l{o(!1),s.resetFields()},x=()=>{o(!1),c(null),s.resetFields()},p=async e=>{try{h.ZP.info("Making API Call"),o(!0),console.log("formValues in create user:",e);let r=await g(t,l,e);console.log("user create Response:",r),c(r.key),h.ZP.success("API user Created"),s.resetFields(),localStorage.removeItem("userData"+l)}catch(e){console.error("Error creating the user:",e)}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>o(!0),children:"+ Create New User"}),(0,a.jsx)(ee.Z,{title:"Create User",visible:r,width:800,footer:null,onOk:u,onCancel:x,children:(0,a.jsxs)(Q.Z,{form:s,onFinish:p,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",children:(0,a.jsx)(el.Z,{placeholder:"Enter User ID"})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"team_id",children:(0,a.jsx)(el.Z,{placeholder:"ai_team"})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsx)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:d.map(e=>(0,a.jsx)(eY,{value:e,children:e},e))})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Duration (eg: 30s, 30h, 30d)",name:"duration",children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Metadata",name:"metadata",children:(0,a.jsx)(el.Z.TextArea,{rows:4,placeholder:"Enter metadata as JSON"})}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create User"})})]})}),i&&(0,a.jsxs)(ee.Z,{title:"Save Your User",visible:r,onOk:u,onCancel:x,footer:null,children:[(0,a.jsxs)("p",{children:["Please save this secret user somewhere safe and accessible. For security reasons, ",(0,a.jsx)("b",{children:"you will not be able to view it again"})," ","through your LiteLLM account. If you lose this secret user, you will need to generate a new one."]}),(0,a.jsx)("p",{children:null!=i?"API user: ".concat(i):"User being created, this might take 30s"})]})]})},e$=e=>{let{accessToken:l,token:t,keys:s,userRole:r,userID:o,setKeys:i}=e,[c,d]=(0,n.useState)(null),[m,h]=(0,n.useState)(null),[u,x]=(0,n.useState)(0);if((0,n.useEffect)(()=>{if(!l||!t||!r||!o)return;let e=async()=>{try{let e=await f(l,null,r,!0,u,25);console.log("user data response:",e),d(e)}catch(e){console.error("There was an error fetching the model data",e)}};l&&t&&r&&o&&e();let s=async()=>{try{let e=await P(l,null);console.log("user data response:",e),h(e)}catch(e){console.error("There was an error fetching the model data",e)}};r&&("Admin"==r||"Admin Viewer"==r)&&!m&&s()},[l,t,r,o,u]),!c||!l||!t||!r||!o)return(0,a.jsx)("div",{children:"Loading..."});let p=async e=>{try{let t=await P(l,e);console.log("user data response:",t),h(t)}catch(e){console.error("There was an error fetching the model data",e)}};return(0,a.jsx)("div",{style:{width:"100%"},children:(0,a.jsxs)(J.Z,{className:"gap-2 p-2 h-[75vh] w-full mt-8",children:[(0,a.jsx)(eH,{userID:o,accessToken:l}),(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh] mb-4",children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{variant:"line",defaultValue:"1",children:[(0,a.jsx)(eI.Z,{value:"1",children:"Key Owners"}),(0,a.jsx)(eI.Z,{value:"2",children:"End-Users"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(ep.Z,{className:"mt-5",children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"User ID"}),(0,a.jsx)(eZ.Z,{children:"User Role"}),(0,a.jsx)(eZ.Z,{children:"User Models"}),(0,a.jsx)(eZ.Z,{children:"User Spend ($ USD)"}),(0,a.jsx)(eZ.Z,{children:"User Max Budget ($ USD)"})]})}),(0,a.jsx)(ej.Z,{children:c.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_id}),(0,a.jsx)(eg.Z,{children:e.user_role?e.user_role:"app_owner"}),(0,a.jsx)(eg.Z,{children:e.models&&e.models.length>0?e.models:"All Models"}),(0,a.jsx)(eg.Z,{children:e.spend?e.spend:0}),(0,a.jsx)(eg.Z,{children:e.max_budget?e.max_budget:"Unlimited"})]},e.user_id))})]})}),(0,a.jsxs)(eE.Z,{children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsxs)("div",{className:"flex-1 flex justify-between items-center",children:[(0,a.jsx)(Y.Z,{className:"w-1/4 mr-2 text-right",children:"Key"}),(0,a.jsx)(ew.Z,{defaultValue:"1",className:"w-3/4",children:null==s?void 0:s.map((e,l)=>{if(e&&null!==e.key_name&&e.key_name.length>0)return(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>p(e.token),children:e.key_name},l)})})]})]}),(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"End User"}),(0,a.jsx)(eZ.Z,{children:"Spend"}),(0,a.jsx)(eZ.Z,{children:"Total Events"})]})}),(0,a.jsx)(ej.Z,{children:null==m?void 0:m.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.end_user}),(0,a.jsx)(eg.Z,{children:e.total_spend}),(0,a.jsx)(eg.Z,{children:e.total_events})]},l))})]})]})]})]})}),function(){if(!c)return null;let e=Math.ceil(c.length/25);return(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsxs)("div",{children:["Showing Page ",u+1," of ",e]}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-l focus:outline-none",disabled:0===u,onClick:()=>x(u-1),children:"← Prev"}),(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-r focus:outline-none",onClick:()=>{x(u+1)},children:"Next →"})]})]})}()]})})},eX=e=>{let{teams:l,searchParams:t,accessToken:s,setTeams:r,userID:o,userRole:i}=e,[c]=Q.Z.useForm(),[d]=Q.Z.useForm(),{Title:m,Paragraph:u}=eN.default,[x,p]=(0,n.useState)(""),[j,g]=(0,n.useState)(!1),[y,f]=(0,n.useState)(l?l[0]:null),[w,b]=(0,n.useState)(!1),[_,v]=(0,n.useState)(!1),[S,A]=(0,n.useState)([]),[N,C]=(0,n.useState)(!1),[I,P]=(0,n.useState)(null),T=e=>{f(e),g(!0)},E=async e=>{let t=e.team_id;if(console.log("handleEditSubmit:",e),null==s)return;let a=await D(s,e);l&&r(l.map(e=>e.team_id===t?a.data:e)),h.ZP.success("Team updated successfully"),g(!1),f(null)},O=async e=>{P(e),C(!0)},F=async()=>{if(null!=I&&null!=l&&null!=s){try{await Z(s,I);let e=l.filter(e=>e.team_id!==I);r(e)}catch(e){console.error("Error deleting the team:",e)}C(!1),P(null)}};(0,n.useEffect)(()=>{(async()=>{try{if(null===o||null===i)return;if(null!==s){let e=(await k(s,o,i)).data.map(e=>e.id);console.log("available_model_names:",e),A(e)}}catch(e){console.error("Error fetching user models:",e)}})()},[s,o,i]);let R=async e=>{try{if(null!=s){h.ZP.info("Creating Team");let t=await M(s,e);null!==l?r([...l,t]):r([t]),console.log("response for team create call: ".concat(t)),h.ZP.success("Team created"),b(!1)}}catch(e){console.error("Error creating the team:",e),h.ZP.error("Error creating the team: "+e,20)}},U=async e=>{try{if(null!=s&&null!=l){h.ZP.info("Adding Member");let t={role:"user",user_email:e.user_email,user_id:e.user_id},a=await L(s,y.team_id,t);console.log("response for team create call: ".concat(a.data));let n=l.findIndex(e=>(console.log("team.team_id=".concat(e.team_id,"; response.data.team_id=").concat(a.data.team_id)),e.team_id===a.data.team_id));if(console.log("foundIndex: ".concat(n)),-1!==n){let e=[...l];e[n]=a.data,r(e),f(a.data)}v(!1)}}catch(e){console.error("Error creating the team:",e)}};return console.log("received teams ".concat(l)),(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 h-[75vh] w-full mt-2",children:[(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(m,{level:4,children:"All Teams"}),(0,a.jsxs)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:[(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Team Name"}),(0,a.jsx)(eZ.Z,{children:"Spend (USD)"}),(0,a.jsx)(eZ.Z,{children:"Budget (USD)"}),(0,a.jsx)(eZ.Z,{children:"Models"}),(0,a.jsx)(eZ.Z,{children:"TPM / RPM Limits"})]})}),(0,a.jsx)(ej.Z,{children:l&&l.length>0?l.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.team_alias}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.spend}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:e.max_budget?e.max_budget:"No limit"}),(0,a.jsx)(eg.Z,{style:{maxWidth:"8-x",whiteSpace:"pre-wrap",overflow:"hidden"},children:Array.isArray(e.models)?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:0===e.models.length?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})}):e.models.map((e,l)=>"all-proxy-models"===e?(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"red",children:(0,a.jsx)(Y.Z,{children:"All Proxy Models"})},l):(0,a.jsx)(ec.Z,{size:"xs",className:"mb-1",color:"blue",children:(0,a.jsx)(Y.Z,{children:e.length>30?"".concat(e.slice(0,30),"..."):e})},l))}):null}),(0,a.jsx)(eg.Z,{style:{maxWidth:"4px",whiteSpace:"pre-wrap",overflow:"hidden"},children:(0,a.jsxs)(Y.Z,{children:["TPM:"," ",e.tpm_limit?e.tpm_limit:"Unlimited"," ",(0,a.jsx)("br",{}),"RPM:"," ",e.rpm_limit?e.rpm_limit:"Unlimited"]})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>T(e)}),(0,a.jsx)(ex.Z,{onClick:()=>O(e.team_id),icon:ei.Z,size:"sm"})]})]},e.team_id)):null})]}),N&&(0,a.jsx)("div",{className:"fixed z-10 inset-0 overflow-y-auto",children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,a.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),(0,a.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,a.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,a.jsx)("div",{className:"sm:flex sm:items-start",children:(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,a.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Delete Team"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete this team ?"})})]})})}),(0,a.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,a.jsx)(W.Z,{onClick:F,color:"red",className:"ml-2",children:"Delete"}),(0,a.jsx)(W.Z,{onClick:()=>{C(!1),P(null)},children:"Cancel"})]})]})]})})]})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(W.Z,{className:"mx-auto",onClick:()=>b(!0),children:"+ Create New Team"}),(0,a.jsx)(ee.Z,{title:"Create Team",visible:w,width:800,footer:null,onOk:()=>{b(!1),c.resetFields()},onCancel:()=>{b(!1),c.resetFields()},children:(0,a.jsxs)(Q.Z,{form:c,onFinish:R,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S.map(e=>(0,a.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Create Team"})})]})})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(m,{level:4,children:"Team Members"}),(0,a.jsx)(u,{children:"If you belong to multiple teams, this setting controls which teams members you see."}),l&&l.length>0?(0,a.jsx)(ew.Z,{defaultValue:"0",children:l.map((e,l)=>(0,a.jsx)(eb.Z,{value:String(l),onClick:()=>{f(e)},children:e.team_alias},l))}):(0,a.jsxs)(u,{children:["No team created. ",(0,a.jsx)("b",{children:"Defaulting to personal account."})]})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Member Name"}),(0,a.jsx)(eZ.Z,{children:"Role"})]})}),(0,a.jsx)(ej.Z,{children:y?y.members_with_roles.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,a.jsx)(eg.Z,{children:e.role})]},l)):null})]})}),y&&(0,a.jsx)(e=>{let{visible:l,onCancel:t,team:s,onSubmit:r}=e,[n]=Q.Z.useForm();return(0,a.jsx)(ee.Z,{title:"Edit Team",visible:l,width:800,footer:null,onOk:()=>{n.validateFields().then(e=>{r({...e,team_id:s.team_id}),n.resetFields()}).catch(e=>{console.error("Validation failed:",e)})},onCancel:t,children:(0,a.jsxs)(Q.Z,{form:n,onFinish:E,initialValues:s,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Team Name",name:"team_alias",rules:[{required:!0,message:"Please input a team name"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"Models",name:"models",children:(0,a.jsxs)(X.default,{mode:"multiple",placeholder:"Select models",style:{width:"100%"},children:[(0,a.jsx)(X.default.Option,{value:"all-proxy-models",children:"All Proxy Models"},"all-proxy-models"),S&&S.map(e=>(0,a.jsx)(X.default.Option,{value:e,children:e},e))]})}),(0,a.jsx)(Q.Z.Item,{label:"Max Budget (USD)",name:"max_budget",children:(0,a.jsx)(et.Z,{step:.01,precision:2,width:200})}),(0,a.jsx)(Q.Z.Item,{label:"Tokens per minute Limit (TPM)",name:"tpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"rpm_limit",children:(0,a.jsx)(et.Z,{step:1,width:400})}),(0,a.jsx)(Q.Z.Item,{label:"Requests per minute Limit (RPM)",name:"team_id",hidden:!0})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Edit Team"})})]})})},{visible:j,onCancel:()=>{g(!1),f(null)},team:y,onSubmit:E})]}),(0,a.jsxs)(K.Z,{numColSpan:1,children:[(0,a.jsx)(W.Z,{className:"mx-auto mb-5",onClick:()=>v(!0),children:"+ Add member"}),(0,a.jsx)(ee.Z,{title:"Add member",visible:_,width:800,footer:null,onOk:()=>{v(!1),d.resetFields()},onCancel:()=>{v(!1),d.resetFields()},children:(0,a.jsxs)(Q.Z,{form:c,onFinish:U,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,a.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]})})]})]})})},eQ=t(18190),e0=e=>{let l,{searchParams:t,accessToken:s,showSSOBanner:r}=e,[o]=Q.Z.useForm(),[i]=Q.Z.useForm(),{Title:c,Paragraph:d}=eN.default,[m,u]=(0,n.useState)(""),[x,p]=(0,n.useState)(null),[j,g]=(0,n.useState)(!1),[y,Z]=(0,n.useState)(!1),[f,w]=(0,n.useState)(!1),[b,_]=(0,n.useState)(!1),[k,v]=(0,n.useState)(!1);try{l=window.location.origin}catch(e){l=""}l+="/fallback/login";let S=()=>{v(!1)},A=["proxy_admin","proxy_admin_viewer"];(0,n.useEffect)(()=>{(async()=>{if(null!=s){let e=[],l=await F(s,"proxy_admin_viewer");l.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy viewers: ".concat(l));let t=await F(s,"proxy_admin");t.forEach(l=>{e.push({user_role:l.user_role,user_id:l.user_id,user_email:l.user_email})}),console.log("proxy admins: ".concat(t)),console.log("combinedList: ".concat(e)),p(e)}})()},[s]);let N=()=>{w(!1),i.resetFields()},C=()=>{w(!1),i.resetFields()},I=e=>(0,a.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Email",name:"user_email",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_email",className:"px-3 py-2 border rounded-md w-full"})}),(0,a.jsx)("div",{className:"text-center mb-4",children:"OR"}),(0,a.jsx)(Q.Z.Item,{label:"User ID",name:"user_id",className:"mb-4",children:(0,a.jsx)(el.Z,{name:"user_id",className:"px-3 py-2 border rounded-md w-full"})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Add member"})})]}),P=(e,l,t)=>(0,a.jsxs)(Q.Z,{form:o,onFinish:e,labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{rules:[{required:!0,message:"Required"}],label:"User Role",name:"user_role",labelCol:{span:10},labelAlign:"left",children:(0,a.jsx)(ew.Z,{value:l,children:A.map((e,l)=>(0,a.jsx)(eb.Z,{value:e,children:e},l))})}),(0,a.jsx)(Q.Z.Item,{label:"Team ID",name:"user_id",hidden:!0,initialValue:t,valuePropName:"user_id",className:"mt-8",children:(0,a.jsx)(el.Z,{value:t,disabled:!0})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Update role"})})]}),T=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,null);console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),h.ZP.success("Refresh tab to see updated user role"),w(!1)}}catch(e){console.error("Error creating the key:",e)}},E=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call");let l=await U(s,e,"proxy_admin_viewer");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),g(!1)}}catch(e){console.error("Error creating the key:",e)}},O=async e=>{try{if(null!=s&&null!=x){h.ZP.info("Making API Call"),e.user_email,e.user_id;let l=await U(s,e,"proxy_admin");console.log("response for team create call: ".concat(l));let t=x.findIndex(e=>(console.log("user.user_id=".concat(e.user_id,"; response.user_id=").concat(l.user_id)),e.user_id===l.user_id));console.log("foundIndex: ".concat(t)),-1==t&&(console.log("updates admin with new user"),x.push(l),p(x)),Z(!1)}}catch(e){console.error("Error creating the key:",e)}},M=async e=>{null!=s&&V(s,{environment_variables:{PROXY_BASE_URL:e.proxy_base_url,GOOGLE_CLIENT_ID:e.google_client_id,GOOGLE_CLIENT_SECRET:e.google_client_secret}})};return console.log("admins: ".concat(null==x?void 0:x.length)),(0,a.jsxs)("div",{className:"w-full m-2 mt-2 p-8",children:[(0,a.jsx)(c,{level:4,children:"Admin Access "}),(0,a.jsxs)(d,{children:[r&&(0,a.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/ui#restrict-ui-access",children:"Requires SSO Setup"}),(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Proxy Admin: "})," Can create keys, teams, users, add models, etc. ",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Proxy Admin Viewer: "}),"Can just view spend. They cannot create keys, teams or grant users access to new models."," "]}),(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-2 w-full",children:[(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsx)(em.Z,{className:"w-full mx-auto flex-auto overflow-y-auto max-h-[50vh]",children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Member Name"}),(0,a.jsx)(eZ.Z,{children:"Role"})]})}),(0,a.jsx)(ej.Z,{children:x?x.map((e,l)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.user_email?e.user_email:e.user_id?e.user_id:null}),(0,a.jsx)(eg.Z,{children:e.user_role}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)(ex.Z,{icon:eo.Z,size:"sm",onClick:()=>w(!0)}),(0,a.jsx)(ee.Z,{title:"Update role",visible:f,width:800,footer:null,onOk:N,onCancel:C,children:P(T,e.user_role,e.user_id)})]})]},l)):null})]})})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)("div",{className:"flex justify-start",children:[(0,a.jsx)(W.Z,{className:"mr-4 mb-5",onClick:()=>Z(!0),children:"+ Add admin"}),(0,a.jsx)(ee.Z,{title:"Add admin",visible:y,width:800,footer:null,onOk:()=>{Z(!1),i.resetFields()},onCancel:()=>{Z(!1),i.resetFields()},children:I(O)}),(0,a.jsx)(W.Z,{className:"mb-5",onClick:()=>g(!0),children:"+ Add viewer"}),(0,a.jsx)(ee.Z,{title:"Add viewer",visible:j,width:800,footer:null,onOk:()=>{g(!1),i.resetFields()},onCancel:()=>{g(!1),i.resetFields()},children:I(E)})]})})]}),(0,a.jsxs)(J.Z,{children:[(0,a.jsx)(c,{level:4,children:"Add SSO"}),(0,a.jsxs)("div",{className:"flex justify-start mb-4",children:[(0,a.jsx)(W.Z,{onClick:()=>_(!0),children:"Add SSO"}),(0,a.jsx)(ee.Z,{title:"Add SSO",visible:b,width:800,footer:null,onOk:()=>{_(!1),o.resetFields()},onCancel:()=>{_(!1),o.resetFields()},children:(0,a.jsxs)(Q.Z,{form:o,onFinish:e=>{O(e),M(e),_(!1),v(!0)},labelCol:{span:8},wrapperCol:{span:16},labelAlign:"left",children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"Admin Email",name:"user_email",rules:[{required:!0,message:"Please enter the email of the proxy admin"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"PROXY BASE URL",name:"proxy_base_url",rules:[{required:!0,message:"Please enter the proxy base url"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT ID",name:"google_client_id",rules:[{required:!0,message:"Please enter the google client id"}],children:(0,a.jsx)(el.Z.Password,{})}),(0,a.jsx)(Q.Z.Item,{label:"GOOGLE CLIENT SECRET",name:"google_client_secret",rules:[{required:!0,message:"Please enter the google client secret"}],children:(0,a.jsx)(el.Z.Password,{})})]}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})}),(0,a.jsxs)(ee.Z,{title:"SSO Setup Instructions",visible:k,width:800,footer:null,onOk:S,onCancel:()=>{v(!1)},children:[(0,a.jsx)("p",{children:"Follow these steps to complete the SSO setup:"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"1. DO NOT Exit this TAB"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"2. Open a new tab, visit your proxy base url"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"3. Confirm your SSO is configured correctly and you can login on the new Tab"}),(0,a.jsx)(Y.Z,{className:"mt-2",children:"4. If Step 3 is successful, you can close this tab"}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{onClick:S,children:"Done"})})]})]}),(0,a.jsxs)(eQ.Z,{title:"Login without SSO",color:"teal",children:["If you need to login without sso, you can access ",(0,a.jsxs)("a",{href:l,target:"_blank",children:[(0,a.jsx)("b",{children:l})," "]})]})]})]})},e1=e=>{let{accessToken:l,userRole:t,userID:s}=e,[r,o]=(0,n.useState)([]),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.data)})},[l,t,s]);let x=e=>{if(!l)return;let t=Object.fromEntries(Object.entries(e.variables).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));try{V(l,{environment_variables:t})}catch(e){h.ZP.error("Failed to update callback: "+e,20)}h.ZP.success("Callback updated successfully")},p=()=>{l&&d.validateFields().then(e=>{console.log("Form values:",e),"langfuse"===e.callback?(V(l,{environment_variables:{LANGFUSE_PUBLIC_KEY:e.langfusePublicKey,LANGFUSE_SECRET_KEY:e.langfusePrivateKey},litellm_settings:{success_callback:[e.callback]}}),o(r?[...r,e.callback]:[e.callback])):"slack"===e.callback&&(V(l,{general_settings:{alerting:["slack"],alerting_threshold:300},environment_variables:{SLACK_WEBHOOK_URL:e.slackWebhookUrl}}),o(r?[...r,e.callback]:[e.callback])),c(!1),d.resetFields(),u(null)})};return l?(0,a.jsxs)("div",{className:"w-full mx-4",children:[(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,a.jsx)(H.Z,{children:"Logging Callbacks"}),(0,a.jsxs)(em.Z,{children:[(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Callback"}),(0,a.jsx)(eZ.Z,{children:"Callback Env Vars"})]})}),(0,a.jsx)(ej.Z,{children:r.map((e,t)=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(ec.Z,{color:"emerald",children:e.name})}),(0,a.jsxs)(eg.Z,{children:[(0,a.jsx)("ul",{children:Object.entries(e.variables).map(e=>{let[l,t]=e;return(0,a.jsxs)("li",{children:[(0,a.jsx)(Y.Z,{className:"mt-2",children:l}),"LANGFUSE_HOST"===l?(0,a.jsx)("p",{children:"default value=https://cloud.langfuse.com"}):(0,a.jsx)("div",{}),(0,a.jsx)(eF.Z,{name:l,defaultValue:t,type:"password"})]},l)})}),(0,a.jsx)(W.Z,{className:"mt-2",onClick:()=>x(e),children:"Save Changes"}),(0,a.jsx)(W.Z,{onClick:()=>B(l,e.name),className:"mx-2",children:"Test Callback"})]})]},t))})]}),(0,a.jsx)(W.Z,{size:"xs",className:"mt-2",onClick:()=>{console.log("Add callback clicked"),c(!0)},children:"Add Callback"})]})]}),(0,a.jsx)(ee.Z,{title:"Add Callback",visible:i,onOk:p,width:800,onCancel:()=>{c(!1),d.resetFields(),u(null)},footer:null,children:(0,a.jsxs)(Q.Z,{form:d,layout:"vertical",onFinish:p,children:[(0,a.jsx)(Q.Z.Item,{label:"Callback",name:"callback",rules:[{required:!0,message:"Please select a callback"}],children:(0,a.jsxs)(X.default,{onChange:e=>{u(e)},children:[(0,a.jsx)(X.default.Option,{value:"langfuse",children:"langfuse"}),(0,a.jsx)(X.default.Option,{value:"slack",children:"slack alerting"})]})}),"langfuse"===m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.Z.Item,{label:"LANGFUSE_PUBLIC_KEY",name:"langfusePublicKey",rules:[{required:!0,message:"Please enter the public key"}],children:(0,a.jsx)(el.Z.Password,{})}),(0,a.jsx)(Q.Z.Item,{label:"LANGFUSE_PRIVATE_KEY",name:"langfusePrivateKey",rules:[{required:!0,message:"Please enter the private key"}],children:(0,a.jsx)(el.Z.Password,{})})]}),"slack"===m&&(0,a.jsx)(Q.Z.Item,{label:"SLACK_WEBHOOK_URL",name:"slackWebhookUrl",rules:[{required:!0,message:"Please enter the Slack webhook URL"}],children:(0,a.jsx)(el.Z,{})}),(0,a.jsx)("div",{style:{textAlign:"right",marginTop:"10px"},children:(0,a.jsx)(es.ZP,{htmlType:"submit",children:"Save"})})]})})]}):null},e2=e=>{let{accessToken:l,userRole:t,userID:s}=e,[r,o]=(0,n.useState)({}),[i,c]=(0,n.useState)(!1),[d]=Q.Z.useForm(),[m,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{l&&t&&s&&q(l,s,t).then(e=>{console.log("callbacks",e),o(e.router_settings)})},[l,t,s]);let x=e=>{if(!l)return;console.log("router_settings",e);let t=Object.fromEntries(Object.entries(e).map(e=>{var l;let[t,s]=e;return[t,(null===(l=document.querySelector('input[name="'.concat(t,'"]')))||void 0===l?void 0:l.value)||s]}));console.log("updatedVariables",t);try{V(l,{router_settings:t})}catch(e){h.ZP.error("Failed to update router settings: "+e,20)}h.ZP.success("router settings updated successfully")};return l?(0,a.jsx)("div",{className:"w-full mx-4",children:(0,a.jsxs)(J.Z,{numItems:1,className:"gap-2 p-8 w-full mt-2",children:[(0,a.jsx)(H.Z,{children:"Router Settings"}),(0,a.jsx)(em.Z,{children:(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Setting"}),(0,a.jsx)(eZ.Z,{children:"Value"})]})}),(0,a.jsx)(ej.Z,{children:Object.entries(r).map(e=>{let[l,t]=e;return(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:(0,a.jsx)(Y.Z,{children:l})}),(0,a.jsx)(eg.Z,{children:(0,a.jsx)(eF.Z,{name:l,defaultValue:"object"==typeof t?JSON.stringify(t,null,2):t.toString()})})]},l)})})]})}),(0,a.jsx)(K.Z,{children:(0,a.jsx)(W.Z,{className:"mt-2",onClick:()=>x(r),children:"Save Changes"})})]})}):null},e4=t(12968),e3=t(67951);async function e8(e,l,t,s){console.log("isLocal:",!1);let r=window.location.origin,a=new e4.ZP.OpenAI({apiKey:s,baseURL:r,dangerouslyAllowBrowser:!0});try{for await(let s of(await a.chat.completions.create({model:t,stream:!0,messages:[{role:"user",content:e}]})))console.log(s),s.choices[0].delta.content&&l(s.choices[0].delta.content)}catch(e){h.ZP.error("Error occurred while generating model response. Please try again. Error: ".concat(e),20)}}var e5=e=>{let{accessToken:l,token:t,userRole:s,userID:r}=e,[o,i]=(0,n.useState)(""),[c,d]=(0,n.useState)(""),[m,h]=(0,n.useState)([]),[u,x]=(0,n.useState)(void 0),[p,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{l&&t&&s&&r&&(async()=>{try{let e=await k(l,r,s);if(console.log("model_info:",e),(null==e?void 0:e.data.length)>0){let l=e.data.map(e=>({value:e.id,label:e.id}));console.log(l),j(l),x(e.data[0].id)}}catch(e){console.error("Error fetching model info:",e)}})()},[l,r,s]);let g=(e,l)=>{h(t=>{let s=t[t.length-1];return s&&s.role===e?[...t.slice(0,t.length-1),{role:e,content:s.content+l}]:[...t,{role:e,content:l}]})},y=async()=>{if(""!==c.trim()&&o&&t&&s&&r){h(e=>[...e,{role:"user",content:c}]);try{u&&await e8(c,e=>g("assistant",e),u,o)}catch(e){console.error("Error fetching model response",e),g("assistant","Error fetching model response")}d("")}};if(s&&"Admin Viewer"==s){let{Title:e,Paragraph:l}=eN.default;return(0,a.jsxs)("div",{children:[(0,a.jsx)(e,{level:1,children:"Access Denied"}),(0,a.jsx)(l,{children:"Ask your proxy admin for access to test models"})]})}return(0,a.jsx)("div",{style:{width:"100%",position:"relative"},children:(0,a.jsx)(J.Z,{className:"gap-2 p-8 h-[80vh] w-full mt-2",children:(0,a.jsx)(em.Z,{children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{children:[(0,a.jsx)(eI.Z,{children:"Chat"}),(0,a.jsx)(eI.Z,{children:"API Reference"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsxs)(eE.Z,{children:[(0,a.jsx)("div",{className:"sm:max-w-2xl",children:(0,a.jsxs)(J.Z,{numItems:2,children:[(0,a.jsxs)(K.Z,{children:[(0,a.jsx)(Y.Z,{children:"API Key"}),(0,a.jsx)(eF.Z,{placeholder:"Type API Key here",type:"password",onValueChange:i,value:o})]}),(0,a.jsxs)(K.Z,{className:"mx-2",children:[(0,a.jsx)(Y.Z,{children:"Select Model:"}),(0,a.jsx)(X.default,{placeholder:"Select a Model",onChange:e=>{console.log("selected ".concat(e)),x(e)},options:p,style:{width:"200px"}})]})]})}),(0,a.jsxs)(ep.Z,{className:"mt-5",style:{display:"block",maxHeight:"60vh",overflowY:"auto"},children:[(0,a.jsx)(ey.Z,{children:(0,a.jsx)(ef.Z,{children:(0,a.jsx)(eg.Z,{})})}),(0,a.jsx)(ej.Z,{children:m.map((e,l)=>(0,a.jsx)(ef.Z,{children:(0,a.jsx)(eg.Z,{children:"".concat(e.role,": ").concat(e.content)})},l))})]}),(0,a.jsx)("div",{className:"mt-3",style:{position:"absolute",bottom:5,width:"95%"},children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(eF.Z,{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Type your message..."}),(0,a.jsx)(W.Z,{onClick:y,className:"ml-2",children:"Send"})]})})]}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{children:[(0,a.jsx)(eI.Z,{children:"OpenAI Python SDK"}),(0,a.jsx)(eI.Z,{children:"LlamaIndex"}),(0,a.jsx)(eI.Z,{children:"Langchain Py"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nimport openai\nclient = openai.OpenAI(\n api_key="your_api_key",\n base_url="http://0.0.0.0:4000" # proxy base url\n)\n\nresponse = client.chat.completions.create(\n model="gpt-3.5-turbo", # model to use from Models Tab\n messages = [\n {\n "role": "user",\n "content": "this is a test request, write a short poem"\n }\n ],\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-openai-client",\n "generation_id": "openai-client-gen-id22",\n "trace_id": "openai-client-trace-id22",\n "trace_user_id": "openai-client-user-id2"\n }\n }\n)\n\nprint(response)\n '})}),(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nimport os, dotenv\n\nfrom llama_index.llms import AzureOpenAI\nfrom llama_index.embeddings import AzureOpenAIEmbedding\nfrom llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext\n\nllm = AzureOpenAI(\n engine="azure-gpt-3.5", # model_name on litellm proxy\n temperature=0.0,\n azure_endpoint="http://0.0.0.0:4000", # litellm proxy endpoint\n api_key="sk-1234", # litellm proxy API Key\n api_version="2023-07-01-preview",\n)\n\nembed_model = AzureOpenAIEmbedding(\n deployment_name="azure-embedding-model",\n azure_endpoint="http://0.0.0.0:4000",\n api_key="sk-1234",\n api_version="2023-07-01-preview",\n)\n\n\ndocuments = SimpleDirectoryReader("llama_index_data").load_data()\nservice_context = ServiceContext.from_defaults(llm=llm, embed_model=embed_model)\nindex = VectorStoreIndex.from_documents(documents, service_context=service_context)\n\nquery_engine = index.as_query_engine()\nresponse = query_engine.query("What did the author do growing up?")\nprint(response)\n\n '})}),(0,a.jsx)(eE.Z,{children:(0,a.jsx)(e3.Z,{language:"python",children:'\nfrom langchain.chat_models import ChatOpenAI\nfrom langchain.prompts.chat import (\n ChatPromptTemplate,\n HumanMessagePromptTemplate,\n SystemMessagePromptTemplate,\n)\nfrom langchain.schema import HumanMessage, SystemMessage\n\nchat = ChatOpenAI(\n openai_api_base="http://0.0.0.0:8000",\n model = "gpt-3.5-turbo",\n temperature=0.1,\n extra_body={\n "metadata": {\n "generation_name": "ishaan-generation-langchain-client",\n "generation_id": "langchain-client-gen-id22",\n "trace_id": "langchain-client-trace-id22",\n "trace_user_id": "langchain-client-user-id2"\n }\n }\n)\n\nmessages = [\n SystemMessage(\n content="You are a helpful assistant that im using to make a test request to."\n ),\n HumanMessage(\n content="test from litellm. tell me why it\'s amazing in 1 sentence"\n ),\n]\nresponse = chat(messages)\n\nprint(response)\n\n '})})]})]})})]})]})})})})},e6=t(33509),e7=t(95781);let{Sider:e9}=e6.default;var le=e=>{let{setPage:l,userRole:t,defaultSelectedKey:s}=e;return"Admin Viewer"==t?(0,a.jsx)(e6.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,a.jsx)(e9,{width:120,children:(0,a.jsxs)(e7.Z,{mode:"inline",defaultSelectedKeys:s||["4"],style:{height:"100%",borderRight:0},children:[(0,a.jsx)(e7.Z.Item,{onClick:()=>l("api-keys"),children:"API Keys"},"4"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("models"),children:"Models"},"2"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("llm-playground"),children:"Chat UI"},"3"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("usage"),children:"Usage"},"1")]})})}):(0,a.jsx)(e6.default,{style:{minHeight:"100vh",maxWidth:"120px"},children:(0,a.jsx)(e9,{width:120,children:(0,a.jsxs)(e7.Z,{mode:"inline",defaultSelectedKeys:s||["1"],style:{height:"100%",borderRight:0},children:[(0,a.jsx)(e7.Z.Item,{onClick:()=>l("api-keys"),children:(0,a.jsx)(Y.Z,{children:"API Keys"})},"1"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("llm-playground"),children:(0,a.jsx)(Y.Z,{children:"Test Key"})},"3"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("models"),children:(0,a.jsx)(Y.Z,{children:"Models"})},"2"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("teams"),children:(0,a.jsx)(Y.Z,{children:"Teams"})},"6"):null,(0,a.jsx)(e7.Z.Item,{onClick:()=>l("usage"),children:(0,a.jsx)(Y.Z,{children:"Usage"})},"4"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("users"),children:(0,a.jsx)(Y.Z,{children:"Users"})},"5"):null,(0,a.jsx)(e7.Z.Item,{onClick:()=>l("settings"),children:(0,a.jsx)(Y.Z,{children:"Integrations"})},"8"),(0,a.jsx)(e7.Z.Item,{onClick:()=>l("general-settings"),children:(0,a.jsx)(Y.Z,{children:"Settings"})},"9"),"Admin"==t?(0,a.jsx)(e7.Z.Item,{onClick:()=>l("admin-panel"),children:(0,a.jsx)(Y.Z,{children:"Admin"})},"7"):null]})})})},ll=t(67989),lt=e=>{let{accessToken:l,token:t,userRole:s,userID:r}=e,o=new Date,[i,c]=(0,n.useState)([]),[d,m]=(0,n.useState)([]),[h,u]=(0,n.useState)([]),[x,p]=(0,n.useState)([]),[j,g]=(0,n.useState)([]),[y,Z]=(0,n.useState)([]),[f,w]=(0,n.useState)([]),[b,k]=(0,n.useState)([]),[v,P]=(0,n.useState)([]),[O,F]=(0,n.useState)([]),M=new Date(o.getFullYear(),o.getMonth(),1),R=new Date(o.getFullYear(),o.getMonth()+1,0),D=U(M),L=U(R);function U(e){let l=e.getFullYear(),t=e.getMonth()+1,s=e.getDate();return"".concat(l,"-").concat(t<10?"0"+t:t,"-").concat(s<10?"0"+s:s)}return console.log("Start date is ".concat(D)),console.log("End date is ".concat(L)),(0,n.useEffect)(()=>{l&&t&&s&&r&&(async()=>{try{if(console.log("user role: ".concat(s)),"Admin"==s||"Admin Viewer"==s){let e=await C(l);c(e);let t=(await I(l)).map(e=>({key:(e.key_name||e.key_alias||e.api_key).substring(0,10),spend:e.total_spend}));m(t);let s=(await T(l)).map(e=>({key:e.model,spend:e.total_spend}));u(s);let r=await S(l);console.log("teamSpend",r),g(r.daily_spend),w(r.teams);let a=r.total_spend_per_team;a=a.map(e=>(e.name=e.team_id||"",e.value=e.total_spend||0,e)),k(a);let n=await A(l);Z(n.top_10_tags)}else"App Owner"==s&&await N(l,t,s,r,D,L).then(async e=>{if(console.log("result from spend logs call",e),"daily_spend"in e){let l=e.daily_spend;console.log("daily spend",l),c(l);let t=e.top_api_keys;m(t)}else{let t=(await E(l,function(e){let l=[];e.forEach(e=>{Object.entries(e).forEach(e=>{let[t,s]=e;"spend"!==t&&"startTime"!==t&&"models"!==t&&"users"!==t&&l.push({key:t,spend:s})})}),l.sort((e,l)=>Number(l.spend)-Number(e.spend));let t=l.slice(0,5).map(e=>e.key);return console.log("topKeys: ".concat(Object.keys(t[0]))),t}(e))).info.map(e=>({key:(e.key_name||e.key_alias).substring(0,10),spend:e.spend}));m(t),p(function(e){let l={};e.forEach(e=>{Object.entries(e.users).forEach(e=>{let[t,s]=e;""!==t&&null!=t&&"None"!=t&&(l[t]||(l[t]=0),l[t]+=s)})});let t=Object.entries(l).map(e=>{let[l,t]=e;return{user_id:l,spend:t}});t.sort((e,l)=>l.spend-e.spend);let s=t.slice(0,5);return console.log("topKeys: ".concat(Object.values(s[0]))),s}(e)),c(e)}});let e=await _(l,r,s);console.log("Model metrics response:",e);let a=[...e].sort((e,l)=>l.avg_latency_seconds-e.avg_latency_seconds);console.log("Sorted by latency:",a),P(e),F(a)}catch(e){console.error("There was an error fetching the data",e)}})()},[l,t,s,r,D,L]),(0,a.jsxs)("div",{style:{width:"100%"},className:"p-8",children:[(0,a.jsx)(ev,{userID:r,userRole:s,accessToken:l,userSpend:null}),(0,a.jsxs)(eP.Z,{children:[(0,a.jsxs)(eT.Z,{className:"mt-2",children:[(0,a.jsx)(eI.Z,{children:"All Up"}),(0,a.jsx)(eI.Z,{children:"Team Based Usage"}),(0,a.jsx)(eI.Z,{children:"Tag Based Usage"}),(0,a.jsx)(eI.Z,{children:"Model Based Usage"})]}),(0,a.jsxs)(eO.Z,{children:[(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,a.jsx)(K.Z,{numColSpan:2,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Monthly Spend"}),(0,a.jsx)(ed.Z,{data:i,index:"date",categories:["spend"],colors:["blue"],valueFormatter:e=>"$ ".concat(new Intl.NumberFormat("us").format(e).toString()),yAxisWidth:100,tickGap:5})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top API Keys"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:d,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:80,tickGap:5,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top Users"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:x,index:"user_id",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})}),(0,a.jsx)(K.Z,{numColSpan:1,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Top Models"}),(0,a.jsx)(ed.Z,{className:"mt-4 h-40",data:h,index:"key",categories:["spend"],colors:["blue"],yAxisWidth:200,layout:"vertical",showXAxis:!1,showLegend:!1})]})})]})}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full",children:[(0,a.jsxs)(K.Z,{numColSpan:2,children:[(0,a.jsxs)(em.Z,{className:"mb-2",children:[(0,a.jsx)(H.Z,{children:"Total Spend Per Team"}),(0,a.jsx)(ll.Z,{data:b})]}),(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Daily Spend Per Team"}),(0,a.jsx)(ed.Z,{className:"h-72",data:j,showLegend:!0,index:"date",categories:f,yAxisWidth:80,stack:!0})]})]}),(0,a.jsx)(K.Z,{numColSpan:2})]})}),(0,a.jsx)(eE.Z,{children:(0,a.jsxs)(J.Z,{numItems:2,className:"gap-2 h-[75vh] w-full mb-4",children:[(0,a.jsx)(K.Z,{numColSpan:2,children:(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Spend Per Tag - Last 30 Days"}),(0,a.jsxs)(Y.Z,{children:["Get Started Tracking cost per tag ",(0,a.jsx)("a",{href:"https://docs.litellm.ai/docs/proxy/enterprise#tracking-spend-for-custom-tags",target:"_blank",children:"here"})]}),(0,a.jsxs)(ep.Z,{children:[(0,a.jsx)(ey.Z,{children:(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eZ.Z,{children:"Tag"}),(0,a.jsx)(eZ.Z,{children:"Spend"}),(0,a.jsx)(eZ.Z,{children:"Requests"})]})}),(0,a.jsx)(ej.Z,{children:y.map(e=>(0,a.jsxs)(ef.Z,{children:[(0,a.jsx)(eg.Z,{children:e.name}),(0,a.jsx)(eg.Z,{children:e.value}),(0,a.jsx)(eg.Z,{children:e.log_count})]},e.name))})]})]})}),(0,a.jsx)(K.Z,{numColSpan:2})]})}),(0,a.jsxs)(eE.Z,{children:[(0,a.jsxs)(em.Z,{children:[(0,a.jsx)(H.Z,{children:"Number Requests per Model"}),(0,a.jsx)(ed.Z,{data:v,className:"h-[50vh]",index:"model",categories:["num_requests"],colors:["blue"],yAxisWidth:400,layout:"vertical",tickGap:5})]}),(0,a.jsxs)(em.Z,{className:"mt-4",children:[(0,a.jsx)(H.Z,{children:"Latency Per Model"}),(0,a.jsx)(ed.Z,{data:O,className:"h-[50vh]",index:"model",categories:["avg_latency_seconds"],colors:["red"],yAxisWidth:400,layout:"vertical",tickGap:5})]})]})]})]})]})},ls=()=>{let{Title:e,Paragraph:l}=eN.default,[t,s]=(0,n.useState)(""),[r,i]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[h,u]=(0,n.useState)(null),[x,p]=(0,n.useState)(!0),j=(0,o.useSearchParams)(),g=j.get("userID"),y=j.get("token"),[Z,f]=(0,n.useState)("api-keys"),[w,b]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(y){let e=(0,eA.o)(y);if(e){if(console.log("Decoded token:",e),console.log("Decoded key:",e.key),b(e.key),e.user_role){let l=function(e){if(!e)return"Undefined Role";switch(console.log("Received user role: ".concat(e.toLowerCase())),console.log("Received user role length: ".concat(e.toLowerCase().length)),e.toLowerCase()){case"app_owner":case"demo_app_owner":return"App Owner";case"app_admin":case"proxy_admin":return"Admin";case"proxy_admin_viewer":return"Admin Viewer";case"app_user":return"App User";default:return"Unknown Role"}}(e.user_role);console.log("Decoded user_role:",l),s(l),"Admin Viewer"==l&&f("usage")}else console.log("User role not defined");e.user_email?i(e.user_email):console.log("User Email is not set ".concat(e)),e.login_method?p("username_password"==e.login_method):console.log("User Email is not set ".concat(e))}}},[y]),(0,a.jsx)(n.Suspense,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:(0,a.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,a.jsx)(m,{userID:g,userRole:t,userEmail:r,showSSOBanner:x}),(0,a.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(le,{setPage:f,userRole:t,defaultSelectedKey:null})}),"api-keys"==Z?(0,a.jsx)(eC,{userID:g,userRole:t,teams:c,keys:h,setUserRole:s,userEmail:r,setUserEmail:i,setTeams:d,setKeys:u}):"models"==Z?(0,a.jsx)(eW,{userID:g,userRole:t,token:y,accessToken:w}):"llm-playground"==Z?(0,a.jsx)(e5,{userID:g,userRole:t,token:y,accessToken:w}):"users"==Z?(0,a.jsx)(e$,{userID:g,userRole:t,token:y,keys:h,accessToken:w,setKeys:u}):"teams"==Z?(0,a.jsx)(eX,{teams:c,setTeams:d,searchParams:j,accessToken:w,userID:g,userRole:t}):"admin-panel"==Z?(0,a.jsx)(e0,{setTeams:d,searchParams:j,accessToken:w,showSSOBanner:x}):"settings"==Z?(0,a.jsx)(e1,{userID:g,userRole:t,accessToken:w}):"general-settings"==Z?(0,a.jsx)(e2,{userID:g,userRole:t,accessToken:w}):(0,a.jsx)(lt,{userID:g,userRole:t,token:y,accessToken:w})]})]})})}}},function(e){e.O(0,[289,971,69,744],function(){return e(e.s=20661)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ui/litellm-dashboard/out/_next/static/chunks/fd9d1056-bcf69420342937de.js b/ui/litellm-dashboard/out/_next/static/chunks/fd9d1056-dafd44dfa2da140c.js similarity index 100% rename from ui/litellm-dashboard/out/_next/static/chunks/fd9d1056-bcf69420342937de.js rename to ui/litellm-dashboard/out/_next/static/chunks/fd9d1056-dafd44dfa2da140c.js diff --git a/ui/litellm-dashboard/out/index.html b/ui/litellm-dashboard/out/index.html index 9786e4ead..93b1ab8eb 100644 --- a/ui/litellm-dashboard/out/index.html +++ b/ui/litellm-dashboard/out/index.html @@ -1 +1 @@ -LiteLLM Dashboard \ No newline at end of file +LiteLLM Dashboard \ No newline at end of file diff --git a/ui/litellm-dashboard/out/index.txt b/ui/litellm-dashboard/out/index.txt index e3b6dba85..8a4a6fb5b 100644 --- a/ui/litellm-dashboard/out/index.txt +++ b/ui/litellm-dashboard/out/index.txt @@ -1,7 +1,7 @@ 2:I[77831,[],""] -3:I[21225,["289","static/chunks/289-04be6cb9636840d2.js","931","static/chunks/app/page-cb85da9a307105a0.js"],""] +3:I[16586,["968","static/chunks/968-0cc23fee51b47e4e.js","931","static/chunks/app/page-93ac11fb17dce9d6.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["y7Wf8hfvd5KooOO87je1n",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{"propsForComponent":{"params":{}},"Component":"$3","isStaticGeneration":true}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_c23dc8","children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/ui/_next/static/css/dc347b0d22ffde5d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["Oe7aA-U7OV9Y13gspREJQ",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{"propsForComponent":{"params":{}},"Component":"$3","isStaticGeneration":true}],null]]},[null,["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_c23dc8","children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/ui/_next/static/css/dc347b0d22ffde5d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"LiteLLM Dashboard"}],["$","meta","3",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","4",{"rel":"icon","href":"/ui/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/ui/litellm-dashboard/src/components/settings.tsx b/ui/litellm-dashboard/src/components/settings.tsx index de8d87bba..e8bdcc4b3 100644 --- a/ui/litellm-dashboard/src/components/settings.tsx +++ b/ui/litellm-dashboard/src/components/settings.tsx @@ -60,7 +60,7 @@ const Settings: React.FC = ({ setSelectedCallback(null); }; - const handleChange = (values) => { + const handleChange = (values: any) => { setSelectedAlertValues(values); // Here, you can perform any additional logic with the selected values console.log('Selected values:', values);