const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CV4Rr1j0.js","./Table-CWRWFg95.js","./addEventListener-BwXlid1p.js","./Dropdown-CSp8FTqG.js","./index-B-_sZvQI.js","./index-tD6godsK.js","./index-CjYZg4K2.js","./index-B__zS0KG.js","./index-BCx1q_2Y.css","./index-CuuEizsV.js","./index-DUqcjVqJ.js","./index-Ci9o3BMm.js","./index-Jdu54dr5.js","./index-ZwmWfN3I.js","./index-DEhiFitC.js","./index-BrNLqRge.js","./index-ByQpjXWK.js","./UpOutlined-CEatmWIN.js","./index-DDpcHwmR.js","./study-page-BLC-2qgz.js","./usePagination-DK-N3QaW.js","./index-Das8pPKs.js","./index-CWqFacgc.js","./callSuper-DlyBkZi7.js","./index-BpTPZbHm.js","./index-D1xRfB3g.js","./index-D2XNTdXQ.js","./DeleteOutlined-CBRh7405.js","./index-B6vjdRJB.js","./rgb-BwIoVOhg.js","./index-4ifBGcWk.js","./utils-D2B0dIuM.js","./index-bvyYgyRY.js","./index-CvHVa0tf.js","./index-D7Hz1C2T.css","./index-D0-9Cd-e.js","./index-Dj2cn9Ts.js","./index-CwzBGZ1J.js","./index-__oRVQML.js","./index-Bv_pEOIo.js","./index-DYTHMaqy.js","./index-DKrVK_EV.js","./index-Dau8eMUo.js","./index-Co8HtG3V.js","./index-H6mX0dqG.js","./index-DlWcbuN8.js","./index-CK-5b1Zr.js","./index-CfoMC2yS.js","./index-BnHaSyf8.js","./index-tn0RQdqM.css","./index-C66mUoZx.js","./index-DYCVsG_r.js","./index-ORSumFwe.js","./index-CyPRua0w.js","./zoom-BGsqVsDF.js","./index-n9x2b4FL.css","./index-COWC0-Pp.js","./index-DoKf3RnE.js","./index-4PCvSHOL.js","./graph-view-CqXblzgF.js","./NodeIndexOutlined-ClGfWszx.js","./index-fbM6Eo8s.js","./index-mZkXK81u.js","./index-Cmo9_7WG.js"])))=>i.map(i=>d[i]);
function hO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();var fK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kh={exports:{}},cc={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var C1;function kj(){if(C1)return cc;C1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:l}}return cc.Fragment=t,cc.jsx=n,cc.jsxs=n,cc}var x1;function qj(){return x1||(x1=1,kh.exports=kj()),kh.exports}var me=qj(),qh={exports:{}},uc={},Wh={exports:{}},Gh={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var E1;function Wj(){return E1||(E1=1,function(e){function t(N,P){var B=N.length;N.push(P);e:for(;0<B;){var K=B-1>>>1,j=N[K];if(0<a(j,P))N[K]=P,N[B]=j,B=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var P=N[0],B=N.pop();if(B!==P){N[0]=B;e:for(var K=0,j=N.length,L=j>>>1;K<L;){var q=2*(K+1)-1,G=N[q],V=q+1,X=N[V];if(0>a(G,B))V<j&&0>a(X,G)?(N[K]=X,N[V]=B,K=V):(N[K]=G,N[q]=B,K=q);else if(V<j&&0>a(X,B))N[K]=X,N[V]=B,K=V;else break e}}return P}function a(N,P){var B=N.sortIndex-P.sortIndex;return B!==0?B:N.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],g=[],h=1,p=null,y=3,E=!1,b=!1,x=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function _(N){for(var P=n(g);P!==null;){if(P.callback===null)r(g);else if(P.startTime<=N)r(g),P.sortIndex=P.expirationTime,t(d,P);else break;P=n(g)}}function R(N){if(x=!1,_(N),!b)if(n(d)!==null)b=!0,T||(T=!0,W());else{var P=n(g);P!==null&&Y(R,P.startTime-N)}}var T=!1,M=-1,z=5,A=-1;function D(){return S?!0:!(e.unstable_now()-A<z)}function F(){if(S=!1,T){var N=e.unstable_now();A=N;var P=!0;try{e:{b=!1,x&&(x=!1,$(M),M=-1),E=!0;var B=y;try{t:{for(_(N),p=n(d);p!==null&&!(p.expirationTime>N&&D());){var K=p.callback;if(typeof K=="function"){p.callback=null,y=p.priorityLevel;var j=K(p.expirationTime<=N);if(N=e.unstable_now(),typeof j=="function"){p.callback=j,_(N),P=!0;break t}p===n(d)&&r(d),_(N)}else r(d);p=n(d)}if(p!==null)P=!0;else{var L=n(g);L!==null&&Y(R,L.startTime-N),P=!1}}break e}finally{p=null,y=B,E=!1}P=void 0}}finally{P?W():T=!1}}}var W;if(typeof O=="function")W=function(){O(F)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,U=k.port2;k.port1.onmessage=F,W=function(){U.postMessage(null)}}else W=function(){w(F,0)};function Y(N,P){M=w(function(){N(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(N){switch(y){case 1:case 2:case 3:var P=3;break;default:P=y}var B=y;y=P;try{return N()}finally{y=B}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var B=y;y=N;try{return P()}finally{y=B}},e.unstable_scheduleCallback=function(N,P,B){var K=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?K+B:K):B=K,N){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=B+j,N={id:h++,callback:P,priorityLevel:N,startTime:B,expirationTime:j,sortIndex:-1},B>K?(N.sortIndex=B,t(g,N),n(d)===null&&N===n(g)&&(x?($(M),M=-1):x=!0,Y(R,B-K))):(N.sortIndex=j,t(d,N),b||E||(b=!0,T||(T=!0,W()))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var P=y;return function(){var B=y;y=P;try{return N.apply(this,arguments)}finally{y=B}}}}(Gh)),Gh}var w1;function Gj(){return w1||(w1=1,Wh.exports=Wj()),Wh.exports}var Kh={exports:{}},Rt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $1;function Kj(){if($1)return Rt;$1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function y(j){return j===null||typeof j!="object"?null:(j=p&&j[p]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(j,L,q){this.props=j,this.context=L,this.refs=x,this.updater=q||E}S.prototype.isReactComponent={},S.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,L,"setState")},S.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function w(){}w.prototype=S.prototype;function $(j,L,q){this.props=j,this.context=L,this.refs=x,this.updater=q||E}var O=$.prototype=new w;O.constructor=$,b(O,S.prototype),O.isPureReactComponent=!0;var _=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},T=Object.prototype.hasOwnProperty;function M(j,L,q,G,V,X){return q=X.ref,{$$typeof:e,type:j,key:L,ref:q!==void 0?q:null,props:X}}function z(j,L){return M(j.type,L,void 0,void 0,void 0,j.props)}function A(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function D(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(q){return L[q]})}var F=/\/+/g;function W(j,L){return typeof j=="object"&&j!==null&&j.key!=null?D(""+j.key):L.toString(36)}function k(){}function U(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(k,k):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function Y(j,L,q,G,V){var X=typeof j;(X==="undefined"||X==="boolean")&&(j=null);var ee=!1;if(j===null)ee=!0;else switch(X){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(j.$$typeof){case e:case t:ee=!0;break;case h:return ee=j._init,Y(ee(j._payload),L,q,G,V)}}if(ee)return V=V(j),ee=G===""?"."+W(j,0):G,_(V)?(q="",ee!=null&&(q=ee.replace(F,"$&/")+"/"),Y(V,L,q,"",function(ie){return ie})):V!=null&&(A(V)&&(V=z(V,q+(V.key==null||j&&j.key===V.key?"":(""+V.key).replace(F,"$&/")+"/")+ee)),L.push(V)),1;ee=0;var se=G===""?".":G+":";if(_(j))for(var ne=0;ne<j.length;ne++)G=j[ne],X=se+W(G,ne),ee+=Y(G,L,q,X,V);else if(ne=y(j),typeof ne=="function")for(j=ne.call(j),ne=0;!(G=j.next()).done;)G=G.value,X=se+W(G,ne++),ee+=Y(G,L,q,X,V);else if(X==="object"){if(typeof j.then=="function")return Y(U(j),L,q,G,V);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ee}function N(j,L,q){if(j==null)return j;var G=[],V=0;return Y(j,G,"","",function(X){return L.call(q,X,V++)}),G}function P(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(q){(j._status===0||j._status===-1)&&(j._status=1,j._result=q)},function(q){(j._status===0||j._status===-1)&&(j._status=2,j._result=q)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var B=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function K(){}return Rt.Children={map:N,forEach:function(j,L,q){N(j,function(){L.apply(this,arguments)},q)},count:function(j){var L=0;return N(j,function(){L++}),L},toArray:function(j){return N(j,function(L){return L})||[]},only:function(j){if(!A(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Rt.Component=S,Rt.Fragment=n,Rt.Profiler=a,Rt.PureComponent=$,Rt.StrictMode=r,Rt.Suspense=d,Rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Rt.__COMPILER_RUNTIME={__proto__:null,c:function(j){return R.H.useMemoCache(j)}},Rt.cache=function(j){return function(){return j.apply(null,arguments)}},Rt.cloneElement=function(j,L,q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var G=b({},j.props),V=j.key,X=void 0;if(L!=null)for(ee in L.ref!==void 0&&(X=void 0),L.key!==void 0&&(V=""+L.key),L)!T.call(L,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&L.ref===void 0||(G[ee]=L[ee]);var ee=arguments.length-2;if(ee===1)G.children=q;else if(1<ee){for(var se=Array(ee),ne=0;ne<ee;ne++)se[ne]=arguments[ne+2];G.children=se}return M(j.type,V,void 0,void 0,X,G)},Rt.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:l,_context:j},j},Rt.createElement=function(j,L,q){var G,V={},X=null;if(L!=null)for(G in L.key!==void 0&&(X=""+L.key),L)T.call(L,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(V[G]=L[G]);var ee=arguments.length-2;if(ee===1)V.children=q;else if(1<ee){for(var se=Array(ee),ne=0;ne<ee;ne++)se[ne]=arguments[ne+2];V.children=se}if(j&&j.defaultProps)for(G in ee=j.defaultProps,ee)V[G]===void 0&&(V[G]=ee[G]);return M(j,X,void 0,void 0,null,V)},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(j){return{$$typeof:u,render:j}},Rt.isValidElement=A,Rt.lazy=function(j){return{$$typeof:h,_payload:{_status:-1,_result:j},_init:P}},Rt.memo=function(j,L){return{$$typeof:g,type:j,compare:L===void 0?null:L}},Rt.startTransition=function(j){var L=R.T,q={};R.T=q;try{var G=j(),V=R.S;V!==null&&V(q,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(K,B)}catch(X){B(X)}finally{R.T=L}},Rt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Rt.use=function(j){return R.H.use(j)},Rt.useActionState=function(j,L,q){return R.H.useActionState(j,L,q)},Rt.useCallback=function(j,L){return R.H.useCallback(j,L)},Rt.useContext=function(j){return R.H.useContext(j)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(j,L){return R.H.useDeferredValue(j,L)},Rt.useEffect=function(j,L,q){var G=R.H;if(typeof q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(j,L)},Rt.useId=function(){return R.H.useId()},Rt.useImperativeHandle=function(j,L,q){return R.H.useImperativeHandle(j,L,q)},Rt.useInsertionEffect=function(j,L){return R.H.useInsertionEffect(j,L)},Rt.useLayoutEffect=function(j,L){return R.H.useLayoutEffect(j,L)},Rt.useMemo=function(j,L){return R.H.useMemo(j,L)},Rt.useOptimistic=function(j,L){return R.H.useOptimistic(j,L)},Rt.useReducer=function(j,L,q){return R.H.useReducer(j,L,q)},Rt.useRef=function(j){return R.H.useRef(j)},Rt.useState=function(j){return R.H.useState(j)},Rt.useSyncExternalStore=function(j,L,q){return R.H.useSyncExternalStore(j,L,q)},Rt.useTransition=function(){return R.H.useTransition()},Rt.version="19.1.0",Rt}var O1;function Zd(){return O1||(O1=1,Kh.exports=Kj()),Kh.exports}var Xh={exports:{}},Sr={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var R1;function Xj(){if(R1)return Sr;R1=1;var e=Zd();function t(d){var g="https://react.dev/errors/"+d;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)g+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(d,g,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:g,implementation:h}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,g){if(d==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sr.createPortal=function(d,g){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return l(d,g,null,h)},Sr.flushSync=function(d){var g=c.T,h=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=g,r.p=h,r.d.f()}},Sr.preconnect=function(d,g){typeof d=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(d,g))},Sr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Sr.preinit=function(d,g){if(typeof d=="string"&&g&&typeof g.as=="string"){var h=g.as,p=u(h,g.crossOrigin),y=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;h==="style"?r.d.S(d,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:E}):h==="script"&&r.d.X(d,{crossOrigin:p,integrity:y,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Sr.preinitModule=function(d,g){if(typeof d=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var h=u(g.as,g.crossOrigin);r.d.M(d,{crossOrigin:h,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(d)},Sr.preload=function(d,g){if(typeof d=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var h=g.as,p=u(h,g.crossOrigin);r.d.L(d,h,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Sr.preloadModule=function(d,g){if(typeof d=="string")if(g){var h=u(g.as,g.crossOrigin);r.d.m(d,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:h,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(d)},Sr.requestFormReset=function(d){r.d.r(d)},Sr.unstable_batchedUpdates=function(d,g){return d(g)},Sr.useFormState=function(d,g,h){return c.H.useFormState(d,g,h)},Sr.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sr.version="19.1.0",Sr}var _1;function pO(){if(_1)return Xh.exports;_1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xh.exports=Xj(),Xh.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var T1;function Yj(){if(T1)return uc;T1=1;var e=Gj(),t=Zd(),n=pO();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var i=o,s=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(s=i.return),o=i.return;while(o)}return i.tag===3?s:null}function c(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function u(o){if(l(o)!==o)throw Error(r(188))}function d(o){var i=o.alternate;if(!i){if(i=l(o),i===null)throw Error(r(188));return i!==o?null:o}for(var s=o,m=i;;){var v=s.return;if(v===null)break;var C=v.alternate;if(C===null){if(m=v.return,m!==null){s=m;continue}break}if(v.child===C.child){for(C=v.child;C;){if(C===s)return u(v),o;if(C===m)return u(v),i;C=C.sibling}throw Error(r(188))}if(s.return!==m.return)s=v,m=C;else{for(var I=!1,H=v.child;H;){if(H===s){I=!0,s=v,m=C;break}if(H===m){I=!0,m=v,s=C;break}H=H.sibling}if(!I){for(H=C.child;H;){if(H===s){I=!0,s=C,m=v;break}if(H===m){I=!0,m=C,s=v;break}H=H.sibling}if(!I)throw Error(r(189))}}if(s.alternate!==m)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?o:i}function g(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=g(o),i!==null)return i;o=o.sibling}return null}var h=Object.assign,p=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),$=Symbol.for("react.consumer"),O=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function W(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var k=Symbol.for("react.client.reference");function U(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===k?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case T:return"SuspenseList";case A:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case E:return"Portal";case O:return(o.displayName||"Context")+".Provider";case $:return(o._context.displayName||"Context")+".Consumer";case _:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return i=o.displayName||null,i!==null?i:U(o.type)||"Memo";case z:i=o._payload,o=o._init;try{return U(o(i))}catch{}}return null}var Y=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},K=[],j=-1;function L(o){return{current:o}}function q(o){0>j||(o.current=K[j],K[j]=null,j--)}function G(o,i){j++,K[j]=o.current,o.current=i}var V=L(null),X=L(null),ee=L(null),se=L(null);function ne(o,i){switch(G(ee,i),G(X,o),G(V,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?XC(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=XC(i),o=YC(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}q(V),G(V,o)}function ie(){q(V),q(X),q(ee)}function ve(o){o.memoizedState!==null&&G(se,o);var i=V.current,s=YC(i,o.type);i!==s&&(G(X,o),G(V,s))}function fe(o){X.current===o&&(q(V),q(X)),se.current===o&&(q(se),ac._currentValue=B)}var le=Object.prototype.hasOwnProperty,be=e.unstable_scheduleCallback,_e=e.unstable_cancelCallback,ce=e.unstable_shouldYield,Se=e.unstable_requestPaint,Oe=e.unstable_now,$e=e.unstable_getCurrentPriorityLevel,je=e.unstable_ImmediatePriority,Ze=e.unstable_UserBlockingPriority,He=e.unstable_NormalPriority,Xe=e.unstable_LowPriority,Ee=e.unstable_IdlePriority,Me=e.log,Ve=e.unstable_setDisableYieldValue,Ke=null,qe=null;function at(o){if(typeof Me=="function"&&Ve(o),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(Ke,o)}catch{}}var Ue=Math.clz32?Math.clz32:pt,Ye=Math.log,st=Math.LN2;function pt(o){return o>>>=0,o===0?32:31-(Ye(o)/st|0)|0}var Qe=256,ze=4194304;function Fe(o){var i=o&42;if(i!==0)return i;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Ne(o,i,s){var m=o.pendingLanes;if(m===0)return 0;var v=0,C=o.suspendedLanes,I=o.pingedLanes;o=o.warmLanes;var H=m&134217727;return H!==0?(m=H&~C,m!==0?v=Fe(m):(I&=H,I!==0?v=Fe(I):s||(s=H&~o,s!==0&&(v=Fe(s))))):(H=m&~C,H!==0?v=Fe(H):I!==0?v=Fe(I):s||(s=m&~o,s!==0&&(v=Fe(s)))),v===0?0:i!==0&&i!==v&&(i&C)===0&&(C=v&-v,s=i&-i,C>=s||C===32&&(s&4194048)!==0)?i:v}function ke(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function xt(o,i){switch(o){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jt(){var o=Qe;return Qe<<=1,(Qe&4194048)===0&&(Qe=256),o}function Nn(){var o=ze;return ze<<=1,(ze&62914560)===0&&(ze=4194304),o}function xn(o){for(var i=[],s=0;31>s;s++)i.push(o);return i}function On(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function fn(o,i,s,m,v,C){var I=o.pendingLanes;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=s,o.entangledLanes&=s,o.errorRecoveryDisabledLanes&=s,o.shellSuspendCounter=0;var H=o.entanglements,Z=o.expirationTimes,de=o.hiddenUpdates;for(s=I&~s;0<s;){var xe=31-Ue(s),Re=1<<xe;H[xe]=0,Z[xe]=-1;var he=de[xe];if(he!==null)for(de[xe]=null,xe=0;xe<he.length;xe++){var pe=he[xe];pe!==null&&(pe.lane&=-536870913)}s&=~Re}m!==0&&Vt(o,m,0),C!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=C&~(I&~i))}function Vt(o,i,s){o.pendingLanes|=i,o.suspendedLanes&=~i;var m=31-Ue(i);o.entangledLanes|=i,o.entanglements[m]=o.entanglements[m]|1073741824|s&4194090}function on(o,i){var s=o.entangledLanes|=i;for(o=o.entanglements;s;){var m=31-Ue(s),v=1<<m;v&i|o[m]&i&&(o[m]|=i),s&=~v}}function wt(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function nt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function We(){var o=P.p;return o!==0?o:(o=window.event,o===void 0?32:h1(o.type))}function Le(o,i){var s=P.p;try{return P.p=o,i()}finally{P.p=s}}var vt=Math.random().toString(36).slice(2),St="__reactFiber$"+vt,Be="__reactProps$"+vt,Ae="__reactContainer$"+vt,rt="__reactEvents$"+vt,ot="__reactListeners$"+vt,tt="__reactHandles$"+vt,ut="__reactResources$"+vt,Ut="__reactMarker$"+vt;function Tt(o){delete o[St],delete o[Be],delete o[rt],delete o[ot],delete o[tt]}function It(o){var i=o[St];if(i)return i;for(var s=o.parentNode;s;){if(i=s[Ae]||s[St]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(o=e1(o);o!==null;){if(s=o[St])return s;o=e1(o)}return i}o=s,s=o.parentNode}return null}function Pt(o){if(o=o[St]||o[Ae]){var i=o.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return o}return null}function en(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function ln(o){var i=o[ut];return i||(i=o[ut]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function _t(o){o[Ut]=!0}var nr=new Set,Sn={};function sn(o,i){Ie(o,i),Ie(o+"Capture",i)}function Ie(o,i){for(Sn[o]=i,o=0;o<i.length;o++)nr.add(i[o])}var et=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yt={},Et={};function Yt(o){return le.call(Et,o)?!0:le.call(yt,o)?!1:et.test(o)?Et[o]=!0:(yt[o]=!0,!1)}function Gn(o,i,s){if(Yt(i))if(s===null)o.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var m=i.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+s)}}function zn(o,i,s){if(s===null)o.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+s)}}function Hn(o,i,s,m){if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttributeNS(i,s,""+m)}}var fr,yr;function Rn(o){if(fr===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);fr=i&&i[1]||"",yr=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fr+o+yr}var rr=!1;function Br(o,i){if(!o||rr)return"";rr=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(i){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(pe){var he=pe}Reflect.construct(o,[],Re)}else{try{Re.call()}catch(pe){he=pe}o.call(Re.prototype)}}else{try{throw Error()}catch(pe){he=pe}(Re=o())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(pe){if(pe&&he&&typeof pe.stack=="string")return[pe.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=m.DetermineComponentFrameRoot(),I=C[0],H=C[1];if(I&&H){var Z=I.split(`
`),de=H.split(`
`);for(v=m=0;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;for(;v<de.length&&!de[v].includes("DetermineComponentFrameRoot");)v++;if(m===Z.length||v===de.length)for(m=Z.length-1,v=de.length-1;1<=m&&0<=v&&Z[m]!==de[v];)v--;for(;1<=m&&0<=v;m--,v--)if(Z[m]!==de[v]){if(m!==1||v!==1)do if(m--,v--,0>v||Z[m]!==de[v]){var xe=`
`+Z[m].replace(" at new "," at ");return o.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",o.displayName)),xe}while(1<=m&&0<=v);break}}}finally{rr=!1,Error.prepareStackTrace=s}return(s=o?o.displayName||o.name:"")?Rn(s):""}function Fa(o){switch(o.tag){case 26:case 27:case 5:return Rn(o.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 15:return Br(o.type,!1);case 11:return Br(o.type.render,!1);case 1:return Br(o.type,!0);case 31:return Rn("Activity");default:return""}}function Kn(o){try{var i="";do i+=Fa(o),o=o.return;while(o);return i}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function dn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Hr(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function oa(o){var i=Hr(o)?"checked":"value",s=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),m=""+o[i];if(!o.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var v=s.get,C=s.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return v.call(this)},set:function(I){m=""+I,C.call(this,I)}}),Object.defineProperty(o,i,{enumerable:s.enumerable}),{getValue:function(){return m},setValue:function(I){m=""+I},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Xn(o){o._valueTracker||(o._valueTracker=oa(o))}function wa(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var s=i.getValue(),m="";return o&&(m=Hr(o)?o.checked?"true":"false":o.value),o=m,o!==s?(i.setValue(o),!0):!1}function Bt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Je=/[\n"\\]/g;function De(o){return o.replace(Je,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Ht(o,i,s,m,v,C,I,H){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),i!=null?I==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+dn(i)):o.value!==""+dn(i)&&(o.value=""+dn(i)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),i!=null?Qt(o,I,dn(i)):s!=null?Qt(o,I,dn(s)):m!=null&&o.removeAttribute("value"),v==null&&C!=null&&(o.defaultChecked=!!C),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?o.name=""+dn(H):o.removeAttribute("name")}function kt(o,i,s,m,v,C,I,H){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(o.type=C),i!=null||s!=null){if(!(C!=="submit"&&C!=="reset"||i!=null))return;s=s!=null?""+dn(s):"",i=i!=null?""+dn(i):s,H||i===o.value||(o.value=i),o.defaultValue=i}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=H?o.checked:!!m,o.defaultChecked=!!m,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I)}function Qt(o,i,s){i==="number"&&Bt(o.ownerDocument)===o||o.defaultValue===""+s||(o.defaultValue=""+s)}function Zt(o,i,s,m){if(o=o.options,i){i={};for(var v=0;v<s.length;v++)i["$"+s[v]]=!0;for(s=0;s<o.length;s++)v=i.hasOwnProperty("$"+o[s].value),o[s].selected!==v&&(o[s].selected=v),v&&m&&(o[s].defaultSelected=!0)}else{for(s=""+dn(s),i=null,v=0;v<o.length;v++){if(o[v].value===s){o[v].selected=!0,m&&(o[v].defaultSelected=!0);return}i!==null||o[v].disabled||(i=o[v])}i!==null&&(i.selected=!0)}}function ar(o,i,s){if(i!=null&&(i=""+dn(i),i!==o.value&&(o.value=i),s==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=s!=null?""+dn(s):""}function Fn(o,i,s,m){if(i==null){if(m!=null){if(s!=null)throw Error(r(92));if(Y(m)){if(1<m.length)throw Error(r(93));m=m[0]}s=m}s==null&&(s=""),i=s}s=dn(i),o.defaultValue=s,m=o.textContent,m===s&&m!==""&&m!==null&&(o.value=m)}function jn(o,i){if(i){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=i;return}}o.textContent=i}var or=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ir(o,i,s){var m=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?m?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":m?o.setProperty(i,s):typeof s!="number"||s===0||or.has(i)?i==="float"?o.cssFloat=s:o[i]=(""+s).trim():o[i]=s+"px"}function wr(o,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,s!=null){for(var m in s)!s.hasOwnProperty(m)||i!=null&&i.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var v in i)m=i[v],i.hasOwnProperty(v)&&s[v]!==m&&ir(o,v,m)}else for(var C in i)i.hasOwnProperty(C)&&ir(o,C,i[C])}function Yn(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ys=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function no(o){return Tr.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Va=null;function ia(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var $r=null,la=null;function yi(o){var i=Pt(o);if(i&&(o=i.stateNode)){var s=o[Be]||null;e:switch(o=i.stateNode,i.type){case"input":if(Ht(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=o;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+De(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var m=s[i];if(m!==o&&m.form===o.form){var v=m[Be]||null;if(!v)throw Error(r(90));Ht(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(i=0;i<s.length;i++)m=s[i],m.form===o.form&&wa(m)}break e;case"textarea":ar(o,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&Zt(o,!!s.multiple,i,!1)}}}var bi=!1;function rl(o,i,s){if(bi)return o(i,s);bi=!0;try{var m=o(i);return m}finally{if(bi=!1,($r!==null||la!==null)&&(pf(),$r&&(i=$r,o=la,la=$r=null,yi(i),o)))for(i=0;i<o.length;i++)yi(o[i])}}function ro(o,i){var s=o.stateNode;if(s===null)return null;var m=s[Be]||null;if(m===null)return null;s=m[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Ge=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dt=!1;if(Ge)try{var rn={};Object.defineProperty(rn,"passive",{get:function(){dt=!0}}),window.addEventListener("test",rn,rn),window.removeEventListener("test",rn,rn)}catch{dt=!1}var mn=null,En=null,ao=null;function al(){if(ao)return ao;var o,i=En,s=i.length,m,v="value"in mn?mn.value:mn.textContent,C=v.length;for(o=0;o<s&&i[o]===v[o];o++);var I=s-o;for(m=1;m<=I&&i[s-m]===v[C-m];m++);return ao=v.slice(o,1<m?1-m:void 0)}function Si(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function oo(){return!0}function eb(){return!1}function Mr(o){function i(s,m,v,C,I){this._reactName=s,this._targetInst=v,this.type=m,this.nativeEvent=C,this.target=I,this.currentTarget=null;for(var H in o)o.hasOwnProperty(H)&&(s=o[H],this[H]=s?s(C):C[H]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?oo:eb,this.isPropagationStopped=eb,this}return h(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=oo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=oo)},persist:function(){},isPersistent:oo}),i}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Mr(Ci),bs=h({},Ci,{view:0,detail:0}),kM=Mr(bs),Xm,Ym,Ss,Au=h({},bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zm,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ss&&(Ss&&o.type==="mousemove"?(Xm=o.screenX-Ss.screenX,Ym=o.screenY-Ss.screenY):Ym=Xm=0,Ss=o),Xm)},movementY:function(o){return"movementY"in o?o.movementY:Ym}}),tb=Mr(Au),qM=h({},Au,{dataTransfer:0}),WM=Mr(qM),GM=h({},bs,{relatedTarget:0}),Qm=Mr(GM),KM=h({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),XM=Mr(KM),YM=h({},Ci,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),QM=Mr(YM),ZM=h({},Ci,{data:0}),nb=Mr(ZM),JM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eN={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nN(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=tN[o])?!!i[o]:!1}function Zm(){return nN}var rN=h({},bs,{key:function(o){if(o.key){var i=JM[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=Si(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?eN[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zm,charCode:function(o){return o.type==="keypress"?Si(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Si(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),aN=Mr(rN),oN=h({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rb=Mr(oN),iN=h({},bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zm}),lN=Mr(iN),sN=h({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),cN=Mr(sN),uN=h({},Au,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),fN=Mr(uN),dN=h({},Ci,{newState:0,oldState:0}),mN=Mr(dN),gN=[9,13,27,32],Jm=Ge&&"CompositionEvent"in window,Cs=null;Ge&&"documentMode"in document&&(Cs=document.documentMode);var hN=Ge&&"TextEvent"in window&&!Cs,ab=Ge&&(!Jm||Cs&&8<Cs&&11>=Cs),ob=" ",ib=!1;function lb(o,i){switch(o){case"keyup":return gN.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sb(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ol=!1;function pN(o,i){switch(o){case"compositionend":return sb(i);case"keypress":return i.which!==32?null:(ib=!0,ob);case"textInput":return o=i.data,o===ob&&ib?null:o;default:return null}}function vN(o,i){if(ol)return o==="compositionend"||!Jm&&lb(o,i)?(o=al(),ao=En=mn=null,ol=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ab&&i.locale!=="ko"?null:i.data;default:return null}}var yN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cb(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!yN[o.type]:i==="textarea"}function ub(o,i,s,m){$r?la?la.push(m):la=[m]:$r=m,i=xf(i,"onChange"),0<i.length&&(s=new Pu("onChange","change",null,s,m),o.push({event:s,listeners:i}))}var xs=null,Es=null;function bN(o){kC(o,0)}function zu(o){var i=en(o);if(wa(i))return o}function fb(o,i){if(o==="change")return i}var db=!1;if(Ge){var eg;if(Ge){var tg="oninput"in document;if(!tg){var mb=document.createElement("div");mb.setAttribute("oninput","return;"),tg=typeof mb.oninput=="function"}eg=tg}else eg=!1;db=eg&&(!document.documentMode||9<document.documentMode)}function gb(){xs&&(xs.detachEvent("onpropertychange",hb),Es=xs=null)}function hb(o){if(o.propertyName==="value"&&zu(Es)){var i=[];ub(i,Es,o,ia(o)),rl(bN,i)}}function SN(o,i,s){o==="focusin"?(gb(),xs=i,Es=s,xs.attachEvent("onpropertychange",hb)):o==="focusout"&&gb()}function CN(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return zu(Es)}function xN(o,i){if(o==="click")return zu(i)}function EN(o,i){if(o==="input"||o==="change")return zu(i)}function wN(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var Fr=typeof Object.is=="function"?Object.is:wN;function ws(o,i){if(Fr(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var s=Object.keys(o),m=Object.keys(i);if(s.length!==m.length)return!1;for(m=0;m<s.length;m++){var v=s[m];if(!le.call(i,v)||!Fr(o[v],i[v]))return!1}return!0}function pb(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function vb(o,i){var s=pb(o);o=0;for(var m;s;){if(s.nodeType===3){if(m=o+s.textContent.length,o<=i&&m>=i)return{node:s,offset:i-o};o=m}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=pb(s)}}function yb(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?yb(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function bb(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Bt(o.document);i instanceof o.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)o=i.contentWindow;else break;i=Bt(o.document)}return i}function ng(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var $N=Ge&&"documentMode"in document&&11>=document.documentMode,il=null,rg=null,$s=null,ag=!1;function Sb(o,i,s){var m=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ag||il==null||il!==Bt(m)||(m=il,"selectionStart"in m&&ng(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),$s&&ws($s,m)||($s=m,m=xf(rg,"onSelect"),0<m.length&&(i=new Pu("onSelect","select",null,i,s),o.push({event:i,listeners:m}),i.target=il)))}function xi(o,i){var s={};return s[o.toLowerCase()]=i.toLowerCase(),s["Webkit"+o]="webkit"+i,s["Moz"+o]="moz"+i,s}var ll={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},og={},Cb={};Ge&&(Cb=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function Ei(o){if(og[o])return og[o];if(!ll[o])return o;var i=ll[o],s;for(s in i)if(i.hasOwnProperty(s)&&s in Cb)return og[o]=i[s];return o}var xb=Ei("animationend"),Eb=Ei("animationiteration"),wb=Ei("animationstart"),ON=Ei("transitionrun"),RN=Ei("transitionstart"),_N=Ei("transitioncancel"),$b=Ei("transitionend"),Ob=new Map,ig="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ig.push("scrollEnd");function $a(o,i){Ob.set(o,i),sn(i,[o])}var Rb=new WeakMap;function sa(o,i){if(typeof o=="object"&&o!==null){var s=Rb.get(o);return s!==void 0?s:(i={value:o,source:i,stack:Kn(i)},Rb.set(o,i),i)}return{value:o,source:i,stack:Kn(i)}}var ca=[],sl=0,lg=0;function Du(){for(var o=sl,i=lg=sl=0;i<o;){var s=ca[i];ca[i++]=null;var m=ca[i];ca[i++]=null;var v=ca[i];ca[i++]=null;var C=ca[i];if(ca[i++]=null,m!==null&&v!==null){var I=m.pending;I===null?v.next=v:(v.next=I.next,I.next=v),m.pending=v}C!==0&&_b(s,v,C)}}function Lu(o,i,s,m){ca[sl++]=o,ca[sl++]=i,ca[sl++]=s,ca[sl++]=m,lg|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function sg(o,i,s,m){return Lu(o,i,s,m),Bu(o)}function cl(o,i){return Lu(o,null,null,i),Bu(o)}function _b(o,i,s){o.lanes|=s;var m=o.alternate;m!==null&&(m.lanes|=s);for(var v=!1,C=o.return;C!==null;)C.childLanes|=s,m=C.alternate,m!==null&&(m.childLanes|=s),C.tag===22&&(o=C.stateNode,o===null||o._visibility&1||(v=!0)),o=C,C=C.return;return o.tag===3?(C=o.stateNode,v&&i!==null&&(v=31-Ue(s),o=C.hiddenUpdates,m=o[v],m===null?o[v]=[i]:m.push(i),i.lane=s|536870912),C):null}function Bu(o){if(50<Ys)throw Ys=0,gh=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var ul={};function TN(o,i,s,m){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(o,i,s,m){return new TN(o,i,s,m)}function cg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function io(o,i){var s=o.alternate;return s===null?(s=Vr(o.tag,i,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=i,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&65011712,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,i=o.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s.refCleanup=o.refCleanup,s}function Tb(o,i){o.flags&=65011714;var s=o.alternate;return s===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,i=s.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function Hu(o,i,s,m,v,C){var I=0;if(m=o,typeof o=="function")cg(o)&&(I=1);else if(typeof o=="string")I=Nj(o,s,V.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case A:return o=Vr(31,s,i,v),o.elementType=A,o.lanes=C,o;case b:return wi(s.children,v,C,i);case x:I=8,v|=24;break;case S:return o=Vr(12,s,i,v|2),o.elementType=S,o.lanes=C,o;case R:return o=Vr(13,s,i,v),o.elementType=R,o.lanes=C,o;case T:return o=Vr(19,s,i,v),o.elementType=T,o.lanes=C,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:case O:I=10;break e;case $:I=9;break e;case _:I=11;break e;case M:I=14;break e;case z:I=16,m=null;break e}I=29,s=Error(r(130,o===null?"null":typeof o,"")),m=null}return i=Vr(I,s,i,v),i.elementType=o,i.type=m,i.lanes=C,i}function wi(o,i,s,m){return o=Vr(7,o,m,i),o.lanes=s,o}function ug(o,i,s){return o=Vr(6,o,null,i),o.lanes=s,o}function fg(o,i,s){return i=Vr(4,o.children!==null?o.children:[],o.key,i),i.lanes=s,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var fl=[],dl=0,Fu=null,Vu=0,ua=[],fa=0,$i=null,lo=1,so="";function Oi(o,i){fl[dl++]=Vu,fl[dl++]=Fu,Fu=o,Vu=i}function Mb(o,i,s){ua[fa++]=lo,ua[fa++]=so,ua[fa++]=$i,$i=o;var m=lo;o=so;var v=32-Ue(m)-1;m&=~(1<<v),s+=1;var C=32-Ue(i)+v;if(30<C){var I=v-v%5;C=(m&(1<<I)-1).toString(32),m>>=I,v-=I,lo=1<<32-Ue(i)+v|s<<v|m,so=C+o}else lo=1<<C|s<<v|m,so=o}function dg(o){o.return!==null&&(Oi(o,1),Mb(o,1,0))}function mg(o){for(;o===Fu;)Fu=fl[--dl],fl[dl]=null,Vu=fl[--dl],fl[dl]=null;for(;o===$i;)$i=ua[--fa],ua[fa]=null,so=ua[--fa],ua[fa]=null,lo=ua[--fa],ua[fa]=null}var Or=null,In=null,tn=!1,Ri=null,Ua=!1,gg=Error(r(519));function _i(o){var i=Error(r(418,""));throw _s(sa(i,o)),gg}function Nb(o){var i=o.stateNode,s=o.type,m=o.memoizedProps;switch(i[St]=o,i[Be]=m,s){case"dialog":Lt("cancel",i),Lt("close",i);break;case"iframe":case"object":case"embed":Lt("load",i);break;case"video":case"audio":for(s=0;s<Zs.length;s++)Lt(Zs[s],i);break;case"source":Lt("error",i);break;case"img":case"image":case"link":Lt("error",i),Lt("load",i);break;case"details":Lt("toggle",i);break;case"input":Lt("invalid",i),kt(i,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Xn(i);break;case"select":Lt("invalid",i);break;case"textarea":Lt("invalid",i),Fn(i,m.value,m.defaultValue,m.children),Xn(i)}s=m.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||m.suppressHydrationWarning===!0||KC(i.textContent,s)?(m.popover!=null&&(Lt("beforetoggle",i),Lt("toggle",i)),m.onScroll!=null&&Lt("scroll",i),m.onScrollEnd!=null&&Lt("scrollend",i),m.onClick!=null&&(i.onclick=Ef),i=!0):i=!1,i||_i(o)}function jb(o){for(Or=o.return;Or;)switch(Or.tag){case 5:case 13:Ua=!1;return;case 27:case 3:Ua=!0;return;default:Or=Or.return}}function Os(o){if(o!==Or)return!1;if(!tn)return jb(o),tn=!0,!1;var i=o.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=o.type,s=!(s!=="form"&&s!=="button")||Mh(o.type,o.memoizedProps)),s=!s),s&&In&&_i(o),jb(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,i=0;o;){if(o.nodeType===8)if(s=o.data,s==="/$"){if(i===0){In=Ra(o.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;o=o.nextSibling}In=null}}else i===27?(i=In,Qo(o.type)?(o=Ph,Ph=null,In=o):In=i):In=Or?Ra(o.stateNode.nextSibling):null;return!0}function Rs(){In=Or=null,tn=!1}function Ib(){var o=Ri;return o!==null&&(Ir===null?Ir=o:Ir.push.apply(Ir,o),Ri=null),o}function _s(o){Ri===null?Ri=[o]:Ri.push(o)}var hg=L(null),Ti=null,co=null;function zo(o,i,s){G(hg,i._currentValue),i._currentValue=s}function uo(o){o._currentValue=hg.current,q(hg)}function pg(o,i,s){for(;o!==null;){var m=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,m!==null&&(m.childLanes|=i)):m!==null&&(m.childLanes&i)!==i&&(m.childLanes|=i),o===s)break;o=o.return}}function vg(o,i,s,m){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var C=v.dependencies;if(C!==null){var I=v.child;C=C.firstContext;e:for(;C!==null;){var H=C;C=v;for(var Z=0;Z<i.length;Z++)if(H.context===i[Z]){C.lanes|=s,H=C.alternate,H!==null&&(H.lanes|=s),pg(C.return,s,o),m||(I=null);break e}C=H.next}}else if(v.tag===18){if(I=v.return,I===null)throw Error(r(341));I.lanes|=s,C=I.alternate,C!==null&&(C.lanes|=s),pg(I,s,o),I=null}else I=v.child;if(I!==null)I.return=v;else for(I=v;I!==null;){if(I===o){I=null;break}if(v=I.sibling,v!==null){v.return=I.return,I=v;break}I=I.return}v=I}}function Ts(o,i,s,m){o=null;for(var v=i,C=!1;v!==null;){if(!C){if((v.flags&524288)!==0)C=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var I=v.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var H=v.type;Fr(v.pendingProps.value,I.value)||(o!==null?o.push(H):o=[H])}}else if(v===se.current){if(I=v.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(ac):o=[ac])}v=v.return}o!==null&&vg(i,o,s,m),i.flags|=262144}function Uu(o){for(o=o.firstContext;o!==null;){if(!Fr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Mi(o){Ti=o,co=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function br(o){return Pb(Ti,o)}function ku(o,i){return Ti===null&&Mi(o),Pb(o,i)}function Pb(o,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},co===null){if(o===null)throw Error(r(308));co=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else co=co.next=i;return s}var MN=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(s,m){o.push(m)}};this.abort=function(){i.aborted=!0,o.forEach(function(s){return s()})}},NN=e.unstable_scheduleCallback,jN=e.unstable_NormalPriority,Qn={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new MN,data:new Map,refCount:0}}function Ms(o){o.refCount--,o.refCount===0&&NN(jN,function(){o.controller.abort()})}var Ns=null,bg=0,ml=0,gl=null;function IN(o,i){if(Ns===null){var s=Ns=[];bg=0,ml=Ch(),gl={status:"pending",value:void 0,then:function(m){s.push(m)}}}return bg++,i.then(Ab,Ab),i}function Ab(){if(--bg===0&&Ns!==null){gl!==null&&(gl.status="fulfilled");var o=Ns;Ns=null,ml=0,gl=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function PN(o,i){var s=[],m={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return o.then(function(){m.status="fulfilled",m.value=i;for(var v=0;v<s.length;v++)(0,s[v])(i)},function(v){for(m.status="rejected",m.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),m}var zb=N.S;N.S=function(o,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&IN(o,i),zb!==null&&zb(o,i)};var Ni=L(null);function Sg(){var o=Ni.current;return o!==null?o:wn.pooledCache}function qu(o,i){i===null?G(Ni,Ni.current):G(Ni,i.pool)}function Db(){var o=Sg();return o===null?null:{parent:Qn._currentValue,pool:o}}var js=Error(r(460)),Lb=Error(r(474)),Wu=Error(r(542)),Cg={then:function(){}};function Bb(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Gu(){}function Hb(o,i,s){switch(s=o[s],s===void 0?o.push(i):s!==i&&(i.then(Gu,Gu),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,Vb(o),o;default:if(typeof i.status=="string")i.then(Gu,Gu);else{if(o=wn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(m){if(i.status==="pending"){var v=i;v.status="fulfilled",v.value=m}},function(m){if(i.status==="pending"){var v=i;v.status="rejected",v.reason=m}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,Vb(o),o}throw Is=i,js}}var Is=null;function Fb(){if(Is===null)throw Error(r(459));var o=Is;return Is=null,o}function Vb(o){if(o===js||o===Wu)throw Error(r(483))}var Do=!1;function xg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eg(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Lo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Bo(o,i,s){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(cn&2)!==0){var v=m.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),m.pending=i,i=Bu(o),_b(o,null,s),i}return Lu(o,m,i,s),Bu(o)}function Ps(o,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var m=i.lanes;m&=o.pendingLanes,s|=m,i.lanes=s,on(o,s)}}function wg(o,i){var s=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,s===m)){var v=null,C=null;if(s=s.firstBaseUpdate,s!==null){do{var I={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};C===null?v=C=I:C=C.next=I,s=s.next}while(s!==null);C===null?v=C=i:C=C.next=i}else v=C=i;s={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:C,shared:m.shared,callbacks:m.callbacks},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=i:o.next=i,s.lastBaseUpdate=i}var $g=!1;function As(){if($g){var o=gl;if(o!==null)throw o}}function zs(o,i,s,m){$g=!1;var v=o.updateQueue;Do=!1;var C=v.firstBaseUpdate,I=v.lastBaseUpdate,H=v.shared.pending;if(H!==null){v.shared.pending=null;var Z=H,de=Z.next;Z.next=null,I===null?C=de:I.next=de,I=Z;var xe=o.alternate;xe!==null&&(xe=xe.updateQueue,H=xe.lastBaseUpdate,H!==I&&(H===null?xe.firstBaseUpdate=de:H.next=de,xe.lastBaseUpdate=Z))}if(C!==null){var Re=v.baseState;I=0,xe=de=Z=null,H=C;do{var he=H.lane&-536870913,pe=he!==H.lane;if(pe?(Wt&he)===he:(m&he)===he){he!==0&&he===ml&&($g=!0),xe!==null&&(xe=xe.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});e:{var bt=o,mt=H;he=i;var pn=s;switch(mt.tag){case 1:if(bt=mt.payload,typeof bt=="function"){Re=bt.call(pn,Re,he);break e}Re=bt;break e;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=mt.payload,he=typeof bt=="function"?bt.call(pn,Re,he):bt,he==null)break e;Re=h({},Re,he);break e;case 2:Do=!0}}he=H.callback,he!==null&&(o.flags|=64,pe&&(o.flags|=8192),pe=v.callbacks,pe===null?v.callbacks=[he]:pe.push(he))}else pe={lane:he,tag:H.tag,payload:H.payload,callback:H.callback,next:null},xe===null?(de=xe=pe,Z=Re):xe=xe.next=pe,I|=he;if(H=H.next,H===null){if(H=v.shared.pending,H===null)break;pe=H,H=pe.next,pe.next=null,v.lastBaseUpdate=pe,v.shared.pending=null}}while(!0);xe===null&&(Z=Re),v.baseState=Z,v.firstBaseUpdate=de,v.lastBaseUpdate=xe,C===null&&(v.shared.lanes=0),Go|=I,o.lanes=I,o.memoizedState=Re}}function Ub(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function kb(o,i){var s=o.callbacks;if(s!==null)for(o.callbacks=null,o=0;o<s.length;o++)Ub(s[o],i)}var hl=L(null),Ku=L(0);function qb(o,i){o=yo,G(Ku,o),G(hl,i),yo=o|i.baseLanes}function Og(){G(Ku,yo),G(hl,hl.current)}function Rg(){yo=Ku.current,q(hl),q(Ku)}var Ho=0,Mt=null,gn=null,Vn=null,Xu=!1,pl=!1,ji=!1,Yu=0,Ds=0,vl=null,AN=0;function Dn(){throw Error(r(321))}function _g(o,i){if(i===null)return!1;for(var s=0;s<i.length&&s<o.length;s++)if(!Fr(o[s],i[s]))return!1;return!0}function Tg(o,i,s,m,v,C){return Ho=C,Mt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,N.H=o===null||o.memoizedState===null?_S:TS,ji=!1,C=s(m,v),ji=!1,pl&&(C=Gb(i,s,m,v)),Wb(o),C}function Wb(o){N.H=nf;var i=gn!==null&&gn.next!==null;if(Ho=0,Vn=gn=Mt=null,Xu=!1,Ds=0,vl=null,i)throw Error(r(300));o===null||lr||(o=o.dependencies,o!==null&&Uu(o)&&(lr=!0))}function Gb(o,i,s,m){Mt=o;var v=0;do{if(pl&&(vl=null),Ds=0,pl=!1,25<=v)throw Error(r(301));if(v+=1,Vn=gn=null,o.updateQueue!=null){var C=o.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}N.H=VN,C=i(s,m)}while(pl);return C}function zN(){var o=N.H,i=o.useState()[0];return i=typeof i.then=="function"?Ls(i):i,o=o.useState()[0],(gn!==null?gn.memoizedState:null)!==o&&(Mt.flags|=1024),i}function Mg(){var o=Yu!==0;return Yu=0,o}function Ng(o,i,s){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~s}function jg(o){if(Xu){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Xu=!1}Ho=0,Vn=gn=Mt=null,pl=!1,Ds=Yu=0,vl=null}function Nr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?Mt.memoizedState=Vn=o:Vn=Vn.next=o,Vn}function Un(){if(gn===null){var o=Mt.alternate;o=o!==null?o.memoizedState:null}else o=gn.next;var i=Vn===null?Mt.memoizedState:Vn.next;if(i!==null)Vn=i,gn=o;else{if(o===null)throw Mt.alternate===null?Error(r(467)):Error(r(310));gn=o,o={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null},Vn===null?Mt.memoizedState=Vn=o:Vn=Vn.next=o}return Vn}function Ig(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ls(o){var i=Ds;return Ds+=1,vl===null&&(vl=[]),o=Hb(vl,o,i),i=Mt,(Vn===null?i.memoizedState:Vn.next)===null&&(i=i.alternate,N.H=i===null||i.memoizedState===null?_S:TS),o}function Qu(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ls(o);if(o.$$typeof===O)return br(o)}throw Error(r(438,String(o)))}function Pg(o){var i=null,s=Mt.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var m=Mt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(i={data:m.data.map(function(v){return v.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=Ig(),Mt.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(o),m=0;m<o;m++)s[m]=D;return i.index++,s}function fo(o,i){return typeof i=="function"?i(o):i}function Zu(o){var i=Un();return Ag(i,gn,o)}function Ag(o,i,s){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=s;var v=o.baseQueue,C=m.pending;if(C!==null){if(v!==null){var I=v.next;v.next=C.next,C.next=I}i.baseQueue=v=C,m.pending=null}if(C=o.baseState,v===null)o.memoizedState=C;else{i=v.next;var H=I=null,Z=null,de=i,xe=!1;do{var Re=de.lane&-536870913;if(Re!==de.lane?(Wt&Re)===Re:(Ho&Re)===Re){var he=de.revertLane;if(he===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Re===ml&&(xe=!0);else if((Ho&he)===he){de=de.next,he===ml&&(xe=!0);continue}else Re={lane:0,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(H=Z=Re,I=C):Z=Z.next=Re,Mt.lanes|=he,Go|=he;Re=de.action,ji&&s(C,Re),C=de.hasEagerState?de.eagerState:s(C,Re)}else he={lane:Re,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(H=Z=he,I=C):Z=Z.next=he,Mt.lanes|=Re,Go|=Re;de=de.next}while(de!==null&&de!==i);if(Z===null?I=C:Z.next=H,!Fr(C,o.memoizedState)&&(lr=!0,xe&&(s=gl,s!==null)))throw s;o.memoizedState=C,o.baseState=I,o.baseQueue=Z,m.lastRenderedState=C}return v===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function zg(o){var i=Un(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=o;var m=s.dispatch,v=s.pending,C=i.memoizedState;if(v!==null){s.pending=null;var I=v=v.next;do C=o(C,I.action),I=I.next;while(I!==v);Fr(C,i.memoizedState)||(lr=!0),i.memoizedState=C,i.baseQueue===null&&(i.baseState=C),s.lastRenderedState=C}return[C,m]}function Kb(o,i,s){var m=Mt,v=Un(),C=tn;if(C){if(s===void 0)throw Error(r(407));s=s()}else s=i();var I=!Fr((gn||v).memoizedState,s);I&&(v.memoizedState=s,lr=!0),v=v.queue;var H=Qb.bind(null,m,v,o);if(Bs(2048,8,H,[o]),v.getSnapshot!==i||I||Vn!==null&&Vn.memoizedState.tag&1){if(m.flags|=2048,yl(9,Ju(),Yb.bind(null,m,v,s,i),null),wn===null)throw Error(r(349));C||(Ho&124)!==0||Xb(m,i,s)}return s}function Xb(o,i,s){o.flags|=16384,o={getSnapshot:i,value:s},i=Mt.updateQueue,i===null?(i=Ig(),Mt.updateQueue=i,i.stores=[o]):(s=i.stores,s===null?i.stores=[o]:s.push(o))}function Yb(o,i,s,m){i.value=s,i.getSnapshot=m,Zb(i)&&Jb(o)}function Qb(o,i,s){return s(function(){Zb(i)&&Jb(o)})}function Zb(o){var i=o.getSnapshot;o=o.value;try{var s=i();return!Fr(o,s)}catch{return!0}}function Jb(o){var i=cl(o,2);i!==null&&Gr(i,o,2)}function Dg(o){var i=Nr();if(typeof o=="function"){var s=o;if(o=s(),ji){at(!0);try{s()}finally{at(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:o},i}function eS(o,i,s,m){return o.baseState=s,Ag(o,gn,typeof m=="function"?m:fo)}function DN(o,i,s,m,v){if(tf(o))throw Error(r(485));if(o=i.action,o!==null){var C={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){C.listeners.push(I)}};N.T!==null?s(!0):C.isTransition=!1,m(C),s=i.pending,s===null?(C.next=i.pending=C,tS(i,C)):(C.next=s.next,i.pending=s.next=C)}}function tS(o,i){var s=i.action,m=i.payload,v=o.state;if(i.isTransition){var C=N.T,I={};N.T=I;try{var H=s(v,m),Z=N.S;Z!==null&&Z(I,H),nS(o,i,H)}catch(de){Lg(o,i,de)}finally{N.T=C}}else try{C=s(v,m),nS(o,i,C)}catch(de){Lg(o,i,de)}}function nS(o,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(m){rS(o,i,m)},function(m){return Lg(o,i,m)}):rS(o,i,s)}function rS(o,i,s){i.status="fulfilled",i.value=s,aS(i),o.state=s,i=o.pending,i!==null&&(s=i.next,s===i?o.pending=null:(s=s.next,i.next=s,tS(o,s)))}function Lg(o,i,s){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do i.status="rejected",i.reason=s,aS(i),i=i.next;while(i!==m)}o.action=null}function aS(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function oS(o,i){return i}function iS(o,i){if(tn){var s=wn.formState;if(s!==null){e:{var m=Mt;if(tn){if(In){t:{for(var v=In,C=Ua;v.nodeType!==8;){if(!C){v=null;break t}if(v=Ra(v.nextSibling),v===null){v=null;break t}}C=v.data,v=C==="F!"||C==="F"?v:null}if(v){In=Ra(v.nextSibling),m=v.data==="F!";break e}}_i(m)}m=!1}m&&(i=s[0])}}return s=Nr(),s.memoizedState=s.baseState=i,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oS,lastRenderedState:i},s.queue=m,s=$S.bind(null,Mt,m),m.dispatch=s,m=Dg(!1),C=Ug.bind(null,Mt,!1,m.queue),m=Nr(),v={state:i,dispatch:null,action:o,pending:null},m.queue=v,s=DN.bind(null,Mt,v,C,s),v.dispatch=s,m.memoizedState=o,[i,s,!1]}function lS(o){var i=Un();return sS(i,gn,o)}function sS(o,i,s){if(i=Ag(o,i,oS)[0],o=Zu(fo)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var m=Ls(i)}catch(I){throw I===js?Wu:I}else m=i;i=Un();var v=i.queue,C=v.dispatch;return s!==i.memoizedState&&(Mt.flags|=2048,yl(9,Ju(),LN.bind(null,v,s),null)),[m,C,o]}function LN(o,i){o.action=i}function cS(o){var i=Un(),s=gn;if(s!==null)return sS(i,s,o);Un(),i=i.memoizedState,s=Un();var m=s.queue.dispatch;return s.memoizedState=o,[i,m,!1]}function yl(o,i,s,m){return o={tag:o,create:s,deps:m,inst:i,next:null},i=Mt.updateQueue,i===null&&(i=Ig(),Mt.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=o.next=o:(m=s.next,s.next=o,o.next=m,i.lastEffect=o),o}function Ju(){return{destroy:void 0,resource:void 0}}function uS(){return Un().memoizedState}function ef(o,i,s,m){var v=Nr();m=m===void 0?null:m,Mt.flags|=o,v.memoizedState=yl(1|i,Ju(),s,m)}function Bs(o,i,s,m){var v=Un();m=m===void 0?null:m;var C=v.memoizedState.inst;gn!==null&&m!==null&&_g(m,gn.memoizedState.deps)?v.memoizedState=yl(i,C,s,m):(Mt.flags|=o,v.memoizedState=yl(1|i,C,s,m))}function fS(o,i){ef(8390656,8,o,i)}function dS(o,i){Bs(2048,8,o,i)}function mS(o,i){return Bs(4,2,o,i)}function gS(o,i){return Bs(4,4,o,i)}function hS(o,i){if(typeof i=="function"){o=o();var s=i(o);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function pS(o,i,s){s=s!=null?s.concat([o]):null,Bs(4,4,hS.bind(null,i,o),s)}function Bg(){}function vS(o,i){var s=Un();i=i===void 0?null:i;var m=s.memoizedState;return i!==null&&_g(i,m[1])?m[0]:(s.memoizedState=[o,i],o)}function yS(o,i){var s=Un();i=i===void 0?null:i;var m=s.memoizedState;if(i!==null&&_g(i,m[1]))return m[0];if(m=o(),ji){at(!0);try{o()}finally{at(!1)}}return s.memoizedState=[m,i],m}function Hg(o,i,s){return s===void 0||(Ho&1073741824)!==0?o.memoizedState=i:(o.memoizedState=s,o=CC(),Mt.lanes|=o,Go|=o,s)}function bS(o,i,s,m){return Fr(s,i)?s:hl.current!==null?(o=Hg(o,s,m),Fr(o,i)||(lr=!0),o):(Ho&42)===0?(lr=!0,o.memoizedState=s):(o=CC(),Mt.lanes|=o,Go|=o,i)}function SS(o,i,s,m,v){var C=P.p;P.p=C!==0&&8>C?C:8;var I=N.T,H={};N.T=H,Ug(o,!1,i,s);try{var Z=v(),de=N.S;if(de!==null&&de(H,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var xe=PN(Z,m);Hs(o,i,xe,Wr(o))}else Hs(o,i,m,Wr(o))}catch(Re){Hs(o,i,{then:function(){},status:"rejected",reason:Re},Wr())}finally{P.p=C,N.T=I}}function BN(){}function Fg(o,i,s,m){if(o.tag!==5)throw Error(r(476));var v=CS(o).queue;SS(o,v,i,B,s===null?BN:function(){return xS(o),s(m)})}function CS(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:B},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:s},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function xS(o){var i=CS(o).next.queue;Hs(o,i,{},Wr())}function Vg(){return br(ac)}function ES(){return Un().memoizedState}function wS(){return Un().memoizedState}function HN(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var s=Wr();o=Lo(s);var m=Bo(i,o,s);m!==null&&(Gr(m,i,s),Ps(m,i,s)),i={cache:yg()},o.payload=i;return}i=i.return}}function FN(o,i,s){var m=Wr();s={lane:m,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},tf(o)?OS(i,s):(s=sg(o,i,s,m),s!==null&&(Gr(s,o,m),RS(s,i,m)))}function $S(o,i,s){var m=Wr();Hs(o,i,s,m)}function Hs(o,i,s,m){var v={lane:m,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(tf(o))OS(i,v);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=i.lastRenderedReducer,C!==null))try{var I=i.lastRenderedState,H=C(I,s);if(v.hasEagerState=!0,v.eagerState=H,Fr(H,I))return Lu(o,i,v,0),wn===null&&Du(),!1}catch{}finally{}if(s=sg(o,i,v,m),s!==null)return Gr(s,o,m),RS(s,i,m),!0}return!1}function Ug(o,i,s,m){if(m={lane:2,revertLane:Ch(),action:m,hasEagerState:!1,eagerState:null,next:null},tf(o)){if(i)throw Error(r(479))}else i=sg(o,s,m,2),i!==null&&Gr(i,o,2)}function tf(o){var i=o.alternate;return o===Mt||i!==null&&i===Mt}function OS(o,i){pl=Xu=!0;var s=o.pending;s===null?i.next=i:(i.next=s.next,s.next=i),o.pending=i}function RS(o,i,s){if((s&4194048)!==0){var m=i.lanes;m&=o.pendingLanes,s|=m,i.lanes=s,on(o,s)}}var nf={readContext:br,use:Qu,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},_S={readContext:br,use:Qu,useCallback:function(o,i){return Nr().memoizedState=[o,i===void 0?null:i],o},useContext:br,useEffect:fS,useImperativeHandle:function(o,i,s){s=s!=null?s.concat([o]):null,ef(4194308,4,hS.bind(null,i,o),s)},useLayoutEffect:function(o,i){return ef(4194308,4,o,i)},useInsertionEffect:function(o,i){ef(4,2,o,i)},useMemo:function(o,i){var s=Nr();i=i===void 0?null:i;var m=o();if(ji){at(!0);try{o()}finally{at(!1)}}return s.memoizedState=[m,i],m},useReducer:function(o,i,s){var m=Nr();if(s!==void 0){var v=s(i);if(ji){at(!0);try{s(i)}finally{at(!1)}}}else v=i;return m.memoizedState=m.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},m.queue=o,o=o.dispatch=FN.bind(null,Mt,o),[m.memoizedState,o]},useRef:function(o){var i=Nr();return o={current:o},i.memoizedState=o},useState:function(o){o=Dg(o);var i=o.queue,s=$S.bind(null,Mt,i);return i.dispatch=s,[o.memoizedState,s]},useDebugValue:Bg,useDeferredValue:function(o,i){var s=Nr();return Hg(s,o,i)},useTransition:function(){var o=Dg(!1);return o=SS.bind(null,Mt,o.queue,!0,!1),Nr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,s){var m=Mt,v=Nr();if(tn){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),wn===null)throw Error(r(349));(Wt&124)!==0||Xb(m,i,s)}v.memoizedState=s;var C={value:s,getSnapshot:i};return v.queue=C,fS(Qb.bind(null,m,C,o),[o]),m.flags|=2048,yl(9,Ju(),Yb.bind(null,m,C,s,i),null),s},useId:function(){var o=Nr(),i=wn.identifierPrefix;if(tn){var s=so,m=lo;s=(m&~(1<<32-Ue(m)-1)).toString(32)+s,i="«"+i+"R"+s,s=Yu++,0<s&&(i+="H"+s.toString(32)),i+="»"}else s=AN++,i="«"+i+"r"+s.toString(32)+"»";return o.memoizedState=i},useHostTransitionStatus:Vg,useFormState:iS,useActionState:iS,useOptimistic:function(o){var i=Nr();i.memoizedState=i.baseState=o;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Ug.bind(null,Mt,!0,s),s.dispatch=i,[o,i]},useMemoCache:Pg,useCacheRefresh:function(){return Nr().memoizedState=HN.bind(null,Mt)}},TS={readContext:br,use:Qu,useCallback:vS,useContext:br,useEffect:dS,useImperativeHandle:pS,useInsertionEffect:mS,useLayoutEffect:gS,useMemo:yS,useReducer:Zu,useRef:uS,useState:function(){return Zu(fo)},useDebugValue:Bg,useDeferredValue:function(o,i){var s=Un();return bS(s,gn.memoizedState,o,i)},useTransition:function(){var o=Zu(fo)[0],i=Un().memoizedState;return[typeof o=="boolean"?o:Ls(o),i]},useSyncExternalStore:Kb,useId:ES,useHostTransitionStatus:Vg,useFormState:lS,useActionState:lS,useOptimistic:function(o,i){var s=Un();return eS(s,gn,o,i)},useMemoCache:Pg,useCacheRefresh:wS},VN={readContext:br,use:Qu,useCallback:vS,useContext:br,useEffect:dS,useImperativeHandle:pS,useInsertionEffect:mS,useLayoutEffect:gS,useMemo:yS,useReducer:zg,useRef:uS,useState:function(){return zg(fo)},useDebugValue:Bg,useDeferredValue:function(o,i){var s=Un();return gn===null?Hg(s,o,i):bS(s,gn.memoizedState,o,i)},useTransition:function(){var o=zg(fo)[0],i=Un().memoizedState;return[typeof o=="boolean"?o:Ls(o),i]},useSyncExternalStore:Kb,useId:ES,useHostTransitionStatus:Vg,useFormState:cS,useActionState:cS,useOptimistic:function(o,i){var s=Un();return gn!==null?eS(s,gn,o,i):(s.baseState=o,[o,s.queue.dispatch])},useMemoCache:Pg,useCacheRefresh:wS},bl=null,Fs=0;function rf(o){var i=Fs;return Fs+=1,bl===null&&(bl=[]),Hb(bl,o,i)}function Vs(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function af(o,i){throw i.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function MS(o){var i=o._init;return i(o._payload)}function NS(o){function i(oe,te){if(o){var ue=oe.deletions;ue===null?(oe.deletions=[te],oe.flags|=16):ue.push(te)}}function s(oe,te){if(!o)return null;for(;te!==null;)i(oe,te),te=te.sibling;return null}function m(oe){for(var te=new Map;oe!==null;)oe.key!==null?te.set(oe.key,oe):te.set(oe.index,oe),oe=oe.sibling;return te}function v(oe,te){return oe=io(oe,te),oe.index=0,oe.sibling=null,oe}function C(oe,te,ue){return oe.index=ue,o?(ue=oe.alternate,ue!==null?(ue=ue.index,ue<te?(oe.flags|=67108866,te):ue):(oe.flags|=67108866,te)):(oe.flags|=1048576,te)}function I(oe){return o&&oe.alternate===null&&(oe.flags|=67108866),oe}function H(oe,te,ue,we){return te===null||te.tag!==6?(te=ug(ue,oe.mode,we),te.return=oe,te):(te=v(te,ue),te.return=oe,te)}function Z(oe,te,ue,we){var it=ue.type;return it===b?xe(oe,te,ue.props.children,we,ue.key):te!==null&&(te.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===z&&MS(it)===te.type)?(te=v(te,ue.props),Vs(te,ue),te.return=oe,te):(te=Hu(ue.type,ue.key,ue.props,null,oe.mode,we),Vs(te,ue),te.return=oe,te)}function de(oe,te,ue,we){return te===null||te.tag!==4||te.stateNode.containerInfo!==ue.containerInfo||te.stateNode.implementation!==ue.implementation?(te=fg(ue,oe.mode,we),te.return=oe,te):(te=v(te,ue.children||[]),te.return=oe,te)}function xe(oe,te,ue,we,it){return te===null||te.tag!==7?(te=wi(ue,oe.mode,we,it),te.return=oe,te):(te=v(te,ue),te.return=oe,te)}function Re(oe,te,ue){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=ug(""+te,oe.mode,ue),te.return=oe,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return ue=Hu(te.type,te.key,te.props,null,oe.mode,ue),Vs(ue,te),ue.return=oe,ue;case E:return te=fg(te,oe.mode,ue),te.return=oe,te;case z:var we=te._init;return te=we(te._payload),Re(oe,te,ue)}if(Y(te)||W(te))return te=wi(te,oe.mode,ue,null),te.return=oe,te;if(typeof te.then=="function")return Re(oe,rf(te),ue);if(te.$$typeof===O)return Re(oe,ku(oe,te),ue);af(oe,te)}return null}function he(oe,te,ue,we){var it=te!==null?te.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return it!==null?null:H(oe,te,""+ue,we);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return ue.key===it?Z(oe,te,ue,we):null;case E:return ue.key===it?de(oe,te,ue,we):null;case z:return it=ue._init,ue=it(ue._payload),he(oe,te,ue,we)}if(Y(ue)||W(ue))return it!==null?null:xe(oe,te,ue,we,null);if(typeof ue.then=="function")return he(oe,te,rf(ue),we);if(ue.$$typeof===O)return he(oe,te,ku(oe,ue),we);af(oe,ue)}return null}function pe(oe,te,ue,we,it){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return oe=oe.get(ue)||null,H(te,oe,""+we,it);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case y:return oe=oe.get(we.key===null?ue:we.key)||null,Z(te,oe,we,it);case E:return oe=oe.get(we.key===null?ue:we.key)||null,de(te,oe,we,it);case z:var At=we._init;return we=At(we._payload),pe(oe,te,ue,we,it)}if(Y(we)||W(we))return oe=oe.get(ue)||null,xe(te,oe,we,it,null);if(typeof we.then=="function")return pe(oe,te,ue,rf(we),it);if(we.$$typeof===O)return pe(oe,te,ue,ku(te,we),it);af(te,we)}return null}function bt(oe,te,ue,we){for(var it=null,At=null,ft=te,ht=te=0,cr=null;ft!==null&&ht<ue.length;ht++){ft.index>ht?(cr=ft,ft=null):cr=ft.sibling;var Jt=he(oe,ft,ue[ht],we);if(Jt===null){ft===null&&(ft=cr);break}o&&ft&&Jt.alternate===null&&i(oe,ft),te=C(Jt,te,ht),At===null?it=Jt:At.sibling=Jt,At=Jt,ft=cr}if(ht===ue.length)return s(oe,ft),tn&&Oi(oe,ht),it;if(ft===null){for(;ht<ue.length;ht++)ft=Re(oe,ue[ht],we),ft!==null&&(te=C(ft,te,ht),At===null?it=ft:At.sibling=ft,At=ft);return tn&&Oi(oe,ht),it}for(ft=m(ft);ht<ue.length;ht++)cr=pe(ft,oe,ht,ue[ht],we),cr!==null&&(o&&cr.alternate!==null&&ft.delete(cr.key===null?ht:cr.key),te=C(cr,te,ht),At===null?it=cr:At.sibling=cr,At=cr);return o&&ft.forEach(function(ni){return i(oe,ni)}),tn&&Oi(oe,ht),it}function mt(oe,te,ue,we){if(ue==null)throw Error(r(151));for(var it=null,At=null,ft=te,ht=te=0,cr=null,Jt=ue.next();ft!==null&&!Jt.done;ht++,Jt=ue.next()){ft.index>ht?(cr=ft,ft=null):cr=ft.sibling;var ni=he(oe,ft,Jt.value,we);if(ni===null){ft===null&&(ft=cr);break}o&&ft&&ni.alternate===null&&i(oe,ft),te=C(ni,te,ht),At===null?it=ni:At.sibling=ni,At=ni,ft=cr}if(Jt.done)return s(oe,ft),tn&&Oi(oe,ht),it;if(ft===null){for(;!Jt.done;ht++,Jt=ue.next())Jt=Re(oe,Jt.value,we),Jt!==null&&(te=C(Jt,te,ht),At===null?it=Jt:At.sibling=Jt,At=Jt);return tn&&Oi(oe,ht),it}for(ft=m(ft);!Jt.done;ht++,Jt=ue.next())Jt=pe(ft,oe,ht,Jt.value,we),Jt!==null&&(o&&Jt.alternate!==null&&ft.delete(Jt.key===null?ht:Jt.key),te=C(Jt,te,ht),At===null?it=Jt:At.sibling=Jt,At=Jt);return o&&ft.forEach(function(Uj){return i(oe,Uj)}),tn&&Oi(oe,ht),it}function pn(oe,te,ue,we){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:e:{for(var it=ue.key;te!==null;){if(te.key===it){if(it=ue.type,it===b){if(te.tag===7){s(oe,te.sibling),we=v(te,ue.props.children),we.return=oe,oe=we;break e}}else if(te.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===z&&MS(it)===te.type){s(oe,te.sibling),we=v(te,ue.props),Vs(we,ue),we.return=oe,oe=we;break e}s(oe,te);break}else i(oe,te);te=te.sibling}ue.type===b?(we=wi(ue.props.children,oe.mode,we,ue.key),we.return=oe,oe=we):(we=Hu(ue.type,ue.key,ue.props,null,oe.mode,we),Vs(we,ue),we.return=oe,oe=we)}return I(oe);case E:e:{for(it=ue.key;te!==null;){if(te.key===it)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){s(oe,te.sibling),we=v(te,ue.children||[]),we.return=oe,oe=we;break e}else{s(oe,te);break}else i(oe,te);te=te.sibling}we=fg(ue,oe.mode,we),we.return=oe,oe=we}return I(oe);case z:return it=ue._init,ue=it(ue._payload),pn(oe,te,ue,we)}if(Y(ue))return bt(oe,te,ue,we);if(W(ue)){if(it=W(ue),typeof it!="function")throw Error(r(150));return ue=it.call(ue),mt(oe,te,ue,we)}if(typeof ue.then=="function")return pn(oe,te,rf(ue),we);if(ue.$$typeof===O)return pn(oe,te,ku(oe,ue),we);af(oe,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,te!==null&&te.tag===6?(s(oe,te.sibling),we=v(te,ue),we.return=oe,oe=we):(s(oe,te),we=ug(ue,oe.mode,we),we.return=oe,oe=we),I(oe)):s(oe,te)}return function(oe,te,ue,we){try{Fs=0;var it=pn(oe,te,ue,we);return bl=null,it}catch(ft){if(ft===js||ft===Wu)throw ft;var At=Vr(29,ft,null,oe.mode);return At.lanes=we,At.return=oe,At}finally{}}}var Sl=NS(!0),jS=NS(!1),da=L(null),ka=null;function Fo(o){var i=o.alternate;G(Zn,Zn.current&1),G(da,o),ka===null&&(i===null||hl.current!==null||i.memoizedState!==null)&&(ka=o)}function IS(o){if(o.tag===22){if(G(Zn,Zn.current),G(da,o),ka===null){var i=o.alternate;i!==null&&i.memoizedState!==null&&(ka=o)}}else Vo()}function Vo(){G(Zn,Zn.current),G(da,da.current)}function mo(o){q(da),ka===o&&(ka=null),q(Zn)}var Zn=L(0);function of(o){for(var i=o;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||Ih(s)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function kg(o,i,s,m){i=o.memoizedState,s=s(m,i),s=s==null?i:h({},i,s),o.memoizedState=s,o.lanes===0&&(o.updateQueue.baseState=s)}var qg={enqueueSetState:function(o,i,s){o=o._reactInternals;var m=Wr(),v=Lo(m);v.payload=i,s!=null&&(v.callback=s),i=Bo(o,v,m),i!==null&&(Gr(i,o,m),Ps(i,o,m))},enqueueReplaceState:function(o,i,s){o=o._reactInternals;var m=Wr(),v=Lo(m);v.tag=1,v.payload=i,s!=null&&(v.callback=s),i=Bo(o,v,m),i!==null&&(Gr(i,o,m),Ps(i,o,m))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var s=Wr(),m=Lo(s);m.tag=2,i!=null&&(m.callback=i),i=Bo(o,m,s),i!==null&&(Gr(i,o,s),Ps(i,o,s))}};function PS(o,i,s,m,v,C,I){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,C,I):i.prototype&&i.prototype.isPureReactComponent?!ws(s,m)||!ws(v,C):!0}function AS(o,i,s,m){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,m),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,m),i.state!==o&&qg.enqueueReplaceState(i,i.state,null)}function Ii(o,i){var s=i;if("ref"in i){s={};for(var m in i)m!=="ref"&&(s[m]=i[m])}if(o=o.defaultProps){s===i&&(s=h({},s));for(var v in o)s[v]===void 0&&(s[v]=o[v])}return s}var lf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function zS(o){lf(o)}function DS(o){console.error(o)}function LS(o){lf(o)}function sf(o,i){try{var s=o.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(m){setTimeout(function(){throw m})}}function BS(o,i,s){try{var m=o.onCaughtError;m(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Wg(o,i,s){return s=Lo(s),s.tag=3,s.payload={element:null},s.callback=function(){sf(o,i)},s}function HS(o){return o=Lo(o),o.tag=3,o}function FS(o,i,s,m){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var C=m.value;o.payload=function(){return v(C)},o.callback=function(){BS(i,s,m)}}var I=s.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(o.callback=function(){BS(i,s,m),typeof v!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var H=m.stack;this.componentDidCatch(m.value,{componentStack:H!==null?H:""})})}function UN(o,i,s,m,v){if(s.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(i=s.alternate,i!==null&&Ts(i,s,v,!0),s=da.current,s!==null){switch(s.tag){case 13:return ka===null?ph():s.alternate===null&&Pn===0&&(Pn=3),s.flags&=-257,s.flags|=65536,s.lanes=v,m===Cg?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([m]):i.add(m),yh(o,m,v)),!1;case 22:return s.flags|=65536,m===Cg?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([m])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([m]):s.add(m)),yh(o,m,v)),!1}throw Error(r(435,s.tag))}return yh(o,m,v),ph(),!1}if(tn)return i=da.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,m!==gg&&(o=Error(r(422),{cause:m}),_s(sa(o,s)))):(m!==gg&&(i=Error(r(423),{cause:m}),_s(sa(i,s))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,m=sa(m,s),v=Wg(o.stateNode,m,v),wg(o,v),Pn!==4&&(Pn=2)),!1;var C=Error(r(520),{cause:m});if(C=sa(C,s),Xs===null?Xs=[C]:Xs.push(C),Pn!==4&&(Pn=2),i===null)return!0;m=sa(m,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,o=v&-v,s.lanes|=o,o=Wg(s.stateNode,m,o),wg(s,o),!1;case 1:if(i=s.type,C=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ko===null||!Ko.has(C))))return s.flags|=65536,v&=-v,s.lanes|=v,v=HS(v),FS(v,o,s,m),wg(s,v),!1}s=s.return}while(s!==null);return!1}var VS=Error(r(461)),lr=!1;function dr(o,i,s,m){i.child=o===null?jS(i,null,s,m):Sl(i,o.child,s,m)}function US(o,i,s,m,v){s=s.render;var C=i.ref;if("ref"in m){var I={};for(var H in m)H!=="ref"&&(I[H]=m[H])}else I=m;return Mi(i),m=Tg(o,i,s,I,C,v),H=Mg(),o!==null&&!lr?(Ng(o,i,v),go(o,i,v)):(tn&&H&&dg(i),i.flags|=1,dr(o,i,m,v),i.child)}function kS(o,i,s,m,v){if(o===null){var C=s.type;return typeof C=="function"&&!cg(C)&&C.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=C,qS(o,i,C,m,v)):(o=Hu(s.type,null,m,i,i.mode,v),o.ref=i.ref,o.return=i,i.child=o)}if(C=o.child,!eh(o,v)){var I=C.memoizedProps;if(s=s.compare,s=s!==null?s:ws,s(I,m)&&o.ref===i.ref)return go(o,i,v)}return i.flags|=1,o=io(C,m),o.ref=i.ref,o.return=i,i.child=o}function qS(o,i,s,m,v){if(o!==null){var C=o.memoizedProps;if(ws(C,m)&&o.ref===i.ref)if(lr=!1,i.pendingProps=m=C,eh(o,v))(o.flags&131072)!==0&&(lr=!0);else return i.lanes=o.lanes,go(o,i,v)}return Gg(o,i,s,m,v)}function WS(o,i,s){var m=i.pendingProps,v=m.children,C=o!==null?o.memoizedState:null;if(m.mode==="hidden"){if((i.flags&128)!==0){if(m=C!==null?C.baseLanes|s:s,o!==null){for(v=i.child=o.child,C=0;v!==null;)C=C|v.lanes|v.childLanes,v=v.sibling;i.childLanes=C&~m}else i.childLanes=0,i.child=null;return GS(o,i,m,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&qu(i,C!==null?C.cachePool:null),C!==null?qb(i,C):Og(),IS(i);else return i.lanes=i.childLanes=536870912,GS(o,i,C!==null?C.baseLanes|s:s,s)}else C!==null?(qu(i,C.cachePool),qb(i,C),Vo(),i.memoizedState=null):(o!==null&&qu(i,null),Og(),Vo());return dr(o,i,v,s),i.child}function GS(o,i,s,m){var v=Sg();return v=v===null?null:{parent:Qn._currentValue,pool:v},i.memoizedState={baseLanes:s,cachePool:v},o!==null&&qu(i,null),Og(),IS(i),o!==null&&Ts(o,i,m,!0),null}function cf(o,i){var s=i.ref;if(s===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(o===null||o.ref!==s)&&(i.flags|=4194816)}}function Gg(o,i,s,m,v){return Mi(i),s=Tg(o,i,s,m,void 0,v),m=Mg(),o!==null&&!lr?(Ng(o,i,v),go(o,i,v)):(tn&&m&&dg(i),i.flags|=1,dr(o,i,s,v),i.child)}function KS(o,i,s,m,v,C){return Mi(i),i.updateQueue=null,s=Gb(i,m,s,v),Wb(o),m=Mg(),o!==null&&!lr?(Ng(o,i,C),go(o,i,C)):(tn&&m&&dg(i),i.flags|=1,dr(o,i,s,C),i.child)}function XS(o,i,s,m,v){if(Mi(i),i.stateNode===null){var C=ul,I=s.contextType;typeof I=="object"&&I!==null&&(C=br(I)),C=new s(m,C),i.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=qg,i.stateNode=C,C._reactInternals=i,C=i.stateNode,C.props=m,C.state=i.memoizedState,C.refs={},xg(i),I=s.contextType,C.context=typeof I=="object"&&I!==null?br(I):ul,C.state=i.memoizedState,I=s.getDerivedStateFromProps,typeof I=="function"&&(kg(i,s,I,m),C.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(I=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),I!==C.state&&qg.enqueueReplaceState(C,C.state,null),zs(i,m,C,v),As(),C.state=i.memoizedState),typeof C.componentDidMount=="function"&&(i.flags|=4194308),m=!0}else if(o===null){C=i.stateNode;var H=i.memoizedProps,Z=Ii(s,H);C.props=Z;var de=C.context,xe=s.contextType;I=ul,typeof xe=="object"&&xe!==null&&(I=br(xe));var Re=s.getDerivedStateFromProps;xe=typeof Re=="function"||typeof C.getSnapshotBeforeUpdate=="function",H=i.pendingProps!==H,xe||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(H||de!==I)&&AS(i,C,m,I),Do=!1;var he=i.memoizedState;C.state=he,zs(i,m,C,v),As(),de=i.memoizedState,H||he!==de||Do?(typeof Re=="function"&&(kg(i,s,Re,m),de=i.memoizedState),(Z=Do||PS(i,s,Z,m,he,de,I))?(xe||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(i.flags|=4194308)):(typeof C.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=m,i.memoizedState=de),C.props=m,C.state=de,C.context=I,m=Z):(typeof C.componentDidMount=="function"&&(i.flags|=4194308),m=!1)}else{C=i.stateNode,Eg(o,i),I=i.memoizedProps,xe=Ii(s,I),C.props=xe,Re=i.pendingProps,he=C.context,de=s.contextType,Z=ul,typeof de=="object"&&de!==null&&(Z=br(de)),H=s.getDerivedStateFromProps,(de=typeof H=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==Re||he!==Z)&&AS(i,C,m,Z),Do=!1,he=i.memoizedState,C.state=he,zs(i,m,C,v),As();var pe=i.memoizedState;I!==Re||he!==pe||Do||o!==null&&o.dependencies!==null&&Uu(o.dependencies)?(typeof H=="function"&&(kg(i,s,H,m),pe=i.memoizedState),(xe=Do||PS(i,s,xe,m,he,pe,Z)||o!==null&&o.dependencies!==null&&Uu(o.dependencies))?(de||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(m,pe,Z),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(m,pe,Z)),typeof C.componentDidUpdate=="function"&&(i.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===o.memoizedProps&&he===o.memoizedState||(i.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&he===o.memoizedState||(i.flags|=1024),i.memoizedProps=m,i.memoizedState=pe),C.props=m,C.state=pe,C.context=Z,m=xe):(typeof C.componentDidUpdate!="function"||I===o.memoizedProps&&he===o.memoizedState||(i.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&he===o.memoizedState||(i.flags|=1024),m=!1)}return C=m,cf(o,i),m=(i.flags&128)!==0,C||m?(C=i.stateNode,s=m&&typeof s.getDerivedStateFromError!="function"?null:C.render(),i.flags|=1,o!==null&&m?(i.child=Sl(i,o.child,null,v),i.child=Sl(i,null,s,v)):dr(o,i,s,v),i.memoizedState=C.state,o=i.child):o=go(o,i,v),o}function YS(o,i,s,m){return Rs(),i.flags|=256,dr(o,i,s,m),i.child}var Kg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xg(o){return{baseLanes:o,cachePool:Db()}}function Yg(o,i,s){return o=o!==null?o.childLanes&~s:0,i&&(o|=ma),o}function QS(o,i,s){var m=i.pendingProps,v=!1,C=(i.flags&128)!==0,I;if((I=C)||(I=o!==null&&o.memoizedState===null?!1:(Zn.current&2)!==0),I&&(v=!0,i.flags&=-129),I=(i.flags&32)!==0,i.flags&=-33,o===null){if(tn){if(v?Fo(i):Vo(),tn){var H=In,Z;if(Z=H){e:{for(Z=H,H=Ua;Z.nodeType!==8;){if(!H){H=null;break e}if(Z=Ra(Z.nextSibling),Z===null){H=null;break e}}H=Z}H!==null?(i.memoizedState={dehydrated:H,treeContext:$i!==null?{id:lo,overflow:so}:null,retryLane:536870912,hydrationErrors:null},Z=Vr(18,null,null,0),Z.stateNode=H,Z.return=i,i.child=Z,Or=i,In=null,Z=!0):Z=!1}Z||_i(i)}if(H=i.memoizedState,H!==null&&(H=H.dehydrated,H!==null))return Ih(H)?i.lanes=32:i.lanes=536870912,null;mo(i)}return H=m.children,m=m.fallback,v?(Vo(),v=i.mode,H=uf({mode:"hidden",children:H},v),m=wi(m,v,s,null),H.return=i,m.return=i,H.sibling=m,i.child=H,v=i.child,v.memoizedState=Xg(s),v.childLanes=Yg(o,I,s),i.memoizedState=Kg,m):(Fo(i),Qg(i,H))}if(Z=o.memoizedState,Z!==null&&(H=Z.dehydrated,H!==null)){if(C)i.flags&256?(Fo(i),i.flags&=-257,i=Zg(o,i,s)):i.memoizedState!==null?(Vo(),i.child=o.child,i.flags|=128,i=null):(Vo(),v=m.fallback,H=i.mode,m=uf({mode:"visible",children:m.children},H),v=wi(v,H,s,null),v.flags|=2,m.return=i,v.return=i,m.sibling=v,i.child=m,Sl(i,o.child,null,s),m=i.child,m.memoizedState=Xg(s),m.childLanes=Yg(o,I,s),i.memoizedState=Kg,i=v);else if(Fo(i),Ih(H)){if(I=H.nextSibling&&H.nextSibling.dataset,I)var de=I.dgst;I=de,m=Error(r(419)),m.stack="",m.digest=I,_s({value:m,source:null,stack:null}),i=Zg(o,i,s)}else if(lr||Ts(o,i,s,!1),I=(s&o.childLanes)!==0,lr||I){if(I=wn,I!==null&&(m=s&-s,m=(m&42)!==0?1:wt(m),m=(m&(I.suspendedLanes|s))!==0?0:m,m!==0&&m!==Z.retryLane))throw Z.retryLane=m,cl(o,m),Gr(I,o,m),VS;H.data==="$?"||ph(),i=Zg(o,i,s)}else H.data==="$?"?(i.flags|=192,i.child=o.child,i=null):(o=Z.treeContext,In=Ra(H.nextSibling),Or=i,tn=!0,Ri=null,Ua=!1,o!==null&&(ua[fa++]=lo,ua[fa++]=so,ua[fa++]=$i,lo=o.id,so=o.overflow,$i=i),i=Qg(i,m.children),i.flags|=4096);return i}return v?(Vo(),v=m.fallback,H=i.mode,Z=o.child,de=Z.sibling,m=io(Z,{mode:"hidden",children:m.children}),m.subtreeFlags=Z.subtreeFlags&65011712,de!==null?v=io(de,v):(v=wi(v,H,s,null),v.flags|=2),v.return=i,m.return=i,m.sibling=v,i.child=m,m=v,v=i.child,H=o.child.memoizedState,H===null?H=Xg(s):(Z=H.cachePool,Z!==null?(de=Qn._currentValue,Z=Z.parent!==de?{parent:de,pool:de}:Z):Z=Db(),H={baseLanes:H.baseLanes|s,cachePool:Z}),v.memoizedState=H,v.childLanes=Yg(o,I,s),i.memoizedState=Kg,m):(Fo(i),s=o.child,o=s.sibling,s=io(s,{mode:"visible",children:m.children}),s.return=i,s.sibling=null,o!==null&&(I=i.deletions,I===null?(i.deletions=[o],i.flags|=16):I.push(o)),i.child=s,i.memoizedState=null,s)}function Qg(o,i){return i=uf({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function uf(o,i){return o=Vr(22,o,null,i),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Zg(o,i,s){return Sl(i,o.child,null,s),o=Qg(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function ZS(o,i,s){o.lanes|=i;var m=o.alternate;m!==null&&(m.lanes|=i),pg(o.return,i,s)}function Jg(o,i,s,m,v){var C=o.memoizedState;C===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:m,tail:s,tailMode:v}:(C.isBackwards=i,C.rendering=null,C.renderingStartTime=0,C.last=m,C.tail=s,C.tailMode=v)}function JS(o,i,s){var m=i.pendingProps,v=m.revealOrder,C=m.tail;if(dr(o,i,m.children,s),m=Zn.current,(m&2)!==0)m=m&1|2,i.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&ZS(o,s,i);else if(o.tag===19)ZS(o,s,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}m&=1}switch(G(Zn,m),v){case"forwards":for(s=i.child,v=null;s!==null;)o=s.alternate,o!==null&&of(o)===null&&(v=s),s=s.sibling;s=v,s===null?(v=i.child,i.child=null):(v=s.sibling,s.sibling=null),Jg(i,!1,v,s,C);break;case"backwards":for(s=null,v=i.child,i.child=null;v!==null;){if(o=v.alternate,o!==null&&of(o)===null){i.child=v;break}o=v.sibling,v.sibling=s,s=v,v=o}Jg(i,!0,s,null,C);break;case"together":Jg(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function go(o,i,s){if(o!==null&&(i.dependencies=o.dependencies),Go|=i.lanes,(s&i.childLanes)===0)if(o!==null){if(Ts(o,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,s=io(o,o.pendingProps),i.child=s,s.return=i;o.sibling!==null;)o=o.sibling,s=s.sibling=io(o,o.pendingProps),s.return=i;s.sibling=null}return i.child}function eh(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&Uu(o)))}function kN(o,i,s){switch(i.tag){case 3:ne(i,i.stateNode.containerInfo),zo(i,Qn,o.memoizedState.cache),Rs();break;case 27:case 5:ve(i);break;case 4:ne(i,i.stateNode.containerInfo);break;case 10:zo(i,i.type,i.memoizedProps.value);break;case 13:var m=i.memoizedState;if(m!==null)return m.dehydrated!==null?(Fo(i),i.flags|=128,null):(s&i.child.childLanes)!==0?QS(o,i,s):(Fo(i),o=go(o,i,s),o!==null?o.sibling:null);Fo(i);break;case 19:var v=(o.flags&128)!==0;if(m=(s&i.childLanes)!==0,m||(Ts(o,i,s,!1),m=(s&i.childLanes)!==0),v){if(m)return JS(o,i,s);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),G(Zn,Zn.current),m)break;return null;case 22:case 23:return i.lanes=0,WS(o,i,s);case 24:zo(i,Qn,o.memoizedState.cache)}return go(o,i,s)}function eC(o,i,s){if(o!==null)if(o.memoizedProps!==i.pendingProps)lr=!0;else{if(!eh(o,s)&&(i.flags&128)===0)return lr=!1,kN(o,i,s);lr=(o.flags&131072)!==0}else lr=!1,tn&&(i.flags&1048576)!==0&&Mb(i,Vu,i.index);switch(i.lanes=0,i.tag){case 16:e:{o=i.pendingProps;var m=i.elementType,v=m._init;if(m=v(m._payload),i.type=m,typeof m=="function")cg(m)?(o=Ii(m,o),i.tag=1,i=XS(null,i,m,o,s)):(i.tag=0,i=Gg(null,i,m,o,s));else{if(m!=null){if(v=m.$$typeof,v===_){i.tag=11,i=US(null,i,m,o,s);break e}else if(v===M){i.tag=14,i=kS(null,i,m,o,s);break e}}throw i=U(m)||m,Error(r(306,i,""))}}return i;case 0:return Gg(o,i,i.type,i.pendingProps,s);case 1:return m=i.type,v=Ii(m,i.pendingProps),XS(o,i,m,v,s);case 3:e:{if(ne(i,i.stateNode.containerInfo),o===null)throw Error(r(387));m=i.pendingProps;var C=i.memoizedState;v=C.element,Eg(o,i),zs(i,m,null,s);var I=i.memoizedState;if(m=I.cache,zo(i,Qn,m),m!==C.cache&&vg(i,[Qn],s,!0),As(),m=I.element,C.isDehydrated)if(C={element:m,isDehydrated:!1,cache:I.cache},i.updateQueue.baseState=C,i.memoizedState=C,i.flags&256){i=YS(o,i,m,s);break e}else if(m!==v){v=sa(Error(r(424)),i),_s(v),i=YS(o,i,m,s);break e}else{switch(o=i.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(In=Ra(o.firstChild),Or=i,tn=!0,Ri=null,Ua=!0,s=jS(i,null,m,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Rs(),m===v){i=go(o,i,s);break e}dr(o,i,m,s)}i=i.child}return i;case 26:return cf(o,i),o===null?(s=a1(i.type,null,i.pendingProps,null))?i.memoizedState=s:tn||(s=i.type,o=i.pendingProps,m=wf(ee.current).createElement(s),m[St]=i,m[Be]=o,gr(m,s,o),_t(m),i.stateNode=m):i.memoizedState=a1(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return ve(i),o===null&&tn&&(m=i.stateNode=t1(i.type,i.pendingProps,ee.current),Or=i,Ua=!0,v=In,Qo(i.type)?(Ph=v,In=Ra(m.firstChild)):In=v),dr(o,i,i.pendingProps.children,s),cf(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&tn&&((v=m=In)&&(m=yj(m,i.type,i.pendingProps,Ua),m!==null?(i.stateNode=m,Or=i,In=Ra(m.firstChild),Ua=!1,v=!0):v=!1),v||_i(i)),ve(i),v=i.type,C=i.pendingProps,I=o!==null?o.memoizedProps:null,m=C.children,Mh(v,C)?m=null:I!==null&&Mh(v,I)&&(i.flags|=32),i.memoizedState!==null&&(v=Tg(o,i,zN,null,null,s),ac._currentValue=v),cf(o,i),dr(o,i,m,s),i.child;case 6:return o===null&&tn&&((o=s=In)&&(s=bj(s,i.pendingProps,Ua),s!==null?(i.stateNode=s,Or=i,In=null,o=!0):o=!1),o||_i(i)),null;case 13:return QS(o,i,s);case 4:return ne(i,i.stateNode.containerInfo),m=i.pendingProps,o===null?i.child=Sl(i,null,m,s):dr(o,i,m,s),i.child;case 11:return US(o,i,i.type,i.pendingProps,s);case 7:return dr(o,i,i.pendingProps,s),i.child;case 8:return dr(o,i,i.pendingProps.children,s),i.child;case 12:return dr(o,i,i.pendingProps.children,s),i.child;case 10:return m=i.pendingProps,zo(i,i.type,m.value),dr(o,i,m.children,s),i.child;case 9:return v=i.type._context,m=i.pendingProps.children,Mi(i),v=br(v),m=m(v),i.flags|=1,dr(o,i,m,s),i.child;case 14:return kS(o,i,i.type,i.pendingProps,s);case 15:return qS(o,i,i.type,i.pendingProps,s);case 19:return JS(o,i,s);case 31:return m=i.pendingProps,s=i.mode,m={mode:m.mode,children:m.children},o===null?(s=uf(m,s),s.ref=i.ref,i.child=s,s.return=i,i=s):(s=io(o.child,m),s.ref=i.ref,i.child=s,s.return=i,i=s),i;case 22:return WS(o,i,s);case 24:return Mi(i),m=br(Qn),o===null?(v=Sg(),v===null&&(v=wn,C=yg(),v.pooledCache=C,C.refCount++,C!==null&&(v.pooledCacheLanes|=s),v=C),i.memoizedState={parent:m,cache:v},xg(i),zo(i,Qn,v)):((o.lanes&s)!==0&&(Eg(o,i),zs(i,null,null,s),As()),v=o.memoizedState,C=i.memoizedState,v.parent!==m?(v={parent:m,cache:m},i.memoizedState=v,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=v),zo(i,Qn,m)):(m=C.cache,zo(i,Qn,m),m!==v.cache&&vg(i,[Qn],s,!0))),dr(o,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function ho(o){o.flags|=4}function tC(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!c1(i)){if(i=da.current,i!==null&&((Wt&4194048)===Wt?ka!==null:(Wt&62914560)!==Wt&&(Wt&536870912)===0||i!==ka))throw Is=Cg,Lb;o.flags|=8192}}function ff(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?Nn():536870912,o.lanes|=i,wl|=i)}function Us(o,i){if(!tn)switch(o.tailMode){case"hidden":i=o.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?o.tail=null:s.sibling=null;break;case"collapsed":s=o.tail;for(var m=null;s!==null;)s.alternate!==null&&(m=s),s=s.sibling;m===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Mn(o){var i=o.alternate!==null&&o.alternate.child===o.child,s=0,m=0;if(i)for(var v=o.child;v!==null;)s|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)s|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=m,o.childLanes=s,i}function qN(o,i,s){var m=i.pendingProps;switch(mg(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mn(i),null;case 1:return Mn(i),null;case 3:return s=i.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),i.memoizedState.cache!==m&&(i.flags|=2048),uo(Qn),ie(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(o===null||o.child===null)&&(Os(i)?ho(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Ib())),Mn(i),null;case 26:return s=i.memoizedState,o===null?(ho(i),s!==null?(Mn(i),tC(i,s)):(Mn(i),i.flags&=-16777217)):s?s!==o.memoizedState?(ho(i),Mn(i),tC(i,s)):(Mn(i),i.flags&=-16777217):(o.memoizedProps!==m&&ho(i),Mn(i),i.flags&=-16777217),null;case 27:fe(i),s=ee.current;var v=i.type;if(o!==null&&i.stateNode!=null)o.memoizedProps!==m&&ho(i);else{if(!m){if(i.stateNode===null)throw Error(r(166));return Mn(i),null}o=V.current,Os(i)?Nb(i):(o=t1(v,m,s),i.stateNode=o,ho(i))}return Mn(i),null;case 5:if(fe(i),s=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==m&&ho(i);else{if(!m){if(i.stateNode===null)throw Error(r(166));return Mn(i),null}if(o=V.current,Os(i))Nb(i);else{switch(v=wf(ee.current),o){case 1:o=v.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=v.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=v.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof m.is=="string"?v.createElement("select",{is:m.is}):v.createElement("select"),m.multiple?o.multiple=!0:m.size&&(o.size=m.size);break;default:o=typeof m.is=="string"?v.createElement(s,{is:m.is}):v.createElement(s)}}o[St]=i,o[Be]=m;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=o;e:switch(gr(o,s,m),s){case"button":case"input":case"select":case"textarea":o=!!m.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ho(i)}}return Mn(i),i.flags&=-16777217,null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==m&&ho(i);else{if(typeof m!="string"&&i.stateNode===null)throw Error(r(166));if(o=ee.current,Os(i)){if(o=i.stateNode,s=i.memoizedProps,m=null,v=Or,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}o[St]=i,o=!!(o.nodeValue===s||m!==null&&m.suppressHydrationWarning===!0||KC(o.nodeValue,s)),o||_i(i)}else o=wf(o).createTextNode(m),o[St]=i,i.stateNode=o}return Mn(i),null;case 13:if(m=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=Os(i),m!==null&&m.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[St]=i}else Rs(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Mn(i),v=!1}else v=Ib(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return i.flags&256?(mo(i),i):(mo(i),null)}if(mo(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=m!==null,o=o!==null&&o.memoizedState!==null,s){m=i.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool);var C=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(C=m.memoizedState.cachePool.pool),C!==v&&(m.flags|=2048)}return s!==o&&s&&(i.child.flags|=8192),ff(i,i.updateQueue),Mn(i),null;case 4:return ie(),o===null&&$h(i.stateNode.containerInfo),Mn(i),null;case 10:return uo(i.type),Mn(i),null;case 19:if(q(Zn),v=i.memoizedState,v===null)return Mn(i),null;if(m=(i.flags&128)!==0,C=v.rendering,C===null)if(m)Us(v,!1);else{if(Pn!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(C=of(o),C!==null){for(i.flags|=128,Us(v,!1),o=C.updateQueue,i.updateQueue=o,ff(i,o),i.subtreeFlags=0,o=s,s=i.child;s!==null;)Tb(s,o),s=s.sibling;return G(Zn,Zn.current&1|2),i.child}o=o.sibling}v.tail!==null&&Oe()>gf&&(i.flags|=128,m=!0,Us(v,!1),i.lanes=4194304)}else{if(!m)if(o=of(C),o!==null){if(i.flags|=128,m=!0,o=o.updateQueue,i.updateQueue=o,ff(i,o),Us(v,!0),v.tail===null&&v.tailMode==="hidden"&&!C.alternate&&!tn)return Mn(i),null}else 2*Oe()-v.renderingStartTime>gf&&s!==536870912&&(i.flags|=128,m=!0,Us(v,!1),i.lanes=4194304);v.isBackwards?(C.sibling=i.child,i.child=C):(o=v.last,o!==null?o.sibling=C:i.child=C,v.last=C)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=Oe(),i.sibling=null,o=Zn.current,G(Zn,m?o&1|2:o&1),i):(Mn(i),null);case 22:case 23:return mo(i),Rg(),m=i.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(i.flags|=8192):m&&(i.flags|=8192),m?(s&536870912)!==0&&(i.flags&128)===0&&(Mn(i),i.subtreeFlags&6&&(i.flags|=8192)):Mn(i),s=i.updateQueue,s!==null&&ff(i,s.retryQueue),s=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==s&&(i.flags|=2048),o!==null&&q(Ni),null;case 24:return s=null,o!==null&&(s=o.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),uo(Qn),Mn(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function WN(o,i){switch(mg(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return uo(Qn),ie(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return fe(i),null;case 13:if(mo(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Rs()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return q(Zn),null;case 4:return ie(),null;case 10:return uo(i.type),null;case 22:case 23:return mo(i),Rg(),o!==null&&q(Ni),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return uo(Qn),null;case 25:return null;default:return null}}function nC(o,i){switch(mg(i),i.tag){case 3:uo(Qn),ie();break;case 26:case 27:case 5:fe(i);break;case 4:ie();break;case 13:mo(i);break;case 19:q(Zn);break;case 10:uo(i.type);break;case 22:case 23:mo(i),Rg(),o!==null&&q(Ni);break;case 24:uo(Qn)}}function ks(o,i){try{var s=i.updateQueue,m=s!==null?s.lastEffect:null;if(m!==null){var v=m.next;s=v;do{if((s.tag&o)===o){m=void 0;var C=s.create,I=s.inst;m=C(),I.destroy=m}s=s.next}while(s!==v)}}catch(H){Cn(i,i.return,H)}}function Uo(o,i,s){try{var m=i.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var C=v.next;m=C;do{if((m.tag&o)===o){var I=m.inst,H=I.destroy;if(H!==void 0){I.destroy=void 0,v=i;var Z=s,de=H;try{de()}catch(xe){Cn(v,Z,xe)}}}m=m.next}while(m!==C)}}catch(xe){Cn(i,i.return,xe)}}function rC(o){var i=o.updateQueue;if(i!==null){var s=o.stateNode;try{kb(i,s)}catch(m){Cn(o,o.return,m)}}}function aC(o,i,s){s.props=Ii(o.type,o.memoizedProps),s.state=o.memoizedState;try{s.componentWillUnmount()}catch(m){Cn(o,i,m)}}function qs(o,i){try{var s=o.ref;if(s!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof s=="function"?o.refCleanup=s(m):s.current=m}}catch(v){Cn(o,i,v)}}function qa(o,i){var s=o.ref,m=o.refCleanup;if(s!==null)if(typeof m=="function")try{m()}catch(v){Cn(o,i,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(v){Cn(o,i,v)}else s.current=null}function oC(o){var i=o.type,s=o.memoizedProps,m=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&m.focus();break e;case"img":s.src?m.src=s.src:s.srcSet&&(m.srcset=s.srcSet)}}catch(v){Cn(o,o.return,v)}}function th(o,i,s){try{var m=o.stateNode;mj(m,o.type,s,i),m[Be]=i}catch(v){Cn(o,o.return,v)}}function iC(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Qo(o.type)||o.tag===4}function nh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||iC(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Qo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function rh(o,i,s){var m=o.tag;if(m===5||m===6)o=o.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(o,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(o),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ef));else if(m!==4&&(m===27&&Qo(o.type)&&(s=o.stateNode,i=null),o=o.child,o!==null))for(rh(o,i,s),o=o.sibling;o!==null;)rh(o,i,s),o=o.sibling}function df(o,i,s){var m=o.tag;if(m===5||m===6)o=o.stateNode,i?s.insertBefore(o,i):s.appendChild(o);else if(m!==4&&(m===27&&Qo(o.type)&&(s=o.stateNode),o=o.child,o!==null))for(df(o,i,s),o=o.sibling;o!==null;)df(o,i,s),o=o.sibling}function lC(o){var i=o.stateNode,s=o.memoizedProps;try{for(var m=o.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);gr(i,m,s),i[St]=o,i[Be]=s}catch(C){Cn(o,o.return,C)}}var po=!1,Ln=!1,ah=!1,sC=typeof WeakSet=="function"?WeakSet:Set,sr=null;function GN(o,i){if(o=o.containerInfo,_h=Mf,o=bb(o),ng(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var m=s.getSelection&&s.getSelection();if(m&&m.rangeCount!==0){s=m.anchorNode;var v=m.anchorOffset,C=m.focusNode;m=m.focusOffset;try{s.nodeType,C.nodeType}catch{s=null;break e}var I=0,H=-1,Z=-1,de=0,xe=0,Re=o,he=null;t:for(;;){for(var pe;Re!==s||v!==0&&Re.nodeType!==3||(H=I+v),Re!==C||m!==0&&Re.nodeType!==3||(Z=I+m),Re.nodeType===3&&(I+=Re.nodeValue.length),(pe=Re.firstChild)!==null;)he=Re,Re=pe;for(;;){if(Re===o)break t;if(he===s&&++de===v&&(H=I),he===C&&++xe===m&&(Z=I),(pe=Re.nextSibling)!==null)break;Re=he,he=Re.parentNode}Re=pe}s=H===-1||Z===-1?null:{start:H,end:Z}}else s=null}s=s||{start:0,end:0}}else s=null;for(Th={focusedElem:o,selectionRange:s},Mf=!1,sr=i;sr!==null;)if(i=sr,o=i.child,(i.subtreeFlags&1024)!==0&&o!==null)o.return=i,sr=o;else for(;sr!==null;){switch(i=sr,C=i.alternate,o=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&C!==null){o=void 0,s=i,v=C.memoizedProps,C=C.memoizedState,m=s.stateNode;try{var bt=Ii(s.type,v,s.elementType===s.type);o=m.getSnapshotBeforeUpdate(bt,C),m.__reactInternalSnapshotBeforeUpdate=o}catch(mt){Cn(s,s.return,mt)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,s=o.nodeType,s===9)jh(o);else if(s===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":jh(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,sr=o;break}sr=i.return}}function cC(o,i,s){var m=s.flags;switch(s.tag){case 0:case 11:case 15:ko(o,s),m&4&&ks(5,s);break;case 1:if(ko(o,s),m&4)if(o=s.stateNode,i===null)try{o.componentDidMount()}catch(I){Cn(s,s.return,I)}else{var v=Ii(s.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(v,i,o.__reactInternalSnapshotBeforeUpdate)}catch(I){Cn(s,s.return,I)}}m&64&&rC(s),m&512&&qs(s,s.return);break;case 3:if(ko(o,s),m&64&&(o=s.updateQueue,o!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{kb(o,i)}catch(I){Cn(s,s.return,I)}}break;case 27:i===null&&m&4&&lC(s);case 26:case 5:ko(o,s),i===null&&m&4&&oC(s),m&512&&qs(s,s.return);break;case 12:ko(o,s);break;case 13:ko(o,s),m&4&&dC(o,s),m&64&&(o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(s=nj.bind(null,s),Sj(o,s))));break;case 22:if(m=s.memoizedState!==null||po,!m){i=i!==null&&i.memoizedState!==null||Ln,v=po;var C=Ln;po=m,(Ln=i)&&!C?qo(o,s,(s.subtreeFlags&8772)!==0):ko(o,s),po=v,Ln=C}break;case 30:break;default:ko(o,s)}}function uC(o){var i=o.alternate;i!==null&&(o.alternate=null,uC(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&Tt(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var _n=null,jr=!1;function vo(o,i,s){for(s=s.child;s!==null;)fC(o,i,s),s=s.sibling}function fC(o,i,s){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Ke,s)}catch{}switch(s.tag){case 26:Ln||qa(s,i),vo(o,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Ln||qa(s,i);var m=_n,v=jr;Qo(s.type)&&(_n=s.stateNode,jr=!1),vo(o,i,s),ec(s.stateNode),_n=m,jr=v;break;case 5:Ln||qa(s,i);case 6:if(m=_n,v=jr,_n=null,vo(o,i,s),_n=m,jr=v,_n!==null)if(jr)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(s.stateNode)}catch(C){Cn(s,i,C)}else try{_n.removeChild(s.stateNode)}catch(C){Cn(s,i,C)}break;case 18:_n!==null&&(jr?(o=_n,JC(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.stateNode),sc(o)):JC(_n,s.stateNode));break;case 4:m=_n,v=jr,_n=s.stateNode.containerInfo,jr=!0,vo(o,i,s),_n=m,jr=v;break;case 0:case 11:case 14:case 15:Ln||Uo(2,s,i),Ln||Uo(4,s,i),vo(o,i,s);break;case 1:Ln||(qa(s,i),m=s.stateNode,typeof m.componentWillUnmount=="function"&&aC(s,i,m)),vo(o,i,s);break;case 21:vo(o,i,s);break;case 22:Ln=(m=Ln)||s.memoizedState!==null,vo(o,i,s),Ln=m;break;default:vo(o,i,s)}}function dC(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{sc(o)}catch(s){Cn(i,i.return,s)}}function KN(o){switch(o.tag){case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new sC),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new sC),i;default:throw Error(r(435,o.tag))}}function oh(o,i){var s=KN(o);i.forEach(function(m){var v=rj.bind(null,o,m);s.has(m)||(s.add(m),m.then(v,v))})}function Ur(o,i){var s=i.deletions;if(s!==null)for(var m=0;m<s.length;m++){var v=s[m],C=o,I=i,H=I;e:for(;H!==null;){switch(H.tag){case 27:if(Qo(H.type)){_n=H.stateNode,jr=!1;break e}break;case 5:_n=H.stateNode,jr=!1;break e;case 3:case 4:_n=H.stateNode.containerInfo,jr=!0;break e}H=H.return}if(_n===null)throw Error(r(160));fC(C,I,v),_n=null,jr=!1,C=v.alternate,C!==null&&(C.return=null),v.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)mC(i,o),i=i.sibling}var Oa=null;function mC(o,i){var s=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ur(i,o),kr(o),m&4&&(Uo(3,o,o.return),ks(3,o),Uo(5,o,o.return));break;case 1:Ur(i,o),kr(o),m&512&&(Ln||s===null||qa(s,s.return)),m&64&&po&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(s=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=s===null?m:s.concat(m))));break;case 26:var v=Oa;if(Ur(i,o),kr(o),m&512&&(Ln||s===null||qa(s,s.return)),m&4){var C=s!==null?s.memoizedState:null;if(m=o.memoizedState,s===null)if(m===null)if(o.stateNode===null){e:{m=o.type,s=o.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":C=v.getElementsByTagName("title")[0],(!C||C[Ut]||C[St]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=v.createElement(m),v.head.insertBefore(C,v.querySelector("head > title"))),gr(C,m,s),C[St]=o,_t(C),m=C;break e;case"link":var I=l1("link","href",v).get(m+(s.href||""));if(I){for(var H=0;H<I.length;H++)if(C=I[H],C.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&C.getAttribute("rel")===(s.rel==null?null:s.rel)&&C.getAttribute("title")===(s.title==null?null:s.title)&&C.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){I.splice(H,1);break t}}C=v.createElement(m),gr(C,m,s),v.head.appendChild(C);break;case"meta":if(I=l1("meta","content",v).get(m+(s.content||""))){for(H=0;H<I.length;H++)if(C=I[H],C.getAttribute("content")===(s.content==null?null:""+s.content)&&C.getAttribute("name")===(s.name==null?null:s.name)&&C.getAttribute("property")===(s.property==null?null:s.property)&&C.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&C.getAttribute("charset")===(s.charSet==null?null:s.charSet)){I.splice(H,1);break t}}C=v.createElement(m),gr(C,m,s),v.head.appendChild(C);break;default:throw Error(r(468,m))}C[St]=o,_t(C),m=C}o.stateNode=m}else s1(v,o.type,o.stateNode);else o.stateNode=i1(v,m,o.memoizedProps);else C!==m?(C===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):C.count--,m===null?s1(v,o.type,o.stateNode):i1(v,m,o.memoizedProps)):m===null&&o.stateNode!==null&&th(o,o.memoizedProps,s.memoizedProps)}break;case 27:Ur(i,o),kr(o),m&512&&(Ln||s===null||qa(s,s.return)),s!==null&&m&4&&th(o,o.memoizedProps,s.memoizedProps);break;case 5:if(Ur(i,o),kr(o),m&512&&(Ln||s===null||qa(s,s.return)),o.flags&32){v=o.stateNode;try{jn(v,"")}catch(pe){Cn(o,o.return,pe)}}m&4&&o.stateNode!=null&&(v=o.memoizedProps,th(o,v,s!==null?s.memoizedProps:v)),m&1024&&(ah=!0);break;case 6:if(Ur(i,o),kr(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,s=o.stateNode;try{s.nodeValue=m}catch(pe){Cn(o,o.return,pe)}}break;case 3:if(Rf=null,v=Oa,Oa=$f(i.containerInfo),Ur(i,o),Oa=v,kr(o),m&4&&s!==null&&s.memoizedState.isDehydrated)try{sc(i.containerInfo)}catch(pe){Cn(o,o.return,pe)}ah&&(ah=!1,gC(o));break;case 4:m=Oa,Oa=$f(o.stateNode.containerInfo),Ur(i,o),kr(o),Oa=m;break;case 12:Ur(i,o),kr(o);break;case 13:Ur(i,o),kr(o),o.child.flags&8192&&o.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(fh=Oe()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,oh(o,m)));break;case 22:v=o.memoizedState!==null;var Z=s!==null&&s.memoizedState!==null,de=po,xe=Ln;if(po=de||v,Ln=xe||Z,Ur(i,o),Ln=xe,po=de,kr(o),m&8192)e:for(i=o.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(s===null||Z||po||Ln||Pi(o)),s=null,i=o;;){if(i.tag===5||i.tag===26){if(s===null){Z=s=i;try{if(C=Z.stateNode,v)I=C.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{H=Z.stateNode;var Re=Z.memoizedProps.style,he=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;H.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(pe){Cn(Z,Z.return,pe)}}}else if(i.tag===6){if(s===null){Z=i;try{Z.stateNode.nodeValue=v?"":Z.memoizedProps}catch(pe){Cn(Z,Z.return,pe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}m&4&&(m=o.updateQueue,m!==null&&(s=m.retryQueue,s!==null&&(m.retryQueue=null,oh(o,s))));break;case 19:Ur(i,o),kr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,oh(o,m)));break;case 30:break;case 21:break;default:Ur(i,o),kr(o)}}function kr(o){var i=o.flags;if(i&2){try{for(var s,m=o.return;m!==null;){if(iC(m)){s=m;break}m=m.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var v=s.stateNode,C=nh(o);df(o,C,v);break;case 5:var I=s.stateNode;s.flags&32&&(jn(I,""),s.flags&=-33);var H=nh(o);df(o,H,I);break;case 3:case 4:var Z=s.stateNode.containerInfo,de=nh(o);rh(o,de,Z);break;default:throw Error(r(161))}}catch(xe){Cn(o,o.return,xe)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function gC(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;gC(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function ko(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)cC(o,i.alternate,i),i=i.sibling}function Pi(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:Uo(4,i,i.return),Pi(i);break;case 1:qa(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&aC(i,i.return,s),Pi(i);break;case 27:ec(i.stateNode);case 26:case 5:qa(i,i.return),Pi(i);break;case 22:i.memoizedState===null&&Pi(i);break;case 30:Pi(i);break;default:Pi(i)}o=o.sibling}}function qo(o,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var m=i.alternate,v=o,C=i,I=C.flags;switch(C.tag){case 0:case 11:case 15:qo(v,C,s),ks(4,C);break;case 1:if(qo(v,C,s),m=C,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(de){Cn(m,m.return,de)}if(m=C,v=m.updateQueue,v!==null){var H=m.stateNode;try{var Z=v.shared.hiddenCallbacks;if(Z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<Z.length;v++)Ub(Z[v],H)}catch(de){Cn(m,m.return,de)}}s&&I&64&&rC(C),qs(C,C.return);break;case 27:lC(C);case 26:case 5:qo(v,C,s),s&&m===null&&I&4&&oC(C),qs(C,C.return);break;case 12:qo(v,C,s);break;case 13:qo(v,C,s),s&&I&4&&dC(v,C);break;case 22:C.memoizedState===null&&qo(v,C,s),qs(C,C.return);break;case 30:break;default:qo(v,C,s)}i=i.sibling}}function ih(o,i){var s=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(o!=null&&o.refCount++,s!=null&&Ms(s))}function lh(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Ms(o))}function Wa(o,i,s,m){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)hC(o,i,s,m),i=i.sibling}function hC(o,i,s,m){var v=i.flags;switch(i.tag){case 0:case 11:case 15:Wa(o,i,s,m),v&2048&&ks(9,i);break;case 1:Wa(o,i,s,m);break;case 3:Wa(o,i,s,m),v&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Ms(o)));break;case 12:if(v&2048){Wa(o,i,s,m),o=i.stateNode;try{var C=i.memoizedProps,I=C.id,H=C.onPostCommit;typeof H=="function"&&H(I,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Z){Cn(i,i.return,Z)}}else Wa(o,i,s,m);break;case 13:Wa(o,i,s,m);break;case 23:break;case 22:C=i.stateNode,I=i.alternate,i.memoizedState!==null?C._visibility&2?Wa(o,i,s,m):Ws(o,i):C._visibility&2?Wa(o,i,s,m):(C._visibility|=2,Cl(o,i,s,m,(i.subtreeFlags&10256)!==0)),v&2048&&ih(I,i);break;case 24:Wa(o,i,s,m),v&2048&&lh(i.alternate,i);break;default:Wa(o,i,s,m)}}function Cl(o,i,s,m,v){for(v=v&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var C=o,I=i,H=s,Z=m,de=I.flags;switch(I.tag){case 0:case 11:case 15:Cl(C,I,H,Z,v),ks(8,I);break;case 23:break;case 22:var xe=I.stateNode;I.memoizedState!==null?xe._visibility&2?Cl(C,I,H,Z,v):Ws(C,I):(xe._visibility|=2,Cl(C,I,H,Z,v)),v&&de&2048&&ih(I.alternate,I);break;case 24:Cl(C,I,H,Z,v),v&&de&2048&&lh(I.alternate,I);break;default:Cl(C,I,H,Z,v)}i=i.sibling}}function Ws(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=o,m=i,v=m.flags;switch(m.tag){case 22:Ws(s,m),v&2048&&ih(m.alternate,m);break;case 24:Ws(s,m),v&2048&&lh(m.alternate,m);break;default:Ws(s,m)}i=i.sibling}}var Gs=8192;function xl(o){if(o.subtreeFlags&Gs)for(o=o.child;o!==null;)pC(o),o=o.sibling}function pC(o){switch(o.tag){case 26:xl(o),o.flags&Gs&&o.memoizedState!==null&&Ij(Oa,o.memoizedState,o.memoizedProps);break;case 5:xl(o);break;case 3:case 4:var i=Oa;Oa=$f(o.stateNode.containerInfo),xl(o),Oa=i;break;case 22:o.memoizedState===null&&(i=o.alternate,i!==null&&i.memoizedState!==null?(i=Gs,Gs=16777216,xl(o),Gs=i):xl(o));break;default:xl(o)}}function vC(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function Ks(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var m=i[s];sr=m,bC(m,o)}vC(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)yC(o),o=o.sibling}function yC(o){switch(o.tag){case 0:case 11:case 15:Ks(o),o.flags&2048&&Uo(9,o,o.return);break;case 3:Ks(o);break;case 12:Ks(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,mf(o)):Ks(o);break;default:Ks(o)}}function mf(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var m=i[s];sr=m,bC(m,o)}vC(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:Uo(8,i,i.return),mf(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,mf(i));break;default:mf(i)}o=o.sibling}}function bC(o,i){for(;sr!==null;){var s=sr;switch(s.tag){case 0:case 11:case 15:Uo(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var m=s.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Ms(s.memoizedState.cache)}if(m=s.child,m!==null)m.return=s,sr=m;else e:for(s=o;sr!==null;){m=sr;var v=m.sibling,C=m.return;if(uC(m),m===s){sr=null;break e}if(v!==null){v.return=C,sr=v;break e}sr=C}}}var XN={getCacheForType:function(o){var i=br(Qn),s=i.data.get(o);return s===void 0&&(s=o(),i.data.set(o,s)),s}},YN=typeof WeakMap=="function"?WeakMap:Map,cn=0,wn=null,Dt=null,Wt=0,un=0,qr=null,Wo=!1,El=!1,sh=!1,yo=0,Pn=0,Go=0,Ai=0,ch=0,ma=0,wl=0,Xs=null,Ir=null,uh=!1,fh=0,gf=1/0,hf=null,Ko=null,mr=0,Xo=null,$l=null,Ol=0,dh=0,mh=null,SC=null,Ys=0,gh=null;function Wr(){if((cn&2)!==0&&Wt!==0)return Wt&-Wt;if(N.T!==null){var o=ml;return o!==0?o:Ch()}return We()}function CC(){ma===0&&(ma=(Wt&536870912)===0||tn?jt():536870912);var o=da.current;return o!==null&&(o.flags|=32),ma}function Gr(o,i,s){(o===wn&&(un===2||un===9)||o.cancelPendingCommit!==null)&&(Rl(o,0),Yo(o,Wt,ma,!1)),On(o,s),((cn&2)===0||o!==wn)&&(o===wn&&((cn&2)===0&&(Ai|=s),Pn===4&&Yo(o,Wt,ma,!1)),Ga(o))}function xC(o,i,s){if((cn&6)!==0)throw Error(r(327));var m=!s&&(i&124)===0&&(i&o.expiredLanes)===0||ke(o,i),v=m?JN(o,i):vh(o,i,!0),C=m;do{if(v===0){El&&!m&&Yo(o,i,0,!1);break}else{if(s=o.current.alternate,C&&!QN(s)){v=vh(o,i,!1),C=!1;continue}if(v===2){if(C=i,o.errorRecoveryDisabledLanes&C)var I=0;else I=o.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){i=I;e:{var H=o;v=Xs;var Z=H.current.memoizedState.isDehydrated;if(Z&&(Rl(H,I).flags|=256),I=vh(H,I,!1),I!==2){if(sh&&!Z){H.errorRecoveryDisabledLanes|=C,Ai|=C,v=4;break e}C=Ir,Ir=v,C!==null&&(Ir===null?Ir=C:Ir.push.apply(Ir,C))}v=I}if(C=!1,v!==2)continue}}if(v===1){Rl(o,0),Yo(o,i,0,!0);break}e:{switch(m=o,C=v,C){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Yo(m,i,ma,!Wo);break e;case 2:Ir=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(v=fh+300-Oe(),10<v)){if(Yo(m,i,ma,!Wo),Ne(m,0,!0)!==0)break e;m.timeoutHandle=QC(EC.bind(null,m,s,Ir,hf,uh,i,ma,Ai,wl,Wo,C,2,-0,0),v);break e}EC(m,s,Ir,hf,uh,i,ma,Ai,wl,Wo,C,0,-0,0)}}break}while(!0);Ga(o)}function EC(o,i,s,m,v,C,I,H,Z,de,xe,Re,he,pe){if(o.timeoutHandle=-1,Re=i.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(rc={stylesheets:null,count:0,unsuspend:jj},pC(i),Re=Pj(),Re!==null)){o.cancelPendingCommit=Re(MC.bind(null,o,i,C,s,m,v,I,H,Z,xe,1,he,pe)),Yo(o,C,I,!de);return}MC(o,i,C,s,m,v,I,H,Z)}function QN(o){for(var i=o;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var m=0;m<s.length;m++){var v=s[m],C=v.getSnapshot;v=v.value;try{if(!Fr(C(),v))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Yo(o,i,s,m){i&=~ch,i&=~Ai,o.suspendedLanes|=i,o.pingedLanes&=~i,m&&(o.warmLanes|=i),m=o.expirationTimes;for(var v=i;0<v;){var C=31-Ue(v),I=1<<C;m[C]=-1,v&=~I}s!==0&&Vt(o,s,i)}function pf(){return(cn&6)===0?(Qs(0),!1):!0}function hh(){if(Dt!==null){if(un===0)var o=Dt.return;else o=Dt,co=Ti=null,jg(o),bl=null,Fs=0,o=Dt;for(;o!==null;)nC(o.alternate,o),o=o.return;Dt=null}}function Rl(o,i){var s=o.timeoutHandle;s!==-1&&(o.timeoutHandle=-1,hj(s)),s=o.cancelPendingCommit,s!==null&&(o.cancelPendingCommit=null,s()),hh(),wn=o,Dt=s=io(o.current,null),Wt=i,un=0,qr=null,Wo=!1,El=ke(o,i),sh=!1,wl=ma=ch=Ai=Go=Pn=0,Ir=Xs=null,uh=!1,(i&8)!==0&&(i|=i&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=i;0<m;){var v=31-Ue(m),C=1<<v;i|=o[v],m&=~C}return yo=i,Du(),s}function wC(o,i){Mt=null,N.H=nf,i===js||i===Wu?(i=Fb(),un=3):i===Lb?(i=Fb(),un=4):un=i===VS?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,qr=i,Dt===null&&(Pn=1,sf(o,sa(i,o.current)))}function $C(){var o=N.H;return N.H=nf,o===null?nf:o}function OC(){var o=N.A;return N.A=XN,o}function ph(){Pn=4,Wo||(Wt&4194048)!==Wt&&da.current!==null||(El=!0),(Go&134217727)===0&&(Ai&134217727)===0||wn===null||Yo(wn,Wt,ma,!1)}function vh(o,i,s){var m=cn;cn|=2;var v=$C(),C=OC();(wn!==o||Wt!==i)&&(hf=null,Rl(o,i)),i=!1;var I=Pn;e:do try{if(un!==0&&Dt!==null){var H=Dt,Z=qr;switch(un){case 8:hh(),I=6;break e;case 3:case 2:case 9:case 6:da.current===null&&(i=!0);var de=un;if(un=0,qr=null,_l(o,H,Z,de),s&&El){I=0;break e}break;default:de=un,un=0,qr=null,_l(o,H,Z,de)}}ZN(),I=Pn;break}catch(xe){wC(o,xe)}while(!0);return i&&o.shellSuspendCounter++,co=Ti=null,cn=m,N.H=v,N.A=C,Dt===null&&(wn=null,Wt=0,Du()),I}function ZN(){for(;Dt!==null;)RC(Dt)}function JN(o,i){var s=cn;cn|=2;var m=$C(),v=OC();wn!==o||Wt!==i?(hf=null,gf=Oe()+500,Rl(o,i)):El=ke(o,i);e:do try{if(un!==0&&Dt!==null){i=Dt;var C=qr;t:switch(un){case 1:un=0,qr=null,_l(o,i,C,1);break;case 2:case 9:if(Bb(C)){un=0,qr=null,_C(i);break}i=function(){un!==2&&un!==9||wn!==o||(un=7),Ga(o)},C.then(i,i);break e;case 3:un=7;break e;case 4:un=5;break e;case 7:Bb(C)?(un=0,qr=null,_C(i)):(un=0,qr=null,_l(o,i,C,7));break;case 5:var I=null;switch(Dt.tag){case 26:I=Dt.memoizedState;case 5:case 27:var H=Dt;if(!I||c1(I)){un=0,qr=null;var Z=H.sibling;if(Z!==null)Dt=Z;else{var de=H.return;de!==null?(Dt=de,vf(de)):Dt=null}break t}}un=0,qr=null,_l(o,i,C,5);break;case 6:un=0,qr=null,_l(o,i,C,6);break;case 8:hh(),Pn=6;break e;default:throw Error(r(462))}}ej();break}catch(xe){wC(o,xe)}while(!0);return co=Ti=null,N.H=m,N.A=v,cn=s,Dt!==null?0:(wn=null,Wt=0,Du(),Pn)}function ej(){for(;Dt!==null&&!ce();)RC(Dt)}function RC(o){var i=eC(o.alternate,o,yo);o.memoizedProps=o.pendingProps,i===null?vf(o):Dt=i}function _C(o){var i=o,s=i.alternate;switch(i.tag){case 15:case 0:i=KS(s,i,i.pendingProps,i.type,void 0,Wt);break;case 11:i=KS(s,i,i.pendingProps,i.type.render,i.ref,Wt);break;case 5:jg(i);default:nC(s,i),i=Dt=Tb(i,yo),i=eC(s,i,yo)}o.memoizedProps=o.pendingProps,i===null?vf(o):Dt=i}function _l(o,i,s,m){co=Ti=null,jg(i),bl=null,Fs=0;var v=i.return;try{if(UN(o,v,i,s,Wt)){Pn=1,sf(o,sa(s,o.current)),Dt=null;return}}catch(C){if(v!==null)throw Dt=v,C;Pn=1,sf(o,sa(s,o.current)),Dt=null;return}i.flags&32768?(tn||m===1?o=!0:El||(Wt&536870912)!==0?o=!1:(Wo=o=!0,(m===2||m===9||m===3||m===6)&&(m=da.current,m!==null&&m.tag===13&&(m.flags|=16384))),TC(i,o)):vf(i)}function vf(o){var i=o;do{if((i.flags&32768)!==0){TC(i,Wo);return}o=i.return;var s=qN(i.alternate,i,yo);if(s!==null){Dt=s;return}if(i=i.sibling,i!==null){Dt=i;return}Dt=i=o}while(i!==null);Pn===0&&(Pn=5)}function TC(o,i){do{var s=WN(o.alternate,o);if(s!==null){s.flags&=32767,Dt=s;return}if(s=o.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(o=o.sibling,o!==null)){Dt=o;return}Dt=o=s}while(o!==null);Pn=6,Dt=null}function MC(o,i,s,m,v,C,I,H,Z){o.cancelPendingCommit=null;do yf();while(mr!==0);if((cn&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(C=i.lanes|i.childLanes,C|=lg,fn(o,s,C,I,H,Z),o===wn&&(Dt=wn=null,Wt=0),$l=i,Xo=o,Ol=s,dh=C,mh=v,SC=m,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,aj(He,function(){return AC(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||m){m=N.T,N.T=null,v=P.p,P.p=2,I=cn,cn|=4;try{GN(o,i,s)}finally{cn=I,P.p=v,N.T=m}}mr=1,NC(),jC(),IC()}}function NC(){if(mr===1){mr=0;var o=Xo,i=$l,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=N.T,N.T=null;var m=P.p;P.p=2;var v=cn;cn|=4;try{mC(i,o);var C=Th,I=bb(o.containerInfo),H=C.focusedElem,Z=C.selectionRange;if(I!==H&&H&&H.ownerDocument&&yb(H.ownerDocument.documentElement,H)){if(Z!==null&&ng(H)){var de=Z.start,xe=Z.end;if(xe===void 0&&(xe=de),"selectionStart"in H)H.selectionStart=de,H.selectionEnd=Math.min(xe,H.value.length);else{var Re=H.ownerDocument||document,he=Re&&Re.defaultView||window;if(he.getSelection){var pe=he.getSelection(),bt=H.textContent.length,mt=Math.min(Z.start,bt),pn=Z.end===void 0?mt:Math.min(Z.end,bt);!pe.extend&&mt>pn&&(I=pn,pn=mt,mt=I);var oe=vb(H,mt),te=vb(H,pn);if(oe&&te&&(pe.rangeCount!==1||pe.anchorNode!==oe.node||pe.anchorOffset!==oe.offset||pe.focusNode!==te.node||pe.focusOffset!==te.offset)){var ue=Re.createRange();ue.setStart(oe.node,oe.offset),pe.removeAllRanges(),mt>pn?(pe.addRange(ue),pe.extend(te.node,te.offset)):(ue.setEnd(te.node,te.offset),pe.addRange(ue))}}}}for(Re=[],pe=H;pe=pe.parentNode;)pe.nodeType===1&&Re.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<Re.length;H++){var we=Re[H];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}Mf=!!_h,Th=_h=null}finally{cn=v,P.p=m,N.T=s}}o.current=i,mr=2}}function jC(){if(mr===2){mr=0;var o=Xo,i=$l,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=N.T,N.T=null;var m=P.p;P.p=2;var v=cn;cn|=4;try{cC(o,i.alternate,i)}finally{cn=v,P.p=m,N.T=s}}mr=3}}function IC(){if(mr===4||mr===3){mr=0,Se();var o=Xo,i=$l,s=Ol,m=SC;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?mr=5:(mr=0,$l=Xo=null,PC(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Ko=null),nt(s),i=i.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Ke,i,void 0,(i.current.flags&128)===128)}catch{}if(m!==null){i=N.T,v=P.p,P.p=2,N.T=null;try{for(var C=o.onRecoverableError,I=0;I<m.length;I++){var H=m[I];C(H.value,{componentStack:H.stack})}}finally{N.T=i,P.p=v}}(Ol&3)!==0&&yf(),Ga(o),v=o.pendingLanes,(s&4194090)!==0&&(v&42)!==0?o===gh?Ys++:(Ys=0,gh=o):Ys=0,Qs(0)}}function PC(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,Ms(i)))}function yf(o){return NC(),jC(),IC(),AC()}function AC(){if(mr!==5)return!1;var o=Xo,i=dh;dh=0;var s=nt(Ol),m=N.T,v=P.p;try{P.p=32>s?32:s,N.T=null,s=mh,mh=null;var C=Xo,I=Ol;if(mr=0,$l=Xo=null,Ol=0,(cn&6)!==0)throw Error(r(331));var H=cn;if(cn|=4,yC(C.current),hC(C,C.current,I,s),cn=H,Qs(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Ke,C)}catch{}return!0}finally{P.p=v,N.T=m,PC(o,i)}}function zC(o,i,s){i=sa(s,i),i=Wg(o.stateNode,i,2),o=Bo(o,i,2),o!==null&&(On(o,2),Ga(o))}function Cn(o,i,s){if(o.tag===3)zC(o,o,s);else for(;i!==null;){if(i.tag===3){zC(i,o,s);break}else if(i.tag===1){var m=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ko===null||!Ko.has(m))){o=sa(s,o),s=HS(2),m=Bo(i,s,2),m!==null&&(FS(s,m,i,o),On(m,2),Ga(m));break}}i=i.return}}function yh(o,i,s){var m=o.pingCache;if(m===null){m=o.pingCache=new YN;var v=new Set;m.set(i,v)}else v=m.get(i),v===void 0&&(v=new Set,m.set(i,v));v.has(s)||(sh=!0,v.add(s),o=tj.bind(null,o,i,s),i.then(o,o))}function tj(o,i,s){var m=o.pingCache;m!==null&&m.delete(i),o.pingedLanes|=o.suspendedLanes&s,o.warmLanes&=~s,wn===o&&(Wt&s)===s&&(Pn===4||Pn===3&&(Wt&62914560)===Wt&&300>Oe()-fh?(cn&2)===0&&Rl(o,0):ch|=s,wl===Wt&&(wl=0)),Ga(o)}function DC(o,i){i===0&&(i=Nn()),o=cl(o,i),o!==null&&(On(o,i),Ga(o))}function nj(o){var i=o.memoizedState,s=0;i!==null&&(s=i.retryLane),DC(o,s)}function rj(o,i){var s=0;switch(o.tag){case 13:var m=o.stateNode,v=o.memoizedState;v!==null&&(s=v.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(i),DC(o,s)}function aj(o,i){return be(o,i)}var bf=null,Tl=null,bh=!1,Sf=!1,Sh=!1,zi=0;function Ga(o){o!==Tl&&o.next===null&&(Tl===null?bf=Tl=o:Tl=Tl.next=o),Sf=!0,bh||(bh=!0,ij())}function Qs(o,i){if(!Sh&&Sf){Sh=!0;do for(var s=!1,m=bf;m!==null;){if(o!==0){var v=m.pendingLanes;if(v===0)var C=0;else{var I=m.suspendedLanes,H=m.pingedLanes;C=(1<<31-Ue(42|o)+1)-1,C&=v&~(I&~H),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(s=!0,FC(m,C))}else C=Wt,C=Ne(m,m===wn?C:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(C&3)===0||ke(m,C)||(s=!0,FC(m,C));m=m.next}while(s);Sh=!1}}function oj(){LC()}function LC(){Sf=bh=!1;var o=0;zi!==0&&(gj()&&(o=zi),zi=0);for(var i=Oe(),s=null,m=bf;m!==null;){var v=m.next,C=BC(m,i);C===0?(m.next=null,s===null?bf=v:s.next=v,v===null&&(Tl=s)):(s=m,(o!==0||(C&3)!==0)&&(Sf=!0)),m=v}Qs(o)}function BC(o,i){for(var s=o.suspendedLanes,m=o.pingedLanes,v=o.expirationTimes,C=o.pendingLanes&-62914561;0<C;){var I=31-Ue(C),H=1<<I,Z=v[I];Z===-1?((H&s)===0||(H&m)!==0)&&(v[I]=xt(H,i)):Z<=i&&(o.expiredLanes|=H),C&=~H}if(i=wn,s=Wt,s=Ne(o,o===i?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,s===0||o===i&&(un===2||un===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&_e(m),o.callbackNode=null,o.callbackPriority=0;if((s&3)===0||ke(o,s)){if(i=s&-s,i===o.callbackPriority)return i;switch(m!==null&&_e(m),nt(s)){case 2:case 8:s=Ze;break;case 32:s=He;break;case 268435456:s=Ee;break;default:s=He}return m=HC.bind(null,o),s=be(s,m),o.callbackPriority=i,o.callbackNode=s,i}return m!==null&&m!==null&&_e(m),o.callbackPriority=2,o.callbackNode=null,2}function HC(o,i){if(mr!==0&&mr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var s=o.callbackNode;if(yf()&&o.callbackNode!==s)return null;var m=Wt;return m=Ne(o,o===wn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(xC(o,m,i),BC(o,Oe()),o.callbackNode!=null&&o.callbackNode===s?HC.bind(null,o):null)}function FC(o,i){if(yf())return null;xC(o,i,!0)}function ij(){pj(function(){(cn&6)!==0?be(je,oj):LC()})}function Ch(){return zi===0&&(zi=jt()),zi}function VC(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:no(""+o)}function UC(o,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,o.id&&s.setAttribute("form",o.id),i.parentNode.insertBefore(s,i),o=new FormData(o),s.parentNode.removeChild(s),o}function lj(o,i,s,m,v){if(i==="submit"&&s&&s.stateNode===v){var C=VC((v[Be]||null).action),I=m.submitter;I&&(i=(i=I[Be]||null)?VC(i.formAction):I.getAttribute("formAction"),i!==null&&(C=i,I=null));var H=new Pu("action","action",null,m,v);o.push({event:H,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(zi!==0){var Z=I?UC(v,I):new FormData(v);Fg(s,{pending:!0,data:Z,method:v.method,action:C},null,Z)}}else typeof C=="function"&&(H.preventDefault(),Z=I?UC(v,I):new FormData(v),Fg(s,{pending:!0,data:Z,method:v.method,action:C},C,Z))},currentTarget:v}]})}}for(var xh=0;xh<ig.length;xh++){var Eh=ig[xh],sj=Eh.toLowerCase(),cj=Eh[0].toUpperCase()+Eh.slice(1);$a(sj,"on"+cj)}$a(xb,"onAnimationEnd"),$a(Eb,"onAnimationIteration"),$a(wb,"onAnimationStart"),$a("dblclick","onDoubleClick"),$a("focusin","onFocus"),$a("focusout","onBlur"),$a(ON,"onTransitionRun"),$a(RN,"onTransitionStart"),$a(_N,"onTransitionCancel"),$a($b,"onTransitionEnd"),Ie("onMouseEnter",["mouseout","mouseover"]),Ie("onMouseLeave",["mouseout","mouseover"]),Ie("onPointerEnter",["pointerout","pointerover"]),Ie("onPointerLeave",["pointerout","pointerover"]),sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sn("onBeforeInput",["compositionend","keypress","textInput","paste"]),sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zs));function kC(o,i){i=(i&4)!==0;for(var s=0;s<o.length;s++){var m=o[s],v=m.event;m=m.listeners;e:{var C=void 0;if(i)for(var I=m.length-1;0<=I;I--){var H=m[I],Z=H.instance,de=H.currentTarget;if(H=H.listener,Z!==C&&v.isPropagationStopped())break e;C=H,v.currentTarget=de;try{C(v)}catch(xe){lf(xe)}v.currentTarget=null,C=Z}else for(I=0;I<m.length;I++){if(H=m[I],Z=H.instance,de=H.currentTarget,H=H.listener,Z!==C&&v.isPropagationStopped())break e;C=H,v.currentTarget=de;try{C(v)}catch(xe){lf(xe)}v.currentTarget=null,C=Z}}}}function Lt(o,i){var s=i[rt];s===void 0&&(s=i[rt]=new Set);var m=o+"__bubble";s.has(m)||(qC(i,o,2,!1),s.add(m))}function wh(o,i,s){var m=0;i&&(m|=4),qC(s,o,m,i)}var Cf="_reactListening"+Math.random().toString(36).slice(2);function $h(o){if(!o[Cf]){o[Cf]=!0,nr.forEach(function(s){s!=="selectionchange"&&(uj.has(s)||wh(s,!1,o),wh(s,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[Cf]||(i[Cf]=!0,wh("selectionchange",!1,i))}}function qC(o,i,s,m){switch(h1(i)){case 2:var v=Dj;break;case 8:v=Lj;break;default:v=Bh}s=v.bind(null,i,s,o),v=void 0,!dt||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(v=!0),m?v!==void 0?o.addEventListener(i,s,{capture:!0,passive:v}):o.addEventListener(i,s,!0):v!==void 0?o.addEventListener(i,s,{passive:v}):o.addEventListener(i,s,!1)}function Oh(o,i,s,m,v){var C=m;if((i&1)===0&&(i&2)===0&&m!==null)e:for(;;){if(m===null)return;var I=m.tag;if(I===3||I===4){var H=m.stateNode.containerInfo;if(H===v)break;if(I===4)for(I=m.return;I!==null;){var Z=I.tag;if((Z===3||Z===4)&&I.stateNode.containerInfo===v)return;I=I.return}for(;H!==null;){if(I=It(H),I===null)return;if(Z=I.tag,Z===5||Z===6||Z===26||Z===27){m=C=I;continue e}H=H.parentNode}}m=m.return}rl(function(){var de=C,xe=ia(s),Re=[];e:{var he=Ob.get(o);if(he!==void 0){var pe=Pu,bt=o;switch(o){case"keypress":if(Si(s)===0)break e;case"keydown":case"keyup":pe=aN;break;case"focusin":bt="focus",pe=Qm;break;case"focusout":bt="blur",pe=Qm;break;case"beforeblur":case"afterblur":pe=Qm;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=tb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=WM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=lN;break;case xb:case Eb:case wb:pe=XM;break;case $b:pe=cN;break;case"scroll":case"scrollend":pe=kM;break;case"wheel":pe=fN;break;case"copy":case"cut":case"paste":pe=QM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=rb;break;case"toggle":case"beforetoggle":pe=mN}var mt=(i&4)!==0,pn=!mt&&(o==="scroll"||o==="scrollend"),oe=mt?he!==null?he+"Capture":null:he;mt=[];for(var te=de,ue;te!==null;){var we=te;if(ue=we.stateNode,we=we.tag,we!==5&&we!==26&&we!==27||ue===null||oe===null||(we=ro(te,oe),we!=null&&mt.push(Js(te,we,ue))),pn)break;te=te.return}0<mt.length&&(he=new pe(he,bt,null,s,xe),Re.push({event:he,listeners:mt}))}}if((i&7)===0){e:{if(he=o==="mouseover"||o==="pointerover",pe=o==="mouseout"||o==="pointerout",he&&s!==Va&&(bt=s.relatedTarget||s.fromElement)&&(It(bt)||bt[Ae]))break e;if((pe||he)&&(he=xe.window===xe?xe:(he=xe.ownerDocument)?he.defaultView||he.parentWindow:window,pe?(bt=s.relatedTarget||s.toElement,pe=de,bt=bt?It(bt):null,bt!==null&&(pn=l(bt),mt=bt.tag,bt!==pn||mt!==5&&mt!==27&&mt!==6)&&(bt=null)):(pe=null,bt=de),pe!==bt)){if(mt=tb,we="onMouseLeave",oe="onMouseEnter",te="mouse",(o==="pointerout"||o==="pointerover")&&(mt=rb,we="onPointerLeave",oe="onPointerEnter",te="pointer"),pn=pe==null?he:en(pe),ue=bt==null?he:en(bt),he=new mt(we,te+"leave",pe,s,xe),he.target=pn,he.relatedTarget=ue,we=null,It(xe)===de&&(mt=new mt(oe,te+"enter",bt,s,xe),mt.target=ue,mt.relatedTarget=pn,we=mt),pn=we,pe&&bt)t:{for(mt=pe,oe=bt,te=0,ue=mt;ue;ue=Ml(ue))te++;for(ue=0,we=oe;we;we=Ml(we))ue++;for(;0<te-ue;)mt=Ml(mt),te--;for(;0<ue-te;)oe=Ml(oe),ue--;for(;te--;){if(mt===oe||oe!==null&&mt===oe.alternate)break t;mt=Ml(mt),oe=Ml(oe)}mt=null}else mt=null;pe!==null&&WC(Re,he,pe,mt,!1),bt!==null&&pn!==null&&WC(Re,pn,bt,mt,!0)}}e:{if(he=de?en(de):window,pe=he.nodeName&&he.nodeName.toLowerCase(),pe==="select"||pe==="input"&&he.type==="file")var it=fb;else if(cb(he))if(db)it=EN;else{it=CN;var At=SN}else pe=he.nodeName,!pe||pe.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&Yn(de.elementType)&&(it=fb):it=xN;if(it&&(it=it(o,de))){ub(Re,it,s,xe);break e}At&&At(o,he,de),o==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&Qt(he,"number",he.value)}switch(At=de?en(de):window,o){case"focusin":(cb(At)||At.contentEditable==="true")&&(il=At,rg=de,$s=null);break;case"focusout":$s=rg=il=null;break;case"mousedown":ag=!0;break;case"contextmenu":case"mouseup":case"dragend":ag=!1,Sb(Re,s,xe);break;case"selectionchange":if($N)break;case"keydown":case"keyup":Sb(Re,s,xe)}var ft;if(Jm)e:{switch(o){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else ol?lb(o,s)&&(ht="onCompositionEnd"):o==="keydown"&&s.keyCode===229&&(ht="onCompositionStart");ht&&(ab&&s.locale!=="ko"&&(ol||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&ol&&(ft=al()):(mn=xe,En="value"in mn?mn.value:mn.textContent,ol=!0)),At=xf(de,ht),0<At.length&&(ht=new nb(ht,o,null,s,xe),Re.push({event:ht,listeners:At}),ft?ht.data=ft:(ft=sb(s),ft!==null&&(ht.data=ft)))),(ft=hN?pN(o,s):vN(o,s))&&(ht=xf(de,"onBeforeInput"),0<ht.length&&(At=new nb("onBeforeInput","beforeinput",null,s,xe),Re.push({event:At,listeners:ht}),At.data=ft)),lj(Re,o,de,s,xe)}kC(Re,i)})}function Js(o,i,s){return{instance:o,listener:i,currentTarget:s}}function xf(o,i){for(var s=i+"Capture",m=[];o!==null;){var v=o,C=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||C===null||(v=ro(o,s),v!=null&&m.unshift(Js(o,v,C)),v=ro(o,i),v!=null&&m.push(Js(o,v,C))),o.tag===3)return m;o=o.return}return[]}function Ml(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function WC(o,i,s,m,v){for(var C=i._reactName,I=[];s!==null&&s!==m;){var H=s,Z=H.alternate,de=H.stateNode;if(H=H.tag,Z!==null&&Z===m)break;H!==5&&H!==26&&H!==27||de===null||(Z=de,v?(de=ro(s,C),de!=null&&I.unshift(Js(s,de,Z))):v||(de=ro(s,C),de!=null&&I.push(Js(s,de,Z)))),s=s.return}I.length!==0&&o.push({event:i,listeners:I})}var fj=/\r\n?/g,dj=/\u0000|\uFFFD/g;function GC(o){return(typeof o=="string"?o:""+o).replace(fj,`
`).replace(dj,"")}function KC(o,i){return i=GC(i),GC(o)===i}function Ef(){}function hn(o,i,s,m,v,C){switch(s){case"children":typeof m=="string"?i==="body"||i==="textarea"&&m===""||jn(o,m):(typeof m=="number"||typeof m=="bigint")&&i!=="body"&&jn(o,""+m);break;case"className":zn(o,"class",m);break;case"tabIndex":zn(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":zn(o,s,m);break;case"style":wr(o,m,C);break;case"data":if(i!=="object"){zn(o,"data",m);break}case"src":case"href":if(m===""&&(i!=="a"||s!=="href")){o.removeAttribute(s);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(s);break}m=no(""+m),o.setAttribute(s,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(s==="formAction"?(i!=="input"&&hn(o,i,"name",v.name,v,null),hn(o,i,"formEncType",v.formEncType,v,null),hn(o,i,"formMethod",v.formMethod,v,null),hn(o,i,"formTarget",v.formTarget,v,null)):(hn(o,i,"encType",v.encType,v,null),hn(o,i,"method",v.method,v,null),hn(o,i,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(s);break}m=no(""+m),o.setAttribute(s,m);break;case"onClick":m!=null&&(o.onclick=Ef);break;case"onScroll":m!=null&&Lt("scroll",o);break;case"onScrollEnd":m!=null&&Lt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(s=m.__html,s!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=s}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}s=no(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(s,""+m):o.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(s,""):o.removeAttribute(s);break;case"capture":case"download":m===!0?o.setAttribute(s,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(s,m):o.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(s,m):o.removeAttribute(s);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(s):o.setAttribute(s,m);break;case"popover":Lt("beforetoggle",o),Lt("toggle",o),Gn(o,"popover",m);break;case"xlinkActuate":Hn(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Hn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Hn(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Hn(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Hn(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Hn(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Hn(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Hn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Hn(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Gn(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=ys.get(s)||s,Gn(o,s,m))}}function Rh(o,i,s,m,v,C){switch(s){case"style":wr(o,m,C);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(s=m.__html,s!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=s}}break;case"children":typeof m=="string"?jn(o,m):(typeof m=="number"||typeof m=="bigint")&&jn(o,""+m);break;case"onScroll":m!=null&&Lt("scroll",o);break;case"onScrollEnd":m!=null&&Lt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Ef);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sn.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),i=s.slice(2,v?s.length-7:void 0),C=o[Be]||null,C=C!=null?C[s]:null,typeof C=="function"&&o.removeEventListener(i,C,v),typeof m=="function")){typeof C!="function"&&C!==null&&(s in o?o[s]=null:o.hasAttribute(s)&&o.removeAttribute(s)),o.addEventListener(i,m,v);break e}s in o?o[s]=m:m===!0?o.setAttribute(s,""):Gn(o,s,m)}}}function gr(o,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",o),Lt("load",o);var m=!1,v=!1,C;for(C in s)if(s.hasOwnProperty(C)){var I=s[C];if(I!=null)switch(C){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:hn(o,i,C,I,s,null)}}v&&hn(o,i,"srcSet",s.srcSet,s,null),m&&hn(o,i,"src",s.src,s,null);return;case"input":Lt("invalid",o);var H=C=I=v=null,Z=null,de=null;for(m in s)if(s.hasOwnProperty(m)){var xe=s[m];if(xe!=null)switch(m){case"name":v=xe;break;case"type":I=xe;break;case"checked":Z=xe;break;case"defaultChecked":de=xe;break;case"value":C=xe;break;case"defaultValue":H=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(r(137,i));break;default:hn(o,i,m,xe,s,null)}}kt(o,C,H,Z,de,I,v,!1),Xn(o);return;case"select":Lt("invalid",o),m=I=C=null;for(v in s)if(s.hasOwnProperty(v)&&(H=s[v],H!=null))switch(v){case"value":C=H;break;case"defaultValue":I=H;break;case"multiple":m=H;default:hn(o,i,v,H,s,null)}i=C,s=I,o.multiple=!!m,i!=null?Zt(o,!!m,i,!1):s!=null&&Zt(o,!!m,s,!0);return;case"textarea":Lt("invalid",o),C=v=m=null;for(I in s)if(s.hasOwnProperty(I)&&(H=s[I],H!=null))switch(I){case"value":m=H;break;case"defaultValue":v=H;break;case"children":C=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(91));break;default:hn(o,i,I,H,s,null)}Fn(o,m,v,C),Xn(o);return;case"option":for(Z in s)if(s.hasOwnProperty(Z)&&(m=s[Z],m!=null))switch(Z){case"selected":o.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:hn(o,i,Z,m,s,null)}return;case"dialog":Lt("beforetoggle",o),Lt("toggle",o),Lt("cancel",o),Lt("close",o);break;case"iframe":case"object":Lt("load",o);break;case"video":case"audio":for(m=0;m<Zs.length;m++)Lt(Zs[m],o);break;case"image":Lt("error",o),Lt("load",o);break;case"details":Lt("toggle",o);break;case"embed":case"source":case"link":Lt("error",o),Lt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in s)if(s.hasOwnProperty(de)&&(m=s[de],m!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:hn(o,i,de,m,s,null)}return;default:if(Yn(i)){for(xe in s)s.hasOwnProperty(xe)&&(m=s[xe],m!==void 0&&Rh(o,i,xe,m,s,void 0));return}}for(H in s)s.hasOwnProperty(H)&&(m=s[H],m!=null&&hn(o,i,H,m,s,null))}function mj(o,i,s,m){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,C=null,I=null,H=null,Z=null,de=null,xe=null;for(pe in s){var Re=s[pe];if(s.hasOwnProperty(pe)&&Re!=null)switch(pe){case"checked":break;case"value":break;case"defaultValue":Z=Re;default:m.hasOwnProperty(pe)||hn(o,i,pe,null,m,Re)}}for(var he in m){var pe=m[he];if(Re=s[he],m.hasOwnProperty(he)&&(pe!=null||Re!=null))switch(he){case"type":C=pe;break;case"name":v=pe;break;case"checked":de=pe;break;case"defaultChecked":xe=pe;break;case"value":I=pe;break;case"defaultValue":H=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,i));break;default:pe!==Re&&hn(o,i,he,pe,m,Re)}}Ht(o,I,H,Z,de,xe,C,v);return;case"select":pe=I=H=he=null;for(C in s)if(Z=s[C],s.hasOwnProperty(C)&&Z!=null)switch(C){case"value":break;case"multiple":pe=Z;default:m.hasOwnProperty(C)||hn(o,i,C,null,m,Z)}for(v in m)if(C=m[v],Z=s[v],m.hasOwnProperty(v)&&(C!=null||Z!=null))switch(v){case"value":he=C;break;case"defaultValue":H=C;break;case"multiple":I=C;default:C!==Z&&hn(o,i,v,C,m,Z)}i=H,s=I,m=pe,he!=null?Zt(o,!!s,he,!1):!!m!=!!s&&(i!=null?Zt(o,!!s,i,!0):Zt(o,!!s,s?[]:"",!1));return;case"textarea":pe=he=null;for(H in s)if(v=s[H],s.hasOwnProperty(H)&&v!=null&&!m.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:hn(o,i,H,null,m,v)}for(I in m)if(v=m[I],C=s[I],m.hasOwnProperty(I)&&(v!=null||C!=null))switch(I){case"value":he=v;break;case"defaultValue":pe=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==C&&hn(o,i,I,v,m,C)}ar(o,he,pe);return;case"option":for(var bt in s)if(he=s[bt],s.hasOwnProperty(bt)&&he!=null&&!m.hasOwnProperty(bt))switch(bt){case"selected":o.selected=!1;break;default:hn(o,i,bt,null,m,he)}for(Z in m)if(he=m[Z],pe=s[Z],m.hasOwnProperty(Z)&&he!==pe&&(he!=null||pe!=null))switch(Z){case"selected":o.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:hn(o,i,Z,he,m,pe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in s)he=s[mt],s.hasOwnProperty(mt)&&he!=null&&!m.hasOwnProperty(mt)&&hn(o,i,mt,null,m,he);for(de in m)if(he=m[de],pe=s[de],m.hasOwnProperty(de)&&he!==pe&&(he!=null||pe!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,i));break;default:hn(o,i,de,he,m,pe)}return;default:if(Yn(i)){for(var pn in s)he=s[pn],s.hasOwnProperty(pn)&&he!==void 0&&!m.hasOwnProperty(pn)&&Rh(o,i,pn,void 0,m,he);for(xe in m)he=m[xe],pe=s[xe],!m.hasOwnProperty(xe)||he===pe||he===void 0&&pe===void 0||Rh(o,i,xe,he,m,pe);return}}for(var oe in s)he=s[oe],s.hasOwnProperty(oe)&&he!=null&&!m.hasOwnProperty(oe)&&hn(o,i,oe,null,m,he);for(Re in m)he=m[Re],pe=s[Re],!m.hasOwnProperty(Re)||he===pe||he==null&&pe==null||hn(o,i,Re,he,m,pe)}var _h=null,Th=null;function wf(o){return o.nodeType===9?o:o.ownerDocument}function XC(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function YC(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function Mh(o,i){return o==="textarea"||o==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Nh=null;function gj(){var o=window.event;return o&&o.type==="popstate"?o===Nh?!1:(Nh=o,!0):(Nh=null,!1)}var QC=typeof setTimeout=="function"?setTimeout:void 0,hj=typeof clearTimeout=="function"?clearTimeout:void 0,ZC=typeof Promise=="function"?Promise:void 0,pj=typeof queueMicrotask=="function"?queueMicrotask:typeof ZC<"u"?function(o){return ZC.resolve(null).then(o).catch(vj)}:QC;function vj(o){setTimeout(function(){throw o})}function Qo(o){return o==="head"}function JC(o,i){var s=i,m=0,v=0;do{var C=s.nextSibling;if(o.removeChild(s),C&&C.nodeType===8)if(s=C.data,s==="/$"){if(0<m&&8>m){s=m;var I=o.ownerDocument;if(s&1&&ec(I.documentElement),s&2&&ec(I.body),s&4)for(s=I.head,ec(s),I=s.firstChild;I;){var H=I.nextSibling,Z=I.nodeName;I[Ut]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&I.rel.toLowerCase()==="stylesheet"||s.removeChild(I),I=H}}if(v===0){o.removeChild(C),sc(i);return}v--}else s==="$"||s==="$?"||s==="$!"?v++:m=s.charCodeAt(0)-48;else m=0;s=C}while(s);sc(i)}function jh(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":jh(s),Tt(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}o.removeChild(s)}}function yj(o,i,s,m){for(;o.nodeType===1;){var v=s;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ut])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(C=o.getAttribute("rel"),C==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(C!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(C=o.getAttribute("src"),(C!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&C&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var C=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===C)return o}else return o;if(o=Ra(o.nextSibling),o===null)break}return null}function bj(o,i,s){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Ra(o.nextSibling),o===null))return null;return o}function Ih(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function Sj(o,i){var s=o.ownerDocument;if(o.data!=="$?"||s.readyState==="complete")i();else{var m=function(){i(),s.removeEventListener("DOMContentLoaded",m)};s.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function Ra(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return o}var Ph=null;function e1(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var s=o.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return o;i--}else s==="/$"&&i++}o=o.previousSibling}return null}function t1(o,i,s){switch(i=wf(s),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function ec(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);Tt(o)}var ga=new Map,n1=new Set;function $f(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var bo=P.d;P.d={f:Cj,r:xj,D:Ej,C:wj,L:$j,m:Oj,X:_j,S:Rj,M:Tj};function Cj(){var o=bo.f(),i=pf();return o||i}function xj(o){var i=Pt(o);i!==null&&i.tag===5&&i.type==="form"?xS(i):bo.r(o)}var Nl=typeof document>"u"?null:document;function r1(o,i,s){var m=Nl;if(m&&typeof i=="string"&&i){var v=De(i);v='link[rel="'+o+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),n1.has(v)||(n1.add(v),o={rel:o,crossOrigin:s,href:i},m.querySelector(v)===null&&(i=m.createElement("link"),gr(i,"link",o),_t(i),m.head.appendChild(i)))}}function Ej(o){bo.D(o),r1("dns-prefetch",o,null)}function wj(o,i){bo.C(o,i),r1("preconnect",o,i)}function $j(o,i,s){bo.L(o,i,s);var m=Nl;if(m&&o&&i){var v='link[rel="preload"][as="'+De(i)+'"]';i==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+De(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+De(s.imageSizes)+'"]')):v+='[href="'+De(o)+'"]';var C=v;switch(i){case"style":C=jl(o);break;case"script":C=Il(o)}ga.has(C)||(o=h({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:o,as:i},s),ga.set(C,o),m.querySelector(v)!==null||i==="style"&&m.querySelector(tc(C))||i==="script"&&m.querySelector(nc(C))||(i=m.createElement("link"),gr(i,"link",o),_t(i),m.head.appendChild(i)))}}function Oj(o,i){bo.m(o,i);var s=Nl;if(s&&o){var m=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+De(m)+'"][href="'+De(o)+'"]',C=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Il(o)}if(!ga.has(C)&&(o=h({rel:"modulepreload",href:o},i),ga.set(C,o),s.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(nc(C)))return}m=s.createElement("link"),gr(m,"link",o),_t(m),s.head.appendChild(m)}}}function Rj(o,i,s){bo.S(o,i,s);var m=Nl;if(m&&o){var v=ln(m).hoistableStyles,C=jl(o);i=i||"default";var I=v.get(C);if(!I){var H={loading:0,preload:null};if(I=m.querySelector(tc(C)))H.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":i},s),(s=ga.get(C))&&Ah(o,s);var Z=I=m.createElement("link");_t(Z),gr(Z,"link",o),Z._p=new Promise(function(de,xe){Z.onload=de,Z.onerror=xe}),Z.addEventListener("load",function(){H.loading|=1}),Z.addEventListener("error",function(){H.loading|=2}),H.loading|=4,Of(I,i,m)}I={type:"stylesheet",instance:I,count:1,state:H},v.set(C,I)}}}function _j(o,i){bo.X(o,i);var s=Nl;if(s&&o){var m=ln(s).hoistableScripts,v=Il(o),C=m.get(v);C||(C=s.querySelector(nc(v)),C||(o=h({src:o,async:!0},i),(i=ga.get(v))&&zh(o,i),C=s.createElement("script"),_t(C),gr(C,"link",o),s.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},m.set(v,C))}}function Tj(o,i){bo.M(o,i);var s=Nl;if(s&&o){var m=ln(s).hoistableScripts,v=Il(o),C=m.get(v);C||(C=s.querySelector(nc(v)),C||(o=h({src:o,async:!0,type:"module"},i),(i=ga.get(v))&&zh(o,i),C=s.createElement("script"),_t(C),gr(C,"link",o),s.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},m.set(v,C))}}function a1(o,i,s,m){var v=(v=ee.current)?$f(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=jl(s.href),s=ln(v).hoistableStyles,m=s.get(i),m||(m={type:"style",instance:null,count:0,state:null},s.set(i,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){o=jl(s.href);var C=ln(v).hoistableStyles,I=C.get(o);if(I||(v=v.ownerDocument||v,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(o,I),(C=v.querySelector(tc(o)))&&!C._p&&(I.instance=C,I.state.loading=5),ga.has(o)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},ga.set(o,s),C||Mj(v,o,s,I.state))),i&&m===null)throw Error(r(528,""));return I}if(i&&m!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Il(s),s=ln(v).hoistableScripts,m=s.get(i),m||(m={type:"script",instance:null,count:0,state:null},s.set(i,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function jl(o){return'href="'+De(o)+'"'}function tc(o){return'link[rel="stylesheet"]['+o+"]"}function o1(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function Mj(o,i,s,m){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?m.loading=1:(i=o.createElement("link"),m.preload=i,i.addEventListener("load",function(){return m.loading|=1}),i.addEventListener("error",function(){return m.loading|=2}),gr(i,"link",s),_t(i),o.head.appendChild(i))}function Il(o){return'[src="'+De(o)+'"]'}function nc(o){return"script[async]"+o}function i1(o,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var m=o.querySelector('style[data-href~="'+De(s.href)+'"]');if(m)return i.instance=m,_t(m),m;var v=h({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),_t(m),gr(m,"style",v),Of(m,s.precedence,o),i.instance=m;case"stylesheet":v=jl(s.href);var C=o.querySelector(tc(v));if(C)return i.state.loading|=4,i.instance=C,_t(C),C;m=o1(s),(v=ga.get(v))&&Ah(m,v),C=(o.ownerDocument||o).createElement("link"),_t(C);var I=C;return I._p=new Promise(function(H,Z){I.onload=H,I.onerror=Z}),gr(C,"link",m),i.state.loading|=4,Of(C,s.precedence,o),i.instance=C;case"script":return C=Il(s.src),(v=o.querySelector(nc(C)))?(i.instance=v,_t(v),v):(m=s,(v=ga.get(C))&&(m=h({},s),zh(m,v)),o=o.ownerDocument||o,v=o.createElement("script"),_t(v),gr(v,"link",m),o.head.appendChild(v),i.instance=v);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(m=i.instance,i.state.loading|=4,Of(m,s.precedence,o));return i.instance}function Of(o,i,s){for(var m=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,C=v,I=0;I<m.length;I++){var H=m[I];if(H.dataset.precedence===i)C=H;else if(C!==v)break}C?C.parentNode.insertBefore(o,C.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(o,i.firstChild))}function Ah(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function zh(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Rf=null;function l1(o,i,s){if(Rf===null){var m=new Map,v=Rf=new Map;v.set(s,m)}else v=Rf,m=v.get(s),m||(m=new Map,v.set(s,m));if(m.has(o))return m;for(m.set(o,null),s=s.getElementsByTagName(o),v=0;v<s.length;v++){var C=s[v];if(!(C[Ut]||C[St]||o==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var I=C.getAttribute(i)||"";I=o+I;var H=m.get(I);H?H.push(C):m.set(I,[C])}}return m}function s1(o,i,s){o=o.ownerDocument||o,o.head.insertBefore(s,i==="title"?o.querySelector("head > title"):null)}function Nj(o,i,s){if(s===1||i.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return o=i.disabled,typeof i.precedence=="string"&&o==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function c1(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var rc=null;function jj(){}function Ij(o,i,s){if(rc===null)throw Error(r(475));var m=rc;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var v=jl(s.href),C=o.querySelector(tc(v));if(C){o=C._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(m.count++,m=_f.bind(m),o.then(m,m)),i.state.loading|=4,i.instance=C,_t(C);return}C=o.ownerDocument||o,s=o1(s),(v=ga.get(v))&&Ah(s,v),C=C.createElement("link"),_t(C);var I=C;I._p=new Promise(function(H,Z){I.onload=H,I.onerror=Z}),gr(C,"link",s),i.instance=C}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(i,o),(o=i.state.preload)&&(i.state.loading&3)===0&&(m.count++,i=_f.bind(m),o.addEventListener("load",i),o.addEventListener("error",i))}}function Pj(){if(rc===null)throw Error(r(475));var o=rc;return o.stylesheets&&o.count===0&&Dh(o,o.stylesheets),0<o.count?function(i){var s=setTimeout(function(){if(o.stylesheets&&Dh(o,o.stylesheets),o.unsuspend){var m=o.unsuspend;o.unsuspend=null,m()}},6e4);return o.unsuspend=i,function(){o.unsuspend=null,clearTimeout(s)}}:null}function _f(){if(this.count--,this.count===0){if(this.stylesheets)Dh(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Tf=null;function Dh(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Tf=new Map,i.forEach(Aj,o),Tf=null,_f.call(o))}function Aj(o,i){if(!(i.state.loading&4)){var s=Tf.get(o);if(s)var m=s.get(null);else{s=new Map,Tf.set(o,s);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<v.length;C++){var I=v[C];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(s.set(I.dataset.precedence,I),m=I)}m&&s.set(null,m)}v=i.instance,I=v.getAttribute("data-precedence"),C=s.get(I)||m,C===m&&s.set(null,v),s.set(I,v),this.count++,m=_f.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),C?C.parentNode.insertBefore(v,C.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),i.state.loading|=4}}var ac={$$typeof:O,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function zj(o,i,s,m,v,C,I,H){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xn(0),this.hiddenUpdates=xn(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=C,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function u1(o,i,s,m,v,C,I,H,Z,de,xe,Re){return o=new zj(o,i,s,I,H,Z,de,Re),i=1,C===!0&&(i|=24),C=Vr(3,null,null,i),o.current=C,C.stateNode=o,i=yg(),i.refCount++,o.pooledCache=i,i.refCount++,C.memoizedState={element:m,isDehydrated:s,cache:i},xg(C),o}function f1(o){return o?(o=ul,o):ul}function d1(o,i,s,m,v,C){v=f1(v),m.context===null?m.context=v:m.pendingContext=v,m=Lo(i),m.payload={element:s},C=C===void 0?null:C,C!==null&&(m.callback=C),s=Bo(o,m,i),s!==null&&(Gr(s,o,i),Ps(s,o,i))}function m1(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var s=o.retryLane;o.retryLane=s!==0&&s<i?s:i}}function Lh(o,i){m1(o,i),(o=o.alternate)&&m1(o,i)}function g1(o){if(o.tag===13){var i=cl(o,67108864);i!==null&&Gr(i,o,67108864),Lh(o,67108864)}}var Mf=!0;function Dj(o,i,s,m){var v=N.T;N.T=null;var C=P.p;try{P.p=2,Bh(o,i,s,m)}finally{P.p=C,N.T=v}}function Lj(o,i,s,m){var v=N.T;N.T=null;var C=P.p;try{P.p=8,Bh(o,i,s,m)}finally{P.p=C,N.T=v}}function Bh(o,i,s,m){if(Mf){var v=Hh(m);if(v===null)Oh(o,i,m,Nf,s),p1(o,m);else if(Hj(v,o,i,s,m))m.stopPropagation();else if(p1(o,m),i&4&&-1<Bj.indexOf(o)){for(;v!==null;){var C=Pt(v);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var I=Fe(C.pendingLanes);if(I!==0){var H=C;for(H.pendingLanes|=2,H.entangledLanes|=2;I;){var Z=1<<31-Ue(I);H.entanglements[1]|=Z,I&=~Z}Ga(C),(cn&6)===0&&(gf=Oe()+500,Qs(0))}}break;case 13:H=cl(C,2),H!==null&&Gr(H,C,2),pf(),Lh(C,2)}if(C=Hh(m),C===null&&Oh(o,i,m,Nf,s),C===v)break;v=C}v!==null&&m.stopPropagation()}else Oh(o,i,m,null,s)}}function Hh(o){return o=ia(o),Fh(o)}var Nf=null;function Fh(o){if(Nf=null,o=It(o),o!==null){var i=l(o);if(i===null)o=null;else{var s=i.tag;if(s===13){if(o=c(i),o!==null)return o;o=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nf=o,null}function h1(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($e()){case je:return 2;case Ze:return 8;case He:case Xe:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var Vh=!1,Zo=null,Jo=null,ei=null,oc=new Map,ic=new Map,ti=[],Bj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function p1(o,i){switch(o){case"focusin":case"focusout":Zo=null;break;case"dragenter":case"dragleave":Jo=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":oc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ic.delete(i.pointerId)}}function lc(o,i,s,m,v,C){return o===null||o.nativeEvent!==C?(o={blockedOn:i,domEventName:s,eventSystemFlags:m,nativeEvent:C,targetContainers:[v]},i!==null&&(i=Pt(i),i!==null&&g1(i)),o):(o.eventSystemFlags|=m,i=o.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),o)}function Hj(o,i,s,m,v){switch(i){case"focusin":return Zo=lc(Zo,o,i,s,m,v),!0;case"dragenter":return Jo=lc(Jo,o,i,s,m,v),!0;case"mouseover":return ei=lc(ei,o,i,s,m,v),!0;case"pointerover":var C=v.pointerId;return oc.set(C,lc(oc.get(C)||null,o,i,s,m,v)),!0;case"gotpointercapture":return C=v.pointerId,ic.set(C,lc(ic.get(C)||null,o,i,s,m,v)),!0}return!1}function v1(o){var i=It(o.target);if(i!==null){var s=l(i);if(s!==null){if(i=s.tag,i===13){if(i=c(s),i!==null){o.blockedOn=i,Le(o.priority,function(){if(s.tag===13){var m=Wr();m=wt(m);var v=cl(s,m);v!==null&&Gr(v,s,m),Lh(s,m)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){o.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}o.blockedOn=null}function jf(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var s=Hh(o.nativeEvent);if(s===null){s=o.nativeEvent;var m=new s.constructor(s.type,s);Va=m,s.target.dispatchEvent(m),Va=null}else return i=Pt(s),i!==null&&g1(i),o.blockedOn=s,!1;i.shift()}return!0}function y1(o,i,s){jf(o)&&s.delete(i)}function Fj(){Vh=!1,Zo!==null&&jf(Zo)&&(Zo=null),Jo!==null&&jf(Jo)&&(Jo=null),ei!==null&&jf(ei)&&(ei=null),oc.forEach(y1),ic.forEach(y1)}function If(o,i){o.blockedOn===i&&(o.blockedOn=null,Vh||(Vh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Fj)))}var Pf=null;function b1(o){Pf!==o&&(Pf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pf===o&&(Pf=null);for(var i=0;i<o.length;i+=3){var s=o[i],m=o[i+1],v=o[i+2];if(typeof m!="function"){if(Fh(m||s)===null)continue;break}var C=Pt(s);C!==null&&(o.splice(i,3),i-=3,Fg(C,{pending:!0,data:v,method:s.method,action:m},m,v))}}))}function sc(o){function i(Z){return If(Z,o)}Zo!==null&&If(Zo,o),Jo!==null&&If(Jo,o),ei!==null&&If(ei,o),oc.forEach(i),ic.forEach(i);for(var s=0;s<ti.length;s++){var m=ti[s];m.blockedOn===o&&(m.blockedOn=null)}for(;0<ti.length&&(s=ti[0],s.blockedOn===null);)v1(s),s.blockedOn===null&&ti.shift();if(s=(o.ownerDocument||o).$$reactFormReplay,s!=null)for(m=0;m<s.length;m+=3){var v=s[m],C=s[m+1],I=v[Be]||null;if(typeof C=="function")I||b1(s);else if(I){var H=null;if(C&&C.hasAttribute("formAction")){if(v=C,I=C[Be]||null)H=I.formAction;else if(Fh(v)!==null)continue}else H=I.action;typeof H=="function"?s[m+1]=H:(s.splice(m,3),m-=3),b1(s)}}}function Uh(o){this._internalRoot=o}Af.prototype.render=Uh.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,m=Wr();d1(s,m,o,i,null,null)},Af.prototype.unmount=Uh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;d1(o.current,2,null,o,null,null),pf(),i[Ae]=null}};function Af(o){this._internalRoot=o}Af.prototype.unstable_scheduleHydration=function(o){if(o){var i=We();o={blockedOn:null,target:o,priority:i};for(var s=0;s<ti.length&&i!==0&&i<ti[s].priority;s++);ti.splice(s,0,o),s===0&&v1(o)}};var S1=t.version;if(S1!=="19.1.0")throw Error(r(527,S1,"19.1.0"));P.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(i),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var Vj={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zf.isDisabled&&zf.supportsFiber)try{Ke=zf.inject(Vj),qe=zf}catch{}}return uc.createRoot=function(o,i){if(!a(o))throw Error(r(299));var s=!1,m="",v=zS,C=DS,I=LS,H=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(v=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(I=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(H=i.unstable_transitionCallbacks)),i=u1(o,1,!1,null,null,s,m,v,C,I,H,null),o[Ae]=i.current,$h(o),new Uh(i)},uc.hydrateRoot=function(o,i,s){if(!a(o))throw Error(r(299));var m=!1,v="",C=zS,I=DS,H=LS,Z=null,de=null;return s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(C=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(H=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(Z=s.unstable_transitionCallbacks),s.formState!==void 0&&(de=s.formState)),i=u1(o,1,!0,i,s??null,m,v,C,I,H,Z,de),i.context=f1(null),s=i.current,m=Wr(),m=wt(m),v=Lo(m),v.callback=null,Bo(s,v,m),s=m,i.current.lanes=s,On(i,s),Ga(i),o[Ae]=i.current,$h(o),new Af(i)},uc.version="19.1.0",uc}var M1;function Qj(){if(M1)return qh.exports;M1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qh.exports=Yj(),qh.exports}var Zj=Qj();const Jj="modulepreload",eI=function(e,t){return new URL(e,t).href},N1={},qt=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const u=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),g=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=c(n.map(h=>{if(h=eI(h,r),h in N1)return;N1[h]=!0;const p=h.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(!!r)for(let x=u.length-1;x>=0;x--){const S=u[x];if(S.href===h&&(!p||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${y}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":Jj,p||(b.as="script"),b.crossOrigin="",b.href=h,g&&b.setAttribute("nonce",g),document.head.appendChild(b),p)return new Promise((x,S)=>{b.addEventListener("load",x),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};var f=Zd();const ae=ts(f),Jd=hO({__proto__:null,default:ae},[f]);var P0=f.createContext({});function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}function vO(e){if(Array.isArray(e))return e}function tI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,c,u=[],d=!0,g=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(h){g=!0,a=h}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw a}}return u}}function fv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A0(e,t){if(e){if(typeof e=="string")return fv(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fv(e,t):void 0}}function yO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,t){return vO(e)||tI(e,t)||A0(e,t)||yO()}function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function nI(e,t){if(lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bO(e){var t=nI(e,"string");return lt(t)=="symbol"?t:t+""}function Q(e,t,n){return(t=bO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $t(e,t){if(e==null)return{};var n,r,a=rI(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Yh={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var j1;function aI(){return j1||(j1=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=a(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)t.call(l,u)&&l[u]&&(c=a(c,u));return c}function a(l,c){return c?l?l+" "+c:l+c:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Yh)),Yh.exports}var oI=aI();const re=ts(oI),ur=Math.round;function Qh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const I1=(e,t,n)=>n===0?e:e/100;function fc(e,t){const n=t||255;return e>n?n:e<0?0:e}class nn{constructor(t){Q(this,"isValid",!0),Q(this,"r",0),Q(this,"g",0),Q(this,"b",0),Q(this,"a",1),Q(this,"_h",void 0),Q(this,"_s",void 0),Q(this,"_l",void 0),Q(this,"_v",void 0),Q(this,"_max",void 0),Q(this,"_min",void 0),Q(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(l){return r.startsWith(l)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof nn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=fc(t.r),this.g=fc(t.g),this.b=fc(t.b),this.a=typeof t.a=="number"?fc(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ur(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,l=u=>(r[u]-this[u])*a+this[u],c={r:ur(l("r")),g:ur(l("g")),b:ur(l("b")),a:ur(l("a")*100)/100};return this._c(c)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=l=>ur((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=ur(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ur(this.getSaturation()*100),r=ur(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=fc(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,l){return parseInt(n[a]+n[l||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const y=ur(r*255);this.r=y,this.g=y,this.b=y}let l=0,c=0,u=0;const d=t/60,g=(1-Math.abs(2*r-1))*n,h=g*(1-Math.abs(d%2-1));d>=0&&d<1?(l=g,c=h):d>=1&&d<2?(l=h,c=g):d>=2&&d<3?(c=g,u=h):d>=3&&d<4?(c=h,u=g):d>=4&&d<5?(l=h,u=g):d>=5&&d<6&&(l=g,u=h);const p=r-g/2;this.r=ur((l+p)*255),this.g=ur((c+p)*255),this.b=ur((u+p)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const l=ur(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const c=t/60,u=Math.floor(c),d=c-u,g=ur(r*(1-n)*255),h=ur(r*(1-n*d)*255),p=ur(r*(1-n*(1-d))*255);switch(u){case 0:this.g=p,this.b=g;break;case 1:this.r=h,this.b=g;break;case 2:this.r=g,this.b=p;break;case 3:this.r=g,this.g=h;break;case 4:this.r=p,this.g=g;break;case 5:default:this.g=g,this.b=h;break}}fromHsvString(t){const n=Qh(t,I1);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Qh(t,I1);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Qh(t,(r,a)=>a.includes("%")?ur(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Df=2,P1=.16,iI=.05,lI=.05,sI=.15,SO=5,CO=4,cI=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function A1(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Df*t:Math.round(e.h)+Df*t:r=n?Math.round(e.h)+Df*t:Math.round(e.h)-Df*t,r<0?r+=360:r>=360&&(r-=360),r}function z1(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-P1*t:t===CO?r=e.s+P1:r=e.s+iI*t,r>1&&(r=1),n&&t===SO&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function D1(e,t,n){var r;return n?r=e.v+lI*t:r=e.v-sI*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Wi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new nn(e),a=r.toHsv(),l=SO;l>0;l-=1){var c=new nn({h:A1(a,l,!0),s:z1(a,l,!0),v:D1(a,l,!0)});n.push(c)}n.push(r);for(var u=1;u<=CO;u+=1){var d=new nn({h:A1(a,u),s:z1(a,u),v:D1(a,u)});n.push(d)}return t.theme==="dark"?cI.map(function(g){var h=g.index,p=g.amount;return new nn(t.backgroundColor||"#141414").mix(n[h],p).toHexString()}):n.map(function(g){return g.toHexString()})}var Zh={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"},dv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];dv.primary=dv[5];var mv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mv.primary=mv[5];var gv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gv.primary=gv[5];var yd=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yd.primary=yd[5];var hv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];hv.primary=hv[5];var pv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];pv.primary=pv[5];var vv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];vv.primary=vv[5];var yv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];yv.primary=yv[5];var bd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bd.primary=bd[5];var bv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bv.primary=bv[5];var Sv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Sv.primary=Sv[5];var Cv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Cv.primary=Cv[5];var xv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];xv.primary=xv[5];var Jh={red:dv,volcano:mv,orange:gv,gold:yd,yellow:hv,lime:pv,green:vv,cyan:yv,blue:bd,geekblue:bv,purple:Sv,magenta:Cv,grey:xv};function L1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L1(Object(n),!0).forEach(function(r){Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Er(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ev(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var B1="data-rc-order",H1="data-rc-priority",uI="rc-util-key",wv=new Map;function xO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uI}function em(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function fI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function z0(e){return Array.from((wv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function EO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Er())return null;var n=t.csp,r=t.prepend,a=t.priority,l=a===void 0?0:a,c=fI(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(B1,c),u&&l&&d.setAttribute(H1,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var g=em(t),h=g.firstChild;if(r){if(u){var p=(t.styles||z0(g)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(B1)))return!1;var E=Number(y.getAttribute(H1)||0);return l>=E});if(p.length)return g.insertBefore(d,p[p.length-1].nextSibling),d}g.insertBefore(d,h)}else g.appendChild(d);return d}function wO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=em(t);return(t.styles||z0(n)).find(function(r){return r.getAttribute(xO(t))===e})}function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wO(e,t);if(n){var r=em(t);r.removeChild(n)}}function dI(e,t){var n=wv.get(e);if(!n||!Ev(document,n)){var r=EO("",t),a=r.parentNode;wv.set(e,a),e.removeChild(r)}}function Co(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=em(n),a=z0(r),l=J(J({},n),{},{styles:a});dI(r,l);var c=wO(t,l);if(c){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var g;c.nonce=(g=l.csp)===null||g===void 0?void 0:g.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var h=EO(e,l);return h.setAttribute(xO(l),t),h}function $O(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function mI(e){return $O(e)instanceof ShadowRoot}function Sd(e){return mI(e)?$O(e):null}var $v={},gI=function(t){};function hI(e,t){}function pI(e,t){}function vI(){$v={}}function OO(e,t,n){!t&&!$v[n]&&(e(!1,n),$v[n]=!0)}function pr(e,t){OO(hI,e,t)}function yI(e,t){OO(pI,e,t)}pr.preMessage=gI;pr.resetWarned=vI;pr.noteOnce=yI;function bI(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function SI(e,t){pr(e,"[@ant-design/icons] ".concat(t))}function F1(e){return lt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(lt(e.icon)==="object"||typeof e.icon=="function")}function V1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[bI(n)]=r}return t},{})}function Ov(e,t,n){return n?ae.createElement(e.tag,J(J({key:t},V1(e.attrs)),n),(e.children||[]).map(function(r,a){return Ov(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ae.createElement(e.tag,J({key:t},V1(e.attrs)),(e.children||[]).map(function(r,a){return Ov(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function RO(e){return Wi(e)[0]}function _O(e){return e?Array.isArray(e)?e:[e]:[]}var CI=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,xI=function(t){var n=f.useContext(P0),r=n.csp,a=n.prefixCls,l=n.layer,c=CI;a&&(c=c.replace(/anticon/g,a)),l&&(c="@layer ".concat(l,` {
`).concat(c,`
}`)),f.useEffect(function(){var u=t.current,d=Sd(u);Co(c,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},EI=["icon","className","onClick","style","primaryColor","secondaryColor"],Bc={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wI(e){var t=e.primaryColor,n=e.secondaryColor;Bc.primaryColor=t,Bc.secondaryColor=n||RO(t),Bc.calculated=!!n}function $I(){return J({},Bc)}var ns=function(t){var n=t.icon,r=t.className,a=t.onClick,l=t.style,c=t.primaryColor,u=t.secondaryColor,d=$t(t,EI),g=f.useRef(),h=Bc;if(c&&(h={primaryColor:c,secondaryColor:u||RO(c)}),xI(g),SI(F1(n),"icon should be icon definiton, but got ".concat(n)),!F1(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=J(J({},p),{},{icon:p.icon(h.primaryColor,h.secondaryColor)})),Ov(p.icon,"svg-".concat(p.name),J(J({className:r,onClick:a,style:l,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:g}))};ns.displayName="IconReact";ns.getTwoToneColors=$I;ns.setTwoToneColors=wI;function TO(e){var t=_O(e),n=ge(t,2),r=n[0],a=n[1];return ns.setTwoToneColors({primaryColor:r,secondaryColor:a})}function OI(){var e=ns.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var RI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];TO(bd.primary);var bn=f.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,l=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,g=$t(e,RI),h=f.useContext(P0),p=h.prefixCls,y=p===void 0?"anticon":p,E=h.rootClassName,b=re(E,y,Q(Q({},"".concat(y,"-").concat(r.name),!!r.name),"".concat(y,"-spin"),!!a||r.name==="loading"),n),x=c;x===void 0&&u&&(x=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=_O(d),$=ge(w,2),O=$[0],_=$[1];return f.createElement("span",Pe({role:"img","aria-label":r.name},g,{ref:t,tabIndex:x,onClick:u,className:b}),f.createElement(ns,{icon:r,primaryColor:O,secondaryColor:_,style:S}))});bn.displayName="AntdIcon";bn.getTwoToneColor=OI;bn.setTwoToneColor=TO;var _I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},TI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:_I}))},MI=f.forwardRef(TI),NI={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"},jI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:NI}))},II=f.forwardRef(jI),PI={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"},AI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:PI}))},tm=f.forwardRef(AI),zI={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"},DI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:zI}))},MO=f.forwardRef(DI),LI={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"},BI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:LI}))},rs=f.forwardRef(BI),HI={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"},FI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:HI}))},as=f.forwardRef(FI),VI={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"},UI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:VI}))},kI=f.forwardRef(UI),qI={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"},WI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:qI}))},GI=f.forwardRef(WI),KI={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"},XI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:KI}))},YI=f.forwardRef(XI),QI={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"},ZI=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:QI}))},JI=f.forwardRef(ZI),eP={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"},tP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:eP}))},nP=f.forwardRef(tP),rP={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"},aP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:rP}))},os=f.forwardRef(aP),oP={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"},iP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:oP}))},lP=f.forwardRef(iP),sP={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"},cP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:sP}))},uP=f.forwardRef(cP),fP={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"},dP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:fP}))},D0=f.forwardRef(dP),mP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},gP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:mP}))},NO=f.forwardRef(gP),hP={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"},pP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:hP}))},U1=f.forwardRef(pP),vP={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"},yP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:vP}))},hu=f.forwardRef(yP),bP={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},SP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:bP}))},CP=f.forwardRef(SP),xP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"}}]},name:"notification",theme:"outlined"},EP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:xP}))},jO=f.forwardRef(EP),wP={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"},$P=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:wP}))},OP=f.forwardRef($P),RP={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"},_P=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:RP}))},Rv=f.forwardRef(_P),TP={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"},MP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:TP}))},IO=f.forwardRef(MP),NP={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},jP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:NP}))},IP=f.forwardRef(jP),PP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},AP=function(t,n){return f.createElement(bn,Pe({},t,{ref:n,icon:PP}))},PO=f.forwardRef(AP),ep={exports:{}},an={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var k1;function zP(){if(k1)return an;k1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function x(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case a:case r:case g:case h:return S;default:switch(S=S&&S.$$typeof,S){case u:case c:case d:case y:case p:case l:return S;default:return w}}case t:return w}}}return an.ContextConsumer=c,an.ContextProvider=l,an.Element=e,an.ForwardRef=d,an.Fragment=n,an.Lazy=y,an.Memo=p,an.Portal=t,an.Profiler=a,an.StrictMode=r,an.Suspense=g,an.SuspenseList=h,an.isAsyncMode=function(){return!1},an.isConcurrentMode=function(){return!1},an.isContextConsumer=function(S){return x(S)===c},an.isContextProvider=function(S){return x(S)===l},an.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},an.isForwardRef=function(S){return x(S)===d},an.isFragment=function(S){return x(S)===n},an.isLazy=function(S){return x(S)===y},an.isMemo=function(S){return x(S)===p},an.isPortal=function(S){return x(S)===t},an.isProfiler=function(S){return x(S)===a},an.isStrictMode=function(S){return x(S)===r},an.isSuspense=function(S){return x(S)===g},an.isSuspenseList=function(S){return x(S)===h},an.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===r||S===g||S===h||S===E||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===l||S.$$typeof===c||S.$$typeof===d||S.$$typeof===b||S.getModuleId!==void 0)},an.typeOf=x,an}var q1;function DP(){return q1||(q1=1,ep.exports=zP()),ep.exports}var tp=DP();function pu(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var LP=Symbol.for("react.element"),BP=Symbol.for("react.transitional.element"),HP=Symbol.for("react.fragment");function AO(e){return e&&lt(e)==="object"&&(e.$$typeof===LP||e.$$typeof===BP)&&e.type===HP}var FP=Number(f.version.split(".")[0]),L0=function(t,n){typeof t=="function"?t(n):lt(t)==="object"&&t&&"current"in t&&(t.current=n)},Da=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(l){n.forEach(function(c){L0(c,l)})}},mi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pu(function(){return Da.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(c,u){return c!==l[u]})})},el=function(t){var n,r;if(!t)return!1;if(B0(t)&&FP>=19)return!0;var a=tp.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==tp.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==tp.ForwardRef)};function B0(e){return f.isValidElement(e)&&!AO(e)}var VP=function(t){return B0(t)&&el(t)},is=function(t){if(t&&B0(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function zr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ae.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zr(r)):AO(r)&&r.props?n=n.concat(zr(r.props.children,t)):n.push(r))}),n}var ui=pO();const _v=ts(ui),UP=hO({__proto__:null,default:_v},[ui]);function Wc(e){return e instanceof HTMLElement||e instanceof SVGElement}function zO(e){return e&&lt(e)==="object"&&Wc(e.nativeElement)?e.nativeElement:Wc(e)?e:null}function ed(e){var t=zO(e);if(t)return t;if(e instanceof ae.Component){var n;return(n=_v.findDOMNode)===null||n===void 0?void 0:n.call(_v,e)}return null}var Tv=f.createContext(null);function kP(e){var t=e.children,n=e.onBatchResize,r=f.useRef(0),a=f.useRef([]),l=f.useContext(Tv),c=f.useCallback(function(u,d,g){r.current+=1;var h=r.current;a.current.push({size:u,element:d,data:g}),Promise.resolve().then(function(){h===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(u,d,g)},[n,l]);return f.createElement(Tv.Provider,{value:c},t)}var DO=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var c=l[a];n.call(r,c[1],c[0])}},t}()}(),Mv=typeof window<"u"&&typeof document<"u"&&window.document===document,Cd=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),qP=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Cd):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),WP=2;function GP(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function c(){qP(l)}function u(){var d=Date.now();if(n){if(d-a<WP)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var KP=20,XP=["top","right","bottom","left","width","height","size","weight"],YP=typeof MutationObserver<"u",QP=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=GP(this.refresh.bind(this),KP)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Mv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YP?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Mv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=XP.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),LO=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Xl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Cd},BO=nm(0,0,0,0);function xd(e){return parseFloat(e)||0}function W1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var l=e["border-"+a+"-width"];return r+xd(l)},0)}function ZP(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var l=a[r],c=e["padding-"+l];n[l]=xd(c)}return n}function JP(e){var t=e.getBBox();return nm(0,0,t.width,t.height)}function eA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return BO;var r=Xl(e).getComputedStyle(e),a=ZP(r),l=a.left+a.right,c=a.top+a.bottom,u=xd(r.width),d=xd(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=W1(r,"left","right")+l),Math.round(d+c)!==n&&(d-=W1(r,"top","bottom")+c)),!nA(e)){var g=Math.round(u+l)-t,h=Math.round(d+c)-n;Math.abs(g)!==1&&(u-=g),Math.abs(h)!==1&&(d-=h)}return nm(a.left,a.top,u,d)}var tA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Xl(e).SVGGraphicsElement}:function(e){return e instanceof Xl(e).SVGElement&&typeof e.getBBox=="function"}}();function nA(e){return e===Xl(e).document.documentElement}function rA(e){return Mv?tA(e)?JP(e):eA(e):BO}function aA(e){var t=e.x,n=e.y,r=e.width,a=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(l.prototype);return LO(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function nm(e,t,n,r){return{x:e,y:t,width:n,height:r}}var oA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nm(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=rA(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),iA=function(){function e(t,n){var r=aA(n);LO(this,{target:t,contentRect:r})}return e}(),lA=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new DO,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new oA(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new iA(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),HO=typeof WeakMap<"u"?new WeakMap:new DO,FO=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=QP.getInstance(),r=new lA(t,n,this);HO.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){FO.prototype[e]=function(){var t;return(t=HO.get(this))[e].apply(t,arguments)}});var sA=function(){return typeof Cd.ResizeObserver<"u"?Cd.ResizeObserver:FO}(),li=new Map;function cA(e){e.forEach(function(t){var n,r=t.target;(n=li.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var VO=new sA(cA);function uA(e,t){li.has(e)||(li.set(e,new Set),VO.observe(e)),li.get(e).add(t)}function fA(e,t){li.has(e)&&(li.get(e).delete(t),li.get(e).size||(VO.unobserve(e),li.delete(e)))}function qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bO(r.key),r)}}function Wn(e,t,n){return t&&G1(e.prototype,t),n&&G1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gc(e,t){return Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gc(e,t)}function Mo(e,t){if(typeof t!="function"&&t!==null)throw new 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&&Gc(e,t)}function Kc(e){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kc(e)}function H0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H0=function(){return!!e})()}function Nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dA(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nt(e)}function No(e){var t=H0();return function(){var n,r=Kc(e);if(t){var a=Kc(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return dA(this,n)}}var mA=function(e){Mo(n,e);var t=No(n);function n(){return qn(this,n),t.apply(this,arguments)}return Wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function gA(e,t){var n=e.children,r=e.disabled,a=f.useRef(null),l=f.useRef(null),c=f.useContext(Tv),u=typeof n=="function",d=u?n(a):n,g=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&f.isValidElement(d)&&el(d),p=h?is(d):null,y=mi(p,a),E=function(){var w;return ed(a.current)||(a.current&&lt(a.current)==="object"?ed((w=a.current)===null||w===void 0?void 0:w.nativeElement):null)||ed(l.current)};f.useImperativeHandle(t,function(){return E()});var b=f.useRef(e);b.current=e;var x=f.useCallback(function(S){var w=b.current,$=w.onResize,O=w.data,_=S.getBoundingClientRect(),R=_.width,T=_.height,M=S.offsetWidth,z=S.offsetHeight,A=Math.floor(R),D=Math.floor(T);if(g.current.width!==A||g.current.height!==D||g.current.offsetWidth!==M||g.current.offsetHeight!==z){var F={width:A,height:D,offsetWidth:M,offsetHeight:z};g.current=F;var W=M===Math.round(R)?R:M,k=z===Math.round(T)?T:z,U=J(J({},F),{},{offsetWidth:W,offsetHeight:k});c==null||c(U,S,O),$&&Promise.resolve().then(function(){$(U,S)})}},[]);return f.useEffect(function(){var S=E();return S&&!r&&uA(S,x),function(){return fA(S,x)}},[a.current,r]),f.createElement(mA,{ref:l},h?f.cloneElement(d,{ref:y}):d)}var hA=f.forwardRef(gA),pA="rc-observer-key";function vA(e,t){var n=e.children,r=typeof n=="function"?[n]:zr(n);return r.map(function(a,l){var c=(a==null?void 0:a.key)||"".concat(pA,"-").concat(l);return f.createElement(hA,Pe({},e,{key:c,ref:l===0?t:void 0}),a)})}var jo=f.forwardRef(vA);jo.Collection=kP;function yA(e){if(Array.isArray(e))return fv(e)}function UO(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e){return yA(e)||UO(e)||A0(e)||bA()}var kO=function(t){return+setTimeout(t,16)},qO=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kO=function(t){return window.requestAnimationFrame(t)},qO=function(t){return window.cancelAnimationFrame(t)});var K1=0,F0=new Map;function WO(e){F0.delete(e)}var yn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;K1+=1;var r=K1;function a(l){if(l===0)WO(r),t();else{var c=kO(function(){a(l-1)});F0.set(r,c)}}return a(n),r};yn.cancel=function(e){var t=F0.get(e);return WO(e),qO(t)};function Xc(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Yc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(pr(!d,"Warning: There may be circular references"),d)return!1;if(l===c)return!0;if(n&&u>1)return!1;r.add(l);var g=u+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(var h=0;h<l.length;h++)if(!a(l[h],c[h],g))return!1;return!0}if(l&&c&&lt(l)==="object"&&lt(c)==="object"){var p=Object.keys(l);return p.length!==Object.keys(c).length?!1:p.every(function(y){return a(l[y],c[y],g)})}return!1}return a(e,t)}var SA="%";function Nv(e){return e.join(SA)}var CA=function(){function e(t){qn(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return Wn(e,[{key:"get",value:function(n){return this.opGet(Nv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Nv(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),l=r(a);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e}(),Yl="data-token-hash",ja="data-css-hash",si="__cssinjs_instance__";function xA(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ja,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[si]=a[si]||e,a[si]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ja,"]"))).forEach(function(a){var l=a.getAttribute(ja);if(r[l]){if(a[si]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[l]=!0})}return new CA(e)}var vu=f.createContext({hashPriority:"low",cache:xA(),defaultCache:!0});function EA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var V0=function(){function e(){qn(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Wn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c={map:this.cache};return n.forEach(function(u){if(!c)c=void 0;else{var d;c=(d=c)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&l&&(c.value[1]=this.cacheCallTimes++),(a=c)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(g,h){var p=ge(g,2),y=p[1];return a.internalGet(h)[1]<y?[h,a.internalGet(h)[1]]:g},[this.keys[0],this.cacheCallTimes]),c=ge(l,1),u=c[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(g,h){if(h===n.length-1)d.set(g,{value:[r,a.cacheCallTimes++]});else{var p=d.get(g);p?p.map||(p.map=new Map):d.set(g,{map:new Map}),d=d.get(g).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var l;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(l=a.value)===null||l===void 0?void 0:l[0]}var c=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),c}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!EA(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Q(V0,"MAX_CACHE_SIZE",20);Q(V0,"MAX_CACHE_OFFSET",5);var X1=0,GO=function(){function e(t){qn(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=X1,t.length===0&&(t.length>0,void 0),X1+=1}return Wn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),np=new V0;function jv(e){var t=Array.isArray(e)?e:[e];return np.has(t)||np.set(t,new GO(t)),np.get(t)}var wA=new WeakMap,rp={};function $A(e,t){for(var n=wA,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(rp)||n.set(rp,e()),n.get(rp)}var Y1=new WeakMap;function Hc(e){var t=Y1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof GO?t+=r.id:r&&lt(r)==="object"?t+=Hc(r):t+=r}),t=Xc(t),Y1.set(e,t)),t}function Q1(e,t){return Xc("".concat(t,"_").concat(Hc(e)))}var Iv=Er();function ye(e){return typeof e=="number"?"".concat(e,"px"):e}function Ed(e,t,n){var r,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(l)return e;var c=J(J({},a),{},(r={},Q(r,Yl,t),Q(r,ja,n),r)),u=Object.keys(c).map(function(d){var g=c[d];return g?"".concat(d,'="').concat(g,'"'):null}).filter(function(d){return d}).join(" ");return"<style ".concat(u,">").concat(e,"</style>")}var td=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},OA=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var l=ge(a,2),c=l[0],u=l[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},KO=function(t,n,r){var a={},l={};return Object.entries(t).forEach(function(c){var u,d,g=ge(c,2),h=g[0],p=g[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[h])l[h]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[h])){var y,E=td(h,r==null?void 0:r.prefix);a[E]=typeof p=="number"&&!(r!=null&&(y=r.unitless)!==null&&y!==void 0&&y[h])?"".concat(p,"px"):String(p),l[h]="var(".concat(E,")")}}),[l,OA(a,n,{scope:r==null?void 0:r.scope})]},Z1=Er()?f.useLayoutEffect:f.useEffect,Gt=function(t,n){var r=f.useRef(!0);Z1(function(){return t(r.current)},n),Z1(function(){return r.current=!1,function(){r.current=!0}},[])},J1=function(t,n){Gt(function(r){if(!r)return t()},n)},RA=J({},Jd),ex=RA.useInsertionEffect,_A=function(t,n,r){f.useMemo(t,r),Gt(function(){return n(!0)},r)},TA=ex?function(e,t,n){return ex(function(){return e(),t()},n)}:_A,MA=J({},Jd),NA=MA.useInsertionEffect,jA=function(t){var n=[],r=!1;function a(l){r||n.push(l)}return f.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),a},IA=function(){return function(t){t()}},PA=typeof NA<"u"?jA:IA;function U0(e,t,n,r,a){var l=f.useContext(vu),c=l.cache,u=[e].concat(Te(t)),d=Nv(u),g=PA([d]),h=function(b){c.opUpdate(d,function(x){var S=x||[void 0,void 0],w=ge(S,2),$=w[0],O=$===void 0?0:$,_=w[1],R=_,T=R||n(),M=[O,T];return b?b(M):M})};f.useMemo(function(){h()},[d]);var p=c.opGet(d),y=p[1];return TA(function(){a==null||a(y)},function(E){return h(function(b){var x=ge(b,2),S=x[0],w=x[1];return E&&S===0&&(a==null||a(y)),[S+1,w]}),function(){c.opUpdate(d,function(b){var x=b||[],S=ge(x,2),w=S[0],$=w===void 0?0:w,O=S[1],_=$-1;return _===0?(g(function(){(E||!c.opGet(d))&&(r==null||r(O,!1))}),null):[$-1,O]})}},[d]),y}var AA={},zA="css",Bi=new Map;function DA(e){Bi.set(e,(Bi.get(e)||0)+1)}function LA(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Yl,'="').concat(e,'"]'));n.forEach(function(r){if(r[si]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var BA=0;function HA(e,t){Bi.set(e,(Bi.get(e)||0)-1);var n=Array.from(Bi.keys()),r=n.filter(function(a){var l=Bi.get(a)||0;return l<=0});n.length-r.length>BA&&r.forEach(function(a){LA(a,t),Bi.delete(a)})}var FA=function(t,n,r,a){var l=r.getDerivativeToken(t),c=J(J({},l),n);return a&&(c=a(c)),c},XO="token";function VA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(vu),a=r.cache.instanceId,l=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,g=d===void 0?AA:d,h=n.formatToken,p=n.getComputedToken,y=n.cssVar,E=$A(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),b=Hc(E),x=Hc(g),S=y?Hc(y):"",w=U0(XO,[u,e.id,b,x,S],function(){var $,O=p?p(E,g,e):FA(E,g,e,h),_=J({},O),R="";if(y){var T=KO(O,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),M=ge(T,2);O=M[0],R=M[1]}var z=Q1(O,u);O._tokenKey=z,_._tokenKey=Q1(_,u);var A=($=y==null?void 0:y.key)!==null&&$!==void 0?$:z;O._themeKey=A,DA(A);var D="".concat(zA,"-").concat(Xc(z));return O._hashId=D,[O,D,_,R,(y==null?void 0:y.key)||""]},function($){HA($[0]._themeKey,a)},function($){var O=ge($,4),_=O[0],R=O[3];if(y&&R){var T=Co(R,Xc("css-variables-".concat(_._themeKey)),{mark:ja,prepend:"queue",attachTo:l,priority:-999});T[si]=a,T.setAttribute(Yl,_._themeKey)}});return w}var UA=function(t,n,r){var a=ge(t,5),l=a[2],c=a[3],u=a[4],d=r||{},g=d.plain;if(!c)return null;var h=l._tokenKey,p=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},E=Ed(c,u,h,y,g);return[p,h,E]},kA={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},YO="comm",QO="rule",ZO="decl",qA="@import",WA="@namespace",GA="@keyframes",KA="@layer",JO=Math.abs,k0=String.fromCharCode;function e2(e){return e.trim()}function nd(e,t,n){return e.replace(t,n)}function XA(e,t,n){return e.indexOf(t,n)}function Wl(e,t){return e.charCodeAt(t)|0}function Ql(e,t,n){return e.slice(t,n)}function Xa(e){return e.length}function YA(e){return e.length}function Lf(e,t){return t.push(e),e}var rm=1,Zl=1,t2=0,xa=0,kn=0,ls="";function q0(e,t,n,r,a,l,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:rm,column:Zl,length:c,return:"",siblings:u}}function QA(){return kn}function ZA(){return kn=xa>0?Wl(ls,--xa):0,Zl--,kn===10&&(Zl=1,rm--),kn}function Ia(){return kn=xa<t2?Wl(ls,xa++):0,Zl++,kn===10&&(Zl=1,rm++),kn}function ci(){return Wl(ls,xa)}function rd(){return xa}function am(e,t){return Ql(ls,e,t)}function Qc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JA(e){return rm=Zl=1,t2=Xa(ls=e),xa=0,[]}function e4(e){return ls="",e}function ap(e){return e2(am(xa-1,Pv(e===91?e+2:e===40?e+1:e)))}function t4(e){for(;(kn=ci())&&kn<33;)Ia();return Qc(e)>2||Qc(kn)>3?"":" "}function n4(e,t){for(;--t&&Ia()&&!(kn<48||kn>102||kn>57&&kn<65||kn>70&&kn<97););return am(e,rd()+(t<6&&ci()==32&&Ia()==32))}function Pv(e){for(;Ia();)switch(kn){case e:return xa;case 34:case 39:e!==34&&e!==39&&Pv(kn);break;case 40:e===41&&Pv(e);break;case 92:Ia();break}return xa}function r4(e,t){for(;Ia()&&e+kn!==57;)if(e+kn===84&&ci()===47)break;return"/*"+am(t,xa-1)+"*"+k0(e===47?e:Ia())}function a4(e){for(;!Qc(ci());)Ia();return am(e,xa)}function o4(e){return e4(ad("",null,null,null,[""],e=JA(e),0,[0],e))}function ad(e,t,n,r,a,l,c,u,d){for(var g=0,h=0,p=c,y=0,E=0,b=0,x=1,S=1,w=1,$=0,O="",_=a,R=l,T=r,M=O;S;)switch(b=$,$=Ia()){case 40:if(b!=108&&Wl(M,p-1)==58){XA(M+=nd(ap($),"&","&\f"),"&\f",JO(g?u[g-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:M+=ap($);break;case 9:case 10:case 13:case 32:M+=t4(b);break;case 92:M+=n4(rd()-1,7);continue;case 47:switch(ci()){case 42:case 47:Lf(i4(r4(Ia(),rd()),t,n,d),d),(Qc(b||1)==5||Qc(ci()||1)==5)&&Xa(M)&&Ql(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*x:u[g++]=Xa(M)*w;case 125*x:case 59:case 0:switch($){case 0:case 125:S=0;case 59+h:w==-1&&(M=nd(M,/\f/g,"")),E>0&&(Xa(M)-p||x===0&&b===47)&&Lf(E>32?nx(M+";",r,n,p-1,d):nx(nd(M," ","")+";",r,n,p-2,d),d);break;case 59:M+=";";default:if(Lf(T=tx(M,t,n,g,h,a,u,O,_=[],R=[],p,l),l),$===123)if(h===0)ad(M,t,T,T,_,l,p,u,R);else{switch(y){case 99:if(Wl(M,3)===110)break;case 108:if(Wl(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ad(e,T,T,r&&Lf(tx(e,T,T,0,0,a,u,O,a,_=[],p,R),R),a,R,p,u,r?_:R):ad(M,T,T,T,[""],R,0,u,R)}}g=h=E=0,x=w=1,O=M="",p=c;break;case 58:p=1+Xa(M),E=b;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&ZA()==125)continue}switch(M+=k0($),$*x){case 38:w=h>0?1:(M+="\f",-1);break;case 44:u[g++]=(Xa(M)-1)*w,w=1;break;case 64:ci()===45&&(M+=ap(Ia())),y=ci(),h=p=Xa(O=M+=a4(rd())),$++;break;case 45:b===45&&Xa(M)==2&&(x=0)}}return l}function tx(e,t,n,r,a,l,c,u,d,g,h,p){for(var y=a-1,E=a===0?l:[""],b=YA(E),x=0,S=0,w=0;x<r;++x)for(var $=0,O=Ql(e,y+1,y=JO(S=c[x])),_=e;$<b;++$)(_=e2(S>0?E[$]+" "+O:nd(O,/&\f/g,E[$])))&&(d[w++]=_);return q0(e,t,n,a===0?QO:u,d,g,h,p)}function i4(e,t,n,r){return q0(e,t,n,YO,k0(QA()),Ql(e,2,-2),0,r)}function nx(e,t,n,r,a){return q0(e,t,n,ZO,Ql(e,0,r),Ql(e,r+1,-1),r,a)}function Av(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function l4(e,t,n,r){switch(e.type){case KA:if(e.children.length)break;case qA:case WA:case ZO:return e.return=e.return||e.value;case YO:return"";case GA:return e.return=e.value+"{"+Av(e.children,r)+"}";case QO:if(!Xa(e.value=e.props.join(",")))return""}return Xa(n=Av(e.children,r))?e.return=e.value+"{"+n+"}":""}var rx="data-ant-cssinjs-cache-path",n2="_FILE_STYLE__",ki,r2=!0;function s4(){if(!ki&&(ki={},Er())){var e=document.createElement("div");e.className=rx,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var l=a.split(":"),c=ge(l,2),u=c[0],d=c[1];ki[u]=d});var n=document.querySelector("style[".concat(rx,"]"));if(n){var r;r2=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function c4(e){return s4(),!!ki[e]}function u4(e){var t=ki[e],n=null;if(t&&Er())if(r2)n=n2;else{var r=document.querySelector("style[".concat(ja,'="').concat(ki[e],'"]'));r?n=r.innerHTML:delete ki[e]}return[n,t]}var f4="_skip_check_",a2="_multi_value_";function od(e){var t=Av(o4(e),l4);return t.replace(/\{%%%\:[^;];}/g,";")}function d4(e){return lt(e)==="object"&&e&&(f4 in e||a2 in e)}function ax(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(c){var u,d=c.trim().split(/\s+/),g=d[0]||"",h=((u=g.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return g="".concat(h).concat(a).concat(g.slice(h.length)),[g].concat(Te(d.slice(1))).join(" ")});return l.join(",")}var m4=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var g=n.hashPriority,h=n.transformers,p=h===void 0?[]:h;n.linters;var y="",E={};function b(w){var $=w.getName(u);if(!E[$]){var O=e(w.style,n,{root:!1,parentSelectors:c}),_=ge(O,1),R=_[0];E[$]="@keyframes ".concat(w.getName(u)).concat(R)}}function x(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(O){Array.isArray(O)?x(O,$):O&&$.push(O)}),$}var S=x(Array.isArray(t)?t:[t]);return S.forEach(function(w){var $=typeof w=="string"&&!a?{}:w;if(typeof $=="string")y+="".concat($,`
`);else if($._keyframe)b($);else{var O=p.reduce(function(_,R){var T;return(R==null||(T=R.visit)===null||T===void 0?void 0:T.call(R,_))||_},$);Object.keys(O).forEach(function(_){var R=O[_];if(lt(R)==="object"&&R&&(_!=="animationName"||!R._keyframe)&&!d4(R)){var T=!1,M=_.trim(),z=!1;(a||l)&&u?M.startsWith("@")?T=!0:M==="&"?M=ax("",u,g):M=ax(_,u,g):a&&!u&&(M==="&"||M==="")&&(M="",z=!0);var A=e(R,n,{root:z,injectHash:T,parentSelectors:[].concat(Te(c),[M])}),D=ge(A,2),F=D[0],W=D[1];E=J(J({},E),W),y+="".concat(M).concat(F)}else{let Y=function(N,P){var B=N.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),K=P;!kA[N]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),N==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(b(P),K=P.getName(u)),y+="".concat(B,":").concat(K,";")};var k,U=(k=R==null?void 0:R.value)!==null&&k!==void 0?k:R;lt(R)==="object"&&R!==null&&R!==void 0&&R[a2]&&Array.isArray(U)?U.forEach(function(N){Y(_,N)}):Y(_,U)}})}}),a?d&&(y&&(y="@layer ".concat(d.name," {").concat(y,"}")),d.dependencies&&(E["@layer ".concat(d.name)]=d.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(d.name,";")}).join(`
`))):y="{".concat(y,"}"),[y,E]};function o2(e,t){return Xc("".concat(e.join("%")).concat(t))}function g4(){return null}var i2="style";function zv(e,t){var n=e.token,r=e.path,a=e.hashId,l=e.layer,c=e.nonce,u=e.clientOnly,d=e.order,g=d===void 0?0:d,h=f.useContext(vu),p=h.autoClear;h.mock;var y=h.defaultCache,E=h.hashPriority,b=h.container,x=h.ssrInline,S=h.transformers,w=h.linters,$=h.cache,O=h.layer,_=n._tokenKey,R=[_];O&&R.push("layer"),R.push.apply(R,Te(r));var T=Iv,M=U0(i2,R,function(){var W=R.join("|");if(c4(W)){var k=u4(W),U=ge(k,2),Y=U[0],N=U[1];if(Y)return[Y,_,N,{},u,g]}var P=t(),B=m4(P,{hashId:a,hashPriority:E,layer:O?l:void 0,path:r.join("-"),transformers:S,linters:w}),K=ge(B,2),j=K[0],L=K[1],q=od(j),G=o2(R,q);return[q,_,G,L,u,g]},function(W,k){var U=ge(W,3),Y=U[2];(k||p)&&Iv&&qc(Y,{mark:ja})},function(W){var k=ge(W,4),U=k[0];k[1];var Y=k[2],N=k[3];if(T&&U!==n2){var P={mark:ja,prepend:O?!1:"queue",attachTo:b,priority:g},B=typeof c=="function"?c():c;B&&(P.csp={nonce:B});var K=[],j=[];Object.keys(N).forEach(function(q){q.startsWith("@layer")?K.push(q):j.push(q)}),K.forEach(function(q){Co(od(N[q]),"_layer-".concat(q),J(J({},P),{},{prepend:!0}))});var L=Co(U,Y,P);L[si]=$.instanceId,L.setAttribute(Yl,_),j.forEach(function(q){Co(od(N[q]),"_effect-".concat(q),P)})}}),z=ge(M,3),A=z[0],D=z[1],F=z[2];return function(W){var k;if(!x||T||!y)k=f.createElement(g4,null);else{var U;k=f.createElement("style",Pe({},(U={},Q(U,Yl,D),Q(U,ja,F),U),{dangerouslySetInnerHTML:{__html:A}}))}return f.createElement(f.Fragment,null,k,W)}}var h4=function(t,n,r){var a=ge(t,6),l=a[0],c=a[1],u=a[2],d=a[3],g=a[4],h=a[5],p=r||{},y=p.plain;if(g)return null;var E=l,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return E=Ed(l,c,u,b,y),d&&Object.keys(d).forEach(function(x){if(!n[x]){n[x]=!0;var S=od(d[x]),w=Ed(S,c,"_effect-".concat(x),b,y);x.startsWith("@layer")?E=w+E:E+=w}}),[h,u,E]},l2="cssVar",p4=function(t,n){var r=t.key,a=t.prefix,l=t.unitless,c=t.ignore,u=t.token,d=t.scope,g=d===void 0?"":d,h=f.useContext(vu),p=h.cache.instanceId,y=h.container,E=u._tokenKey,b=[].concat(Te(t.path),[r,g,E]),x=U0(l2,b,function(){var S=n(),w=KO(S,r,{prefix:a,unitless:l,ignore:c,scope:g}),$=ge(w,2),O=$[0],_=$[1],R=o2(b,_);return[O,_,R,r]},function(S){var w=ge(S,3),$=w[2];Iv&&qc($,{mark:ja})},function(S){var w=ge(S,3),$=w[1],O=w[2];if($){var _=Co($,O,{mark:ja,prepend:"queue",attachTo:y,priority:-999});_[si]=p,_.setAttribute(Yl,r)}});return x},v4=function(t,n,r){var a=ge(t,4),l=a[1],c=a[2],u=a[3],d=r||{},g=d.plain;if(!l)return null;var h=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},y=Ed(l,u,c,p,g);return[h,c,y]},dc;dc={},Q(dc,i2,h4),Q(dc,XO,UA),Q(dc,l2,v4);var zt=function(){function e(t,n){qn(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return Wn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Pl(e){return e.notSplit=!0,e}Pl(["borderTop","borderBottom"]),Pl(["borderTop"]),Pl(["borderBottom"]),Pl(["borderLeft","borderRight"]),Pl(["borderLeft"]),Pl(["borderRight"]);function s2(e){return vO(e)||UO(e)||A0(e)||yO()}function Ca(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function c2(e,t,n,r){if(!t.length)return n;var a=s2(t),l=a[0],c=a.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Te(e):u=J({},e),r&&n===void 0&&c.length===1?delete u[l][c[0]]:u[l]=c2(u[l],c,n,r),u}function Sa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ca(e,t.slice(0,-1))?e:c2(e,t,n,r)}function y4(e){return lt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ox(e){return Array.isArray(e)?[]:{}}var b4=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ox(t[0]);return t.forEach(function(a){function l(c,u){var d=new Set(u),g=Ca(a,c),h=Array.isArray(g);if(h||y4(g)){if(!d.has(g)){d.add(g);var p=Ca(r,c);h?r=Sa(r,c,[]):(!p||lt(p)!=="object")&&(r=Sa(r,c,ox(g))),b4(g).forEach(function(y){l([].concat(Te(c),[y]),d)})}}else r=Sa(r,c,g)}l([])}),r}function S4(){}const C4=f.createContext({}),yu=()=>{const e=()=>{};return e.deprecated=S4,e},u2=f.createContext(void 0);var x4={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"},E4={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},w4=J(J({},E4),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const f2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ix={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"]},w4),timePickerLocale:Object.assign({},f2)},Kr="${label} is not a valid ${type}",wo={locale:"en",Pagination:x4,DatePicker:ix,TimePicker:f2,Calendar:ix,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Kr,method:Kr,array:Kr,object:Kr,number:Kr,date:Kr,boolean:Kr,integer:Kr,float:Kr,regexp:Kr,email:Kr,url:Kr,hex:Kr},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let id=Object.assign({},wo.Modal),ld=[];const lx=()=>ld.reduce((e,t)=>Object.assign(Object.assign({},e),t),wo.Modal);function $4(e){if(e){const t=Object.assign({},e);return ld.push(t),id=lx(),()=>{ld=ld.filter(n=>n!==t),id=lx()}}id=Object.assign({},wo.Modal)}function d2(){return id}const W0=f.createContext(void 0),Io=(e,t)=>{const n=f.useContext(W0),r=f.useMemo(()=>{var l;const c=t||wo[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=f.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?wo.locale:l},[n]);return[r,a]},O4="internalMark",R4=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>$4(t==null?void 0:t.Modal),[t]);const a=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(W0.Provider,{value:a},n)},G0={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"},Zc=Object.assign(Object.assign({},G0),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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});function m2(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:l,colorError:c,colorInfo:u,colorPrimary:d,colorBgBase:g,colorTextBase:h}=e,p=n(d),y=n(a),E=n(l),b=n(c),x=n(u),S=r(g,h),w=e.colorLink||e.colorInfo,$=n(w),O=new nn(b[1]).mix(new nn(b[3]),50).toHexString();return Object.assign(Object.assign({},S),{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:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:O,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:E[1],colorWarningBgHover:E[2],colorWarningBorder:E[3],colorWarningBorderHover:E[4],colorWarningHover:E[4],colorWarning:E[6],colorWarningActive:E[7],colorWarningTextHover:E[8],colorWarningText:E[9],colorWarningTextActive:E[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new nn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const _4=e=>{let t=e,n=e,r=e,a=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?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function T4(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},_4(r))}const M4=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function sd(e){return(e+8)/e}function N4(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,l=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:sd(n)}))}const j4=e=>{const t=N4(e),n=t.map(h=>h.size),r=t.map(h=>h.lineHeight),a=n[1],l=n[0],c=n[2],u=r[1],d=r[0],g=r[2];return{fontSizeSM:l,fontSize:a,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:g,lineHeightSM:d,fontHeight:Math.round(u*a),fontHeightLG:Math.round(g*c),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function I4(e){const{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)}}const ha=(e,t)=>new nn(e).setA(t).toRgbString(),mc=(e,t)=>new nn(e).darken(t).toHexString(),P4=e=>{const t=Wi(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]}},A4=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ha(r,.88),colorTextSecondary:ha(r,.65),colorTextTertiary:ha(r,.45),colorTextQuaternary:ha(r,.25),colorFill:ha(r,.15),colorFillSecondary:ha(r,.06),colorFillTertiary:ha(r,.04),colorFillQuaternary:ha(r,.02),colorBgSolid:ha(r,1),colorBgSolidHover:ha(r,.75),colorBgSolidActive:ha(r,.95),colorBgLayout:mc(n,4),colorBgContainer:mc(n,0),colorBgElevated:mc(n,0),colorBgSpotlight:ha(r,.85),colorBgBlur:"transparent",colorBorder:mc(n,15),colorBorderSecondary:mc(n,6)}};function K0(e){Zh.pink=Zh.magenta,Jh.pink=Jh.magenta;const t=Object.keys(G0).map(n=>{const r=e[n]===Zh[n]?Jh[n]:Wi(e[n]);return Array.from({length:10},()=>1).reduce((a,l,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),m2(e,{generateColorPalettes:P4,generateNeutralColorPalettes:A4})),j4(e.fontSize)),I4(e)),M4(e)),T4(e))}const g2=jv(K0),wd={token:Zc,override:{override:Zc},hashed:!0},X0=ae.createContext(wd),Jc="ant",om="anticon",z4=["outlined","borderless","filled","underlined"],D4=(e,t)=>t||(e?`${Jc}-${e}`:Jc),gt=f.createContext({getPrefixCls:D4,iconPrefixCls:om}),{Consumer:dK}=gt,sx={};function Dr(e){const t=f.useContext(gt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,l=t[e];return Object.assign(Object.assign({classNames:sx,styles:sx},l),{getPrefixCls:n,direction:r,getPopupContainer:a})}const L4=`-ant-${Date.now()}-${Math.random()}`;function B4(e,t){const n={},r=(c,u)=>{let d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=(c,u)=>{const d=new nn(c),g=Wi(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=g[1],n[`${u}-color-hover`]=g[4],n[`${u}-color-active`]=g[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=g[0],n[`${u}-color-deprecated-border`]=g[2]};if(t.primaryColor){a(t.primaryColor,"primary");const c=new nn(t.primaryColor),u=Wi(c.toRgbString());u.forEach((g,h)=>{n[`primary-${h+1}`]=g}),n["primary-color-deprecated-l-35"]=r(c,g=>g.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,g=>g.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,g=>g.tint(20)),n["primary-color-deprecated-t-50"]=r(c,g=>g.tint(50)),n["primary-color-deprecated-f-12"]=r(c,g=>g.setA(g.a*.12));const d=new nn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,g=>g.setA(g.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,g=>g.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(c=>`--${e}-${c}: ${n[c]};`).join(`
`)}
  }
  `.trim()}function H4(e,t){const n=B4(e,t);Er()&&Co(n,`${L4}-dynamic-theme`)}const $o=f.createContext(!1),Y0=e=>{let{children:t,disabled:n}=e;const r=f.useContext($o);return f.createElement($o.Provider,{value:n??r},t)},Gi=f.createContext(void 0),F4=e=>{let{children:t,size:n}=e;const r=f.useContext(Gi);return f.createElement(Gi.Provider,{value:n||r},t)};function V4(){const e=f.useContext($o),t=f.useContext(Gi);return{componentDisabled:e,componentSize:t}}var h2=Wn(function e(){qn(this,e)}),p2="CALC_UNIT",U4=new RegExp(p2,"g");function op(e){return typeof e=="number"?"".concat(e).concat(p2):e}var k4=function(e){Mo(n,e);var t=No(n);function n(r,a){var l;qn(this,n),l=t.call(this),Q(Nt(l),"result",""),Q(Nt(l),"unitlessCssVar",void 0),Q(Nt(l),"lowPriority",void 0);var c=lt(r);return l.unitlessCssVar=a,r instanceof n?l.result="(".concat(r.result,")"):c==="number"?l.result=op(r):c==="string"&&(l.result=r),l}return Wn(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(op(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(op(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var l=this,c=a||{},u=c.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(g){return l.result.includes(g)})&&(d=!1),this.result=this.result.replace(U4,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(h2),q4=function(e){Mo(n,e);var t=No(n);function n(r){var a;return qn(this,n),a=t.call(this),Q(Nt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Wn(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(h2),W4=function(t,n){var r=t==="css"?k4:q4;return function(a){return new r(a,n)}},cx=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function An(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function Ki(e){var t=f.useRef(!1),n=f.useState(e),r=ge(n,2),a=r[0],l=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,d){d&&t.current||l(u)}return[a,c]}function ip(e){return e!==void 0}function vr(e,t){var n=t||{},r=n.defaultValue,a=n.value,l=n.onChange,c=n.postState,u=Ki(function(){return ip(a)?a:ip(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=ge(u,2),g=d[0],h=d[1],p=a!==void 0?a:g,y=c?c(p):p,E=An(l),b=Ki([p]),x=ge(b,2),S=x[0],w=x[1];J1(function(){var O=S[0];g!==O&&E(g,O)},[S]),J1(function(){ip(a)||h(a)},[a]);var $=An(function(O,_){h(O,_),w([p],_)});return[y,$]}function ux(e,t,n,r){var a=J({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=ge(u,2),g=d[0],h=d[1];if(a!=null&&a[g]||a!=null&&a[h]){var p;(p=a[h])!==null&&p!==void 0||(a[h]=a==null?void 0:a[g])}})}var c=J(J({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var v2=typeof CSSINJS_STATISTIC<"u",Dv=!0;function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!v2)return Object.assign.apply(Object,[{}].concat(t));Dv=!1;var r={};return t.forEach(function(a){if(lt(a)==="object"){var l=Object.keys(a);l.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),Dv=!0,r}var fx={};function G4(){}var K4=function(t){var n,r=t,a=G4;return v2&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(Dv){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;fx[c]={global:Array.from(n),component:J(J({},(d=fx[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function dx(e,t,n){if(typeof n=="function"){var r;return n(Kt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function X4(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"max(".concat(r.map(function(l){return ye(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return"min(".concat(r.map(function(l){return ye(l)}).join(","),")")}}}var Y4=1e3*60*10,Q4=function(){function e(){qn(this,e),Q(this,"map",new Map),Q(this,"objectIDMap",new WeakMap),Q(this,"nextID",0),Q(this,"lastAccessBeat",new Map),Q(this,"accessBeat",0)}return Wn(e,[{key:"set",value:function(n,r){this.clear();var a=this.getCompositeKey(n);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(n){var r=this,a=n.map(function(l){return l&&lt(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(lt(l),"_").concat(l)});return a.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,l){r-a>Y4&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),mx=new Q4;function Z4(e,t){return ae.useMemo(function(){var n=mx.get(t);if(n)return n;var r=e();return mx.set(t,r),r},t)}var J4=function(){return{}};function e3(e){var t=e.useCSP,n=t===void 0?J4:t,r=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(y,E,b,x){var S=Array.isArray(y)?y[0]:y;function w(z){return"".concat(String(S)).concat(z.slice(0,1).toUpperCase()).concat(z.slice(1))}var $=(x==null?void 0:x.unitless)||{},O=typeof u=="function"?u(y):{},_=J(J({},O),{},Q({},w("zIndexPopup"),!0));Object.keys($).forEach(function(z){_[w(z)]=$[z]});var R=J(J({},x),{},{unitless:_,prefixToken:w}),T=h(y,E,b,R),M=g(S,b,R);return function(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,D=T(z,A),F=ge(D,2),W=F[1],k=M(A),U=ge(k,2),Y=U[0],N=U[1];return[Y,W,N]}}function g(y,E,b){var x=b.unitless,S=b.injectStyle,w=S===void 0?!0:S,$=b.prefixToken,O=b.ignore,_=function(M){var z=M.rootCls,A=M.cssVar,D=A===void 0?{}:A,F=r(),W=F.realToken;return p4({path:[y],prefix:D.prefix,key:D.key,unitless:x,ignore:O,token:W,scope:z},function(){var k=dx(y,W,E),U=ux(y,W,k,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(k).forEach(function(Y){U[$(Y)]=U[Y],delete U[Y]}),U}),null},R=function(M){var z=r(),A=z.cssVar;return[function(D){return w&&A?ae.createElement(ae.Fragment,null,ae.createElement(_,{rootCls:M,cssVar:A,component:y}),D):D},A==null?void 0:A.key]};return R}function h(y,E,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],w=ge(S,1),$=w[0],O=S.join("-"),_=e.layer||{name:"antd"};return function(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,M=r(),z=M.theme,A=M.realToken,D=M.hashId,F=M.token,W=M.cssVar,k=a(),U=k.rootPrefixCls,Y=k.iconPrefixCls,N=n(),P=W?"css":"js",B=Z4(function(){var V=new Set;return W&&Object.keys(x.unitless||{}).forEach(function(X){V.add(td(X,W.prefix)),V.add(td(X,cx($,W.prefix)))}),W4(P,V)},[P,$,W==null?void 0:W.prefix]),K=X4(P),j=K.max,L=K.min,q={theme:z,token:F,hashId:D,nonce:function(){return N.nonce},clientOnly:x.clientOnly,layer:_,order:x.order||-999};typeof l=="function"&&zv(J(J({},q),{},{clientOnly:!1,path:["Shared",U]}),function(){return l(F,{prefix:{rootPrefixCls:U,iconPrefixCls:Y},csp:N})});var G=zv(J(J({},q),{},{path:[O,R,Y]}),function(){if(x.injectStyle===!1)return[];var V=K4(F),X=V.token,ee=V.flush,se=dx($,A,b),ne=".".concat(R),ie=ux($,A,se,{deprecatedTokens:x.deprecatedTokens});W&&se&&lt(se)==="object"&&Object.keys(se).forEach(function(be){se[be]="var(".concat(td(be,cx($,W.prefix)),")")});var ve=Kt(X,{componentCls:ne,prefixCls:R,iconCls:".".concat(Y),antCls:".".concat(U),calc:B,max:j,min:L},W?se:ie),fe=E(ve,{hashId:D,prefixCls:R,rootPrefixCls:U,iconPrefixCls:Y});ee($,ie);var le=typeof c=="function"?c(ve,R,T,x.resetFont):null;return[x.resetStyle===!1?null:le,fe]});return[G,D]}}function p(y,E,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=h(y,E,b,J({resetStyle:!1,order:-998},x)),w=function(O){var _=O.prefixCls,R=O.rootCls,T=R===void 0?_:R;return S(_,T),null};return w}return{genStyleHooks:d,genSubStyleComponent:p,genComponentStyleHook:h}}const fi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],t3="5.24.8";function lp(e){return e>=0&&e<=255}function Ac(e,t){const{r:n,g:r,b:a,a:l}=new nn(e).toRgb();if(l<1)return e;const{r:c,g:u,b:d}=new nn(t).toRgb();for(let g=.01;g<=1;g+=.01){const h=Math.round((n-c*(1-g))/g),p=Math.round((r-u*(1-g))/g),y=Math.round((a-d*(1-g))/g);if(lp(h)&&lp(p)&&lp(y))return new nn({r:h,g:p,b:y,a:Math.round(g*100)/100}).toRgbString()}return new nn({r:n,g:r,b:a,a:1}).toRgbString()}var n3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function y2(e){const{override:t}=e,n=n3(e,["override"]),r=Object.assign({},t);Object.keys(Zc).forEach(y=>{delete r[y]});const a=Object.assign(Object.assign({},n),r),l=480,c=576,u=768,d=992,g=1200,h=1600;if(a.motion===!1){const y="0s";a.motionDurationFast=y,a.motionDurationMid=y,a.motionDurationSlow=y}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ac(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ac(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ac(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ac(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:g-1,screenXL:g,screenXLMin:g,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new nn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new nn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new nn("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,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 gx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const b2={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},r3={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},a3={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},S2=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,l=gx(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=y2(c),l&&Object.entries(l).forEach(u=>{let[d,g]=u;const{theme:h}=g,p=gx(g,["theme"]);let y=p;h&&(y=S2(Object.assign(Object.assign({},c),p),{override:p},h)),c[d]=y}),c};function Lr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ae.useContext(X0),l=`${t3}-${t||""}`,c=n||g2,[u,d,g]=VA(c,[Zc,e],{salt:l,override:r,getComputedToken:S2,formatToken:y2,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:b2,ignore:r3,preserve:a3}});return[c,g,t?d:"",u,a]}const $d={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_r=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},ss=()=>({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"}}),Od=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),o3=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),i3=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),c),{[a]:c})}},C2=(e,t)=>({outline:`${ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),bu=(e,t)=>({"&:focus-visible":Object.assign({},C2(e,t))}),x2=e=>({[`.${e}`]:Object.assign(Object.assign({},ss()),{[`.${e} .${e}-icon`]:{display:"block"}})}),E2=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},bu(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:$n,genComponentStyleHook:l3,genSubStyleComponent:im}=e3({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext(gt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Lr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=f.useContext(gt);return e??{}},getResetStyles:(e,t)=>{var n;const r=o3(e);return[r,{"&":r},x2((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:om)]},getCommonStyle:i3,getCompUnitless:()=>b2});function s3(e,t){return fi.reduce((n,r)=>{const a=e[`${r}1`],l=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:l,darkColor:c,textColor:u}))},{})}const c3=(e,t)=>{const[n,r]=Lr();return zv({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[x2(e)])},u3=Object.assign({},Jd),{useId:hx}=u3,f3=()=>"",d3=typeof hx>"u"?f3:hx;function m3(e,t,n){var r;yu();const a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},wd),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:wd.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=d3();return pu(()=>{var u,d;if(!e)return t;const g=Object.assign({},l.components);Object.keys(e.components||{}).forEach(y=>{g[y]=Object.assign(Object.assign({},g[y]),e.components[y])});const h=`css-var-${c.replace(/:/g,"")}`,p=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||h});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:g,cssVar:p})},[a,l],(u,d)=>u.some((g,h)=>{const p=d[h];return!Yc(g,p,!0)}))}var g3=["children"],w2=f.createContext({});function h3(e){var t=e.children,n=$t(e,g3);return f.createElement(w2.Provider,{value:n},t)}var p3=function(e){Mo(n,e);var t=No(n);function n(){return qn(this,n),t.apply(this,arguments)}return Wn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function v3(e){var t=f.useReducer(function(u){return u+1},0),n=ge(t,2),r=n[1],a=f.useRef(e),l=An(function(){return a.current}),c=An(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[l,c]}var oi="none",Bf="appear",Hf="enter",Ff="leave",px="none",_a="prepare",kl="start",ql="active",Q0="end",$2="prepared";function vx(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function y3(e,t){var n={animationend:vx("Animation","AnimationEnd"),transitionend:vx("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var b3=y3(Er(),typeof window<"u"?window:{}),O2={};if(Er()){var S3=document.createElement("div");O2=S3.style}var Vf={};function R2(e){if(Vf[e])return Vf[e];var t=b3[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var l=n[a];if(Object.prototype.hasOwnProperty.call(t,l)&&l in O2)return Vf[e]=t[l],Vf[e]}return""}var _2=R2("animationend"),T2=R2("transitionend"),M2=!!(_2&&T2),yx=_2||"animationend",bx=T2||"transitionend";function Sx(e,t){if(!e)return null;if(lt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const C3=function(e){var t=f.useRef();function n(a){a&&(a.removeEventListener(bx,e),a.removeEventListener(yx,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(bx,e),a.addEventListener(yx,e),t.current=a)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var N2=Er()?f.useLayoutEffect:f.useEffect;const x3=function(){var e=f.useRef(null);function t(){yn.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=yn(function(){a<=1?r({isCanceled:function(){return l!==e.current}}):n(r,a-1)});e.current=l}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var E3=[_a,kl,ql,Q0],w3=[_a,$2],j2=!1,$3=!0;function I2(e){return e===ql||e===Q0}const O3=function(e,t,n){var r=Ki(px),a=ge(r,2),l=a[0],c=a[1],u=x3(),d=ge(u,2),g=d[0],h=d[1];function p(){c(_a,!0)}var y=t?w3:E3;return N2(function(){if(l!==px&&l!==Q0){var E=y.indexOf(l),b=y[E+1],x=n(l);x===j2?c(b,!0):b&&g(function(S){function w(){S.isCanceled()||c(b,!0)}x===!0?w():Promise.resolve(x).then(w)})}},[e,l]),f.useEffect(function(){return function(){h()}},[]),[p,l]};function R3(e,t,n,r){var a=r.motionEnter,l=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,d=r.motionLeave,g=d===void 0?!0:d,h=r.motionDeadline,p=r.motionLeaveImmediately,y=r.onAppearPrepare,E=r.onEnterPrepare,b=r.onLeavePrepare,x=r.onAppearStart,S=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,O=r.onEnterActive,_=r.onLeaveActive,R=r.onAppearEnd,T=r.onEnterEnd,M=r.onLeaveEnd,z=r.onVisibleChanged,A=Ki(),D=ge(A,2),F=D[0],W=D[1],k=v3(oi),U=ge(k,2),Y=U[0],N=U[1],P=Ki(null),B=ge(P,2),K=B[0],j=B[1],L=Y(),q=f.useRef(!1),G=f.useRef(null);function V(){return n()}var X=f.useRef(!1);function ee(){N(oi),j(null,!0)}var se=An(function(He){var Xe=Y();if(Xe!==oi){var Ee=V();if(!(He&&!He.deadline&&He.target!==Ee)){var Me=X.current,Ve;Xe===Bf&&Me?Ve=R==null?void 0:R(Ee,He):Xe===Hf&&Me?Ve=T==null?void 0:T(Ee,He):Xe===Ff&&Me&&(Ve=M==null?void 0:M(Ee,He)),Me&&Ve!==!1&&ee()}}}),ne=C3(se),ie=ge(ne,1),ve=ie[0],fe=function(Xe){switch(Xe){case Bf:return Q(Q(Q({},_a,y),kl,x),ql,$);case Hf:return Q(Q(Q({},_a,E),kl,S),ql,O);case Ff:return Q(Q(Q({},_a,b),kl,w),ql,_);default:return{}}},le=f.useMemo(function(){return fe(L)},[L]),be=O3(L,!e,function(He){if(He===_a){var Xe=le[_a];return Xe?Xe(V()):j2}if(Se in le){var Ee;j(((Ee=le[Se])===null||Ee===void 0?void 0:Ee.call(le,V(),null))||null)}return Se===ql&&L!==oi&&(ve(V()),h>0&&(clearTimeout(G.current),G.current=setTimeout(function(){se({deadline:!0})},h))),Se===$2&&ee(),$3}),_e=ge(be,2),ce=_e[0],Se=_e[1],Oe=I2(Se);X.current=Oe;var $e=f.useRef(null);N2(function(){if(!(q.current&&$e.current===t)){W(t);var He=q.current;q.current=!0;var Xe;!He&&t&&u&&(Xe=Bf),He&&t&&l&&(Xe=Hf),(He&&!t&&g||!He&&p&&!t&&g)&&(Xe=Ff);var Ee=fe(Xe);Xe&&(e||Ee[_a])?(N(Xe),ce()):N(oi),$e.current=t}},[t]),f.useEffect(function(){(L===Bf&&!u||L===Hf&&!l||L===Ff&&!g)&&N(oi)},[u,l,g]),f.useEffect(function(){return function(){q.current=!1,clearTimeout(G.current)}},[]);var je=f.useRef(!1);f.useEffect(function(){F&&(je.current=!0),F!==void 0&&L===oi&&((je.current||F)&&(z==null||z(F)),je.current=!0)},[F,L]);var Ze=K;return le[_a]&&Se===kl&&(Ze=J({transition:"none"},Ze)),[L,Se,Ze,F??t]}function _3(e){var t=e;lt(e)==="object"&&(t=e.transitionSupport);function n(a,l){return!!(a.motionName&&t&&l!==!1)}var r=f.forwardRef(function(a,l){var c=a.visible,u=c===void 0?!0:c,d=a.removeOnLeave,g=d===void 0?!0:d,h=a.forceRender,p=a.children,y=a.motionName,E=a.leavedClassName,b=a.eventProps,x=f.useContext(w2),S=x.motion,w=n(a,S),$=f.useRef(),O=f.useRef();function _(){try{return $.current instanceof HTMLElement?$.current:ed(O.current)}catch{return null}}var R=R3(w,u,_,a),T=ge(R,4),M=T[0],z=T[1],A=T[2],D=T[3],F=f.useRef(D);D&&(F.current=!0);var W=f.useCallback(function(B){$.current=B,L0(l,B)},[l]),k,U=J(J({},b),{},{visible:u});if(!p)k=null;else if(M===oi)D?k=p(J({},U),W):!g&&F.current&&E?k=p(J(J({},U),{},{className:E}),W):h||!g&&!E?k=p(J(J({},U),{},{style:{display:"none"}}),W):k=null;else{var Y;z===_a?Y="prepare":I2(z)?Y="active":z===kl&&(Y="start");var N=Sx(y,"".concat(M,"-").concat(Y));k=p(J(J({},U),{},{className:re(Sx(y,M),Q(Q({},N,N&&Y),y,typeof y=="string")),style:A}),W)}if(f.isValidElement(k)&&el(k)){var P=is(k);P||(k=f.cloneElement(k,{ref:W}))}return f.createElement(p3,{ref:O},k)});return r.displayName="CSSMotion",r}const eo=_3(M2);var Lv="add",Bv="keep",Hv="remove",sp="removed";function T3(e){var t;return e&&lt(e)==="object"&&"key"in e?t=e:t={key:e},J(J({},t),{},{key:String(t.key)})}function Fv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(T3)}function M3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,l=Fv(e),c=Fv(t);l.forEach(function(g){for(var h=!1,p=r;p<a;p+=1){var y=c[p];if(y.key===g.key){r<p&&(n=n.concat(c.slice(r,p).map(function(E){return J(J({},E),{},{status:Lv})})),r=p),n.push(J(J({},y),{},{status:Bv})),r+=1,h=!0;break}}h||n.push(J(J({},g),{},{status:Hv}))}),r<a&&(n=n.concat(c.slice(r).map(function(g){return J(J({},g),{},{status:Lv})})));var u={};n.forEach(function(g){var h=g.key;u[h]=(u[h]||0)+1});var d=Object.keys(u).filter(function(g){return u[g]>1});return d.forEach(function(g){n=n.filter(function(h){var p=h.key,y=h.status;return p!==g||y!==Hv}),n.forEach(function(h){h.key===g&&(h.status=Bv)})}),n}var N3=["component","children","onVisibleChanged","onAllRemoved"],j3=["status"],I3=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function P3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eo,n=function(r){Mo(l,r);var a=No(l);function l(){var c;qn(this,l);for(var u=arguments.length,d=new Array(u),g=0;g<u;g++)d[g]=arguments[g];return c=a.call.apply(a,[this].concat(d)),Q(Nt(c),"state",{keyEntities:[]}),Q(Nt(c),"removeKey",function(h){c.setState(function(p){var y=p.keyEntities.map(function(E){return E.key!==h?E:J(J({},E),{},{status:sp})});return{keyEntities:y}},function(){var p=c.state.keyEntities,y=p.filter(function(E){var b=E.status;return b!==sp}).length;y===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return Wn(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,g=this.props,h=g.component,p=g.children,y=g.onVisibleChanged;g.onAllRemoved;var E=$t(g,N3),b=h||f.Fragment,x={};return I3.forEach(function(S){x[S]=E[S],delete E[S]}),delete E.keys,f.createElement(b,E,d.map(function(S,w){var $=S.status,O=$t(S,j3),_=$===Lv||$===Bv;return f.createElement(t,Pe({},x,{key:O.key,visible:_,eventProps:O,onVisibleChanged:function(T){y==null||y(T,{key:O.key}),T||u.removeKey(O.key)}}),function(R,T){return p(J(J({},R),{},{index:w}),T)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var g=u.keys,h=d.keyEntities,p=Fv(g),y=M3(h,p);return{keyEntities:y.filter(function(E){var b=h.find(function(x){var S=x.key;return E.key===S});return!(b&&b.status===sp&&E.status===Hv)})}}}]),l}(f.Component);return Q(n,"defaultProps",{component:"div"}),n}const P2=P3(M2);function A3(e){const{children:t}=e,[,n]=Lr(),{motion:r}=n,a=f.useRef(!1);return a.current=a.current||r===!1,a.current?f.createElement(h3,{motion:r},t):t}const z3=()=>null;var D3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const L3=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Rd,A2,z2,D2;function cd(){return Rd||Jc}function B3(){return A2||om}function H3(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const F3=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Rd=t),n!==void 0&&(A2=n),"holderRender"in e&&(D2=a),r&&(H3(r)?H4(cd(),r):z2=r)},Z0=()=>({getPrefixCls:(e,t)=>t||(e?`${cd()}-${e}`:cd()),getIconPrefixCls:B3,getRootPrefixCls:()=>Rd||cd(),getTheme:()=>z2,holderRender:D2}),V3=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:l,form:c,locale:u,componentSize:d,direction:g,space:h,splitter:p,virtual:y,dropdownMatchSelectWidth:E,popupMatchSelectWidth:b,popupOverflow:x,legacyLocale:S,parentContext:w,iconPrefixCls:$,theme:O,componentDisabled:_,segmented:R,statistic:T,spin:M,calendar:z,carousel:A,cascader:D,collapse:F,typography:W,checkbox:k,descriptions:U,divider:Y,drawer:N,skeleton:P,steps:B,image:K,layout:j,list:L,mentions:q,modal:G,progress:V,result:X,slider:ee,breadcrumb:se,menu:ne,pagination:ie,input:ve,textArea:fe,empty:le,badge:be,radio:_e,rate:ce,switch:Se,transfer:Oe,avatar:$e,message:je,tag:Ze,table:He,card:Xe,tabs:Ee,timeline:Me,timePicker:Ve,upload:Ke,notification:qe,tree:at,colorPicker:Ue,datePicker:Ye,rangePicker:st,flex:pt,wave:Qe,dropdown:ze,warning:Fe,tour:Ne,tooltip:ke,popover:xt,popconfirm:jt,floatButtonGroup:Nn,variant:xn,inputNumber:On,treeSelect:fn}=e,Vt=f.useCallback((tt,ut)=>{const{prefixCls:Ut}=e;if(ut)return ut;const Tt=Ut||w.getPrefixCls("");return tt?`${Tt}-${tt}`:Tt},[w.getPrefixCls,e.prefixCls]),on=$||w.iconPrefixCls||om,wt=n||w.csp;c3(on,wt);const nt=m3(O,w.theme,{prefixCls:Vt("")}),We={csp:wt,autoInsertSpaceInButton:r,alert:a,anchor:l,locale:u||S,direction:g,space:h,splitter:p,virtual:y,popupMatchSelectWidth:b??E,popupOverflow:x,getPrefixCls:Vt,iconPrefixCls:on,theme:nt,segmented:R,statistic:T,spin:M,calendar:z,carousel:A,cascader:D,collapse:F,typography:W,checkbox:k,descriptions:U,divider:Y,drawer:N,skeleton:P,steps:B,image:K,input:ve,textArea:fe,layout:j,list:L,mentions:q,modal:G,progress:V,result:X,slider:ee,breadcrumb:se,menu:ne,pagination:ie,empty:le,badge:be,radio:_e,rate:ce,switch:Se,transfer:Oe,avatar:$e,message:je,tag:Ze,table:He,card:Xe,tabs:Ee,timeline:Me,timePicker:Ve,upload:Ke,notification:qe,tree:at,colorPicker:Ue,datePicker:Ye,rangePicker:st,flex:pt,wave:Qe,dropdown:ze,warning:Fe,tour:Ne,tooltip:ke,popover:xt,popconfirm:jt,floatButtonGroup:Nn,variant:xn,inputNumber:On,treeSelect:fn},Le=Object.assign({},w);Object.keys(We).forEach(tt=>{We[tt]!==void 0&&(Le[tt]=We[tt])}),L3.forEach(tt=>{const ut=e[tt];ut&&(Le[tt]=ut)}),typeof r<"u"&&(Le.button=Object.assign({autoInsertSpace:r},Le.button));const vt=pu(()=>Le,Le,(tt,ut)=>{const Ut=Object.keys(tt),Tt=Object.keys(ut);return Ut.length!==Tt.length||Ut.some(It=>tt[It]!==ut[It])}),{layer:St}=f.useContext(vu),Be=f.useMemo(()=>({prefixCls:on,csp:wt,layer:St?"antd":void 0}),[on,wt,St]);let Ae=f.createElement(f.Fragment,null,f.createElement(z3,{dropdownMatchSelectWidth:E}),t);const rt=f.useMemo(()=>{var tt,ut,Ut,Tt;return Ul(((tt=wo.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((Ut=(ut=vt.locale)===null||ut===void 0?void 0:ut.Form)===null||Ut===void 0?void 0:Ut.defaultValidateMessages)||{},((Tt=vt.form)===null||Tt===void 0?void 0:Tt.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[vt,c==null?void 0:c.validateMessages]);Object.keys(rt).length>0&&(Ae=f.createElement(u2.Provider,{value:rt},Ae)),u&&(Ae=f.createElement(R4,{locale:u,_ANT_MARK__:O4},Ae)),Ae=f.createElement(P0.Provider,{value:Be},Ae),d&&(Ae=f.createElement(F4,{size:d},Ae)),Ae=f.createElement(A3,null,Ae);const ot=f.useMemo(()=>{const tt=nt||{},{algorithm:ut,token:Ut,components:Tt,cssVar:It}=tt,Pt=D3(tt,["algorithm","token","components","cssVar"]),en=ut&&(!Array.isArray(ut)||ut.length>0)?jv(ut):g2,ln={};Object.entries(Tt||{}).forEach(nr=>{let[Sn,sn]=nr;const Ie=Object.assign({},sn);"algorithm"in Ie&&(Ie.algorithm===!0?Ie.theme=en:(Array.isArray(Ie.algorithm)||typeof Ie.algorithm=="function")&&(Ie.theme=jv(Ie.algorithm)),delete Ie.algorithm),ln[Sn]=Ie});const _t=Object.assign(Object.assign({},Zc),Ut);return Object.assign(Object.assign({},Pt),{theme:en,token:_t,components:ln,override:Object.assign({override:_t},ln),cssVar:It})},[nt]);return O&&(Ae=f.createElement(X0.Provider,{value:ot},Ae)),vt.warning&&(Ae=f.createElement(C4.Provider,{value:vt.warning},Ae)),_!==void 0&&(Ae=f.createElement(Y0,{disabled:_},Ae)),f.createElement(gt.Provider,{value:vt},Ae)},La=e=>{const t=f.useContext(gt),n=f.useContext(W0);return f.createElement(V3,Object.assign({parentContext:t,legacyLocale:n},e))};La.ConfigContext=gt;La.SizeContext=Gi;La.config=F3;La.useConfig=V4;Object.defineProperty(La,"SizeContext",{get:()=>Gi});var U3=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,k3=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,q3="".concat(U3," ").concat(k3).split(/[\s\n]+/),W3="aria-",G3="data-";function Cx(e,t){return e.indexOf(t)===0}function Za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=J({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||Cx(a,W3))||n.data&&Cx(a,G3)||n.attr&&q3.includes(a))&&(r[a]=e[a])}),r}function L2(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const K3=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ea(e,t){return K3(e,e,t)}const xx=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ex=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Uf=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ex(n.overflowY,t)||Ex(n.overflowX,t)||(r=>{const a=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},kf=(e,t,n,r,a,l,c,u)=>l<e&&c>t||l>e&&c<t?0:l<=e&&u<=n||c>=t&&u>=n?l-e-r:c>t&&u<n||l<e&&u>n?c-t+a:0,X3=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},wx=(e,t)=>{var n,r,a,l;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:d,boundary:g,skipOverflowHiddenElements:h}=t,p=typeof g=="function"?g:N=>N!==g;if(!xx(e))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,E=[];let b=e;for(;xx(b)&&p(b);){if(b=X3(b),b===y){E.push(b);break}b!=null&&b===document.body&&Uf(b)&&!Uf(document.documentElement)||b!=null&&Uf(b,h)&&E.push(b)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,S=(l=(a=window.visualViewport)==null?void 0:a.height)!=null?l:innerHeight,{scrollX:w,scrollY:$}=window,{height:O,width:_,top:R,right:T,bottom:M,left:z}=e.getBoundingClientRect(),{top:A,right:D,bottom:F,left:W}=(N=>{const P=window.getComputedStyle(N);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let k=u==="start"||u==="nearest"?R-A:u==="end"?M+F:R+O/2-A+F,U=d==="center"?z+_/2-W+D:d==="end"?T+D:z-W;const Y=[];for(let N=0;N<E.length;N++){const P=E[N],{height:B,width:K,top:j,right:L,bottom:q,left:G}=P.getBoundingClientRect();if(c==="if-needed"&&R>=0&&z>=0&&M<=S&&T<=x&&(P===y&&!Uf(P)||R>=j&&M<=q&&z>=G&&T<=L))return Y;const V=getComputedStyle(P),X=parseInt(V.borderLeftWidth,10),ee=parseInt(V.borderTopWidth,10),se=parseInt(V.borderRightWidth,10),ne=parseInt(V.borderBottomWidth,10);let ie=0,ve=0;const fe="offsetWidth"in P?P.offsetWidth-P.clientWidth-X-se:0,le="offsetHeight"in P?P.offsetHeight-P.clientHeight-ee-ne:0,be="offsetWidth"in P?P.offsetWidth===0?0:K/P.offsetWidth:0,_e="offsetHeight"in P?P.offsetHeight===0?0:B/P.offsetHeight:0;if(y===P)ie=u==="start"?k:u==="end"?k-S:u==="nearest"?kf($,$+S,S,ee,ne,$+k,$+k+O,O):k-S/2,ve=d==="start"?U:d==="center"?U-x/2:d==="end"?U-x:kf(w,w+x,x,X,se,w+U,w+U+_,_),ie=Math.max(0,ie+$),ve=Math.max(0,ve+w);else{ie=u==="start"?k-j-ee:u==="end"?k-q+ne+le:u==="nearest"?kf(j,q,B,ee,ne+le,k,k+O,O):k-(j+B/2)+le/2,ve=d==="start"?U-G-X:d==="center"?U-(G+K/2)+fe/2:d==="end"?U-L+se+fe:kf(G,L,K,X,se+fe,U,U+_,_);const{scrollLeft:ce,scrollTop:Se}=P;ie=_e===0?0:Math.max(0,Math.min(Se+ie/_e,P.scrollHeight-B/_e+le)),ve=be===0?0:Math.max(0,Math.min(ce+ve/be,P.scrollWidth-K/be+fe)),k+=Se-ie,U+=ce-ve}Y.push({el:P,top:ie,left:ve})}return Y},Y3=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Q3(e,t){if(!e.isConnected||!(a=>{let l=a;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const n=(a=>{const l=window.getComputedStyle(a);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(wx(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:l,left:c}of wx(e,Y3(t))){const u=l-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}const aa=e=>{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var ct={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},J0=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,l=e.duration,c=l===void 0?4.5:l,u=e.showProgress,d=e.pauseOnHover,g=d===void 0?!0:d,h=e.eventKey,p=e.content,y=e.closable,E=e.closeIcon,b=E===void 0?"x":E,x=e.props,S=e.onClick,w=e.onNoticeClose,$=e.times,O=e.hovering,_=f.useState(!1),R=ge(_,2),T=R[0],M=R[1],z=f.useState(0),A=ge(z,2),D=A[0],F=A[1],W=f.useState(0),k=ge(W,2),U=k[0],Y=k[1],N=O||T,P=c>0&&u,B=function(){w(h)},K=function(X){(X.key==="Enter"||X.code==="Enter"||X.keyCode===ct.ENTER)&&B()};f.useEffect(function(){if(!N&&c>0){var V=Date.now()-U,X=setTimeout(function(){B()},c*1e3-U);return function(){g&&clearTimeout(X),Y(Date.now()-V)}}},[c,N,$]),f.useEffect(function(){if(!N&&P&&(g||U===0)){var V=performance.now(),X,ee=function se(){cancelAnimationFrame(X),X=requestAnimationFrame(function(ne){var ie=ne+U-V,ve=Math.min(ie/(c*1e3),1);F(ve*100),ve<1&&se()})};return ee(),function(){g&&cancelAnimationFrame(X)}}},[c,U,N,P,$]);var j=f.useMemo(function(){return lt(y)==="object"&&y!==null?y:y?{closeIcon:b}:{}},[y,b]),L=Za(j,!0),q=100-(!D||D<0?0:D>100?100:D),G="".concat(n,"-notice");return f.createElement("div",Pe({},x,{ref:t,className:re(G,a,Q({},"".concat(G,"-closable"),y)),style:r,onMouseEnter:function(X){var ee;M(!0),x==null||(ee=x.onMouseEnter)===null||ee===void 0||ee.call(x,X)},onMouseLeave:function(X){var ee;M(!1),x==null||(ee=x.onMouseLeave)===null||ee===void 0||ee.call(x,X)},onClick:S}),f.createElement("div",{className:"".concat(G,"-content")},p),y&&f.createElement("a",Pe({tabIndex:0,className:"".concat(G,"-close"),onKeyDown:K,"aria-label":"Close"},L,{onClick:function(X){X.preventDefault(),X.stopPropagation(),B()}}),j.closeIcon),P&&f.createElement("progress",{className:"".concat(G,"-progress"),max:"100",value:q},q+"%"))}),B2=ae.createContext({}),H2=function(t){var n=t.children,r=t.classNames;return ae.createElement(B2.Provider,{value:{classNames:r}},n)},$x=8,Ox=3,Rx=16,Z3=function(t){var n={offset:$x,threshold:Ox,gap:Rx};if(t&&lt(t)==="object"){var r,a,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:$x,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:Ox,n.gap=(l=t.gap)!==null&&l!==void 0?l:Rx}return[!!t,n]},J3=["className","style","classNames","styles"],e6=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,l=t.className,c=t.style,u=t.motion,d=t.onAllNoticeRemoved,g=t.onNoticeClose,h=t.stack,p=f.useContext(B2),y=p.classNames,E=f.useRef({}),b=f.useState(null),x=ge(b,2),S=x[0],w=x[1],$=f.useState([]),O=ge($,2),_=O[0],R=O[1],T=n.map(function(N){return{config:N,key:String(N.key)}}),M=Z3(h),z=ge(M,2),A=z[0],D=z[1],F=D.offset,W=D.threshold,k=D.gap,U=A&&(_.length>0||T.length<=W),Y=typeof u=="function"?u(r):u;return f.useEffect(function(){A&&_.length>1&&R(function(N){return N.filter(function(P){return T.some(function(B){var K=B.key;return P===K})})})},[_,T,A]),f.useEffect(function(){var N;if(A&&E.current[(N=T[T.length-1])===null||N===void 0?void 0:N.key]){var P;w(E.current[(P=T[T.length-1])===null||P===void 0?void 0:P.key])}},[T,A]),ae.createElement(P2,Pe({key:r,className:re(a,"".concat(a,"-").concat(r),y==null?void 0:y.list,l,Q(Q({},"".concat(a,"-stack"),!!A),"".concat(a,"-stack-expanded"),U)),style:c,keys:T,motionAppear:!0},Y,{onAllRemoved:function(){d(r)}}),function(N,P){var B=N.config,K=N.className,j=N.style,L=N.index,q=B,G=q.key,V=q.times,X=String(G),ee=B,se=ee.className,ne=ee.style,ie=ee.classNames,ve=ee.styles,fe=$t(ee,J3),le=T.findIndex(function(Me){return Me.key===X}),be={};if(A){var _e=T.length-1-(le>-1?le:L-1),ce=r==="top"||r==="bottom"?"-50%":"0";if(_e>0){var Se,Oe,$e;be.height=U?(Se=E.current[X])===null||Se===void 0?void 0:Se.offsetHeight:S==null?void 0:S.offsetHeight;for(var je=0,Ze=0;Ze<_e;Ze++){var He;je+=((He=E.current[T[T.length-1-Ze].key])===null||He===void 0?void 0:He.offsetHeight)+k}var Xe=(U?je:_e*F)*(r.startsWith("top")?1:-1),Ee=!U&&S!==null&&S!==void 0&&S.offsetWidth&&(Oe=E.current[X])!==null&&Oe!==void 0&&Oe.offsetWidth?((S==null?void 0:S.offsetWidth)-F*2*(_e<3?_e:3))/(($e=E.current[X])===null||$e===void 0?void 0:$e.offsetWidth):1;be.transform="translate3d(".concat(ce,", ").concat(Xe,"px, 0) scaleX(").concat(Ee,")")}else be.transform="translate3d(".concat(ce,", 0, 0)")}return ae.createElement("div",{ref:P,className:re("".concat(a,"-notice-wrapper"),K,ie==null?void 0:ie.wrapper),style:J(J(J({},j),be),ve==null?void 0:ve.wrapper),onMouseEnter:function(){return R(function(Ve){return Ve.includes(X)?Ve:[].concat(Te(Ve),[X])})},onMouseLeave:function(){return R(function(Ve){return Ve.filter(function(Ke){return Ke!==X})})}},ae.createElement(J0,Pe({},fe,{ref:function(Ve){le>-1?E.current[X]=Ve:delete E.current[X]},prefixCls:a,classNames:ie,styles:ve,className:re(se,y==null?void 0:y.notice),style:ne,times:V,key:G,eventKey:G,onNoticeClose:g,hovering:A&&_.length>0})))})},t6=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,l=e.motion,c=e.maxCount,u=e.className,d=e.style,g=e.onAllRemoved,h=e.stack,p=e.renderNotifications,y=f.useState([]),E=ge(y,2),b=E[0],x=E[1],S=function(A){var D,F=b.find(function(W){return W.key===A});F==null||(D=F.onClose)===null||D===void 0||D.call(F),x(function(W){return W.filter(function(k){return k.key!==A})})};f.useImperativeHandle(t,function(){return{open:function(A){x(function(D){var F=Te(D),W=F.findIndex(function(Y){return Y.key===A.key}),k=J({},A);if(W>=0){var U;k.times=(((U=D[W])===null||U===void 0?void 0:U.times)||0)+1,F[W]=k}else k.times=0,F.push(k);return c>0&&F.length>c&&(F=F.slice(-c)),F})},close:function(A){S(A)},destroy:function(){x([])}}});var w=f.useState({}),$=ge(w,2),O=$[0],_=$[1];f.useEffect(function(){var z={};b.forEach(function(A){var D=A.placement,F=D===void 0?"topRight":D;F&&(z[F]=z[F]||[],z[F].push(A))}),Object.keys(O).forEach(function(A){z[A]=z[A]||[]}),_(z)},[b]);var R=function(A){_(function(D){var F=J({},D),W=F[A]||[];return W.length||delete F[A],F})},T=f.useRef(!1);if(f.useEffect(function(){Object.keys(O).length>0?T.current=!0:T.current&&(g==null||g(),T.current=!1)},[O]),!a)return null;var M=Object.keys(O);return ui.createPortal(f.createElement(f.Fragment,null,M.map(function(z){var A=O[z],D=f.createElement(e6,{key:z,configList:A,placement:z,prefixCls:r,className:u==null?void 0:u(z),style:d==null?void 0:d(z),motion:l,onNoticeClose:S,onAllNoticeRemoved:R,stack:h});return p?p(D,{prefixCls:r,key:z}):D})),a)}),n6=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],r6=function(){return document.body},_x=0;function a6(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(a){a&&Object.keys(a).forEach(function(l){var c=a[l];c!==void 0&&(e[l]=c)})}),e}function F2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?r6:t,r=e.motion,a=e.prefixCls,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,g=e.stack,h=e.renderNotifications,p=$t(e,n6),y=f.useState(),E=ge(y,2),b=E[0],x=E[1],S=f.useRef(),w=f.createElement(t6,{container:b,ref:S,prefixCls:a,motion:r,maxCount:l,className:c,style:u,onAllRemoved:d,stack:g,renderNotifications:h}),$=f.useState([]),O=ge($,2),_=O[0],R=O[1],T=An(function(z){var A=a6(p,z);(A.key===null||A.key===void 0)&&(A.key="rc-notification-".concat(_x),_x+=1),R(function(D){return[].concat(Te(D),[{type:"open",config:A}])})}),M=f.useMemo(function(){return{open:T,close:function(A){R(function(D){return[].concat(Te(D),[{type:"close",key:A}])})},destroy:function(){R(function(A){return[].concat(Te(A),[{type:"destroy"}])})}}},[]);return f.useEffect(function(){x(n())}),f.useEffect(function(){if(S.current&&_.length){_.forEach(function(D){switch(D.type){case"open":S.current.open(D.config);break;case"close":S.current.close(D.key);break;case"destroy":S.current.destroy();break}});var z,A;R(function(D){return(z!==D||!A)&&(z=D,A=D.filter(function(F){return!_.includes(F)})),A})}},[_]),[M,w]}const ey=ae.createContext(void 0),ii=100,o6=10,ty=ii*o6,V2={Modal:ii,Drawer:ii,Popover:ii,Popconfirm:ii,Tooltip:ii,Tour:ii,FloatButton:ii},i6={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function l6(e){return e in V2}const lm=(e,t)=>{const[,n]=Lr(),r=ae.useContext(ey),a=l6(e);let l;if(t!==void 0)l=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+V2[e]:c+=i6[e],l=[r===void 0?t:c,c]}return l},s6=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:l,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:g,motionEaseInOutCirc:h,motionDurationSlow:p,marginXS:y,paddingXS:E,borderRadiusLG:b,zIndexPopup:x,contentPadding:S,contentBg:w}=e,$=`${t}-notice`,O=new zt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:E,transform:"translateY(0)",opacity:1}}),_=new zt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:E,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),R={padding:E,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:g},[`${$}-content`]:{display:"inline-block",padding:S,background:w,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},_r(e)),{color:a,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:O,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:_,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},R)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},R),{padding:0,textAlign:"start"})}]},c6=e=>({zIndexPopup:e.zIndexPopupBase+ty+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),U2=$n("Message",e=>{const t=Kt(e,{height:150});return[s6(t)]},c6);var u6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const f6={info:f.createElement(D0,null),success:f.createElement(tm,null),error:f.createElement(rs,null),warning:f.createElement(os,null),loading:f.createElement(hu,null)},k2=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return f.createElement("div",{className:re(`${t}-custom-content`,`${t}-${n}`)},r||f6[n],f.createElement("span",null,a))},d6=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:l}=e,c=u6(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=f.useContext(gt),d=t||u("message"),g=aa(d),[h,p,y]=U2(d,g);return h(f.createElement(J0,Object.assign({},c,{prefixCls:d,className:re(n,p,`${d}-notice-pure-panel`,y,g),eventKey:"pure",duration:null,content:f.createElement(k2,{prefixCls:d,type:r,icon:a},l)})))};function m6(e,t){return{motionName:t??`${e}-move-up`}}function ny(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,l)=>n.then(a,l),r.promise=n,r}var g6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const h6=8,p6=3,v6=e=>{let{children:t,prefixCls:n}=e;const r=aa(n),[a,l,c]=U2(n,r);return a(f.createElement(H2,{classNames:{list:re(l,c,r)}},t))},y6=(e,t)=>{let{prefixCls:n,key:r}=t;return f.createElement(v6,{prefixCls:n,key:r},e)},b6=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:l,duration:c=p6,rtl:u,transitionName:d,onAllRemoved:g}=e,{getPrefixCls:h,getPopupContainer:p,message:y,direction:E}=f.useContext(gt),b=r||h("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??h6}),S=()=>re({[`${b}-rtl`]:u??E==="rtl"}),w=()=>m6(b,d),$=f.createElement("span",{className:`${b}-close-x`},f.createElement(as,{className:`${b}-close-icon`})),[O,_]=F2({prefixCls:b,style:x,className:S,motion:w,closable:!1,closeIcon:$,duration:c,getContainer:()=>(a==null?void 0:a())||(p==null?void 0:p())||document.body,maxCount:l,onAllRemoved:g,renderNotifications:y6});return f.useImperativeHandle(t,()=>Object.assign(Object.assign({},O),{prefixCls:b,message:y})),_});let Tx=0;function q2(e){const t=f.useRef(null);return yu(),[f.useMemo(()=>{const r=d=>{var g;(g=t.current)===null||g===void 0||g.close(d)},a=d=>{if(!t.current){const T=()=>{};return T.then=()=>{},T}const{open:g,prefixCls:h,message:p}=t.current,y=`${h}-notice`,{content:E,icon:b,type:x,key:S,className:w,style:$,onClose:O}=d,_=g6(d,["content","icon","type","key","className","style","onClose"]);let R=S;return R==null&&(Tx+=1,R=`antd-message-${Tx}`),ny(T=>(g(Object.assign(Object.assign({},_),{key:R,content:f.createElement(k2,{prefixCls:h,type:x,icon:b},E),placement:"top",className:re(x&&`${y}-${x}`,w,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),$),onClose:()=>{O==null||O(),T()}})),()=>{r(R)}))},c={open:a,destroy:d=>{var g;d!==void 0?r(d):(g=t.current)===null||g===void 0||g.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const g=(h,p,y)=>{let E;h&&typeof h=="object"&&"content"in h?E=h:E={content:h};let b,x;typeof p=="function"?x=p:(b=p,x=y);const S=Object.assign(Object.assign({onClose:x,duration:b},E),{type:d});return a(S)};c[d]=g}),c},[]),f.createElement(b6,Object.assign({key:"message-holder"},e,{ref:t}))]}function S6(e){return q2(e)}function C6(){const[e,t]=f.useState([]),n=f.useCallback(r=>(t(a=>[].concat(Te(a),[r])),()=>{t(a=>a.filter(l=>l!==r))}),[]);return[e,n]}function Rr(){Rr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(N,P,B){N[P]=B.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function g(N,P,B){return Object.defineProperty(N,P,{value:B,enumerable:!0,configurable:!0,writable:!0}),N[P]}try{g({},"")}catch{g=function(B,K,j){return B[K]=j}}function h(N,P,B,K){var j=P&&P.prototype instanceof w?P:w,L=Object.create(j.prototype),q=new U(K||[]);return a(L,"_invoke",{value:D(N,B,q)}),L}function p(N,P,B){try{return{type:"normal",arg:N.call(P,B)}}catch(K){return{type:"throw",arg:K}}}t.wrap=h;var y="suspendedStart",E="suspendedYield",b="executing",x="completed",S={};function w(){}function $(){}function O(){}var _={};g(_,c,function(){return this});var R=Object.getPrototypeOf,T=R&&R(R(Y([])));T&&T!==n&&r.call(T,c)&&(_=T);var M=O.prototype=w.prototype=Object.create(_);function z(N){["next","throw","return"].forEach(function(P){g(N,P,function(B){return this._invoke(P,B)})})}function A(N,P){function B(j,L,q,G){var V=p(N[j],N,L);if(V.type!=="throw"){var X=V.arg,ee=X.value;return ee&&lt(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(se){B("next",se,q,G)},function(se){B("throw",se,q,G)}):P.resolve(ee).then(function(se){X.value=se,q(X)},function(se){return B("throw",se,q,G)})}G(V.arg)}var K;a(this,"_invoke",{value:function(L,q){function G(){return new P(function(V,X){B(L,q,V,X)})}return K=K?K.then(G,G):G()}})}function D(N,P,B){var K=y;return function(j,L){if(K===b)throw Error("Generator is already running");if(K===x){if(j==="throw")throw L;return{value:e,done:!0}}for(B.method=j,B.arg=L;;){var q=B.delegate;if(q){var G=F(q,B);if(G){if(G===S)continue;return G}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(K===y)throw K=x,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);K=b;var V=p(N,P,B);if(V.type==="normal"){if(K=B.done?x:E,V.arg===S)continue;return{value:V.arg,done:B.done}}V.type==="throw"&&(K=x,B.method="throw",B.arg=V.arg)}}}function F(N,P){var B=P.method,K=N.iterator[B];if(K===e)return P.delegate=null,B==="throw"&&N.iterator.return&&(P.method="return",P.arg=e,F(N,P),P.method==="throw")||B!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+B+"' method")),S;var j=p(K,N.iterator,P.arg);if(j.type==="throw")return P.method="throw",P.arg=j.arg,P.delegate=null,S;var L=j.arg;return L?L.done?(P[N.resultName]=L.value,P.next=N.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,S):L:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,S)}function W(N){var P={tryLoc:N[0]};1 in N&&(P.catchLoc=N[1]),2 in N&&(P.finallyLoc=N[2],P.afterLoc=N[3]),this.tryEntries.push(P)}function k(N){var P=N.completion||{};P.type="normal",delete P.arg,N.completion=P}function U(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(W,this),this.reset(!0)}function Y(N){if(N||N===""){var P=N[c];if(P)return P.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var B=-1,K=function j(){for(;++B<N.length;)if(r.call(N,B))return j.value=N[B],j.done=!1,j;return j.value=e,j.done=!0,j};return K.next=K}}throw new TypeError(lt(N)+" is not iterable")}return $.prototype=O,a(M,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:$,configurable:!0}),$.displayName=g(O,d,"GeneratorFunction"),t.isGeneratorFunction=function(N){var P=typeof N=="function"&&N.constructor;return!!P&&(P===$||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,O):(N.__proto__=O,g(N,d,"GeneratorFunction")),N.prototype=Object.create(M),N},t.awrap=function(N){return{__await:N}},z(A.prototype),g(A.prototype,u,function(){return this}),t.AsyncIterator=A,t.async=function(N,P,B,K,j){j===void 0&&(j=Promise);var L=new A(h(N,P,B,K),j);return t.isGeneratorFunction(P)?L:L.next().then(function(q){return q.done?q.value:L.next()})},z(M),g(M,d,"Generator"),g(M,c,function(){return this}),g(M,"toString",function(){return"[object Generator]"}),t.keys=function(N){var P=Object(N),B=[];for(var K in P)B.push(K);return B.reverse(),function j(){for(;B.length;){var L=B.pop();if(L in P)return j.value=L,j.done=!1,j}return j.done=!0,j}},t.values=Y,U.prototype={constructor:U,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!P)for(var B in this)B.charAt(0)==="t"&&r.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var B=this;function K(X,ee){return q.type="throw",q.arg=P,B.next=X,ee&&(B.method="next",B.arg=e),!!ee}for(var j=this.tryEntries.length-1;j>=0;--j){var L=this.tryEntries[j],q=L.completion;if(L.tryLoc==="root")return K("end");if(L.tryLoc<=this.prev){var G=r.call(L,"catchLoc"),V=r.call(L,"finallyLoc");if(G&&V){if(this.prev<L.catchLoc)return K(L.catchLoc,!0);if(this.prev<L.finallyLoc)return K(L.finallyLoc)}else if(G){if(this.prev<L.catchLoc)return K(L.catchLoc,!0)}else{if(!V)throw Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return K(L.finallyLoc)}}}},abrupt:function(P,B){for(var K=this.tryEntries.length-1;K>=0;--K){var j=this.tryEntries[K];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var L=j;break}}L&&(P==="break"||P==="continue")&&L.tryLoc<=B&&B<=L.finallyLoc&&(L=null);var q=L?L.completion:{};return q.type=P,q.arg=B,L?(this.method="next",this.next=L.finallyLoc,S):this.complete(q)},complete:function(P,B){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&B&&(this.next=B),S},finish:function(P){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.finallyLoc===P)return this.complete(K.completion,K.afterLoc),k(K),S}},catch:function(P){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc===P){var j=K.completion;if(j.type==="throw"){var L=j.arg;k(K)}return L}}throw Error("illegal catch attempt")},delegateYield:function(P,B,K){return this.delegate={iterator:Y(P),resultName:B,nextLoc:K},this.method==="next"&&(this.arg=e),S}},t}function Mx(e,t,n,r,a,l,c){try{var u=e[l](c),d=u.value}catch(g){return void n(g)}u.done?t(d):Promise.resolve(d).then(r,a)}function tl(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function c(d){Mx(l,r,a,c,u,"next",d)}function u(d){Mx(l,r,a,c,u,"throw",d)}c(void 0)})}}var Su=J({},UP),x6=Su.version,cp=Su.render,E6=Su.unmountComponentAtNode,sm;try{var w6=Number((x6||"").split(".")[0]);w6>=18&&(sm=Su.createRoot)}catch{}function Nx(e){var t=Su.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&lt(t)==="object"&&(t.usingClientEntryPoint=e)}var _d="__rc_react_root__";function $6(e,t){Nx(!0);var n=t[_d]||sm(t);Nx(!1),n.render(e),t[_d]=n}function O6(e,t){cp==null||cp(e,t)}function R6(e,t){if(sm){$6(e,t);return}O6(e,t)}function _6(e){return Vv.apply(this,arguments)}function Vv(){return Vv=tl(Rr().mark(function e(t){return Rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[_d])===null||a===void 0||a.unmount(),delete t[_d]}));case 1:case"end":return r.stop()}},e)})),Vv.apply(this,arguments)}function T6(e){E6(e)}function M6(e){return Uv.apply(this,arguments)}function Uv(){return Uv=tl(Rr().mark(function e(t){return Rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(sm===void 0){r.next=2;break}return r.abrupt("return",_6(t));case 2:T6(t);case 3:case"end":return r.stop()}},e)})),Uv.apply(this,arguments)}const N6=(e,t)=>(R6(e,t),()=>M6(t));let j6=N6;function cm(){return j6}const up=()=>({height:0,opacity:0}),jx=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},I6=e=>({height:e?e.offsetHeight:0}),fp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Td=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jc}-motion-collapse`,onAppearStart:up,onEnterStart:up,onAppearActive:jx,onEnterActive:jx,onLeaveStart:I6,onLeaveActive:up,onAppearEnd:fp,onEnterEnd:fp,onLeaveEnd:fp,motionDeadline:500}},Xi=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Tn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const um=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),l=a.width,c=a.height;if(l||c)return!0}}return!1},P6=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},A6=l3("Wave",e=>[P6(e)]),W2=`${Jc}-wave-target`;function dp(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function z6(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return dp(t)?t:dp(n)?n:dp(r)?r:null}function mp(e){return Number.isNaN(e)?0:e}const D6=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,l=f.useRef(null),c=f.useRef(null);f.useEffect(()=>{c.current=a()},[]);const[u,d]=f.useState(null),[g,h]=f.useState([]),[p,y]=f.useState(0),[E,b]=f.useState(0),[x,S]=f.useState(0),[w,$]=f.useState(0),[O,_]=f.useState(!1),R={left:p,top:E,width:x,height:w,borderRadius:g.map(z=>`${z}px`).join(" ")};u&&(R["--wave-color"]=u);function T(){const z=getComputedStyle(n);d(z6(n));const A=z.position==="static",{borderLeftWidth:D,borderTopWidth:F}=z;y(A?n.offsetLeft:mp(-parseFloat(D))),b(A?n.offsetTop:mp(-parseFloat(F))),S(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:k,borderBottomLeftRadius:U,borderBottomRightRadius:Y}=z;h([W,k,Y,U].map(N=>mp(parseFloat(N))))}if(f.useEffect(()=>{if(n){const z=yn(()=>{T(),_(!0)});let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(T),A.observe(n)),()=>{yn.cancel(z),A==null||A.disconnect()}}},[]),!O)return null;const M=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(W2));return f.createElement(eo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,A)=>{var D,F;if(A.deadline||A.propertyName==="opacity"){const W=(D=l.current)===null||D===void 0?void 0:D.parentElement;(F=c.current)===null||F===void 0||F.call(c).then(()=>{W==null||W.remove()})}return!1}},(z,A)=>{let{className:D}=z;return f.createElement("div",{ref:Da(l,A),className:re(t,D,{"wave-quick":M}),style:R})})},L6=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const l=cm();let c=null;function u(){return c}c=l(f.createElement(D6,Object.assign({},t,{target:e,registerUnmount:u})),a)},B6=(e,t,n)=>{const{wave:r}=f.useContext(gt),[,a,l]=Lr(),c=An(g=>{const h=e.current;if(r!=null&&r.disabled||!h)return;const p=h.querySelector(`.${W2}`)||h,{showEffect:y}=r||{};(y||L6)(p,{className:t,token:a,component:n,event:g,hashId:l})}),u=f.useRef(null);return g=>{yn.cancel(u.current),u.current=yn(()=>{c(g)})}},H6=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=f.useContext(gt),l=f.useRef(null),c=a("wave"),[,u]=A6(c),d=B6(l,re(c,u),r);if(ae.useEffect(()=>{const h=l.current;if(!h||h.nodeType!==1||n)return;const p=y=>{!um(y.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")||h.className.includes("-leave")||d(y)};return h.addEventListener("click",p,!0),()=>{h.removeEventListener("click",p,!0)}},[n]),!ae.isValidElement(t))return t??null;const g=el(t)?Da(is(t),l):l;return ea(t,{ref:g})},Po=e=>{const t=ae.useContext(Gi);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},F6=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},V6=e=>{const{componentCls:t,antCls:n}=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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},U6=e=>{const{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}}}},k6=$n("Space",e=>{const t=Kt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[V6(t),U6(t),F6(t)]},()=>({}),{resetStyle:!1});var G2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fm=f.createContext(null),Cu=(e,t)=>{const n=f.useContext(fm),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:l,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return re(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},q6=e=>{const{children:t}=e;return f.createElement(fm.Provider,{value:null},t)},W6=e=>{const{children:t}=e,n=G2(e,["children"]);return f.createElement(fm.Provider,{value:f.useMemo(()=>n,[n])},t)},mK=e=>{const{getPrefixCls:t,direction:n}=f.useContext(gt),{size:r,direction:a,block:l,prefixCls:c,className:u,rootClassName:d,children:g}=e,h=G2(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Po(O=>r??O),y=t("space-compact",c),[E,b]=k6(y),x=re(y,b,{[`${y}-rtl`]:n==="rtl",[`${y}-block`]:l,[`${y}-vertical`]:a==="vertical"},u,d),S=f.useContext(fm),w=zr(g),$=f.useMemo(()=>w.map((O,_)=>{const R=(O==null?void 0:O.key)||`${y}-item-${_}`;return f.createElement(W6,{key:R,compactSize:p,compactDirection:a,isFirstItem:_===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:_===w.length-1&&(!S||(S==null?void 0:S.isLastItem))},O)}),[r,w,S]);return w.length===0?null:E(f.createElement("div",Object.assign({className:x},h),$))};var G6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const K2=f.createContext(void 0),K6=e=>{const{getPrefixCls:t,direction:n}=f.useContext(gt),{prefixCls:r,size:a,className:l}=e,c=G6(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=Lr(),g=f.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),h=re(u,{[`${u}-${g}`]:g,[`${u}-rtl`]:n==="rtl"},l,d);return f.createElement(K2.Provider,{value:a},f.createElement("div",Object.assign({},c,{className:h})))},Ix=/^[\u4E00-\u9FA5]{2}$/,kv=Ix.test.bind(Ix);function ry(e){return e==="danger"?{danger:!0}:{type:e}}function Px(e){return typeof e=="string"}function gp(e){return e==="text"||e==="link"}function X6(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Px(e.type)&&kv(e.props.children)?ea(e,{children:e.props.children.split("").join(n)}):Px(e)?kv(e)?ae.createElement("span",null,e.split("").join(n)):ae.createElement("span",null,e):L2(e)?ae.createElement("span",null,e):e}function Y6(e,t){let n=!1;const r=[];return ae.Children.forEach(e,a=>{const l=typeof a,c=l==="string"||l==="number";if(n&&c){const u=r.length-1,d=r[u];r[u]=`${d}${a}`}else r.push(a);n=c}),ae.Children.map(r,a=>X6(a,t))}["default","primary","danger"].concat(Te(fi));const qv=f.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:l}=e,c=re(`${l}-icon`,n);return ae.createElement("span",{ref:t,className:c,style:r},a)}),Ax=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:l}=e,c=re(`${n}-loading-icon`,r);return ae.createElement(qv,{prefixCls:n,className:c,style:a,ref:t},ae.createElement(hu,{className:l}))}),hp=()=>({width:0,opacity:0,transform:"scale(0)"}),pp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Q6=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:l,mount:c}=e,u=!!n;return r?ae.createElement(Ax,{prefixCls:t,className:a,style:l}):ae.createElement(eo,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:hp,onAppearActive:pp,onEnterStart:hp,onEnterActive:pp,onLeaveStart:pp,onLeaveActive:hp},(d,g)=>{let{className:h,style:p}=d;const y=Object.assign(Object.assign({},l),p);return ae.createElement(Ax,{prefixCls:t,className:re(a,h),style:y,ref:g})})},zx=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Z6=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},zx(`${t}-primary`,a),zx(`${t}-danger`,l)]}};var J6=["b"],ez=["v"],vp=function(t){return Math.round(Number(t||0))},tz=function(t){if(t instanceof nn)return t;if(t&&lt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=$t(n,J6);return J(J({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},eu=function(e){Mo(n,e);var t=No(n);function n(r){return qn(this,n),t.call(this,tz(r))}return Wn(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),l=vp(a.s*100),c=vp(a.b*100),u=vp(a.h),d=a.a,g="hsb(".concat(u,", ").concat(l,"%, ").concat(c,"%)"),h="hsba(".concat(u,", ").concat(l,"%, ").concat(c,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?g:h}},{key:"toHsb",value:function(){var a=this.toHsv(),l=a.v,c=$t(a,ez);return J(J({},c),{},{b:l,a:this.a})}}]),n}(nn),nz=function(t){return t instanceof eu?t:new eu(t)};nz("#1677ff");const rz=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",az=(e,t)=>e?rz(e,t):"";let oz=function(){function e(t){qn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:l,percent:c}=a;return{color:new e(l),percent:c}}),this.metaColor=new eu(this.colors[0].color.metaColor)):this.metaColor=new eu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Wn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return az(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const l=n.colors[a];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])}();var X2=ae.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,l=e.style,c=e.children,u=e.isActive,d=e.role,g=e.classNames,h=e.styles,p=ae.useState(u||r),y=ge(p,2),E=y[0],b=y[1];return ae.useEffect(function(){(r||u)&&b(!0)},[r,u]),E?ae.createElement("div",{ref:t,className:re("".concat(n,"-content"),Q(Q({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:l,role:d},ae.createElement("div",{className:re("".concat(n,"-content-box"),g==null?void 0:g.body),style:h==null?void 0:h.body},c)):null});X2.displayName="PanelContent";var iz=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Y2=ae.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,g=e.classNames,h=g===void 0?{}:g,p=e.styles,y=p===void 0?{}:p,E=e.prefixCls,b=e.collapsible,x=e.accordion,S=e.panelKey,w=e.extra,$=e.header,O=e.expandIcon,_=e.openMotion,R=e.destroyInactivePanel,T=e.children,M=$t(e,iz),z=b==="disabled",A=w!=null&&typeof w!="boolean",D=Q(Q(Q({onClick:function(){c==null||c(S)},onKeyDown:function(P){(P.key==="Enter"||P.keyCode===ct.ENTER||P.which===ct.ENTER)&&(c==null||c(S))},role:x?"tab":"button"},"aria-expanded",l),"aria-disabled",z),"tabIndex",z?-1:0),F=typeof O=="function"?O(e):ae.createElement("i",{className:"arrow"}),W=F&&ae.createElement("div",Pe({className:"".concat(E,"-expand-icon")},["header","icon"].includes(b)?D:{}),F),k=re("".concat(E,"-item"),Q(Q({},"".concat(E,"-item-active"),l),"".concat(E,"-item-disabled"),z),d),U=re(a,"".concat(E,"-header"),Q({},"".concat(E,"-collapsible-").concat(b),!!b),h.header),Y=J({className:U,style:y.header},["header","icon"].includes(b)?{}:D);return ae.createElement("div",Pe({},M,{ref:t,className:k}),ae.createElement("div",Y,r&&W,ae.createElement("span",Pe({className:"".concat(E,"-header-text")},b==="header"?D:{}),$),A&&ae.createElement("div",{className:"".concat(E,"-extra")},w)),ae.createElement(eo,Pe({visible:l,leavedClassName:"".concat(E,"-content-hidden")},_,{forceRender:u,removeOnLeave:R}),function(N,P){var B=N.className,K=N.style;return ae.createElement(X2,{ref:P,prefixCls:E,className:B,classNames:h,style:K,styles:y,isActive:l,forceRender:u,role:x?"tabpanel":void 0},T)}))}),lz=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],sz=function(t,n){var r=n.prefixCls,a=n.accordion,l=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,g=n.openMotion,h=n.expandIcon;return t.map(function(p,y){var E=p.children,b=p.label,x=p.key,S=p.collapsible,w=p.onItemClick,$=p.destroyInactivePanel,O=$t(p,lz),_=String(x??y),R=S??l,T=$??c,M=function(D){R!=="disabled"&&(u(D),w==null||w(D))},z=!1;return a?z=d[0]===_:z=d.indexOf(_)>-1,ae.createElement(Y2,Pe({},O,{prefixCls:r,key:_,panelKey:_,isActive:z,accordion:a,openMotion:g,expandIcon:h,header:b,collapsible:R,onItemClick:M,destroyInactivePanel:T}),E)})},cz=function(t,n,r){if(!t)return null;var a=r.prefixCls,l=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,g=r.activeKey,h=r.openMotion,p=r.expandIcon,y=t.key||String(n),E=t.props,b=E.header,x=E.headerClass,S=E.destroyInactivePanel,w=E.collapsible,$=E.onItemClick,O=!1;l?O=g[0]===y:O=g.indexOf(y)>-1;var _=w??c,R=function(z){_!=="disabled"&&(d(z),$==null||$(z))},T={key:y,panelKey:y,header:b,headerClass:x,isActive:O,prefixCls:a,destroyInactivePanel:S??u,openMotion:h,accordion:l,children:t.props.children,onItemClick:R,expandIcon:p,collapsible:_};return typeof t.type=="string"?t:(Object.keys(T).forEach(function(M){typeof T[M]>"u"&&delete T[M]}),ae.cloneElement(t,T))};function uz(e,t,n){return Array.isArray(e)?sz(e,n):zr(t).map(function(r,a){return cz(r,a,n)})}function fz(e){var t=e;if(!Array.isArray(t)){var n=lt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var dz=ae.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,l=a===void 0?!1:a,c=e.style,u=e.accordion,d=e.className,g=e.children,h=e.collapsible,p=e.openMotion,y=e.expandIcon,E=e.activeKey,b=e.defaultActiveKey,x=e.onChange,S=e.items,w=re(r,d),$=vr([],{value:E,onChange:function(A){return x==null?void 0:x(A)},defaultValue:b,postState:fz}),O=ge($,2),_=O[0],R=O[1],T=function(A){return R(function(){if(u)return _[0]===A?[]:[A];var D=_.indexOf(A),F=D>-1;return F?_.filter(function(W){return W!==A}):[].concat(Te(_),[A])})};pr(!g,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var M=uz(S,g,{prefixCls:r,accordion:u,openMotion:p,expandIcon:y,collapsible:h,destroyInactivePanel:l,onItemClick:T,activeKey:_});return ae.createElement("div",Pe({ref:t,className:w,style:c,role:u?"tablist":void 0},Za(e,{aria:!0,data:!0})),M)});const ay=Object.assign(dz,{Panel:Y2});ay.Panel;const mz=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(gt),{prefixCls:r,className:a,showArrow:l=!0}=e,c=n("collapse",r),u=re({[`${c}-no-arrow`]:!l},a);return f.createElement(ay.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),oy=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),gz=e=>({animationDuration:e,animationFillMode:"both"}),hz=e=>({animationDuration:e,animationFillMode:"both"}),dm=function(e,t,n,r){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${l}${e}-enter,
      ${l}${e}-appear
    `]:Object.assign(Object.assign({},gz(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},hz(r)),{animationPlayState:"paused"}),[`
      ${l}${e}-enter${e}-enter-active,
      ${l}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pz=new zt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),vz=new zt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),yz=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[dm(r,pz,vz,e.motionDurationMid,t),{[`
        ${a}${r}-enter,
        ${a}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},bz=new zt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sz=new zt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Cz=new zt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xz=new zt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ez=new zt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wz=new zt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$z=new zt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Oz=new zt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Rz={"move-up":{inKeyframes:$z,outKeyframes:Oz},"move-down":{inKeyframes:bz,outKeyframes:Sz},"move-left":{inKeyframes:Cz,outKeyframes:xz},"move-right":{inKeyframes:Ez,outKeyframes:wz}},Dx=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=Rz[t];return[dm(r,a,l,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q2=new zt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Z2=new zt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),J2=new zt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eR=new zt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_z=new zt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Tz=new zt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mz=new zt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Nz=new zt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),jz={"slide-up":{inKeyframes:Q2,outKeyframes:Z2},"slide-down":{inKeyframes:J2,outKeyframes:eR},"slide-left":{inKeyframes:_z,outKeyframes:Tz},"slide-right":{inKeyframes:Mz,outKeyframes:Nz}},Md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=jz[t];return[dm(r,a,l,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},iy=new zt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Iz=new zt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Lx=new zt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Bx=new zt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Pz=new zt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Az=new zt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zz=new zt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Dz=new zt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Lz=new zt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Bz=new zt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Hz=new zt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Fz=new zt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Vz={zoom:{inKeyframes:iy,outKeyframes:Iz},"zoom-big":{inKeyframes:Lx,outKeyframes:Bx},"zoom-big-fast":{inKeyframes:Lx,outKeyframes:Bx},"zoom-left":{inKeyframes:zz,outKeyframes:Dz},"zoom-right":{inKeyframes:Lz,outKeyframes:Bz},"zoom-up":{inKeyframes:Pz,outKeyframes:Az},"zoom-down":{inKeyframes:Hz,outKeyframes:Fz}},mm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=Vz[t];return[dm(r,a,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Uz=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:l,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:g,lineType:h,colorBorder:p,colorText:y,colorTextHeading:E,colorTextDisabled:b,fontSizeLG:x,lineHeight:S,lineHeightLG:w,marginSM:$,paddingSM:O,paddingLG:_,paddingXS:R,motionDurationSlow:T,fontSizeIcon:M,contentPadding:z,fontHeight:A,fontHeightLG:D}=e,F=`${ye(g)} ${h} ${p}`;return{[t]:Object.assign(Object.assign({},_r(e)),{backgroundColor:a,border:F,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:F,"&:first-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`${ye(d)} ${ye(d)} 0 0`}},"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${ye(d)} ${ye(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:E,lineHeight:S,cursor:"pointer",transition:`all ${T}, visibility 0s`},bu(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:A,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},ss()),{fontSize:M,transition:`transform ${T}`,svg:{transition:`transform ${T}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:y,backgroundColor:n,borderTop:F,[`& > ${t}-content-box`]:{padding:z},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:R,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(O).sub(R).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},"&-large":{[`> ${t}-item`]:{fontSize:x,lineHeight:w,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:D,marginInlineStart:e.calc(_).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ye(d)} ${ye(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},kz=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},qz=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Wz=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Gz=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Kz=$n("Collapse",e=>{const t=Kt(e,{collapseHeaderPaddingSM:`${ye(e.paddingXS)} ${ye(e.paddingSM)}`,collapseHeaderPaddingLG:`${ye(e.padding)} ${ye(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Uz(t),qz(t),Wz(t),kz(t),oy(t)]},Gz),Xz=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:l,style:c}=Dr("collapse"),{prefixCls:u,className:d,rootClassName:g,style:h,bordered:p=!0,ghost:y,size:E,expandIconPosition:b="start",children:x,expandIcon:S}=e,w=Po(k=>{var U;return(U=E??k)!==null&&U!==void 0?U:"middle"}),$=n("collapse",u),O=n(),[_,R,T]=Kz($),M=f.useMemo(()=>b==="left"?"start":b==="right"?"end":b,[b]),z=S??a,A=f.useCallback(function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const U=typeof z=="function"?z(k):f.createElement(Rv,{rotate:k.isActive?r==="rtl"?-90:90:void 0,"aria-label":k.isActive?"expanded":"collapsed"});return ea(U,()=>{var Y;return{className:re((Y=U==null?void 0:U.props)===null||Y===void 0?void 0:Y.className,`${$}-arrow`)}})},[z,$]),D=re(`${$}-icon-position-${M}`,{[`${$}-borderless`]:!p,[`${$}-rtl`]:r==="rtl",[`${$}-ghost`]:!!y,[`${$}-${w}`]:w!=="middle"},l,d,g,R,T),F=Object.assign(Object.assign({},Td(O)),{motionAppear:!1,leavedClassName:`${$}-content-hidden`}),W=f.useMemo(()=>x?zr(x).map((k,U)=>{var Y,N;const P=k.props;if(P!=null&&P.disabled){const B=(Y=k.key)!==null&&Y!==void 0?Y:String(U),K=Object.assign(Object.assign({},Tn(k.props,["disabled"])),{key:B,collapsible:(N=P.collapsible)!==null&&N!==void 0?N:"disabled"});return ea(k,K)}return k}):null,[x]);return _(f.createElement(ay,Object.assign({ref:t,openMotion:F},Tn(e,["rootClassName"]),{expandIcon:A,prefixCls:$,className:D,style:Object.assign(Object.assign({},c),h)}),W))}),Yz=Object.assign(Xz,{Panel:mz}),Qz=(e,t)=>{const{r:n,g:r,b:a,a:l}=e.toRgb(),c=new eu(e.toRgbString()).onBackground(t).toHsv();return l<=.5?c.v>.5:n*.299+r*.587+a*.114>192},tR=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Kt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nR=e=>{var t,n,r,a,l,c;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,g=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,h=(a=e.contentLineHeight)!==null&&a!==void 0?a:sd(u),p=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:sd(d),y=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:sd(g),E=Qz(new oz(e.colorBgSolid),"#fff")?"#000":"#fff",b=fi.reduce((x,S)=>Object.assign(Object.assign({},x),{[`${S}ShadowColor`]:`0 ${ye(e.controlOutlineWidth)} 0 ${Ac(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:E,contentFontSize:u,contentFontSizeSM:d,contentFontSizeLG:g,contentLineHeight:h,contentLineHeightSM:p,contentLineHeightLG:y,paddingBlock:Math.max((e.controlHeight-u*h)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-g*y)/2-e.lineWidth,0)})},Zz=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:l,motionEaseInOut:c,marginXS:u,calc:d}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ye(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ss(),"> a":{color:"currentColor"},"&:not(:disabled)":bu(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(g=>`${g} ${l} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},rR=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Jz=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eD=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),tD=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gm=(e,t,n,r,a,l,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},rR(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:l||void 0}})}),nD=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},tD(e))}),rD=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),hm=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?rD:nD;return Object.assign(Object.assign({},l(e)),rR(e.componentCls,t,n))},pm=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},hm(e,r,a))}),vm=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},hm(e,r,a))}),ym=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),bm=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},hm(e,n,r))}),Ja=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},hm(e,r,a,n))}),aD=e=>{const{componentCls:t}=e;return fi.reduce((n,r)=>{const a=e[`${r}6`],l=e[`${r}1`],c=e[`${r}5`],u=e[`${r}2`],d=e[`${r}3`],g=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},pm(e,e.colorTextLightSolid,a,{background:c},{background:g})),vm(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:g,borderColor:g,background:e.colorBgContainer})),ym(e)),bm(e,l,{background:u},{background:d})),Ja(e,a,"link",{color:c},{color:g})),Ja(e,a,"text",{color:c,background:l},{color:g,background:d}))})},{})},oD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},pm(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ym(e)),bm(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),gm(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ja(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),iD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},vm(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ym(e)),bm(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ja(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ja(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gm(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},pm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),vm(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ym(e)),bm(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ja(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ja(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gm(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sD=e=>Object.assign(Object.assign({},Ja(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gm(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),cD=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:oD(e),[`${t}-color-primary`]:iD(e),[`${t}-color-dangerous`]:lD(e),[`${t}-color-link`]:sD(e)},aD(e))},uD=e=>Object.assign(Object.assign(Object.assign(Object.assign({},vm(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ja(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),pm(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ja(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ly=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:g}=e;return[{[t]:{fontSize:a,height:r,padding:`${ye(d)} ${ye(c)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:g}}}},{[`${n}${n}-circle${t}`]:Jz(e)},{[`${n}${n}-round${t}`]:eD(e)}]},fD=e=>{const t=Kt(e,{fontSize:e.contentFontSize});return ly(t,e.componentCls)},dD=e=>{const t=Kt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ly(t,`${e.componentCls}-sm`)},mD=e=>{const t=Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ly(t,`${e.componentCls}-lg`)},gD=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},hD=$n("Button",e=>{const t=tR(e);return[Zz(t),fD(t),dD(t),mD(t),gD(t),cD(t),uD(t),Z6(t)]},nR,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pD(e,t,n){const{focusElCls:r,focus:a,borderElCls:l}=n,c=l?"> *":"",u=["hover",a?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${c}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${c}`]:{zIndex:0}})}}function vD(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function sy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},pD(e,r,t)),vD(n,r,t))}}function yD(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function bD(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function SD(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},yD(e,t)),bD(e.componentCls,t))}}const CD=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,l=a(r).mul(-1).equal(),c=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},c()),c(!0))},xD=im(["Button","compact"],e=>{const t=tR(e);return[sy(t),SD(t),CD(t)]},nR);var ED=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function wD(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const $D={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},OD=ae.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:d,danger:g=!1,shape:h="default",size:p,styles:y,disabled:E,className:b,rootClassName:x,children:S,icon:w,iconPosition:$="start",ghost:O=!1,block:_=!1,htmlType:R="button",classNames:T,style:M={},autoInsertSpace:z,autoFocus:A}=e,D=ED(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=d||"default",[W,k]=f.useMemo(()=>{if(c&&u)return[c,u];const Fe=$D[F]||[];return g?["danger",Fe[1]]:Fe},[d,c,u,g]),Y=W==="danger"?"dangerous":W,{getPrefixCls:N,direction:P,autoInsertSpace:B,className:K,style:j,classNames:L,styles:q}=Dr("button"),G=(n=z??B)!==null&&n!==void 0?n:!0,V=N("btn",l),[X,ee,se]=hD(V),ne=f.useContext($o),ie=E??ne,ve=f.useContext(K2),fe=f.useMemo(()=>wD(a),[a]),[le,be]=f.useState(fe.loading),[_e,ce]=f.useState(!1),Se=f.useRef(null),Oe=mi(t,Se),$e=f.Children.count(S)===1&&!w&&!gp(k),je=f.useRef(!0);ae.useEffect(()=>(je.current=!1,()=>{je.current=!0}),[]),f.useEffect(()=>{let Fe=null;fe.delay>0?Fe=setTimeout(()=>{Fe=null,be(!0)},fe.delay):be(fe.loading);function Ne(){Fe&&(clearTimeout(Fe),Fe=null)}return Ne},[fe]),f.useEffect(()=>{if(!Se.current||!G)return;const Fe=Se.current.textContent||"";$e&&kv(Fe)?_e||ce(!0):_e&&ce(!1)}),f.useEffect(()=>{A&&Se.current&&Se.current.focus()},[]);const Ze=ae.useCallback(Fe=>{var Ne;if(le||ie){Fe.preventDefault();return}(Ne=e.onClick)===null||Ne===void 0||Ne.call(e,("href"in e,Fe))},[e.onClick,le,ie]),{compactSize:He,compactItemClassnames:Xe}=Cu(V,P),Ee={large:"lg",small:"sm",middle:void 0},Me=Po(Fe=>{var Ne,ke;return(ke=(Ne=p??He)!==null&&Ne!==void 0?Ne:ve)!==null&&ke!==void 0?ke:Fe}),Ve=Me&&(r=Ee[Me])!==null&&r!==void 0?r:"",Ke=le?"loading":w,qe=Tn(D,["navigate"]),at=re(V,ee,se,{[`${V}-${h}`]:h!=="default"&&h,[`${V}-${F}`]:F,[`${V}-dangerous`]:g,[`${V}-color-${Y}`]:Y,[`${V}-variant-${k}`]:k,[`${V}-${Ve}`]:Ve,[`${V}-icon-only`]:!S&&S!==0&&!!Ke,[`${V}-background-ghost`]:O&&!gp(k),[`${V}-loading`]:le,[`${V}-two-chinese-chars`]:_e&&G&&!le,[`${V}-block`]:_,[`${V}-rtl`]:P==="rtl",[`${V}-icon-end`]:$==="end"},Xe,b,x,K),Ue=Object.assign(Object.assign({},j),M),Ye=re(T==null?void 0:T.icon,L.icon),st=Object.assign(Object.assign({},(y==null?void 0:y.icon)||{}),q.icon||{}),pt=w&&!le?ae.createElement(qv,{prefixCls:V,className:Ye,style:st},w):a&&typeof a=="object"&&a.icon?ae.createElement(qv,{prefixCls:V,className:Ye,style:st},a.icon):ae.createElement(Q6,{existIcon:!!w,prefixCls:V,loading:le,mount:je.current}),Qe=S||S===0?Y6(S,$e&&G):null;if(qe.href!==void 0)return X(ae.createElement("a",Object.assign({},qe,{className:re(at,{[`${V}-disabled`]:ie}),href:ie?void 0:qe.href,style:Ue,onClick:Ze,ref:Oe,tabIndex:ie?-1:0}),pt,Qe));let ze=ae.createElement("button",Object.assign({},D,{type:R,className:at,style:Ue,onClick:Ze,disabled:ie,ref:Oe}),pt,Qe,Xe&&ae.createElement(xD,{prefixCls:V}));return gp(k)||(ze=ae.createElement(H6,{component:"Button",disabled:le},ze)),X(ze)}),Pr=OD;Pr.Group=K6;Pr.__ANT_BUTTON=!0;function yp(e){return!!(e!=null&&e.then)}const cy=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:l,autoFocus:c,emitEvent:u,isSilent:d,quitOnNullishReturnValue:g,actionFn:h}=e,p=f.useRef(!1),y=f.useRef(null),[E,b]=Ki(!1),x=function(){l==null||l.apply(void 0,arguments)};f.useEffect(()=>{let $=null;return c&&($=setTimeout(()=>{var O;(O=y.current)===null||O===void 0||O.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[]);const S=$=>{yp($)&&(b(!0),$.then(function(){b(!1,!0),x.apply(void 0,arguments),p.current=!1},O=>{if(b(!1,!0),p.current=!1,!(d!=null&&d()))return Promise.reject(O)}))},w=$=>{if(p.current)return;if(p.current=!0,!h){x();return}let O;if(u){if(O=h($),g&&!yp(O)){p.current=!1,x($);return}}else if(h.length)O=h(l),p.current=!1;else if(O=h(),!yp(O)){x();return}S(O)};return f.createElement(Pr,Object.assign({},ry(t),{onClick:w,loading:E,prefixCls:r},a,{ref:y}),n)},xu=ae.createContext({}),{Provider:aR}=xu,Hx=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:u,onConfirm:d}=f.useContext(xu);return a?ae.createElement(cy,{isSilent:r,actionFn:u,close:function(){c==null||c.apply(void 0,arguments),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},Fx=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:u,onOk:d}=f.useContext(xu);return ae.createElement(cy,{isSilent:n,type:c||"primary",actionFn:d,close:function(){t==null||t.apply(void 0,arguments),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},l)};var oR=f.createContext(null),Vx=[];function RD(e,t){var n=f.useState(function(){if(!Er())return null;var b=document.createElement("div");return b}),r=ge(n,1),a=r[0],l=f.useRef(!1),c=f.useContext(oR),u=f.useState(Vx),d=ge(u,2),g=d[0],h=d[1],p=c||(l.current?void 0:function(b){h(function(x){var S=[b].concat(Te(x));return S})});function y(){a.parentElement||document.body.appendChild(a),l.current=!0}function E(){var b;(b=a.parentElement)===null||b===void 0||b.removeChild(a),l.current=!1}return Gt(function(){return e?c?c(y):y():E(),E},[e]),Gt(function(){g.length&&(g.forEach(function(b){return b()}),h(Vx))},[g]),[a,p]}var bp;function iR(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,l;if(e){var c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),g=parseInt(u.height,10);try{var h=d?"width: ".concat(u.width,";"):"",p=g?"height: ".concat(u.height,";"):"";Co(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(h,`
`).concat(p,`
}`),t)}catch(b){console.error(b),a=d,l=g}}document.body.appendChild(n);var y=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,E=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),qc(t),{width:y,height:E}}function gK(e){return typeof document>"u"?0:(bp===void 0&&(bp=iR()),bp.width)}function _D(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:iR(e)}function TD(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var MD="rc-util-locker-".concat(Date.now()),Ux=0;function ND(e){var t=!!e,n=f.useState(function(){return Ux+=1,"".concat(MD,"_").concat(Ux)}),r=ge(n,1),a=r[0];Gt(function(){if(t){var l=_D(document.body).width,c=TD();Co(`
html body {
  overflow-y: hidden;
  `.concat(c?"width: calc(100% - ".concat(l,"px);"):"",`
}`),a)}else qc(a);return function(){qc(a)}},[t,a])}var jD=!1;function ID(e){return jD}var kx=function(t){return t===!1?!1:!Er()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},uy=f.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var l=e.autoDestroy,c=l===void 0?!0:l,u=e.children,d=f.useState(n),g=ge(d,2),h=g[0],p=g[1],y=h||n;f.useEffect(function(){(c||n)&&p(n)},[n,c]);var E=f.useState(function(){return kx(a)}),b=ge(E,2),x=b[0],S=b[1];f.useEffect(function(){var F=kx(a);S(F??null)});var w=RD(y&&!x),$=ge(w,2),O=$[0],_=$[1],R=x??O;ND(r&&n&&Er()&&(R===O||R===document.body));var T=null;if(u&&el(u)&&t){var M=u;T=M.ref}var z=mi(T,t);if(!y||!Er()||x===void 0)return null;var A=R===!1||ID(),D=u;return t&&(D=f.cloneElement(u,{ref:z})),f.createElement(oR.Provider,{value:_},A?D:ui.createPortal(D,R))}),lR=f.createContext({});function PD(){var e=J({},Jd);return e.useId}var qx=0,Wx=PD();const fy=Wx?function(t){var n=Wx();return t||n}:function(t){var n=f.useState("ssr-id"),r=ge(n,2),a=r[0],l=r[1];return f.useEffect(function(){var c=qx;qx+=1,l("rc_unique_".concat(c))},[]),t||a};function Gx(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Kx(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function AD(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Kx(a),n.top+=Kx(a,!0),n}const zD=f.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var DD={width:0,height:0,overflow:"hidden",outline:"none"},LD={outline:"none"},sR=ae.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.title,c=e.ariaId,u=e.footer,d=e.closable,g=e.closeIcon,h=e.onClose,p=e.children,y=e.bodyStyle,E=e.bodyProps,b=e.modalRender,x=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,$=e.visible,O=e.forceRender,_=e.width,R=e.height,T=e.classNames,M=e.styles,z=ae.useContext(lR),A=z.panel,D=mi(w,A),F=f.useRef(),W=f.useRef();ae.useImperativeHandle(t,function(){return{focus:function(){var q;(q=F.current)===null||q===void 0||q.focus({preventScroll:!0})},changeActive:function(q){var G=document,V=G.activeElement;q&&V===W.current?F.current.focus({preventScroll:!0}):!q&&V===F.current&&W.current.focus({preventScroll:!0})}}});var k={};_!==void 0&&(k.width=_),R!==void 0&&(k.height=R);var U=u?ae.createElement("div",{className:re("".concat(n,"-footer"),T==null?void 0:T.footer),style:J({},M==null?void 0:M.footer)},u):null,Y=l?ae.createElement("div",{className:re("".concat(n,"-header"),T==null?void 0:T.header),style:J({},M==null?void 0:M.header)},ae.createElement("div",{className:"".concat(n,"-title"),id:c},l)):null,N=f.useMemo(function(){return lt(d)==="object"&&d!==null?d:d?{closeIcon:g??ae.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,g,n]),P=Za(N,!0),B=lt(d)==="object"&&d.disabled,K=d?ae.createElement("button",Pe({type:"button",onClick:h,"aria-label":"Close"},P,{className:"".concat(n,"-close"),disabled:B}),N.closeIcon):null,j=ae.createElement("div",{className:re("".concat(n,"-content"),T==null?void 0:T.content),style:M==null?void 0:M.content},K,Y,ae.createElement("div",Pe({className:re("".concat(n,"-body"),T==null?void 0:T.body),style:J(J({},y),M==null?void 0:M.body)},E),p),U);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:D,style:J(J({},a),k),className:re(n,r),onMouseDown:x,onMouseUp:S},ae.createElement("div",{ref:F,tabIndex:0,style:LD},ae.createElement(zD,{shouldUpdate:$||O},b?b(j):j)),ae.createElement("div",{tabIndex:0,ref:W,style:DD}))}),cR=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,l=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,g=e.motionName,h=e.ariaId,p=e.onVisibleChanged,y=e.mousePosition,E=f.useRef(),b=f.useState(),x=ge(b,2),S=x[0],w=x[1],$={};S&&($.transformOrigin=S);function O(){var _=AD(E.current);w(y&&(y.x||y.y)?"".concat(y.x-_.left,"px ").concat(y.y-_.top,"px"):"")}return f.createElement(eo,{visible:c,onVisibleChanged:p,onAppearPrepare:O,onEnterPrepare:O,forceRender:u,motionName:g,removeOnLeave:d,ref:E},function(_,R){var T=_.className,M=_.style;return f.createElement(sR,Pe({},e,{ref:t,title:r,ariaId:h,prefixCls:n,holderRef:R,style:J(J(J({},M),a),$),className:re(l,T)}))})});cR.displayName="Content";var BD=function(t){var n=t.prefixCls,r=t.style,a=t.visible,l=t.maskProps,c=t.motionName,u=t.className;return f.createElement(eo,{key:"mask",visible:a,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},function(d,g){var h=d.className,p=d.style;return f.createElement("div",Pe({ref:g,style:J(J({},p),r),className:re("".concat(n,"-mask"),h,u)},l))})},HD=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,l=t.visible,c=l===void 0?!1:l,u=t.keyboard,d=u===void 0?!0:u,g=t.focusTriggerAfterClose,h=g===void 0?!0:g,p=t.wrapStyle,y=t.wrapClassName,E=t.wrapProps,b=t.onClose,x=t.afterOpenChange,S=t.afterClose,w=t.transitionName,$=t.animation,O=t.closable,_=O===void 0?!0:O,R=t.mask,T=R===void 0?!0:R,M=t.maskTransitionName,z=t.maskAnimation,A=t.maskClosable,D=A===void 0?!0:A,F=t.maskStyle,W=t.maskProps,k=t.rootClassName,U=t.classNames,Y=t.styles,N=f.useRef(),P=f.useRef(),B=f.useRef(),K=f.useState(c),j=ge(K,2),L=j[0],q=j[1],G=fy();function V(){Ev(P.current,document.activeElement)||(N.current=document.activeElement)}function X(){if(!Ev(P.current,document.activeElement)){var ce;(ce=B.current)===null||ce===void 0||ce.focus()}}function ee(ce){if(ce)X();else{if(q(!1),T&&N.current&&h){try{N.current.focus({preventScroll:!0})}catch{}N.current=null}L&&(S==null||S())}x==null||x(ce)}function se(ce){b==null||b(ce)}var ne=f.useRef(!1),ie=f.useRef(),ve=function(){clearTimeout(ie.current),ne.current=!0},fe=function(){ie.current=setTimeout(function(){ne.current=!1})},le=null;D&&(le=function(Se){ne.current?ne.current=!1:P.current===Se.target&&se(Se)});function be(ce){if(d&&ce.keyCode===ct.ESC){ce.stopPropagation(),se(ce);return}c&&ce.keyCode===ct.TAB&&B.current.changeActive(!ce.shiftKey)}f.useEffect(function(){c&&(q(!0),V())},[c]),f.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var _e=J(J(J({zIndex:a},p),Y==null?void 0:Y.wrapper),{},{display:L?null:"none"});return f.createElement("div",Pe({className:re("".concat(r,"-root"),k)},Za(t,{data:!0})),f.createElement(BD,{prefixCls:r,visible:T&&c,motionName:Gx(r,M,z),style:J(J({zIndex:a},F),Y==null?void 0:Y.mask),maskProps:W,className:U==null?void 0:U.mask}),f.createElement("div",Pe({tabIndex:-1,onKeyDown:be,className:re("".concat(r,"-wrap"),y,U==null?void 0:U.wrapper),ref:P,onClick:le,style:_e},E),f.createElement(cR,Pe({},t,{onMouseDown:ve,onMouseUp:fe,ref:B,closable:_,ariaId:G,prefixCls:r,visible:c&&L,onClose:se,onVisibleChanged:ee,motionName:Gx(r,w,$)}))))},uR=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,l=t.destroyOnClose,c=l===void 0?!1:l,u=t.afterClose,d=t.panelRef,g=f.useState(n),h=ge(g,2),p=h[0],y=h[1],E=f.useMemo(function(){return{panel:d}},[d]);return f.useEffect(function(){n&&y(!0)},[n]),!a&&c&&!p?null:f.createElement(lR.Provider,{value:E},f.createElement(uy,{open:n||a||p,autoDestroy:!1,getContainer:r,autoLock:n||p},f.createElement(HD,Pe({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),y(!1)}}))))};uR.displayName="Dialog";var Hi="RC_FORM_INTERNAL_HOOKS",vn=function(){pr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Yi=f.createContext({getFieldValue:vn,getFieldsValue:vn,getFieldError:vn,getFieldWarning:vn,getFieldsError:vn,isFieldsTouched:vn,isFieldTouched:vn,isFieldValidating:vn,isFieldsValidating:vn,resetFields:vn,setFields:vn,setFieldValue:vn,setFieldsValue:vn,validateFields:vn,submit:vn,getInternalHooks:function(){return vn(),{dispatch:vn,initEntityValue:vn,registerField:vn,useSubscribe:vn,setInitialValues:vn,destroyForm:vn,setCallbacks:vn,registerWatch:vn,getFields:vn,setValidateMessages:vn,setPreserve:vn,getInitialValue:vn}}}),tu=f.createContext(null);function Wv(e){return e==null?[]:Array.isArray(e)?e:[e]}function FD(e){return e&&!!e._init}function Gv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Kv=Gv();function VD(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UD(e,t,n){if(H0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Gc(a,n.prototype),a}function Xv(e){var t=typeof Map=="function"?new Map:void 0;return Xv=function(r){if(r===null||!VD(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return UD(r,arguments,Kc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Gc(a,r)},Xv(e)}var kD=/%[sdj%]/g,qD=function(){};function Yv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Zr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(kD,function(u){if(u==="%%")return"%";if(a>=l)return u;switch(u){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return u}});return c}return e}function WD(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||WD(t)&&typeof e=="string"&&!e)}function GD(e,t,n){var r=[],a=0,l=e.length;function c(u){r.push.apply(r,Te(u||[])),a++,a===l&&n(r)}e.forEach(function(u){t(u,c)})}function Xx(e,t,n){var r=0,a=e.length;function l(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],l):n([])}l([])}function KD(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Te(e[n]||[]))}),t}var Yx=function(e){Mo(n,e);var t=No(n);function n(r,a){var l;return qn(this,n),l=t.call(this,"Async Validation Error"),Q(Nt(l),"errors",void 0),Q(Nt(l),"fields",void 0),l.errors=r,l.fields=a,l}return Wn(n)}(Xv(Error));function XD(e,t,n,r,a){if(t.first){var l=new Promise(function(y,E){var b=function(w){return r(w),w.length?E(new Yx(w,Yv(w))):y(a)},x=KD(e);Xx(x,n,b)});return l.catch(function(y){return y}),l}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,g=0,h=[],p=new Promise(function(y,E){var b=function(S){if(h.push.apply(h,S),g++,g===d)return r(h),h.length?E(new Yx(h,Yv(h))):y(a)};u.length||(r(h),y(a)),u.forEach(function(x){var S=e[x];c.indexOf(x)!==-1?Xx(S,n,b):GD(S,n,b)})});return p.catch(function(y){return y}),p}function YD(e){return!!(e&&e.message!==void 0)}function QD(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Qx(e,t){return function(n){var r;return e.fullFields?r=QD(t,e.fullFields):r=t[n.field||e.fullField],YD(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Zx(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];lt(r)==="object"&&lt(e[n])==="object"?e[n]=J(J({},e[n]),r):e[n]=r}}return e}var Al="enum",ZD=function(t,n,r,a,l){t[Al]=Array.isArray(t[Al])?t[Al]:[],t[Al].indexOf(n)===-1&&a.push(Zr(l.messages[Al],t.fullField,t[Al].join(", ")))},JD=function(t,n,r,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Zr(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(Zr(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},eL=function(t,n,r,a,l){var c=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,p=null,y=typeof n=="number",E=typeof n=="string",b=Array.isArray(n);if(y?p="number":E?p="string":b&&(p="array"),!p)return!1;b&&(h=n.length),E&&(h=n.replace(g,"_").length),c?h!==t.len&&a.push(Zr(l.messages[p].len,t.fullField,t.len)):u&&!d&&h<t.min?a.push(Zr(l.messages[p].min,t.fullField,t.min)):d&&!u&&h>t.max?a.push(Zr(l.messages[p].max,t.fullField,t.max)):u&&d&&(h<t.min||h>t.max)&&a.push(Zr(l.messages[p].range,t.fullField,t.min,t.max))},fR=function(t,n,r,a,l,c){t.required&&(!r.hasOwnProperty(t.field)||tr(n,c||t.type))&&a.push(Zr(l.messages.required,t.fullField))},qf;const tL=function(){if(qf)return qf;var e="[a-fA-F\\d:]",t=function(T){return T&&T.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),d=new RegExp("^".concat(n,"$")),g=new RegExp("^".concat(c,"$")),h=function(T){return T&&T.exact?u:new RegExp("(?:".concat(t(T)).concat(n).concat(t(T),")|(?:").concat(t(T)).concat(c).concat(t(T),")"),"g")};h.v4=function(R){return R&&R.exact?d:new RegExp("".concat(t(R)).concat(n).concat(t(R)),"g")},h.v6=function(R){return R&&R.exact?g:new RegExp("".concat(t(R)).concat(c).concat(t(R)),"g")};var p="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",E=h.v4().source,b=h.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',_="(?:".concat(p,"|www\\.)").concat(y,"(?:localhost|").concat(E,"|").concat(b,"|").concat(x).concat(S).concat(w,")").concat($).concat(O);return qf=new RegExp("(?:^".concat(_,"$)"),"i"),qf};var Jx={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zc={integer:function(t){return zc.number(t)&&parseInt(t,10)===t},float:function(t){return zc.number(t)&&!zc.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return lt(t)==="object"&&!zc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Jx.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(tL())},hex:function(t){return typeof t=="string"&&!!t.match(Jx.hex)}},nL=function(t,n,r,a,l){if(t.required&&n===void 0){fR(t,n,r,a,l);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?zc[u](n)||a.push(Zr(l.messages.types[u],t.fullField,t.type)):u&&lt(n)!==t.type&&a.push(Zr(l.messages.types[u],t.fullField,t.type))},rL=function(t,n,r,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Zr(l.messages.whitespace,t.fullField))};const Ft={required:fR,whitespace:rL,type:nL,range:eL,enum:ZD,pattern:JD};var aL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l)}r(c)},oL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Ft.required(t,n,a,c,l,"array"),n!=null&&(Ft.type(t,n,a,c,l),Ft.range(t,n,a,c,l))}r(c)},iL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&Ft.type(t,n,a,c,l)}r(c)},lL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n,"date")&&!t.required)return r();if(Ft.required(t,n,a,c,l),!tr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Ft.type(t,d,a,c,l),d&&Ft.range(t,d.getTime(),a,c,l)}}r(c)},sL="enum",cL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&Ft[sL](t,n,a,c,l)}r(c)},uL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&(Ft.type(t,n,a,c,l),Ft.range(t,n,a,c,l))}r(c)},fL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&(Ft.type(t,n,a,c,l),Ft.range(t,n,a,c,l))}r(c)},dL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&Ft.type(t,n,a,c,l)}r(c)},mL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&(Ft.type(t,n,a,c,l),Ft.range(t,n,a,c,l))}r(c)},gL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),n!==void 0&&Ft.type(t,n,a,c,l)}r(c)},hL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n,"string")&&!t.required)return r();Ft.required(t,n,a,c,l),tr(n,"string")||Ft.pattern(t,n,a,c,l)}r(c)},pL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n)&&!t.required)return r();Ft.required(t,n,a,c,l),tr(n)||Ft.type(t,n,a,c,l)}r(c)},vL=function(t,n,r,a,l){var c=[],u=Array.isArray(n)?"array":lt(n);Ft.required(t,n,a,c,l,u),r(c)},yL=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(tr(n,"string")&&!t.required)return r();Ft.required(t,n,a,c,l,"string"),tr(n,"string")||(Ft.type(t,n,a,c,l),Ft.range(t,n,a,c,l),Ft.pattern(t,n,a,c,l),t.whitespace===!0&&Ft.whitespace(t,n,a,c,l))}r(c)},Sp=function(t,n,r,a,l){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(tr(n,c)&&!t.required)return r();Ft.required(t,n,a,u,l,c),tr(n,c)||Ft.type(t,n,a,u,l)}r(u)};const Fc={string:yL,method:dL,number:mL,boolean:iL,regexp:pL,integer:fL,float:uL,array:oL,object:gL,enum:cL,pattern:hL,date:lL,url:Sp,hex:Sp,email:Sp,required:vL,any:aL};var Eu=function(){function e(t){qn(this,e),Q(this,"rules",null),Q(this,"_messages",Kv),this.define(t)}return Wn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(lt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var l=n[a];r.rules[a]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=Zx(Gv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,u=a,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,c),Promise.resolve(c);function g(b){var x=[],S={};function w(O){if(Array.isArray(O)){var _;x=(_=x).concat.apply(_,Te(O))}else x.push(O)}for(var $=0;$<b.length;$++)w(b[$]);x.length?(S=Yv(x),d(x,S)):d(null,c)}if(u.messages){var h=this.messages();h===Kv&&(h=Gv()),Zx(h,u.messages),u.messages=h}else u.messages=this.messages();var p={},y=u.keys||Object.keys(this.rules);y.forEach(function(b){var x=r.rules[b],S=c[b];x.forEach(function(w){var $=w;typeof $.transform=="function"&&(c===n&&(c=J({},c)),S=c[b]=$.transform(S),S!=null&&($.type=$.type||(Array.isArray(S)?"array":lt(S)))),typeof $=="function"?$={validator:$}:$=J({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=b,$.fullField=$.fullField||b,$.type=r.getType($),p[b]=p[b]||[],p[b].push({rule:$,value:S,source:c,field:b}))})});var E={};return XD(p,u,function(b,x){var S=b.rule,w=(S.type==="object"||S.type==="array")&&(lt(S.fields)==="object"||lt(S.defaultField)==="object");w=w&&(S.required||!S.required&&b.value),S.field=b.field;function $(M,z){return J(J({},z),{},{fullField:"".concat(S.fullField,".").concat(M),fullFields:S.fullFields?[].concat(Te(S.fullFields),[M]):[M]})}function O(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=Array.isArray(M)?M:[M];!u.suppressWarning&&z.length&&e.warning("async-validator:",z),z.length&&S.message!==void 0&&(z=[].concat(S.message));var A=z.map(Qx(S,c));if(u.first&&A.length)return E[S.field]=1,x(A);if(!w)x(A);else{if(S.required&&!b.value)return S.message!==void 0?A=[].concat(S.message).map(Qx(S,c)):u.error&&(A=[u.error(S,Zr(u.messages.required,S.field))]),x(A);var D={};S.defaultField&&Object.keys(b.value).map(function(k){D[k]=S.defaultField}),D=J(J({},D),b.rule.fields);var F={};Object.keys(D).forEach(function(k){var U=D[k],Y=Array.isArray(U)?U:[U];F[k]=Y.map($.bind(null,k))});var W=new e(F);W.messages(u.messages),b.rule.options&&(b.rule.options.messages=u.messages,b.rule.options.error=u.error),W.validate(b.value,b.rule.options||u,function(k){var U=[];A&&A.length&&U.push.apply(U,Te(A)),k&&k.length&&U.push.apply(U,Te(k)),x(U.length?U:null)})}}var _;if(S.asyncValidator)_=S.asyncValidator(S,b.value,O,b.source,u);else if(S.validator){try{_=S.validator(S,b.value,O,b.source,u)}catch(M){var R,T;(R=(T=console).error)===null||R===void 0||R.call(T,M),u.suppressValidatorError||setTimeout(function(){throw M},0),O(M.message)}_===!0?O():_===!1?O(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):_ instanceof Array?O(_):_ instanceof Error&&O(_.message)}_&&_.then&&_.then(function(){return O()},function(M){return O(M)})},function(b){g(b)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Fc.hasOwnProperty(n.type))throw new Error(Zr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Fc.required:Fc[this.getType(n)]||void 0}}]),e}();Q(Eu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fc[t]=n});Q(Eu,"warning",qD);Q(Eu,"messages",Kv);Q(Eu,"validators",Fc);var Xr="'${name}' is not a valid ${type}",dR={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Xr,method:Xr,array:Xr,object:Xr,number:Xr,date:Xr,boolean:Xr,integer:Xr,float:Xr,regexp:Xr,email:Xr,url:Xr,hex:Xr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},eE=Eu;function bL(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var tE="CODE_LOGIC_ERROR";function Qv(e,t,n,r,a){return Zv.apply(this,arguments)}function Zv(){return Zv=tl(Rr().mark(function e(t,n,r,a,l){var c,u,d,g,h,p,y,E,b;return Rr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=J({},r),delete c.ruleIndex,eE.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(tE)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),g=new eE(Q({},t,[c])),h=Ul(dR,a.validateMessages),g.messages(h),p=[],S.prev=10,S.next=13,Promise.resolve(g.validate(Q({},t,n),J({},a)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(p=S.t0.errors.map(function(w,$){var O=w.message,_=O===tE?h.default:O;return f.isValidElement(_)?f.cloneElement(_,{key:"error_".concat($)}):_}));case 18:if(!(!p.length&&d)){S.next=23;break}return S.next=21,Promise.all(n.map(function(w,$){return Qv("".concat(t,".").concat($),w,d,a,l)}));case 21:return y=S.sent,S.abrupt("return",y.reduce(function(w,$){return[].concat(Te(w),Te($))},[]));case 23:return E=J(J({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),b=p.map(function(w){return typeof w=="string"?bL(w,E):w}),S.abrupt("return",b);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),Zv.apply(this,arguments)}function SL(e,t,n,r,a,l){var c=e.join("."),u=n.map(function(h,p){var y=h.validator,E=J(J({},h),{},{ruleIndex:p});return y&&(E.validator=function(b,x,S){var w=!1,$=function(){for(var R=arguments.length,T=new Array(R),M=0;M<R;M++)T[M]=arguments[M];Promise.resolve().then(function(){pr(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||S.apply(void 0,T)})},O=y(b,x,$);w=O&&typeof O.then=="function"&&typeof O.catch=="function",pr(w,"`callback` is deprecated. Please return a promise instead."),w&&O.then(function(){S()}).catch(function(_){S(_||" ")})}),E}).sort(function(h,p){var y=h.warningOnly,E=h.ruleIndex,b=p.warningOnly,x=p.ruleIndex;return!!y==!!b?E-x:y?1:-1}),d;if(a===!0)d=new Promise(function(){var h=tl(Rr().mark(function p(y,E){var b,x,S;return Rr().wrap(function($){for(;;)switch($.prev=$.next){case 0:b=0;case 1:if(!(b<u.length)){$.next=12;break}return x=u[b],$.next=5,Qv(c,t,x,r,l);case 5:if(S=$.sent,!S.length){$.next=9;break}return E([{errors:S,rule:x}]),$.abrupt("return");case 9:b+=1,$.next=1;break;case 12:y([]);case 13:case"end":return $.stop()}},p)}));return function(p,y){return h.apply(this,arguments)}}());else{var g=u.map(function(h){return Qv(c,t,h,r,l).then(function(p){return{errors:p,rule:h}})});d=(a?xL(g):CL(g)).then(function(h){return Promise.reject(h)})}return d.catch(function(h){return h}),d}function CL(e){return Jv.apply(this,arguments)}function Jv(){return Jv=tl(Rr().mark(function e(t){return Rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var l,c=(l=[]).concat.apply(l,Te(a));return c}));case 1:case"end":return r.stop()}},e)})),Jv.apply(this,arguments)}function xL(e){return e0.apply(this,arguments)}function e0(){return e0=tl(Rr().mark(function e(t){var n;return Rr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(l){t.forEach(function(c){c.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return a.stop()}},e)})),e0.apply(this,arguments)}function Bn(e){return Wv(e)}function nE(e,t){var n={};return t.forEach(function(r){var a=Ca(e,r);n=Sa(n,r,a)}),n}function Gl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mR(t,r,n)})}function mR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function EL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||lt(e)!=="object"||lt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Te(a).every(function(l){var c=e[l],u=t[l];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function wL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&lt(t.target)==="object"&&e in t.target?t.target[e]:t}function rE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],l=t-n;return l>0?[].concat(Te(e.slice(0,n)),[a],Te(e.slice(n,t)),Te(e.slice(t+1,r))):l<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[a],Te(e.slice(n+1,r))):e}var $L=["name"],pa=[];function Cp(e,t,n,r,a,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==a}var dy=function(e){Mo(n,e);var t=No(n);function n(r){var a;if(qn(this,n),a=t.call(this,r),Q(Nt(a),"state",{resetCount:0}),Q(Nt(a),"cancelRegisterFunc",null),Q(Nt(a),"mounted",!1),Q(Nt(a),"touched",!1),Q(Nt(a),"dirty",!1),Q(Nt(a),"validatePromise",void 0),Q(Nt(a),"prevValidating",void 0),Q(Nt(a),"errors",pa),Q(Nt(a),"warnings",pa),Q(Nt(a),"cancelRegister",function(){var d=a.props,g=d.preserve,h=d.isListField,p=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(h,g,Bn(p)),a.cancelRegisterFunc=null}),Q(Nt(a),"getNamePath",function(){var d=a.props,g=d.name,h=d.fieldContext,p=h.prefixName,y=p===void 0?[]:p;return g!==void 0?[].concat(Te(y),Te(g)):[]}),Q(Nt(a),"getRules",function(){var d=a.props,g=d.rules,h=g===void 0?[]:g,p=d.fieldContext;return h.map(function(y){return typeof y=="function"?y(p):y})}),Q(Nt(a),"refresh",function(){a.mounted&&a.setState(function(d){var g=d.resetCount;return{resetCount:g+1}})}),Q(Nt(a),"metaCache",null),Q(Nt(a),"triggerMetaEvent",function(d){var g=a.props.onMetaChange;if(g){var h=J(J({},a.getMeta()),{},{destroy:d});Yc(a.metaCache,h)||g(h),a.metaCache=h}else a.metaCache=null}),Q(Nt(a),"onStoreChange",function(d,g,h){var p=a.props,y=p.shouldUpdate,E=p.dependencies,b=E===void 0?[]:E,x=p.onReset,S=h.store,w=a.getNamePath(),$=a.getValue(d),O=a.getValue(S),_=g&&Gl(g,w);switch(h.type==="valueUpdate"&&h.source==="external"&&!Yc($,O)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=pa,a.warnings=pa,a.triggerMetaEvent()),h.type){case"reset":if(!g||_){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=pa,a.warnings=pa,a.triggerMetaEvent(),x==null||x(),a.refresh();return}break;case"remove":{if(y&&Cp(y,d,S,$,O,h)){a.reRender();return}break}case"setField":{var R=h.data;if(_){"touched"in R&&(a.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(a.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(a.errors=R.errors||pa),"warnings"in R&&(a.warnings=R.warnings||pa),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in R&&Gl(g,w,!0)){a.reRender();return}if(y&&!w.length&&Cp(y,d,S,$,O,h)){a.reRender();return}break}case"dependenciesUpdate":{var T=b.map(Bn);if(T.some(function(M){return Gl(h.relatedFields,M)})){a.reRender();return}break}default:if(_||(!b.length||w.length||y)&&Cp(y,d,S,$,O,h)){a.reRender();return}break}y===!0&&a.reRender()}),Q(Nt(a),"validateRules",function(d){var g=a.getNamePath(),h=a.getValue(),p=d||{},y=p.triggerName,E=p.validateOnly,b=E===void 0?!1:E,x=Promise.resolve().then(tl(Rr().mark(function S(){var w,$,O,_,R,T,M;return Rr().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(a.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(w=a.props,$=w.validateFirst,O=$===void 0?!1:$,_=w.messageVariables,R=w.validateDebounce,T=a.getRules(),y&&(T=T.filter(function(D){return D}).filter(function(D){var F=D.validateTrigger;if(!F)return!0;var W=Wv(F);return W.includes(y)})),!(R&&y)){A.next=10;break}return A.next=8,new Promise(function(D){setTimeout(D,R)});case 8:if(a.validatePromise===x){A.next=10;break}return A.abrupt("return",[]);case 10:return M=SL(g,h,T,d,O,_),M.catch(function(D){return D}).then(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pa;if(a.validatePromise===x){var F;a.validatePromise=null;var W=[],k=[];(F=D.forEach)===null||F===void 0||F.call(D,function(U){var Y=U.rule.warningOnly,N=U.errors,P=N===void 0?pa:N;Y?k.push.apply(k,Te(P)):W.push.apply(W,Te(P))}),a.errors=W,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),A.abrupt("return",M);case 13:case"end":return A.stop()}},S)})));return b||(a.validatePromise=x,a.dirty=!0,a.errors=pa,a.warnings=pa,a.triggerMetaEvent(),a.reRender()),x}),Q(Nt(a),"isFieldValidating",function(){return!!a.validatePromise}),Q(Nt(a),"isFieldTouched",function(){return a.touched}),Q(Nt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,g=d.getInternalHooks(Hi),h=g.getInitialValue;return h(a.getNamePath())!==void 0}),Q(Nt(a),"getErrors",function(){return a.errors}),Q(Nt(a),"getWarnings",function(){return a.warnings}),Q(Nt(a),"isListField",function(){return a.props.isListField}),Q(Nt(a),"isList",function(){return a.props.isList}),Q(Nt(a),"isPreserve",function(){return a.props.preserve}),Q(Nt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),Q(Nt(a),"getOnlyChild",function(d){if(typeof d=="function"){var g=a.getMeta();return J(J({},a.getOnlyChild(d(a.getControlled(),g,a.props.fieldContext))),{},{isFunction:!0})}var h=zr(d);return h.length!==1||!f.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),Q(Nt(a),"getValue",function(d){var g=a.props.fieldContext.getFieldsValue,h=a.getNamePath();return Ca(d||g(!0),h)}),Q(Nt(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=a.props,h=g.name,p=g.trigger,y=g.validateTrigger,E=g.getValueFromEvent,b=g.normalize,x=g.valuePropName,S=g.getValueProps,w=g.fieldContext,$=y!==void 0?y:w.validateTrigger,O=a.getNamePath(),_=w.getInternalHooks,R=w.getFieldsValue,T=_(Hi),M=T.dispatch,z=a.getValue(),A=S||function(U){return Q({},x,U)},D=d[p],F=h!==void 0?A(z):{},W=J(J({},d),F);W[p]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var U,Y=arguments.length,N=new Array(Y),P=0;P<Y;P++)N[P]=arguments[P];E?U=E.apply(void 0,N):U=wL.apply(void 0,[x].concat(N)),b&&(U=b(U,z,R(!0))),U!==z&&M({type:"updateValue",namePath:O,value:U}),D&&D.apply(void 0,N)};var k=Wv($||[]);return k.forEach(function(U){var Y=W[U];W[U]=function(){Y&&Y.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&M({type:"validateField",namePath:O,triggerName:U})}}),W}),r.fieldContext){var l=r.fieldContext.getInternalHooks,c=l(Hi),u=c.initEntityValue;u(Nt(a))}return a}return Wn(n,[{key:"componentDidMount",value:function(){var a=this.props,l=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,d=u(Hi),g=d.registerField;this.cancelRegisterFunc=g(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,l=this.props.children,c=this.getOnlyChild(l),u=c.child,d=c.isFunction,g;return d?g=u:f.isValidElement(u)?g=f.cloneElement(u,this.getControlled(u.props)):(pr(!u,"`children` of Field is not validate ReactElement."),g=u),f.createElement(f.Fragment,{key:a},g)}}]),n}(f.Component);Q(dy,"contextType",Yi);Q(dy,"defaultProps",{trigger:"onChange",valuePropName:"value"});function my(e){var t,n=e.name,r=$t(e,$L),a=f.useContext(Yi),l=f.useContext(tu),c=n!==void 0?Bn(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((c||[]).join("_"))),f.createElement(dy,Pe({key:d,name:c,isListField:u},r,{fieldContext:a}))}function gR(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,l=e.validateTrigger,c=e.isListField,u=f.useContext(Yi),d=f.useContext(tu),g=f.useRef({keys:[],id:0}),h=g.current,p=f.useMemo(function(){var x=Bn(u.prefixName)||[];return[].concat(Te(x),Te(Bn(t)))},[u.prefixName,t]),y=f.useMemo(function(){return J(J({},u),{},{prefixName:p})},[u,p]),E=f.useMemo(function(){return{getKey:function(S){var w=p.length,$=S[w];return[h.keys[$],S.slice(w+1)]}}},[p]);if(typeof r!="function")return pr(!1,"Form.List only accepts function as children."),null;var b=function(S,w,$){var O=$.source;return O==="internal"?!1:S!==w};return f.createElement(tu.Provider,{value:E},f.createElement(Yi.Provider,{value:y},f.createElement(my,{name:[],shouldUpdate:b,rules:a,validateTrigger:l,initialValue:n,isList:!0,isListField:c??!!d},function(x,S){var w=x.value,$=w===void 0?[]:w,O=x.onChange,_=u.getFieldValue,R=function(){var A=_(p||[]);return A||[]},T={add:function(A,D){var F=R();D>=0&&D<=F.length?(h.keys=[].concat(Te(h.keys.slice(0,D)),[h.id],Te(h.keys.slice(D))),O([].concat(Te(F.slice(0,D)),[A],Te(F.slice(D))))):(h.keys=[].concat(Te(h.keys),[h.id]),O([].concat(Te(F),[A]))),h.id+=1},remove:function(A){var D=R(),F=new Set(Array.isArray(A)?A:[A]);F.size<=0||(h.keys=h.keys.filter(function(W,k){return!F.has(k)}),O(D.filter(function(W,k){return!F.has(k)})))},move:function(A,D){if(A!==D){var F=R();A<0||A>=F.length||D<0||D>=F.length||(h.keys=rE(h.keys,A,D),O(rE(F,A,D)))}}},M=$||[];return Array.isArray(M)||(M=[]),r(M.map(function(z,A){var D=h.keys[A];return D===void 0&&(h.keys[A]=h.id,D=h.keys[A],h.id+=1),{name:A,key:D,isListField:!0}}),T,S)})))}function OL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,l){e.forEach(function(c,u){c.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&l(r),a(r))})})}):Promise.resolve([])}var hR="__@field_split__";function xp(e){return e.map(function(t){return"".concat(lt(t),":").concat(t)}).join(hR)}var zl=function(){function e(){qn(this,e),Q(this,"kvs",new Map)}return Wn(e,[{key:"set",value:function(n,r){this.kvs.set(xp(n),r)}},{key:"get",value:function(n){return this.kvs.get(xp(n))}},{key:"update",value:function(n,r){var a=this.get(n),l=r(a);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(xp(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var a=ge(r,2),l=a[0],c=a[1],u=l.split(hR);return n({key:u.map(function(d){var g=d.match(/^([^:]*):(.*)$/),h=ge(g,3),p=h[1],y=h[2];return p==="number"?Number(y):y}),value:c})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,l=r.value;return n[a.join(".")]=l,null}),n}}]),e}(),RL=["name"],_L=Wn(function e(t){var n=this;qn(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Q(this,"getInternalHooks",function(r){return r===Hi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(pr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Q(this,"useSubscribe",function(r){n.subscribable=r}),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var l,c=Ul(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;c=Sa(c,d,Ca(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),Q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new zl;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||a.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),Q(this,"getInitialValue",function(r){var a=Ca(n.initialValues,r);return r.length?Ul(a):a}),Q(this,"setCallbacks",function(r){n.callbacks=r}),Q(this,"setValidateMessages",function(r){n.validateMessages=r}),Q(this,"setPreserve",function(r){n.preserve=r}),Q(this,"watchList",[]),Q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),Q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(c){c(a,l,r)})}}),Q(this,"timeoutId",null),Q(this,"warningUnhooked",function(){}),Q(this,"updateStore",function(r){n.store=r}),Q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),Q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new zl;return n.getFieldEntities(r).forEach(function(l){var c=l.getNamePath();a.set(c,l)}),a}),Q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(l){var c=Bn(l);return a.get(c)||{INVALIDATE_NAME_PATH:Bn(l)}})}),Q(this,"getFieldsValue",function(r,a){n.warningUnhooked();var l,c,u;if(r===!0||Array.isArray(r)?(l=r,c=a):r&&lt(r)==="object"&&(u=r.strict,c=r.filter),l===!0&&!c)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),g=[];return d.forEach(function(h){var p,y,E="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(u){var b,x;if((b=(x=h).isList)!==null&&b!==void 0&&b.call(x))return}else if(!l&&(p=(y=h).isListField)!==null&&p!==void 0&&p.call(y))return;if(!c)g.push(E);else{var S="getMeta"in h?h.getMeta():null;c(S)&&g.push(E)}}),nE(n.store,g.map(Bn))}),Q(this,"getFieldValue",function(r){n.warningUnhooked();var a=Bn(r);return Ca(n.store,a)}),Q(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(l,c){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Bn(r[c]),errors:[],warnings:[]}})}),Q(this,"getFieldError",function(r){n.warningUnhooked();var a=Bn(r),l=n.getFieldsError([a])[0];return l.errors}),Q(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Bn(r),l=n.getFieldsError([a])[0];return l.warnings}),Q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];var c=a[0],u=a[1],d,g=!1;a.length===0?d=null:a.length===1?Array.isArray(c)?(d=c.map(Bn),g=!1):(d=null,g=c):(d=c.map(Bn),g=u);var h=n.getFieldEntities(!0),p=function(S){return S.isFieldTouched()};if(!d)return g?h.every(function(x){return p(x)||x.isList()}):h.some(p);var y=new zl;d.forEach(function(x){y.set(x,[])}),h.forEach(function(x){var S=x.getNamePath();d.forEach(function(w){w.every(function($,O){return S[O]===$})&&y.update(w,function($){return[].concat(Te($),[x])})})});var E=function(S){return S.some(p)},b=y.map(function(x){var S=x.value;return S});return g?b.every(E):b.some(E)}),Q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Q(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var l=r.map(Bn);return a.some(function(c){var u=c.getNamePath();return Gl(l,u)&&c.isFieldValidating()})}),Q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new zl,l=n.getFieldEntities(!0);l.forEach(function(d){var g=d.props.initialValue,h=d.getNamePath();if(g!==void 0){var p=a.get(h)||new Set;p.add({entity:d,value:g}),a.set(h,p)}});var c=function(g){g.forEach(function(h){var p=h.props.initialValue;if(p!==void 0){var y=h.getNamePath(),E=n.getInitialValue(y);if(E!==void 0)pr(!1,"Form already set 'initialValues' with path '".concat(y.join("."),"'. Field can not overwrite it."));else{var b=a.get(y);if(b&&b.size>1)pr(!1,"Multiple Field with path '".concat(y.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var x=n.getFieldValue(y),S=h.isListField();!S&&(!r.skipExist||x===void 0)&&n.updateStore(Sa(n.store,y,Te(b)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var g=a.get(d);if(g){var h;(h=u).push.apply(h,Te(Te(g).map(function(p){return p.entity})))}})):u=l,c(u)}),Q(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Ul(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Bn);l.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(Sa(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(a,l,{type:"reset"}),n.notifyWatch(l)}),Q(this,"setFields",function(r){n.warningUnhooked();var a=n.store,l=[];r.forEach(function(c){var u=c.name,d=$t(c,RL),g=Bn(u);l.push(g),"value"in d&&n.updateStore(Sa(n.store,g,d.value)),n.notifyObservers(a,[g],{type:"setField",data:c})}),n.notifyWatch(l)}),Q(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(l){var c=l.getNamePath(),u=l.getMeta(),d=J(J({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),Q(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var l=r.getNamePath(),c=Ca(n.store,l);c===void 0&&n.updateStore(Sa(n.store,l,a))}}),Q(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),Q(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(u)&&(!c||d.length>1)){var g=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==g&&n.fieldEntities.every(function(p){return!mR(p.getNamePath(),a)})){var h=n.store;n.updateStore(Sa(h,a,g,!0)),n.notifyObservers(h,[a],{type:"remove"}),n.triggerDependenciesUpdate(h,a)}}n.notifyWatch([a])}}),Q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,l=r.value;n.updateValue(a,l);break}case"validateField":{var c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),Q(this,"notifyObservers",function(r,a,l){if(n.subscribable){var c=J(J({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),Q(this,"triggerDependenciesUpdate",function(r,a){var l=n.getDependencyChildrenFields(a);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[a].concat(Te(l))}),l}),Q(this,"updateValue",function(r,a){var l=Bn(r),c=n.store;n.updateStore(Sa(n.store,l,a)),n.notifyObservers(c,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(c,l),d=n.callbacks.onValuesChange;if(d){var g=nE(n.store,[l]);d(g,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Te(u)))}),Q(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var l=Ul(n.store,r);n.updateStore(l)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Q(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),Q(this,"getDependencyChildrenFields",function(r){var a=new Set,l=[],c=new zl;n.getFieldEntities().forEach(function(d){var g=d.props.dependencies;(g||[]).forEach(function(h){var p=Bn(h);c.update(p,function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return y.add(d),y})})});var u=function d(g){var h=c.get(g)||new Set;h.forEach(function(p){if(!a.has(p)){a.add(p);var y=p.getNamePath();p.isFieldDirty()&&y.length&&(l.push(y),d(y))}})};return u(r),l}),Q(this,"triggerOnFieldsChange",function(r,a){var l=n.callbacks.onFieldsChange;if(l){var c=n.getFields();if(a){var u=new zl;a.forEach(function(g){var h=g.name,p=g.errors;u.set(h,p)}),c.forEach(function(g){g.errors=u.get(g.name)||g.errors})}var d=c.filter(function(g){var h=g.name;return Gl(r,h)});d.length&&l(d,c)}}),Q(this,"validateFields",function(r,a){n.warningUnhooked();var l,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(l=r,c=a):c=r;var u=!!l,d=u?l.map(Bn):[],g=[],h=String(Date.now()),p=new Set,y=c||{},E=y.recursive,b=y.dirty;n.getFieldEntities(!0).forEach(function($){if(u||d.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(b&&!$.isFieldDirty())){var O=$.getNamePath();if(p.add(O.join(h)),!u||Gl(d,O,E)){var _=$.validateRules(J({validateMessages:J(J({},dR),n.validateMessages)},c));g.push(_.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(R){var T,M=[],z=[];return(T=R.forEach)===null||T===void 0||T.call(R,function(A){var D=A.rule.warningOnly,F=A.errors;D?z.push.apply(z,Te(F)):M.push.apply(M,Te(F))}),M.length?Promise.reject({name:O,errors:M,warnings:z}):{name:O,errors:M,warnings:z}}))}}});var x=OL(g);n.lastValidatePromise=x,x.catch(function($){return $}).then(function($){var O=$.map(function(_){var R=_.name;return R});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,$)});var S=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function($){var O=$.filter(function(_){return _&&_.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:O,outOfDate:n.lastValidatePromise!==x})});S.catch(function($){return $});var w=d.filter(function($){return p.has($.join(h))});return n.triggerOnFieldsChange(w),S}),Q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(l){console.error(l)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function gy(e){var t=f.useRef(),n=f.useState({}),r=ge(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){a({})},c=new _L(l);t.current=c.getForm()}return[t.current]}var t0=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pR=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,l=t.children,c=f.useContext(t0),u=f.useRef({});return f.createElement(t0.Provider,{value:J(J({},c),{},{validateMessages:J(J({},c.validateMessages),n),triggerFormChange:function(g,h){r&&r(g,{changedFields:h,forms:u.current}),c.triggerFormChange(g,h)},triggerFormFinish:function(g,h){a&&a(g,{values:h,forms:u.current}),c.triggerFormFinish(g,h)},registerForm:function(g,h){g&&(u.current=J(J({},u.current),{},Q({},g,h))),c.registerForm(g,h)},unregisterForm:function(g){var h=J({},u.current);delete h[g],u.current=h,c.unregisterForm(g)}})},l)},TL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],ML=function(t,n){var r=t.name,a=t.initialValues,l=t.fields,c=t.form,u=t.preserve,d=t.children,g=t.component,h=g===void 0?"form":g,p=t.validateMessages,y=t.validateTrigger,E=y===void 0?"onChange":y,b=t.onValuesChange,x=t.onFieldsChange,S=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,O=$t(t,TL),_=f.useRef(null),R=f.useContext(t0),T=gy(c),M=ge(T,1),z=M[0],A=z.getInternalHooks(Hi),D=A.useSubscribe,F=A.setInitialValues,W=A.setCallbacks,k=A.setValidateMessages,U=A.setPreserve,Y=A.destroyForm;f.useImperativeHandle(n,function(){return J(J({},z),{},{nativeElement:_.current})}),f.useEffect(function(){return R.registerForm(r,z),function(){R.unregisterForm(r)}},[R,z,r]),k(J(J({},R.validateMessages),p)),W({onValuesChange:b,onFieldsChange:function(V){if(R.triggerFormChange(r,V),x){for(var X=arguments.length,ee=new Array(X>1?X-1:0),se=1;se<X;se++)ee[se-1]=arguments[se];x.apply(void 0,[V].concat(ee))}},onFinish:function(V){R.triggerFormFinish(r,V),S&&S(V)},onFinishFailed:w}),U(u);var N=f.useRef(null);F(a,!N.current),N.current||(N.current=!0),f.useEffect(function(){return function(){return Y($)}},[]);var P,B=typeof d=="function";if(B){var K=z.getFieldsValue(!0);P=d(K,z)}else P=d;D(!B);var j=f.useRef();f.useEffect(function(){EL(j.current||[],l||[])||z.setFields(l||[]),j.current=l},[l,z]);var L=f.useMemo(function(){return J(J({},z),{},{validateTrigger:E})},[z,E]),q=f.createElement(tu.Provider,{value:null},f.createElement(Yi.Provider,{value:L},P));return h===!1?q:f.createElement(h,Pe({},O,{ref:_,onSubmit:function(V){V.preventDefault(),V.stopPropagation(),z.submit()},onReset:function(V){var X;V.preventDefault(),z.resetFields(),(X=O.onReset)===null||X===void 0||X.call(O,V)}}),q)};function aE(e){try{return JSON.stringify(e)}catch{return Math.random()}}function vR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],l=a===void 0?{}:a,c=FD(l)?{form:l}:l,u=c.form,d=f.useState(),g=ge(d,2),h=g[0],p=g[1],y=f.useMemo(function(){return aE(h)},[h]),E=f.useRef(y);E.current=y;var b=f.useContext(Yi),x=u||b,S=x&&x._init,w=Bn(r),$=f.useRef(w);return $.current=w,f.useEffect(function(){if(S){var O=x.getFieldsValue,_=x.getInternalHooks,R=_(Hi),T=R.registerWatch,M=function(F,W){var k=c.preserve?W:F;return typeof r=="function"?r(k):Ca(k,$.current)},z=T(function(D,F){var W=M(D,F),k=aE(W);E.current!==k&&(E.current=k,p(W))}),A=M(O(),O(!0));return h!==A&&p(A),z}},[S]),h}var NL=f.forwardRef(ML),cs=NL;cs.FormProvider=pR;cs.Field=my;cs.List=gR;cs.useForm=gy;cs.useWatch=vR;const Oo=f.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),yR=f.createContext(null),bR=e=>{const t=Tn(e,["prefixCls"]);return f.createElement(pR,Object.assign({},t))},hy=f.createContext({prefixCls:""}),ta=f.createContext({}),jL=e=>{let{children:t,status:n,override:r}=e;const a=f.useContext(ta),l=f.useMemo(()=>{const c=Object.assign({},a);return r&&delete c.isFormItemInput,n&&(delete c.status,delete c.hasFeedback,delete c.feedbackIcon),c},[n,r,a]);return f.createElement(ta.Provider,{value:l},t)},SR=f.createContext(void 0),nu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ae.createElement(jL,{override:!0,status:!0},a)),t&&(a=ae.createElement(q6,null,a)),a};function oE(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function iE(e){const{closable:t,closeIcon:n}=e||{};return ae.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function lE(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(a=>{a&&Object.keys(a).forEach(l=>{a[l]!==void 0&&(e[l]=a[l])})}),e}const IL={};function PL(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:IL;const r=iE(e),a=iE(t),l=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,c=ae.useMemo(()=>Object.assign({closeIcon:ae.createElement(as,null)},n),[n]),u=ae.useMemo(()=>r===!1?!1:r?lE(c,a,r):a===!1?!1:a?lE(c,a):c.closable?c:!1,[r,a,c]);return ae.useMemo(()=>{if(u===!1)return[!1,null,l];const{closeIconRender:d}=c,{closeIcon:g}=u;let h=g;if(h!=null){d&&(h=d(g));const p=Za(u,!0);Object.keys(p).length&&(h=ae.isValidElement(h)?ae.cloneElement(h,p):ae.createElement("span",Object.assign({},p),h))}return[!0,h,l]},[u,c])}var CR=function(t){if(Er()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},AL=function(t,n){if(!CR(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function sE(e,t){return!Array.isArray(e)&&t!==void 0?AL(e,t):CR(e)}const zL=()=>Er()&&window.document.documentElement,Sm=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:l}=e,c=re({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=re({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=f.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return f.createElement("span",{className:re(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},DL=new zt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Cm=e=>({height:e,lineHeight:ye(e)}),Kl=e=>Object.assign({width:e},Cm(e)),LL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:DL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ep=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Cm(e)),BL=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Kl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Kl(a)),[`${t}${t}-sm`]:Object.assign({},Kl(l))}},HL=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},Ep(t,u)),[`${r}-lg`]:Object.assign({},Ep(a,u)),[`${r}-sm`]:Object.assign({},Ep(l,u))}},cE=e=>Object.assign({width:e},Cm(e)),FL=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},cE(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cE(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$p=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Cm(e)),VL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},$p(r,u))},wp(e,r,n)),{[`${n}-lg`]:Object.assign({},$p(a,u))}),wp(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$p(l,u))}),wp(e,l,`${n}-sm`))},UL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:l,skeletonInputCls:c,skeletonImageCls:u,controlHeight:d,controlHeightLG:g,controlHeightSM:h,gradientFromColor:p,padding:y,marginSM:E,borderRadius:b,titleHeight:x,blockRadius:S,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:y,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Kl(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Kl(g)),[`${n}-sm`]:Object.assign({},Kl(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:p,borderRadius:S,[`+ ${a}`]:{marginBlockStart:h}},[a]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:p,borderRadius:S,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:E,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},VL(e)),BL(e)),HL(e)),FL(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${a} > li,
        ${n},
        ${l},
        ${c},
        ${u}
      `]:Object.assign({},LL(e))}}},kL=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},us=$n("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Kt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[UL(r)]},kL,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),qL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:l="circle",size:c="default"}=e,{getPrefixCls:u}=f.useContext(gt),d=u("skeleton",t),[g,h,p]=us(d),y=Tn(e,["prefixCls","className"]),E=re(d,`${d}-element`,{[`${d}-active`]:a},n,r,h,p);return g(f.createElement("div",{className:E},f.createElement(Sm,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:c},y))))},WL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l=!1,size:c="default"}=e,{getPrefixCls:u}=f.useContext(gt),d=u("skeleton",t),[g,h,p]=us(d),y=Tn(e,["prefixCls"]),E=re(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,h,p);return g(f.createElement("div",{className:E},f.createElement(Sm,Object.assign({prefixCls:`${d}-button`,size:c},y))))},GL="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",KL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l}=e,{getPrefixCls:c}=f.useContext(gt),u=c("skeleton",t),[d,g,h]=us(u),p=re(u,`${u}-element`,{[`${u}-active`]:l},n,r,g,h);return d(f.createElement("div",{className:p},f.createElement("div",{className:re(`${u}-image`,n),style:a},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},f.createElement("title",null,"Image placeholder"),f.createElement("path",{d:GL,className:`${u}-image-path`})))))},XL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l,size:c="default"}=e,{getPrefixCls:u}=f.useContext(gt),d=u("skeleton",t),[g,h,p]=us(d),y=Tn(e,["prefixCls"]),E=re(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,h,p);return g(f.createElement("div",{className:E},f.createElement(Sm,Object.assign({prefixCls:`${d}-input`,size:c},y))))},YL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l,children:c}=e,{getPrefixCls:u}=f.useContext(gt),d=u("skeleton",t),[g,h,p]=us(d),y=re(d,`${d}-element`,{[`${d}-active`]:l},h,n,r,p);return g(f.createElement("div",{className:y},f.createElement("div",{className:re(`${d}-image`,n),style:a},c)))},QL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},ZL=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,l=Array.from({length:a}).map((c,u)=>f.createElement("li",{key:u,style:{width:QL(u,e)}}));return f.createElement("ul",{className:re(t,n),style:r},l)},JL=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return f.createElement("h3",{className:re(t,n),style:Object.assign({width:r},a)})};function Op(e){return e&&typeof e=="object"?e:{}}function e5(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function t5(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function n5(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const gi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:l,children:c,avatar:u=!1,title:d=!0,paragraph:g=!0,active:h,round:p}=e,{getPrefixCls:y,direction:E,className:b,style:x}=Dr("skeleton"),S=y("skeleton",t),[w,$,O]=us(S);if(n||!("loading"in e)){const _=!!u,R=!!d,T=!!g;let M;if(_){const D=Object.assign(Object.assign({prefixCls:`${S}-avatar`},e5(R,T)),Op(u));M=f.createElement("div",{className:`${S}-header`},f.createElement(Sm,Object.assign({},D)))}let z;if(R||T){let D;if(R){const W=Object.assign(Object.assign({prefixCls:`${S}-title`},t5(_,T)),Op(d));D=f.createElement(JL,Object.assign({},W))}let F;if(T){const W=Object.assign(Object.assign({prefixCls:`${S}-paragraph`},n5(_,R)),Op(g));F=f.createElement(ZL,Object.assign({},W))}z=f.createElement("div",{className:`${S}-content`},D,F)}const A=re(S,{[`${S}-with-avatar`]:_,[`${S}-active`]:h,[`${S}-rtl`]:E==="rtl",[`${S}-round`]:p},b,r,a,$,O);return w(f.createElement("div",{className:A,style:Object.assign(Object.assign({},x),l)},M,z))}return c??null};gi.Button=WL;gi.Avatar=qL;gi.Input=XL;gi.Image=KL;gi.Node=YL;function uE(){}const r5=f.createContext({add:uE,remove:uE});function a5(e){const t=f.useContext(r5),n=f.useRef(null);return An(a=>{if(a){const l=e?a.querySelector(e):a;t.add(l),n.current=l}else t.remove(n.current)})}const fE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(xu);return ae.createElement(Pr,Object.assign({onClick:n},e),t)},dE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=f.useContext(xu);return ae.createElement(Pr,Object.assign({},ry(n),{loading:e,onClick:a},t),r)};function xR(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(as,{className:`${e}-close-icon`}))}const ER=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:l,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:g}=e,[h]=Io("Modal",d2()),p=t||(h==null?void 0:h.okText),y=r||(h==null?void 0:h.cancelText),E={confirmLoading:a,okButtonProps:u,cancelButtonProps:d,okTextLocale:p,cancelTextLocale:y,okType:n,onOk:l,onCancel:c},b=ae.useMemo(()=>E,Te(Object.values(E)));let x;return typeof g=="function"||typeof g>"u"?(x=ae.createElement(ae.Fragment,null,ae.createElement(fE,null),ae.createElement(dE,null)),typeof g=="function"&&(x=g(x,{OkBtn:dE,CancelBtn:fE})),x=ae.createElement(aR,{value:b},x)):x=g,ae.createElement(Y0,{disabled:!1},x)},o5=e=>{const{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"}}}},i5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l5=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,l={};for(let c=a;c>=0;c--)c===0?(l[`${r}${t}-${c}`]={display:"none"},l[`${r}-push-${c}`]={insetInlineStart:"auto"},l[`${r}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${c}`]={marginInlineStart:0},l[`${r}${t}-order-${c}`]={order:0}):(l[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],l[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},l[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},l[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},l[`${r}${t}-order-${c}`]={order:c});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},n0=(e,t)=>l5(e,t),s5=(e,t,n)=>({[`@media (min-width: ${ye(t)})`]:Object.assign({},n0(e,n))}),c5=()=>({}),u5=()=>({}),f5=$n("Grid",o5,c5),wR=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),d5=$n("Grid",e=>{const t=Kt(e,{gridColumns:24}),n=wR(t);return delete n.xs,[i5(t),n0(t,""),n0(t,"-xs"),Object.keys(n).map(r=>s5(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},u5);function mE(e){return{position:e,inset:0}}const m5=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},mE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},mE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:yz(e)}]},g5=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${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: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ye(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},_r(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ye(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ye(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},bu(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ye(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},h5=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p5=e=>{const{componentCls:t}=e,n=wR(e);delete n.xs;const r=Object.keys(n).map(a=>({[`@media (min-width: ${ye(n[a])})`]:{width:`var(--${t.replace(".","")}-${a}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Te(r))}}},$R=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Kt(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,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},OR=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ye(e.paddingMD)} ${ye(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ye(e.padding)} ${ye(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ye(e.paddingXS)} ${ye(e.padding)}`:0,footerBorderTop:e.wireframe?`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ye(e.padding*2)} ${ye(e.padding*2)} ${ye(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),RR=$n("Modal",e=>{const t=$R(e);return[g5(t),h5(t),m5(t),mm(t,"zoom"),p5(t)]},OR,{unitless:{titleLineHeight:!0}});var v5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let r0;const y5=e=>{r0={x:e.pageX,y:e.pageY},setTimeout(()=>{r0=null},100)};zL()&&document.documentElement.addEventListener("click",y5,!0);const _R=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:l,centered:c,getContainer:u,focusTriggerAfterClose:d=!0,style:g,visible:h,width:p=520,footer:y,classNames:E,styles:b,children:x,loading:S,confirmLoading:w,zIndex:$,mousePosition:O,onOk:_,onCancel:R}=e,T=v5(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel"]),{getPopupContainer:M,getPrefixCls:z,direction:A,modal:D}=f.useContext(gt),F=ve=>{w||R==null||R(ve)},W=ve=>{_==null||_(ve)},k=z("modal",t),U=z(),Y=aa(k),[N,P,B]=RR(k,Y),K=re(l,{[`${k}-centered`]:c??(D==null?void 0:D.centered),[`${k}-wrap-rtl`]:A==="rtl"}),j=y!==null&&!S?f.createElement(ER,Object.assign({},e,{onOk:W,onCancel:F})):null,[L,q,G]=PL(oE(e),oE(D),{closable:!0,closeIcon:f.createElement(as,{className:`${k}-close-icon`}),closeIconRender:ve=>xR(k,ve)}),V=a5(`.${k}-content`),[X,ee]=lm("Modal",$),[se,ne]=f.useMemo(()=>p&&typeof p=="object"?[void 0,p]:[p,void 0],[p]),ie=f.useMemo(()=>{const ve={};return ne&&Object.keys(ne).forEach(fe=>{const le=ne[fe];le!==void 0&&(ve[`--${k}-${fe}-width`]=typeof le=="number"?`${le}px`:le)}),ve},[ne]);return N(f.createElement(nu,{form:!0,space:!0},f.createElement(ey.Provider,{value:ee},f.createElement(uR,Object.assign({width:se},T,{zIndex:X,getContainer:u===void 0?M:u,prefixCls:k,rootClassName:re(P,r,B,Y),footer:j,visible:a??h,mousePosition:O??r0,onClose:F,closable:L&&{disabled:G,closeIcon:q},closeIcon:q,focusTriggerAfterClose:d,transitionName:Xi(U,"zoom",e.transitionName),maskTransitionName:Xi(U,"fade",e.maskTransitionName),className:re(P,n,D==null?void 0:D.className),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),g),ie),classNames:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.classNames),E),{wrapper:re(K,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},D==null?void 0:D.styles),b),panelRef:V}),S?f.createElement(gi,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):x))))},b5=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:l,lineHeight:c,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:g}=e,h=`${t}-confirm`;return{[h]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${h}-body-wrapper`]:Object.assign({},Od()),[`&${t} ${t}-body`]:{padding:g},[`${h}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${h}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ye(e.marginSM)})`},[`${e.iconCls} + ${h}-paragraph`]:{maxWidth:`calc(100% - ${ye(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${h}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${h}-content`]:{color:e.colorText,fontSize:l,lineHeight:c},[`${h}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${h}-error ${h}-body > ${e.iconCls}`]:{color:e.colorError},[`${h}-warning ${h}-body > ${e.iconCls},
        ${h}-confirm ${h}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${h}-info ${h}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${h}-success ${h}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},S5=im(["Modal","confirm"],e=>{const t=$R(e);return[b5(t)]},OR,{order:-1e3});var C5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function TR(e){const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:l,type:c,okCancel:u,footer:d,locale:g}=e,h=C5(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let p=n;if(!n&&n!==null)switch(c){case"info":p=f.createElement(D0,null);break;case"success":p=f.createElement(tm,null);break;case"error":p=f.createElement(rs,null);break;default:p=f.createElement(os,null)}const y=u??c==="confirm",E=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=Io("Modal"),x=g||b,S=r||(y?x==null?void 0:x.okText:x==null?void 0:x.justOkText),w=a||(x==null?void 0:x.cancelText),$=Object.assign({autoFocusButton:E,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:y},h),O=f.useMemo(()=>$,Te(Object.values($))),_=f.createElement(f.Fragment,null,f.createElement(Hx,null),f.createElement(Fx,null)),R=e.title!==void 0&&e.title!==null,T=`${l}-body`;return f.createElement("div",{className:`${l}-body-wrapper`},f.createElement("div",{className:re(T,{[`${T}-has-title`]:R})},p,f.createElement("div",{className:`${l}-paragraph`},R&&f.createElement("span",{className:`${l}-title`},e.title),f.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?f.createElement(aR,{value:O},f.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(_,{OkBtn:Fx,CancelBtn:Hx}):_)):d,f.createElement(S5,{prefixCls:t}))}const x5=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:l,wrapClassName:c,rootPrefixCls:u,bodyStyle:d,closable:g=!1,onConfirm:h,styles:p}=e,y=`${l}-confirm`,E=e.width||416,b=e.style||{},x=e.mask===void 0?!0:e.mask,S=e.maskClosable===void 0?!1:e.maskClosable,w=re(y,`${y}-${e.type}`,{[`${y}-rtl`]:a==="rtl"},e.className),[,$]=Lr(),O=f.useMemo(()=>n!==void 0?n:$.zIndexPopupBase+ty,[n,$]);return f.createElement(_R,Object.assign({},e,{className:w,wrapClassName:re({[`${y}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),h==null||h(!1)},title:"",footer:null,transitionName:Xi(u||"","zoom",e.transitionName),maskTransitionName:Xi(u||"","fade",e.maskTransitionName),mask:x,maskClosable:S,style:b,styles:Object.assign({body:d,mask:r},p),width:E,zIndex:O,closable:g}),f.createElement(TR,Object.assign({},e,{confirmPrefixCls:y})))},MR=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return f.createElement(La,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},f.createElement(x5,Object.assign({},e)))},Fi=[];let NR="";function jR(){return NR}const E5=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:l}=e,c=d2(),u=f.useContext(gt),d=jR()||u.getPrefixCls(),g=r||`${d}-modal`;let h=a;return h===!1&&(h=void 0),ae.createElement(MR,Object.assign({},e,{rootPrefixCls:d,prefixCls:g,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:c,getContainer:h}))};function wu(e){const t=Z0(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,l;function c(){for(var h,p=arguments.length,y=new Array(p),E=0;E<p;E++)y[E]=arguments[E];if(y.some(S=>S==null?void 0:S.triggerCancel)){var x;(h=e.onCancel)===null||h===void 0||(x=h).call.apply(x,[e,()=>{}].concat(Te(y.slice(1))))}for(let S=0;S<Fi.length;S++)if(Fi[S]===d){Fi.splice(S,1);break}l()}function u(h){clearTimeout(a),a=setTimeout(()=>{const p=t.getPrefixCls(void 0,jR()),y=t.getIconPrefixCls(),E=t.getTheme(),b=ae.createElement(E5,Object.assign({},h));l=cm()(ae.createElement(La,{prefixCls:p,iconPrefixCls:y,theme:E},t.holderRender?t.holderRender(b):b),n)})}function d(){for(var h=arguments.length,p=new Array(h),y=0;y<h;y++)p[y]=arguments[y];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),c.apply(this,p)}}),r.visible&&delete r.visible,u(r)}function g(h){typeof h=="function"?r=h(r):r=Object.assign(Object.assign({},r),h),u(r)}return u(r),Fi.push(d),{destroy:d,update:g}}function IR(e){return Object.assign(Object.assign({},e),{type:"warning"})}function PR(e){return Object.assign(Object.assign({},e),{type:"info"})}function AR(e){return Object.assign(Object.assign({},e),{type:"success"})}function zR(e){return Object.assign(Object.assign({},e),{type:"error"})}function DR(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function w5(e){let{rootPrefixCls:t}=e;NR=t}var $5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const O5=(e,t)=>{var n,{afterClose:r,config:a}=e,l=$5(e,["afterClose","config"]);const[c,u]=f.useState(!0),[d,g]=f.useState(a),{direction:h,getPrefixCls:p}=f.useContext(gt),y=p("modal"),E=p(),b=()=>{var $;r(),($=d.afterClose)===null||$===void 0||$.call(d)},x=function(){var $;u(!1);for(var O=arguments.length,_=new Array(O),R=0;R<O;R++)_[R]=arguments[R];if(_.some(z=>z==null?void 0:z.triggerCancel)){var M;($=d.onCancel)===null||$===void 0||(M=$).call.apply(M,[d,()=>{}].concat(Te(_.slice(1))))}};f.useImperativeHandle(t,()=>({destroy:x,update:$=>{g(O=>Object.assign(Object.assign({},O),$))}}));const S=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[w]=Io("Modal",wo.Modal);return f.createElement(MR,Object.assign({prefixCls:y,rootPrefixCls:E},d,{close:x,open:c,afterClose:b,okText:d.okText||(S?w==null?void 0:w.okText:w==null?void 0:w.justOkText),direction:d.direction||h,cancelText:d.cancelText||(w==null?void 0:w.cancelText)},l))},R5=f.forwardRef(O5);let gE=0;const _5=f.memo(f.forwardRef((e,t)=>{const[n,r]=C6();return f.useImperativeHandle(t,()=>({patchElement:r}),[]),f.createElement(f.Fragment,null,n)}));function T5(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(Te(t).forEach(c=>{c()}),n([]))},[t]);const r=f.useCallback(l=>function(u){var d;gE+=1;const g=f.createRef();let h;const p=new Promise(S=>{h=S});let y=!1,E;const b=f.createElement(R5,{key:`modal-${gE}`,config:l(u),ref:g,afterClose:()=>{E==null||E()},isSilent:()=>y,onConfirm:S=>{h(S)}});return E=(d=e.current)===null||d===void 0?void 0:d.patchElement(b),E&&Fi.push(E),{destroy:()=>{function S(){var w;(w=g.current)===null||w===void 0||w.destroy()}g.current?S():n(w=>[].concat(Te(w),[S]))},update:S=>{function w(){var $;($=g.current)===null||$===void 0||$.update(S)}g.current?w():n($=>[].concat(Te($),[w]))},then:S=>(y=!0,p.then(S))}},[]);return[f.useMemo(()=>({info:r(PR),success:r(AR),error:r(zR),warning:r(IR),confirm:r(DR)}),[]),f.createElement(_5,{key:"modal-holder",ref:e})]}const M5=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,l=new zt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new zt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new zt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new zt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:d}}}}},N5=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],j5={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},I5=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[j5[t]]:{value:0,_skip_check_:!0}}}}},P5=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},A5=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},z5=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},P5(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},A5(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},N5.map(n=>I5(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},LR=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:l,borderRadiusLG:c,colorSuccess:u,colorInfo:d,colorWarning:g,colorError:h,colorTextHeading:p,notificationBg:y,notificationPadding:E,notificationMarginEdge:b,notificationProgressBg:x,notificationProgressHeight:S,fontSize:w,lineHeight:$,width:O,notificationIconSize:_,colorText:R}=e,T=`${n}-notice`;return{position:"relative",marginBottom:l,marginInlineStart:"auto",background:y,borderRadius:c,boxShadow:r,[T]:{padding:E,width:O,maxWidth:`calc(100vw - ${ye(e.calc(b).mul(2).equal())})`,overflow:"hidden",lineHeight:$,wordWrap:"break-word"},[`${T}-message`]:{marginBottom:e.marginXS,color:p,fontSize:a,lineHeight:e.lineHeightLG},[`${T}-description`]:{fontSize:w,color:R},[`${T}-closable ${T}-message`]:{paddingInlineEnd:e.paddingLG},[`${T}-with-icon ${T}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:a},[`${T}-with-icon ${T}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:w},[`${T}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:d},[`&-warning${t}`]:{color:g},[`&-error${t}`]:{color:h}},[`${T}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},bu(e)),[`${T}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ye(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:S,border:0,"&, &::-webkit-progress-bar":{borderRadius:c,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:c,background:x}},[`${T}-actions`]:{float:"right",marginTop:e.marginSM}}},D5=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:l}=e,c=`${t}-notice`,u=new zt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},_r(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${c}-actions`]:{float:"left"}}})},{[t]:{[`${c}-wrapper`]:Object.assign({},LR(e))}}]},BR=e=>({zIndexPopup:e.zIndexPopupBase+ty+50,width:384}),HR=e=>{const t=e.paddingMD,n=e.paddingLG;return Kt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ye(e.paddingMD)} ${ye(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},FR=$n("Notification",e=>{const t=HR(e);return[D5(t),M5(t),z5(t)]},BR),L5=im(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=HR(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},LR(n)),{width:n.width,maxWidth:`calc(100vw - ${ye(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},BR);var B5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function py(e,t){return t===null||t===!1?null:t||f.createElement(as,{className:`${e}-close-icon`})}const H5={success:tm,info:D0,error:rs,warning:os},VR=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:l,actions:c,role:u="alert"}=e;let d=null;return n?d=f.createElement("span",{className:`${t}-icon`},n):r&&(d=f.createElement(H5[r]||null,{className:re(`${t}-icon`,`${t}-icon-${r}`)})),f.createElement("div",{className:re({[`${t}-with-icon`]:d}),role:u},d,f.createElement("div",{className:`${t}-message`},a),f.createElement("div",{className:`${t}-description`},l),c&&f.createElement("div",{className:`${t}-actions`},c))},F5=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:l,description:c,btn:u,actions:d,closable:g=!0,closeIcon:h,className:p}=e,y=B5(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:E}=f.useContext(gt),b=d??u,x=t||E("notification"),S=`${x}-notice`,w=aa(x),[$,O,_]=FR(x,w);return $(f.createElement("div",{className:re(`${S}-pure-panel`,O,n,_,w)},f.createElement(L5,{prefixCls:x}),f.createElement(J0,Object.assign({},y,{prefixCls:x,eventKey:"pure",duration:null,closable:g,className:re({notificationClassName:p}),closeIcon:py(x,h),content:f.createElement(VR,{prefixCls:S,icon:r,type:a,message:l,description:c,actions:b})}))))};function V5(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function U5(e){return{motionName:`${e}-fade`}}function k5(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var q5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hE=24,W5=4.5,G5="topRight",K5=e=>{let{children:t,prefixCls:n}=e;const r=aa(n),[a,l,c]=FR(n,r);return a(ae.createElement(H2,{classNames:{list:re(l,c,r)}},t))},X5=(e,t)=>{let{prefixCls:n,key:r}=t;return ae.createElement(K5,{prefixCls:n,key:r},e)},Y5=ae.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:l,maxCount:c,rtl:u,onAllRemoved:d,stack:g,duration:h,pauseOnHover:p=!0,showProgress:y}=e,{getPrefixCls:E,getPopupContainer:b,notification:x,direction:S}=f.useContext(gt),[,w]=Lr(),$=a||E("notification"),O=z=>V5(z,n??hE,r??hE),_=()=>re({[`${$}-rtl`]:u??S==="rtl"}),R=()=>U5($),[T,M]=F2({prefixCls:$,style:O,className:_,motion:R,closable:!0,closeIcon:py($),duration:h??W5,getContainer:()=>(l==null?void 0:l())||(b==null?void 0:b())||document.body,maxCount:c,pauseOnHover:p,showProgress:y,onAllRemoved:d,renderNotifications:X5,stack:g===!1?!1:{threshold:typeof g=="object"?g==null?void 0:g.threshold:void 0,offset:8,gap:w.margin}});return ae.useImperativeHandle(t,()=>Object.assign(Object.assign({},T),{prefixCls:$,notification:x})),M});function UR(e){const t=ae.useRef(null);return yu(),[ae.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:g,prefixCls:h,notification:p}=t.current,y=`${h}-notice`,{message:E,description:b,icon:x,type:S,btn:w,actions:$,className:O,style:_,role:R="alert",closeIcon:T,closable:M}=u,z=q5(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),A=$??w,D=py(y,k5(T,e,p));return g(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:G5},z),{content:ae.createElement(VR,{prefixCls:y,icon:x,type:S,message:E,description:b,actions:A,role:R}),className:re(S&&`${y}-${S}`,O,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),_),closeIcon:D,closable:M??!!D}))},l={open:r,destroy:u=>{var d,g;u!==void 0?(d=t.current)===null||d===void 0||d.close(u):(g=t.current)===null||g===void 0||g.destroy()}};return["success","info","warning","error"].forEach(u=>{l[u]=d=>r(Object.assign(Object.assign({},d),{type:u}))}),l},[]),ae.createElement(Y5,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Q5(e){return UR(e)}const kR=ae.createContext({});function qR(e){return t=>f.createElement(La,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,Object.assign({},t)))}const Z5=(e,t,n,r,a)=>qR(c=>{const{prefixCls:u,style:d}=c,g=f.useRef(null),[h,p]=f.useState(0),[y,E]=f.useState(0),[b,x]=vr(!1,{value:c.open}),{getPrefixCls:S}=f.useContext(gt),w=S(r||"select",u);f.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(T=>{const M=T[0].target;p(M.offsetHeight+8),E(M.offsetWidth)}),R=setInterval(()=>{var T;const M=a?`.${a(w)}`:`.${w}-dropdown`,z=(T=g.current)===null||T===void 0?void 0:T.querySelector(M);z&&(clearInterval(R),_.observe(z))},10);return()=>{clearInterval(R),_.disconnect()}}},[]);let $=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:b,visible:b,getPopupContainer:()=>g.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:h,position:"relative",minWidth:y};return f.createElement("div",{ref:g,style:O},f.createElement(e,Object.assign({},$)))}),WR=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var xm=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,l=t.children,c=t.onMouseDown,u=t.onClick,d=typeof r=="function"?r(a):r;return f.createElement("span",{className:n,onMouseDown:function(h){h.preventDefault(),c==null||c(h)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:f.createElement("span",{className:re(n.split(/\s+/).map(function(g){return"".concat(g,"-icon")}))},l))},J5=function(t,n,r,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,g=ae.useMemo(function(){if(lt(a)==="object")return a.clearIcon;if(l)return l},[a,l]),h=ae.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:h,clearIcon:ae.createElement(xm,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:g},"×")}},GR=f.createContext(null);function e8(){return f.useContext(GR)}function t8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f.useState(!1),n=ge(t,2),r=n[0],a=n[1],l=f.useRef(null),c=function(){window.clearTimeout(l.current)};f.useEffect(function(){return c},[]);var u=function(g,h){c(),l.current=window.setTimeout(function(){a(g),h&&h()},e)};return[r,u,c]}function KR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);f.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function n8(e,t,n,r){var a=f.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},f.useEffect(function(){function l(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),a.current.open&&e().filter(function(g){return g}).every(function(g){return!g.contains(d)&&g!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function r8(e){return e&&![ct.ESC,ct.SHIFT,ct.BACKSPACE,ct.TAB,ct.WIN_KEY,ct.ALT,ct.META,ct.WIN_KEY_RIGHT,ct.CTRL,ct.SEMICOLON,ct.EQUALS,ct.CAPS_LOCK,ct.CONTEXT_MENU,ct.F1,ct.F2,ct.F3,ct.F4,ct.F5,ct.F6,ct.F7,ct.F8,ct.F9,ct.F10,ct.F11,ct.F12].includes(e)}var a8=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Dl=void 0;function o8(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,l=e.renderItem,c=e.responsive,u=e.responsiveDisabled,d=e.registerSize,g=e.itemKey,h=e.className,p=e.style,y=e.children,E=e.display,b=e.order,x=e.component,S=x===void 0?"div":x,w=$t(e,a8),$=c&&!E;function O(z){d(g,z)}f.useEffect(function(){return function(){O(null)}},[]);var _=l&&a!==Dl?l(a,{index:b}):y,R;r||(R={opacity:$?0:1,height:$?0:Dl,overflowY:$?"hidden":Dl,order:c?b:Dl,pointerEvents:$?"none":Dl,position:$?"absolute":Dl});var T={};$&&(T["aria-hidden"]=!0);var M=f.createElement(S,Pe({className:re(!r&&n,h),style:J(J({},R),p)},T,w,{ref:t}),_);return c&&(M=f.createElement(jo,{onResize:function(A){var D=A.offsetWidth;O(D)},disabled:u},M)),M}var Vc=f.forwardRef(o8);Vc.displayName="Item";function i8(e){if(typeof MessageChannel>"u")yn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function l8(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],i8(function(){ui.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function gc(e,t){var n=f.useState(t),r=ge(n,2),a=r[0],l=r[1],c=An(function(u){e(function(){l(u)})});return[a,c]}var Nd=ae.createContext(null),s8=["component"],c8=["className"],u8=["className"],f8=function(t,n){var r=f.useContext(Nd);if(!r){var a=t.component,l=a===void 0?"div":a,c=$t(t,s8);return f.createElement(l,Pe({},c,{ref:n}))}var u=r.className,d=$t(r,c8),g=t.className,h=$t(t,u8);return f.createElement(Nd.Provider,{value:null},f.createElement(Vc,Pe({ref:n,className:re(u,g)},d,h)))},XR=f.forwardRef(f8);XR.displayName="RawItem";var d8=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],YR="responsive",QR="invalidate";function m8(e){return"+ ".concat(e.length," ...")}function g8(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,l=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,g=e.itemWidth,h=g===void 0?10:g,p=e.ssr,y=e.style,E=e.className,b=e.maxCount,x=e.renderRest,S=e.renderRawRest,w=e.suffix,$=e.component,O=$===void 0?"div":$,_=e.itemComponent,R=e.onVisibleChange,T=$t(e,d8),M=p==="full",z=l8(),A=gc(z,null),D=ge(A,2),F=D[0],W=D[1],k=F||0,U=gc(z,new Map),Y=ge(U,2),N=Y[0],P=Y[1],B=gc(z,0),K=ge(B,2),j=K[0],L=K[1],q=gc(z,0),G=ge(q,2),V=G[0],X=G[1],ee=gc(z,0),se=ge(ee,2),ne=se[0],ie=se[1],ve=f.useState(null),fe=ge(ve,2),le=fe[0],be=fe[1],_e=f.useState(null),ce=ge(_e,2),Se=ce[0],Oe=ce[1],$e=f.useMemo(function(){return Se===null&&M?Number.MAX_SAFE_INTEGER:Se||0},[Se,F]),je=f.useState(!1),Ze=ge(je,2),He=Ze[0],Xe=Ze[1],Ee="".concat(r,"-item"),Me=Math.max(j,V),Ve=b===YR,Ke=l.length&&Ve,qe=b===QR,at=Ke||typeof b=="number"&&l.length>b,Ue=f.useMemo(function(){var nt=l;return Ke?F===null&&M?nt=l:nt=l.slice(0,Math.min(l.length,k/h)):typeof b=="number"&&(nt=l.slice(0,b)),nt},[l,h,F,b,Ke]),Ye=f.useMemo(function(){return Ke?l.slice($e+1):l.slice(Ue.length)},[l,Ue,Ke,$e]),st=f.useCallback(function(nt,We){var Le;return typeof d=="function"?d(nt):(Le=d&&(nt==null?void 0:nt[d]))!==null&&Le!==void 0?Le:We},[d]),pt=f.useCallback(c||function(nt){return nt},[c]);function Qe(nt,We,Le){Se===nt&&(We===void 0||We===le)||(Oe(nt),Le||(Xe(nt<l.length-1),R==null||R(nt)),We!==void 0&&be(We))}function ze(nt,We){W(We.clientWidth)}function Fe(nt,We){P(function(Le){var vt=new Map(Le);return We===null?vt.delete(nt):vt.set(nt,We),vt})}function Ne(nt,We){X(We),L(V)}function ke(nt,We){ie(We)}function xt(nt){return N.get(st(Ue[nt],nt))}Gt(function(){if(k&&typeof Me=="number"&&Ue){var nt=ne,We=Ue.length,Le=We-1;if(!We){Qe(0,null);return}for(var vt=0;vt<We;vt+=1){var St=xt(vt);if(M&&(St=St||0),St===void 0){Qe(vt-1,void 0,!0);break}if(nt+=St,Le===0&&nt<=k||vt===Le-1&&nt+xt(Le)<=k){Qe(Le,null);break}else if(nt+Me>k){Qe(vt-1,nt-St-ne+V);break}}w&&xt(0)+ne>k&&be(null)}},[k,N,V,ne,st,Ue]);var jt=He&&!!Ye.length,Nn={};le!==null&&Ke&&(Nn={position:"absolute",left:le,top:0});var xn={prefixCls:Ee,responsive:Ke,component:_,invalidate:qe},On=u?function(nt,We){var Le=st(nt,We);return f.createElement(Nd.Provider,{key:Le,value:J(J({},xn),{},{order:We,item:nt,itemKey:Le,registerSize:Fe,display:We<=$e})},u(nt,We))}:function(nt,We){var Le=st(nt,We);return f.createElement(Vc,Pe({},xn,{order:We,key:Le,item:nt,renderItem:pt,itemKey:Le,registerSize:Fe,display:We<=$e}))},fn={order:jt?$e:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:Ne,display:jt},Vt=x||m8,on=S?f.createElement(Nd.Provider,{value:J(J({},xn),fn)},S(Ye)):f.createElement(Vc,Pe({},xn,fn),typeof Vt=="function"?Vt(Ye):Vt),wt=f.createElement(O,Pe({className:re(!qe&&r,E),style:y,ref:t},T),Ue.map(On),at?on:null,w&&f.createElement(Vc,Pe({},xn,{responsive:Ve,responsiveDisabled:!Ke,order:$e,className:"".concat(Ee,"-suffix"),registerSize:ke,display:!0,style:Nn}),w));return Ve?f.createElement(jo,{onResize:ze,disabled:!Ke},wt):wt}var Qa=f.forwardRef(g8);Qa.displayName="Overflow";Qa.Item=XR;Qa.RESPONSIVE=YR;Qa.INVALIDATE=QR;var h8=function(t,n){var r,a=t.prefixCls,l=t.id,c=t.inputElement,u=t.disabled,d=t.tabIndex,g=t.autoFocus,h=t.autoComplete,p=t.editable,y=t.activeDescendantId,E=t.value,b=t.maxLength,x=t.onKeyDown,S=t.onMouseDown,w=t.onChange,$=t.onPaste,O=t.onCompositionStart,_=t.onCompositionEnd,R=t.onBlur,T=t.open,M=t.attrs,z=c||f.createElement("input",null),A=z,D=A.ref,F=A.props,W=F.onKeyDown,k=F.onChange,U=F.onMouseDown,Y=F.onCompositionStart,N=F.onCompositionEnd,P=F.onBlur,B=F.style;return"maxLength"in z.props,z=f.cloneElement(z,J(J(J({type:"search"},F),{},{id:l,ref:Da(n,D),disabled:u,tabIndex:d,autoComplete:h||"off",autoFocus:g,className:re("".concat(a,"-selection-search-input"),(r=z)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":T||!1,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":T?y:void 0},M),{},{value:p?E:"",maxLength:b,readOnly:!p,unselectable:p?null:"on",style:J(J({},B),{},{opacity:p?null:0}),onKeyDown:function(j){x(j),W&&W(j)},onMouseDown:function(j){S(j),U&&U(j)},onChange:function(j){w(j),k&&k(j)},onCompositionStart:function(j){O(j),Y&&Y(j)},onCompositionEnd:function(j){_(j),N&&N(j)},onPaste:$,onBlur:function(j){R(j),P&&P(j)}})),z},ZR=f.forwardRef(h8);function JR(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var p8=typeof window<"u"&&window.document&&window.document.documentElement,v8=p8;function y8(e){return e!=null}function b8(e){return!e&&e!==0}function pE(e){return["string","number"].includes(lt(e))}function e_(e){var t=void 0;return e&&(pE(e.title)?t=e.title.toString():pE(e.label)&&(t=e.label.toString())),t}function S8(e,t){v8?f.useLayoutEffect(e,t):f.useEffect(e,t)}function C8(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var vE=function(t){t.preventDefault(),t.stopPropagation()},x8=function(t){var n=t.id,r=t.prefixCls,a=t.values,l=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,g=t.placeholder,h=t.disabled,p=t.mode,y=t.showSearch,E=t.autoFocus,b=t.autoComplete,x=t.activeDescendantId,S=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,O=t.maxTagTextLength,_=t.maxTagPlaceholder,R=_===void 0?function(_e){return"+ ".concat(_e.length," ...")}:_,T=t.tagRender,M=t.onToggleOpen,z=t.onRemove,A=t.onInputChange,D=t.onInputPaste,F=t.onInputKeyDown,W=t.onInputMouseDown,k=t.onInputCompositionStart,U=t.onInputCompositionEnd,Y=t.onInputBlur,N=f.useRef(null),P=f.useState(0),B=ge(P,2),K=B[0],j=B[1],L=f.useState(!1),q=ge(L,2),G=q[0],V=q[1],X="".concat(r,"-selection"),ee=l||p==="multiple"&&u===!1||p==="tags"?c:"",se=p==="tags"||p==="multiple"&&u===!1||y&&(l||G);S8(function(){j(N.current.scrollWidth)},[ee]);var ne=function(ce,Se,Oe,$e,je){return f.createElement("span",{title:e_(ce),className:re("".concat(X,"-item"),Q({},"".concat(X,"-item-disabled"),Oe))},f.createElement("span",{className:"".concat(X,"-item-content")},Se),$e&&f.createElement(xm,{className:"".concat(X,"-item-remove"),onMouseDown:vE,onClick:je,customizeIcon:w},"×"))},ie=function(ce,Se,Oe,$e,je,Ze){var He=function(Ee){vE(Ee),M(!l)};return f.createElement("span",{onMouseDown:He},T({label:Se,value:ce,disabled:Oe,closable:$e,onClose:je,isMaxTag:!!Ze}))},ve=function(ce){var Se=ce.disabled,Oe=ce.label,$e=ce.value,je=!h&&!Se,Ze=Oe;if(typeof O=="number"&&(typeof Oe=="string"||typeof Oe=="number")){var He=String(Ze);He.length>O&&(Ze="".concat(He.slice(0,O),"..."))}var Xe=function(Me){Me&&Me.stopPropagation(),z(ce)};return typeof T=="function"?ie($e,Ze,Se,je,Xe):ne(ce,Ze,Se,je,Xe)},fe=function(ce){if(!a.length)return null;var Se=typeof R=="function"?R(ce):R;return typeof T=="function"?ie(void 0,Se,!1,!1,void 0,!0):ne({title:Se},Se,!1)},le=f.createElement("div",{className:"".concat(X,"-search"),style:{width:K},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},f.createElement(ZR,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:h,autoFocus:E,autoComplete:b,editable:se,activeDescendantId:x,value:ee,onKeyDown:F,onMouseDown:W,onChange:A,onPaste:D,onCompositionStart:k,onCompositionEnd:U,onBlur:Y,tabIndex:S,attrs:Za(t,!0)}),f.createElement("span",{ref:N,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},ee," ")),be=f.createElement(Qa,{prefixCls:"".concat(X,"-overflow"),data:a,renderItem:ve,renderRest:fe,suffix:le,itemKey:C8,maxCount:$});return f.createElement("span",{className:"".concat(X,"-wrap")},be,!a.length&&!ee&&f.createElement("span",{className:"".concat(X,"-placeholder")},g))},E8=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,l=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,g=t.activeDescendantId,h=t.mode,p=t.open,y=t.values,E=t.placeholder,b=t.tabIndex,x=t.showSearch,S=t.searchValue,w=t.activeValue,$=t.maxLength,O=t.onInputKeyDown,_=t.onInputMouseDown,R=t.onInputChange,T=t.onInputPaste,M=t.onInputCompositionStart,z=t.onInputCompositionEnd,A=t.onInputBlur,D=t.title,F=f.useState(!1),W=ge(F,2),k=W[0],U=W[1],Y=h==="combobox",N=Y||x,P=y[0],B=S||"";Y&&w&&!k&&(B=w),f.useEffect(function(){Y&&U(!1)},[Y,w]);var K=h!=="combobox"&&!p&&!x?!1:!!B,j=D===void 0?e_(P):D,L=f.useMemo(function(){return P?null:f.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},E)},[P,K,E,r]);return f.createElement("span",{className:"".concat(r,"-selection-wrap")},f.createElement("span",{className:"".concat(r,"-selection-search")},f.createElement(ZR,{ref:l,prefixCls:r,id:a,open:p,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:N,activeDescendantId:g,value:B,onKeyDown:O,onMouseDown:_,onChange:function(G){U(!0),R(G)},onPaste:T,onCompositionStart:M,onCompositionEnd:z,onBlur:A,tabIndex:b,attrs:Za(t,!0),maxLength:Y?$:void 0})),!Y&&P?f.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:K?{visibility:"hidden"}:void 0},P.label):null,L)},w8=function(t,n){var r=f.useRef(null),a=f.useRef(!1),l=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,g=t.tokenWithEnter,h=t.disabled,p=t.prefix,y=t.autoClearSearchValue,E=t.onSearch,b=t.onSearchSubmit,x=t.onToggleOpen,S=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;f.useImperativeHandle(n,function(){return{focus:function(j){r.current.focus(j)},blur:function(){r.current.blur()}}});var O=KR(0),_=ge(O,2),R=_[0],T=_[1],M=function(j){var L=j.which,q=r.current instanceof HTMLTextAreaElement;!q&&c&&(L===ct.UP||L===ct.DOWN)&&j.preventDefault(),S&&S(j),L===ct.ENTER&&u==="tags"&&!a.current&&!c&&(b==null||b(j.target.value)),!(q&&!c&&~[ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT].indexOf(L))&&r8(L)&&x(!0)},z=function(){T(!0)},A=f.useRef(null),D=function(j){E(j,!0,a.current)!==!1&&x(!0)},F=function(){a.current=!0},W=function(j){a.current=!1,u!=="combobox"&&D(j.target.value)},k=function(j){var L=j.target.value;if(g&&A.current&&/[\r\n]/.test(A.current)){var q=A.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(q,A.current)}A.current=null,D(L)},U=function(j){var L=j.clipboardData,q=L==null?void 0:L.getData("text");A.current=q||""},Y=function(j){var L=j.target;if(L!==r.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){r.current.focus()}):r.current.focus()}},N=function(j){var L=R();j.target!==r.current&&!L&&!(u==="combobox"&&h)&&j.preventDefault(),(u!=="combobox"&&(!d||!L)||!c)&&(c&&y!==!1&&E("",!0,!1),x())},P={inputRef:r,onInputKeyDown:M,onInputMouseDown:z,onInputChange:k,onInputPaste:U,onInputCompositionStart:F,onInputCompositionEnd:W,onInputBlur:w},B=u==="multiple"||u==="tags"?f.createElement(x8,Pe({},t,P)):f.createElement(E8,Pe({},t,P));return f.createElement("div",{ref:$,className:"".concat(l,"-selector"),onClick:Y,onMouseDown:N},p&&f.createElement("div",{className:"".concat(l,"-prefix")},p),B)},$8=f.forwardRef(w8);function O8(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,l=r||{},c=l.className,u=l.content,d=a.x,g=d===void 0?0:d,h=a.y,p=h===void 0?0:h,y=f.useRef();if(!n||!n.points)return null;var E={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],x=n.points[1],S=b[0],w=b[1],$=x[0],O=x[1];S===$||!["t","b"].includes(S)?E.top=p:S==="t"?E.top=0:E.bottom=0,w===O||!["l","r"].includes(w)?E.left=g:w==="l"?E.left=0:E.right=0}return f.createElement("div",{ref:y,className:re("".concat(t,"-arrow"),c),style:E},u)}function R8(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,l=e.motion;return a?f.createElement(eo,Pe({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return f.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),u)})}):null}var _8=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),T8=f.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,l=e.style,c=e.target,u=e.onVisibleChanged,d=e.open,g=e.keepDom,h=e.fresh,p=e.onClick,y=e.mask,E=e.arrow,b=e.arrowPos,x=e.align,S=e.motion,w=e.maskMotion,$=e.forceRender,O=e.getPopupContainer,_=e.autoDestroy,R=e.portal,T=e.zIndex,M=e.onMouseEnter,z=e.onMouseLeave,A=e.onPointerEnter,D=e.onPointerDownCapture,F=e.ready,W=e.offsetX,k=e.offsetY,U=e.offsetR,Y=e.offsetB,N=e.onAlign,P=e.onPrepare,B=e.stretch,K=e.targetWidth,j=e.targetHeight,L=typeof n=="function"?n():n,q=d||g,G=(O==null?void 0:O.length)>0,V=f.useState(!O||!G),X=ge(V,2),ee=X[0],se=X[1];if(Gt(function(){!ee&&G&&c&&se(!0)},[ee,G,c]),!ee)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(F||!d){var ve,fe=x.points,le=x.dynamicInset||((ve=x._experimental)===null||ve===void 0?void 0:ve.dynamicInset),be=le&&fe[0][1]==="r",_e=le&&fe[0][0]==="b";be?(ie.right=U,ie.left=ne):(ie.left=W,ie.right=ne),_e?(ie.bottom=Y,ie.top=ne):(ie.top=k,ie.bottom=ne)}var ce={};return B&&(B.includes("height")&&j?ce.height=j:B.includes("minHeight")&&j&&(ce.minHeight=j),B.includes("width")&&K?ce.width=K:B.includes("minWidth")&&K&&(ce.minWidth=K)),d||(ce.pointerEvents="none"),f.createElement(R,{open:$||q,getContainer:O&&function(){return O(c)},autoDestroy:_},f.createElement(R8,{prefixCls:a,open:d,zIndex:T,mask:y,motion:w}),f.createElement(jo,{onResize:N,disabled:!d},function(Se){return f.createElement(eo,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},S,{onAppearPrepare:P,onEnterPrepare:P,visible:d,onVisibleChanged:function($e){var je;S==null||(je=S.onVisibleChanged)===null||je===void 0||je.call(S,$e),u($e)}}),function(Oe,$e){var je=Oe.className,Ze=Oe.style,He=re(a,je,r);return f.createElement("div",{ref:Da(Se,t,$e),className:He,style:J(J(J(J({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ie),ce),Ze),{},{boxSizing:"border-box",zIndex:T},l),onMouseEnter:M,onMouseLeave:z,onPointerEnter:A,onClick:p,onPointerDownCapture:D},E&&f.createElement(O8,{prefixCls:a,arrow:E,arrowPos:b,align:x}),f.createElement(_8,{cache:!d&&!h},L))})}))}),M8=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=el(n),l=f.useCallback(function(u){L0(t,r?r(u):u)},[r]),c=mi(l,is(n));return a?f.cloneElement(n,{ref:c}):n}),yE=f.createContext(null);function bE(e){return e?Array.isArray(e)?e:[e]:[]}function N8(e,t,n,r){return f.useMemo(function(){var a=bE(n??t),l=bE(r??t),c=new Set(a),u=new Set(l);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[c,u]},[e,t,n,r])}function j8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function I8(e,t,n,r){for(var a=n.points,l=Object.keys(e),c=0;c<l.length;c+=1){var u,d=l[c];if(j8((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function SE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function $u(e){return e.ownerDocument.defaultView}function a0(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=$u(n).getComputedStyle(n),l=a.overflowX,c=a.overflowY,u=a.overflow;[l,c,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function hc(e){return ru(parseFloat(e),0)}function CE(e,t){var n=J({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=$u(r).getComputedStyle(r),l=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,d=a.borderBottomWidth,g=a.borderLeftWidth,h=a.borderRightWidth,p=r.getBoundingClientRect(),y=r.offsetHeight,E=r.clientHeight,b=r.offsetWidth,x=r.clientWidth,S=hc(u),w=hc(d),$=hc(g),O=hc(h),_=ru(Math.round(p.width/b*1e3)/1e3),R=ru(Math.round(p.height/y*1e3)/1e3),T=(b-x-$-O)*_,M=(y-E-S-w)*R,z=S*R,A=w*R,D=$*_,F=O*_,W=0,k=0;if(l==="clip"){var U=hc(c);W=U*_,k=U*R}var Y=p.x+D-W,N=p.y+z-k,P=Y+p.width+2*W-D-F-T,B=N+p.height+2*k-z-A-M;n.left=Math.max(n.left,Y),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,B)}}),n}function xE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function EE(e,t){var n=t||[],r=ge(n,2),a=r[0],l=r[1];return[xE(e.width,a),xE(e.height,l)]}function wE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ll(e,t){var n=t[0],r=t[1],a,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:l}}function ri(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function P8(e,t,n,r,a,l,c){var u=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=ge(u,2),g=d[0],h=d[1],p=f.useRef(0),y=f.useMemo(function(){return t?a0(t):[]},[t]),E=f.useRef({}),b=function(){E.current={}};e||b();var x=An(function(){if(t&&n&&e){let Tr=function(Va,ia){var $r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Me,la=V.x+Va,yi=V.y+ia,bi=la+be,rl=yi+le,ro=Math.max(la,$r.left),Ge=Math.max(yi,$r.top),dt=Math.min(bi,$r.right),rn=Math.min(rl,$r.bottom);return Math.max(0,(dt-ro)*(rn-Ge))},no=function(){en=V.y+Le,ln=en+le,_t=V.x+We,nr=_t+be};var $,O,_,R,T=t,M=T.ownerDocument,z=$u(T),A=z.getComputedStyle(T),D=A.width,F=A.height,W=A.position,k=T.style.left,U=T.style.top,Y=T.style.right,N=T.style.bottom,P=T.style.overflow,B=J(J({},a[r]),l),K=M.createElement("div");($=T.parentElement)===null||$===void 0||$.appendChild(K),K.style.left="".concat(T.offsetLeft,"px"),K.style.top="".concat(T.offsetTop,"px"),K.style.position=W,K.style.height="".concat(T.offsetHeight,"px"),K.style.width="".concat(T.offsetWidth,"px"),T.style.left="0",T.style.top="0",T.style.right="auto",T.style.bottom="auto",T.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var L,q,G=n.getBoundingClientRect();G.x=(L=G.x)!==null&&L!==void 0?L:G.left,G.y=(q=G.y)!==null&&q!==void 0?q:G.top,j={x:G.x,y:G.y,width:G.width,height:G.height}}var V=T.getBoundingClientRect();V.x=(O=V.x)!==null&&O!==void 0?O:V.left,V.y=(_=V.y)!==null&&_!==void 0?_:V.top;var X=M.documentElement,ee=X.clientWidth,se=X.clientHeight,ne=X.scrollWidth,ie=X.scrollHeight,ve=X.scrollTop,fe=X.scrollLeft,le=V.height,be=V.width,_e=j.height,ce=j.width,Se={left:0,top:0,right:ee,bottom:se},Oe={left:-fe,top:-ve,right:ne-fe,bottom:ie-ve},$e=B.htmlRegion,je="visible",Ze="visibleFirst";$e!=="scroll"&&$e!==Ze&&($e=je);var He=$e===Ze,Xe=CE(Oe,y),Ee=CE(Se,y),Me=$e===je?Ee:Xe,Ve=He?Ee:Me;T.style.left="auto",T.style.top="auto",T.style.right="0",T.style.bottom="0";var Ke=T.getBoundingClientRect();T.style.left=k,T.style.top=U,T.style.right=Y,T.style.bottom=N,T.style.overflow=P,(R=T.parentElement)===null||R===void 0||R.removeChild(K);var qe=ru(Math.round(be/parseFloat(D)*1e3)/1e3),at=ru(Math.round(le/parseFloat(F)*1e3)/1e3);if(qe===0||at===0||Wc(n)&&!um(n))return;var Ue=B.offset,Ye=B.targetOffset,st=EE(V,Ue),pt=ge(st,2),Qe=pt[0],ze=pt[1],Fe=EE(j,Ye),Ne=ge(Fe,2),ke=Ne[0],xt=Ne[1];j.x-=ke,j.y-=xt;var jt=B.points||[],Nn=ge(jt,2),xn=Nn[0],On=Nn[1],fn=wE(On),Vt=wE(xn),on=Ll(j,fn),wt=Ll(V,Vt),nt=J({},B),We=on.x-wt.x+Qe,Le=on.y-wt.y+ze,vt=Tr(We,Le),St=Tr(We,Le,Ee),Be=Ll(j,["t","l"]),Ae=Ll(V,["t","l"]),rt=Ll(j,["b","r"]),ot=Ll(V,["b","r"]),tt=B.overflow||{},ut=tt.adjustX,Ut=tt.adjustY,Tt=tt.shiftX,It=tt.shiftY,Pt=function(ia){return typeof ia=="boolean"?ia:ia>=0},en,ln,_t,nr;no();var Sn=Pt(Ut),sn=Vt[0]===fn[0];if(Sn&&Vt[0]==="t"&&(ln>Ve.bottom||E.current.bt)){var Ie=Le;sn?Ie-=le-_e:Ie=Be.y-ot.y-ze;var et=Tr(We,Ie),yt=Tr(We,Ie,Ee);et>vt||et===vt&&(!He||yt>=St)?(E.current.bt=!0,Le=Ie,ze=-ze,nt.points=[ri(Vt,0),ri(fn,0)]):E.current.bt=!1}if(Sn&&Vt[0]==="b"&&(en<Ve.top||E.current.tb)){var Et=Le;sn?Et+=le-_e:Et=rt.y-Ae.y-ze;var Yt=Tr(We,Et),Gn=Tr(We,Et,Ee);Yt>vt||Yt===vt&&(!He||Gn>=St)?(E.current.tb=!0,Le=Et,ze=-ze,nt.points=[ri(Vt,0),ri(fn,0)]):E.current.tb=!1}var zn=Pt(ut),Hn=Vt[1]===fn[1];if(zn&&Vt[1]==="l"&&(nr>Ve.right||E.current.rl)){var fr=We;Hn?fr-=be-ce:fr=Be.x-ot.x-Qe;var yr=Tr(fr,Le),Rn=Tr(fr,Le,Ee);yr>vt||yr===vt&&(!He||Rn>=St)?(E.current.rl=!0,We=fr,Qe=-Qe,nt.points=[ri(Vt,1),ri(fn,1)]):E.current.rl=!1}if(zn&&Vt[1]==="r"&&(_t<Ve.left||E.current.lr)){var rr=We;Hn?rr+=be-ce:rr=rt.x-Ae.x-Qe;var Br=Tr(rr,Le),Fa=Tr(rr,Le,Ee);Br>vt||Br===vt&&(!He||Fa>=St)?(E.current.lr=!0,We=rr,Qe=-Qe,nt.points=[ri(Vt,1),ri(fn,1)]):E.current.lr=!1}no();var Kn=Tt===!0?0:Tt;typeof Kn=="number"&&(_t<Ee.left&&(We-=_t-Ee.left-Qe,j.x+ce<Ee.left+Kn&&(We+=j.x-Ee.left+ce-Kn)),nr>Ee.right&&(We-=nr-Ee.right-Qe,j.x>Ee.right-Kn&&(We+=j.x-Ee.right+Kn)));var dn=It===!0?0:It;typeof dn=="number"&&(en<Ee.top&&(Le-=en-Ee.top-ze,j.y+_e<Ee.top+dn&&(Le+=j.y-Ee.top+_e-dn)),ln>Ee.bottom&&(Le-=ln-Ee.bottom-ze,j.y>Ee.bottom-dn&&(Le+=j.y-Ee.bottom+dn)));var Hr=V.x+We,oa=Hr+be,Xn=V.y+Le,wa=Xn+le,Bt=j.x,Je=Bt+ce,De=j.y,Ht=De+_e,kt=Math.max(Hr,Bt),Qt=Math.min(oa,Je),Zt=(kt+Qt)/2,ar=Zt-Hr,Fn=Math.max(Xn,De),jn=Math.min(wa,Ht),or=(Fn+jn)/2,ir=or-Xn;c==null||c(t,nt);var wr=Ke.right-V.x-(We+V.width),Yn=Ke.bottom-V.y-(Le+V.height);qe===1&&(We=Math.round(We),wr=Math.round(wr)),at===1&&(Le=Math.round(Le),Yn=Math.round(Yn));var ys={ready:!0,offsetX:We/qe,offsetY:Le/at,offsetR:wr/qe,offsetB:Yn/at,arrowX:ar/qe,arrowY:ir/at,scaleX:qe,scaleY:at,align:nt};h(ys)}}),S=function(){p.current+=1;var O=p.current;Promise.resolve().then(function(){p.current===O&&x()})},w=function(){h(function(O){return J(J({},O),{},{ready:!1})})};return Gt(w,[r]),Gt(function(){e||w()},[e]),[g.ready,g.offsetX,g.offsetY,g.offsetR,g.offsetB,g.arrowX,g.arrowY,g.scaleX,g.scaleY,g.align,S]}function A8(e,t,n,r,a){Gt(function(){if(e&&t&&n){let p=function(){r(),a()};var l=t,c=n,u=a0(l),d=a0(c),g=$u(c),h=new Set([g].concat(Te(u),Te(d)));return h.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),g.addEventListener("resize",p,{passive:!0}),r(),function(){h.forEach(function(y){y.removeEventListener("scroll",p),g.removeEventListener("resize",p)})}}},[e,t,n])}function z8(e,t,n,r,a,l,c,u){var d=f.useRef(e);d.current=e;var g=f.useRef(!1);f.useEffect(function(){if(t&&r&&(!a||l)){var p=function(){g.current=!1},y=function(S){var w;d.current&&!c(((w=S.composedPath)===null||w===void 0||(w=w.call(S))===null||w===void 0?void 0:w[0])||S.target)&&!g.current&&u(!1)},E=$u(r);E.addEventListener("pointerdown",p,!0),E.addEventListener("mousedown",y,!0),E.addEventListener("contextmenu",y,!0);var b=Sd(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),function(){E.removeEventListener("pointerdown",p,!0),E.removeEventListener("mousedown",y,!0),E.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,a,l]);function h(){g.current=!0}return h}var D8=["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"];function L8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uy,t=f.forwardRef(function(n,r){var a=n.prefixCls,l=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,d=u===void 0?"hover":u,g=n.showAction,h=n.hideAction,p=n.popupVisible,y=n.defaultPopupVisible,E=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,x=n.mouseEnterDelay,S=n.mouseLeaveDelay,w=S===void 0?.1:S,$=n.focusDelay,O=n.blurDelay,_=n.mask,R=n.maskClosable,T=R===void 0?!0:R,M=n.getPopupContainer,z=n.forceRender,A=n.autoDestroy,D=n.destroyPopupOnHide,F=n.popup,W=n.popupClassName,k=n.popupStyle,U=n.popupPlacement,Y=n.builtinPlacements,N=Y===void 0?{}:Y,P=n.popupAlign,B=n.zIndex,K=n.stretch,j=n.getPopupClassNameFromAlign,L=n.fresh,q=n.alignPoint,G=n.onPopupClick,V=n.onPopupAlign,X=n.arrow,ee=n.popupMotion,se=n.maskMotion,ne=n.popupTransitionName,ie=n.popupAnimation,ve=n.maskTransitionName,fe=n.maskAnimation,le=n.className,be=n.getTriggerDOMNode,_e=$t(n,D8),ce=A||D||!1,Se=f.useState(!1),Oe=ge(Se,2),$e=Oe[0],je=Oe[1];Gt(function(){je(WR())},[]);var Ze=f.useRef({}),He=f.useContext(yE),Xe=f.useMemo(function(){return{registerSubPopup:function(dt,rn){Ze.current[dt]=rn,He==null||He.registerSubPopup(dt,rn)}}},[He]),Ee=fy(),Me=f.useState(null),Ve=ge(Me,2),Ke=Ve[0],qe=Ve[1],at=f.useRef(null),Ue=An(function(Ge){at.current=Ge,Wc(Ge)&&Ke!==Ge&&qe(Ge),He==null||He.registerSubPopup(Ee,Ge)}),Ye=f.useState(null),st=ge(Ye,2),pt=st[0],Qe=st[1],ze=f.useRef(null),Fe=An(function(Ge){Wc(Ge)&&pt!==Ge&&(Qe(Ge),ze.current=Ge)}),Ne=f.Children.only(c),ke=(Ne==null?void 0:Ne.props)||{},xt={},jt=An(function(Ge){var dt,rn,mn=pt;return(mn==null?void 0:mn.contains(Ge))||((dt=Sd(mn))===null||dt===void 0?void 0:dt.host)===Ge||Ge===mn||(Ke==null?void 0:Ke.contains(Ge))||((rn=Sd(Ke))===null||rn===void 0?void 0:rn.host)===Ge||Ge===Ke||Object.values(Ze.current).some(function(En){return(En==null?void 0:En.contains(Ge))||Ge===En})}),Nn=SE(l,ee,ie,ne),xn=SE(l,se,fe,ve),On=f.useState(y||!1),fn=ge(On,2),Vt=fn[0],on=fn[1],wt=p??Vt,nt=An(function(Ge){p===void 0&&on(Ge)});Gt(function(){on(p||!1)},[p]);var We=f.useRef(wt);We.current=wt;var Le=f.useRef([]);Le.current=[];var vt=An(function(Ge){var dt;nt(Ge),((dt=Le.current[Le.current.length-1])!==null&&dt!==void 0?dt:wt)!==Ge&&(Le.current.push(Ge),E==null||E(Ge))}),St=f.useRef(),Be=function(){clearTimeout(St.current)},Ae=function(dt){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Be(),rn===0?vt(dt):St.current=setTimeout(function(){vt(dt)},rn*1e3)};f.useEffect(function(){return Be},[]);var rt=f.useState(!1),ot=ge(rt,2),tt=ot[0],ut=ot[1];Gt(function(Ge){(!Ge||wt)&&ut(!0)},[wt]);var Ut=f.useState(null),Tt=ge(Ut,2),It=Tt[0],Pt=Tt[1],en=f.useState(null),ln=ge(en,2),_t=ln[0],nr=ln[1],Sn=function(dt){nr([dt.clientX,dt.clientY])},sn=P8(wt,Ke,q&&_t!==null?_t:pt,U,N,P,V),Ie=ge(sn,11),et=Ie[0],yt=Ie[1],Et=Ie[2],Yt=Ie[3],Gn=Ie[4],zn=Ie[5],Hn=Ie[6],fr=Ie[7],yr=Ie[8],Rn=Ie[9],rr=Ie[10],Br=N8($e,d,g,h),Fa=ge(Br,2),Kn=Fa[0],dn=Fa[1],Hr=Kn.has("click"),oa=dn.has("click")||dn.has("contextMenu"),Xn=An(function(){tt||rr()}),wa=function(){We.current&&q&&oa&&Ae(!1)};A8(wt,pt,Ke,Xn,wa),Gt(function(){Xn()},[_t,U]),Gt(function(){wt&&!(N!=null&&N[U])&&Xn()},[JSON.stringify(P)]);var Bt=f.useMemo(function(){var Ge=I8(N,l,Rn,q);return re(Ge,j==null?void 0:j(Rn))},[Rn,j,N,l,q]);f.useImperativeHandle(r,function(){return{nativeElement:ze.current,popupElement:at.current,forceAlign:Xn}});var Je=f.useState(0),De=ge(Je,2),Ht=De[0],kt=De[1],Qt=f.useState(0),Zt=ge(Qt,2),ar=Zt[0],Fn=Zt[1],jn=function(){if(K&&pt){var dt=pt.getBoundingClientRect();kt(dt.width),Fn(dt.height)}},or=function(){jn(),Xn()},ir=function(dt){ut(!1),rr(),b==null||b(dt)},wr=function(){return new Promise(function(dt){jn(),Pt(function(){return dt})})};Gt(function(){It&&(rr(),It(),Pt(null))},[It]);function Yn(Ge,dt,rn,mn){xt[Ge]=function(En){var ao;mn==null||mn(En),Ae(dt,rn);for(var al=arguments.length,Si=new Array(al>1?al-1:0),oo=1;oo<al;oo++)Si[oo-1]=arguments[oo];(ao=ke[Ge])===null||ao===void 0||ao.call.apply(ao,[ke,En].concat(Si))}}(Hr||oa)&&(xt.onClick=function(Ge){var dt;We.current&&oa?Ae(!1):!We.current&&Hr&&(Sn(Ge),Ae(!0));for(var rn=arguments.length,mn=new Array(rn>1?rn-1:0),En=1;En<rn;En++)mn[En-1]=arguments[En];(dt=ke.onClick)===null||dt===void 0||dt.call.apply(dt,[ke,Ge].concat(mn))});var ys=z8(wt,oa,pt,Ke,_,T,jt,Ae),Tr=Kn.has("hover"),no=dn.has("hover"),Va,ia;Tr&&(Yn("onMouseEnter",!0,x,function(Ge){Sn(Ge)}),Yn("onPointerEnter",!0,x,function(Ge){Sn(Ge)}),Va=function(dt){(wt||tt)&&Ke!==null&&Ke!==void 0&&Ke.contains(dt.target)&&Ae(!0,x)},q&&(xt.onMouseMove=function(Ge){var dt;(dt=ke.onMouseMove)===null||dt===void 0||dt.call(ke,Ge)})),no&&(Yn("onMouseLeave",!1,w),Yn("onPointerLeave",!1,w),ia=function(){Ae(!1,w)}),Kn.has("focus")&&Yn("onFocus",!0,$),dn.has("focus")&&Yn("onBlur",!1,O),Kn.has("contextMenu")&&(xt.onContextMenu=function(Ge){var dt;We.current&&dn.has("contextMenu")?Ae(!1):(Sn(Ge),Ae(!0)),Ge.preventDefault();for(var rn=arguments.length,mn=new Array(rn>1?rn-1:0),En=1;En<rn;En++)mn[En-1]=arguments[En];(dt=ke.onContextMenu)===null||dt===void 0||dt.call.apply(dt,[ke,Ge].concat(mn))}),le&&(xt.className=re(ke.className,le));var $r=J(J({},ke),xt),la={},yi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];yi.forEach(function(Ge){_e[Ge]&&(la[Ge]=function(){for(var dt,rn=arguments.length,mn=new Array(rn),En=0;En<rn;En++)mn[En]=arguments[En];(dt=$r[Ge])===null||dt===void 0||dt.call.apply(dt,[$r].concat(mn)),_e[Ge].apply(_e,mn)})});var bi=f.cloneElement(Ne,J(J({},$r),la)),rl={x:zn,y:Hn},ro=X?J({},X!==!0?X:{}):null;return f.createElement(f.Fragment,null,f.createElement(jo,{disabled:!wt,ref:Fe,onResize:or},f.createElement(M8,{getTriggerDOMNode:be},bi)),f.createElement(yE.Provider,{value:Xe},f.createElement(T8,{portal:e,ref:Ue,prefixCls:l,popup:F,className:re(W,Bt),style:k,target:pt,onMouseEnter:Va,onMouseLeave:ia,onPointerEnter:Va,zIndex:B,open:wt,keepDom:tt,fresh:L,onClick:G,onPointerDownCapture:ys,mask:_,motion:Nn,maskMotion:xn,onVisibleChanged:ir,onPrepare:wr,forceRender:z,autoDestroy:ce,getPopupContainer:M,align:Rn,arrow:ro,arrowPos:rl,ready:et,offsetX:yt,offsetY:Et,offsetR:Yt,offsetB:Gn,onAlign:Xn,stretch:K,targetWidth:Ht/fr,targetHeight:ar/yr})))});return t}const vy=L8(uy);var B8=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H8=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},F8=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,l=t.children,c=t.popupElement,u=t.animation,d=t.transitionName,g=t.dropdownStyle,h=t.dropdownClassName,p=t.direction,y=p===void 0?"ltr":p,E=t.placement,b=t.builtinPlacements,x=t.dropdownMatchSelectWidth,S=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,O=t.empty,_=t.getTriggerDOMNode,R=t.onPopupVisibleChange,T=t.onPopupMouseEnter,M=$t(t,B8),z="".concat(r,"-dropdown"),A=c;S&&(A=S(c));var D=f.useMemo(function(){return b||H8(x)},[b,x]),F=u?"".concat(z,"-").concat(u):d,W=typeof x=="number",k=f.useMemo(function(){return W?null:x===!1?"minWidth":"width"},[x,W]),U=g;W&&(U=J(J({},U),{},{width:x}));var Y=f.useRef(null);return f.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=Y.current)===null||P===void 0?void 0:P.popupElement}}}),f.createElement(vy,Pe({},M,{showAction:R?["click"]:[],hideAction:R?["click"]:[],popupPlacement:E||(y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:z,popupTransitionName:F,popup:f.createElement("div",{onMouseEnter:T},A),ref:Y,stretch:k,popupAlign:w,popupVisible:a,getPopupContainer:$,popupClassName:re(h,Q({},"".concat(z,"-empty"),O)),popupStyle:U,getTriggerDOMNode:_,onPopupVisibleChange:R}),l)},V8=f.forwardRef(F8);function $E(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function o0(e){return typeof e<"u"&&!Number.isNaN(e)}function t_(e,t){var n=e||{},r=n.label,a=n.value,l=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:l||"options",groupLabel:c||u}}function U8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],l=t_(n,!1),c=l.label,u=l.value,d=l.options,g=l.groupLabel;function h(p,y){Array.isArray(p)&&p.forEach(function(E){if(y||!(d in E)){var b=E[u];a.push({key:$E(E,a.length),groupOption:y,data:E,label:E[c],value:b})}else{var x=E[g];x===void 0&&r&&(x=E.label),a.push({key:$E(E,a.length),group:!0,data:E,label:x}),h(E[d],!0)}})}return h(e,!1),a}function i0(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return pr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var k8=function(t,n,r){if(!n||!n.length)return null;var a=!1,l=function u(d,g){var h=s2(g),p=h[0],y=h.slice(1);if(!p)return[d];var E=d.split(p);return a=a||E.length>1,E.reduce(function(b,x){return[].concat(Te(b),Te(u(x,y)))},[]).filter(Boolean)},c=l(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},yy=f.createContext(null);function q8(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return f.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var l=a.label,c=a.value;return["number","string"].includes(lt(l))?l:c}).join(", ")),n.length>r?", ...":null)}var W8=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G8=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],l0=function(t){return t==="tags"||t==="multiple"},K8=f.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,g=e.omitDomProps,h=e.displayValues,p=e.onDisplayValuesChange,y=e.emptyOptions,E=e.notFoundContent,b=E===void 0?"Not Found":E,x=e.onClear,S=e.mode,w=e.disabled,$=e.loading,O=e.getInputElement,_=e.getRawInputElement,R=e.open,T=e.defaultOpen,M=e.onDropdownVisibleChange,z=e.activeValue,A=e.onActiveValueChange,D=e.activeDescendantId,F=e.searchValue,W=e.autoClearSearchValue,k=e.onSearch,U=e.onSearchSplit,Y=e.tokenSeparators,N=e.allowClear,P=e.prefix,B=e.suffixIcon,K=e.clearIcon,j=e.OptionList,L=e.animation,q=e.transitionName,G=e.dropdownStyle,V=e.dropdownClassName,X=e.dropdownMatchSelectWidth,ee=e.dropdownRender,se=e.dropdownAlign,ne=e.placement,ie=e.builtinPlacements,ve=e.getPopupContainer,fe=e.showAction,le=fe===void 0?[]:fe,be=e.onFocus,_e=e.onBlur,ce=e.onKeyUp,Se=e.onKeyDown,Oe=e.onMouseDown,$e=$t(e,W8),je=l0(S),Ze=(c!==void 0?c:je)||S==="combobox",He=J({},$e);G8.forEach(function(Je){delete He[Je]}),g==null||g.forEach(function(Je){delete He[Je]});var Xe=f.useState(!1),Ee=ge(Xe,2),Me=Ee[0],Ve=Ee[1];f.useEffect(function(){Ve(WR())},[]);var Ke=f.useRef(null),qe=f.useRef(null),at=f.useRef(null),Ue=f.useRef(null),Ye=f.useRef(null),st=f.useRef(!1),pt=t8(),Qe=ge(pt,3),ze=Qe[0],Fe=Qe[1],Ne=Qe[2];f.useImperativeHandle(t,function(){var Je,De;return{focus:(Je=Ue.current)===null||Je===void 0?void 0:Je.focus,blur:(De=Ue.current)===null||De===void 0?void 0:De.blur,scrollTo:function(kt){var Qt;return(Qt=Ye.current)===null||Qt===void 0?void 0:Qt.scrollTo(kt)},nativeElement:Ke.current||qe.current}});var ke=f.useMemo(function(){var Je;if(S!=="combobox")return F;var De=(Je=h[0])===null||Je===void 0?void 0:Je.value;return typeof De=="string"||typeof De=="number"?String(De):""},[F,S,h]),xt=S==="combobox"&&typeof O=="function"&&O()||null,jt=typeof _=="function"&&_(),Nn=mi(qe,jt==null||(n=jt.props)===null||n===void 0?void 0:n.ref),xn=f.useState(!1),On=ge(xn,2),fn=On[0],Vt=On[1];Gt(function(){Vt(!0)},[]);var on=vr(!1,{defaultValue:T,value:R}),wt=ge(on,2),nt=wt[0],We=wt[1],Le=fn?nt:!1,vt=!b&&y;(w||vt&&Le&&S==="combobox")&&(Le=!1);var St=vt?!1:Le,Be=f.useCallback(function(Je){var De=Je!==void 0?Je:!Le;w||(We(De),Le!==De&&(M==null||M(De)))},[w,Le,We,M]),Ae=f.useMemo(function(){return(Y||[]).some(function(Je){return[`
`,`\r
`].includes(Je)})},[Y]),rt=f.useContext(yy)||{},ot=rt.maxCount,tt=rt.rawValues,ut=function(De,Ht,kt){if(!(je&&o0(ot)&&(tt==null?void 0:tt.size)>=ot)){var Qt=!0,Zt=De;A==null||A(null);var ar=k8(De,Y,o0(ot)?ot-tt.size:void 0),Fn=kt?null:ar;return S!=="combobox"&&Fn&&(Zt="",U==null||U(Fn),Be(!1),Qt=!1),k&&ke!==Zt&&k(Zt,{source:Ht?"typing":"effect"}),Qt}},Ut=function(De){!De||!De.trim()||k(De,{source:"submit"})};f.useEffect(function(){!Le&&!je&&S!=="combobox"&&ut("",!1,!1)},[Le]),f.useEffect(function(){nt&&w&&We(!1),w&&!st.current&&Fe(!1)},[w]);var Tt=KR(),It=ge(Tt,2),Pt=It[0],en=It[1],ln=f.useRef(!1),_t=function(De){var Ht=Pt(),kt=De.key,Qt=kt==="Enter";if(Qt&&(S!=="combobox"&&De.preventDefault(),Le||Be(!0)),en(!!ke),kt==="Backspace"&&!Ht&&je&&!ke&&h.length){for(var Zt=Te(h),ar=null,Fn=Zt.length-1;Fn>=0;Fn-=1){var jn=Zt[Fn];if(!jn.disabled){Zt.splice(Fn,1),ar=jn;break}}ar&&p(Zt,{type:"remove",values:[ar]})}for(var or=arguments.length,ir=new Array(or>1?or-1:0),wr=1;wr<or;wr++)ir[wr-1]=arguments[wr];if(Le&&(!Qt||!ln.current)){var Yn;Qt&&(ln.current=!0),(Yn=Ye.current)===null||Yn===void 0||Yn.onKeyDown.apply(Yn,[De].concat(ir))}Se==null||Se.apply(void 0,[De].concat(ir))},nr=function(De){for(var Ht=arguments.length,kt=new Array(Ht>1?Ht-1:0),Qt=1;Qt<Ht;Qt++)kt[Qt-1]=arguments[Qt];if(Le){var Zt;(Zt=Ye.current)===null||Zt===void 0||Zt.onKeyUp.apply(Zt,[De].concat(kt))}De.key==="Enter"&&(ln.current=!1),ce==null||ce.apply(void 0,[De].concat(kt))},Sn=function(De){var Ht=h.filter(function(kt){return kt!==De});p(Ht,{type:"remove",values:[De]})},sn=function(){ln.current=!1},Ie=f.useRef(!1),et=function(){Fe(!0),w||(be&&!Ie.current&&be.apply(void 0,arguments),le.includes("focus")&&Be(!0)),Ie.current=!0},yt=function(){st.current=!0,Fe(!1,function(){Ie.current=!1,st.current=!1,Be(!1)}),!w&&(ke&&(S==="tags"?k(ke,{source:"submit"}):S==="multiple"&&k("",{source:"blur"})),_e&&_e.apply(void 0,arguments))},Et=[];f.useEffect(function(){return function(){Et.forEach(function(Je){return clearTimeout(Je)}),Et.splice(0,Et.length)}},[]);var Yt=function(De){var Ht,kt=De.target,Qt=(Ht=at.current)===null||Ht===void 0?void 0:Ht.getPopupElement();if(Qt&&Qt.contains(kt)){var Zt=setTimeout(function(){var or=Et.indexOf(Zt);if(or!==-1&&Et.splice(or,1),Ne(),!Me&&!Qt.contains(document.activeElement)){var ir;(ir=Ue.current)===null||ir===void 0||ir.focus()}});Et.push(Zt)}for(var ar=arguments.length,Fn=new Array(ar>1?ar-1:0),jn=1;jn<ar;jn++)Fn[jn-1]=arguments[jn];Oe==null||Oe.apply(void 0,[De].concat(Fn))},Gn=f.useState({}),zn=ge(Gn,2),Hn=zn[1];function fr(){Hn({})}var yr;jt&&(yr=function(De){Be(De)}),n8(function(){var Je;return[Ke.current,(Je=at.current)===null||Je===void 0?void 0:Je.getPopupElement()]},St,Be,!!jt);var Rn=f.useMemo(function(){return J(J({},e),{},{notFoundContent:b,open:Le,triggerOpen:St,id:r,showSearch:Ze,multiple:je,toggleOpen:Be})},[e,b,St,Le,r,Ze,je,Be]),rr=!!B||$,Br;rr&&(Br=f.createElement(xm,{className:re("".concat(a,"-arrow"),Q({},"".concat(a,"-arrow-loading"),$)),customizeIcon:B,customizeIconProps:{loading:$,searchValue:ke,open:Le,focused:ze,showSearch:Ze}}));var Fa=function(){var De;x==null||x(),(De=Ue.current)===null||De===void 0||De.focus(),p([],{type:"clear",values:h}),ut("",!1,!1)},Kn=J5(a,Fa,h,N,K,w,ke,S),dn=Kn.allowClear,Hr=Kn.clearIcon,oa=f.createElement(j,{ref:Ye}),Xn=re(a,l,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(a,"-focused"),ze),"".concat(a,"-multiple"),je),"".concat(a,"-single"),!je),"".concat(a,"-allow-clear"),N),"".concat(a,"-show-arrow"),rr),"".concat(a,"-disabled"),w),"".concat(a,"-loading"),$),"".concat(a,"-open"),Le),"".concat(a,"-customize-input"),xt),"".concat(a,"-show-search"),Ze)),wa=f.createElement(V8,{ref:at,disabled:w,prefixCls:a,visible:St,popupElement:oa,animation:L,transitionName:q,dropdownStyle:G,dropdownClassName:V,direction:d,dropdownMatchSelectWidth:X,dropdownRender:ee,dropdownAlign:se,placement:ne,builtinPlacements:ie,getPopupContainer:ve,empty:y,getTriggerDOMNode:function(De){return qe.current||De},onPopupVisibleChange:yr,onPopupMouseEnter:fr},jt?f.cloneElement(jt,{ref:Nn}):f.createElement($8,Pe({},e,{domRef:qe,prefixCls:a,inputElement:xt,ref:Ue,id:r,prefix:P,showSearch:Ze,autoClearSearchValue:W,mode:S,activeDescendantId:D,tagRender:u,values:h,open:Le,onToggleOpen:Be,activeValue:z,searchValue:ke,onSearch:ut,onSearchSubmit:Ut,onRemove:Sn,tokenWithEnter:Ae,onInputBlur:sn}))),Bt;return jt?Bt=wa:Bt=f.createElement("div",Pe({className:Xn},He,{ref:Ke,onMouseDown:Yt,onKeyDown:_t,onKeyUp:nr,onFocus:et,onBlur:yt}),f.createElement(q8,{visible:ze&&!Le,values:h}),wa,Br,dn&&Hr),f.createElement(GR.Provider,{value:Rn},Bt)}),by=function(){return null};by.isSelectOptGroup=!0;var Sy=function(){return null};Sy.isSelectOption=!0;var n_=f.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,l=e.children,c=e.prefixCls,u=e.onInnerResize,d=e.innerProps,g=e.rtl,h=e.extra,p={},y={display:"flex",flexDirection:"column"};return r!==void 0&&(p={height:n,position:"relative",overflow:"hidden"},y=J(J({},y),{},Q(Q(Q(Q(Q({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),f.createElement("div",{style:p},f.createElement(jo,{onResize:function(b){var x=b.offsetHeight;x&&u&&u()}},f.createElement("div",Pe({style:y,className:re(Q({},"".concat(c,"-holder-inner"),c)),ref:t},d),l,h)))});n_.displayName="Filler";function X8(e){var t=e.children,n=e.setRef,r=f.useCallback(function(a){n(a)},[]);return f.cloneElement(t,{ref:r})}function Y8(e,t,n,r,a,l,c,u){var d=u.getKey;return e.slice(t,n+1).map(function(g,h){var p=t+h,y=c(g,p,{style:{width:r},offsetX:a}),E=d(g);return f.createElement(X8,{key:E,setRef:function(x){return l(g,x)}},y)})}function Q8(e,t,n){var r=e.length,a=t.length,l,c;if(r===0&&a===0)return null;r<a?(l=e,c=t):(l=t,c=e);var u={__EMPTY_ITEM__:!0};function d(b){return b!==void 0?n(b):u}for(var g=null,h=Math.abs(r-a)!==1,p=0;p<c.length;p+=1){var y=d(l[p]),E=d(c[p]);if(y!==E){g=p,h=h||y!==d(c[p+1]);break}}return g===null?null:{index:g,multiple:h}}function Z8(e,t,n){var r=f.useState(e),a=ge(r,2),l=a[0],c=a[1],u=f.useState(null),d=ge(u,2),g=d[0],h=d[1];return f.useEffect(function(){var p=Q8(l||[],e||[],t);(p==null?void 0:p.index)!==void 0&&h(e[p.index]),c(e)},[e]),[g]}var OE=(typeof navigator>"u"?"undefined":lt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const r_=function(e,t,n,r){var a=f.useRef(!1),l=f.useRef(null);function c(){clearTimeout(l.current),a.current=!0,l.current=setTimeout(function(){a.current=!1},50)}var u=f.useRef({top:e,bottom:t,left:n,right:r});return u.current.top=e,u.current.bottom=t,u.current.left=n,u.current.right=r,function(d,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=d?g<0&&u.current.left||g>0&&u.current.right:g<0&&u.current.top||g>0&&u.current.bottom;return h&&p?(clearTimeout(l.current),a.current=!1):(!p||a.current)&&c(),!a.current&&p}};function J8(e,t,n,r,a,l,c){var u=f.useRef(0),d=f.useRef(null),g=f.useRef(null),h=f.useRef(!1),p=r_(t,n,r,a);function y($,O){if(yn.cancel(d.current),!p(!1,O)){var _=$;if(!_._virtualHandled)_._virtualHandled=!0;else return;u.current+=O,g.current=O,OE||_.preventDefault(),d.current=yn(function(){var R=h.current?10:1;c(u.current*R,!1),u.current=0})}}function E($,O){c(O,!0),OE||$.preventDefault()}var b=f.useRef(null),x=f.useRef(null);function S($){if(e){yn.cancel(x.current),x.current=yn(function(){b.current=null},2);var O=$.deltaX,_=$.deltaY,R=$.shiftKey,T=O,M=_;(b.current==="sx"||!b.current&&R&&_&&!O)&&(T=_,M=0,b.current="sx");var z=Math.abs(T),A=Math.abs(M);b.current===null&&(b.current=l&&z>A?"x":"y"),b.current==="y"?y($,M):E($,T)}}function w($){e&&(h.current=$.detail===g.current)}return[S,w]}function eB(e,t,n,r){var a=f.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=ge(a,2),c=l[0],u=l[1],d=function(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,y=c.get(h),E=c.get(p);if(y===void 0||E===void 0)for(var b=e.length,x=u.length;x<b;x+=1){var S,w=e[x],$=t(w);c.set($,x);var O=(S=n.get($))!==null&&S!==void 0?S:r;if(u[x]=(u[x-1]||0)+O,$===h&&(y=x),$===p&&(E=x),y!==void 0&&E!==void 0)break}return{top:u[y-1]||0,bottom:u[E]}};return d}var tB=function(){function e(){qn(this,e),Q(this,"maps",void 0),Q(this,"id",0),Q(this,"diffKeys",new Set),this.maps=Object.create(null)}return Wn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function RE(e){var t=parseFloat(e);return isNaN(t)?0:t}function nB(e,t,n){var r=f.useState(0),a=ge(r,2),l=a[0],c=a[1],u=f.useRef(new Map),d=f.useRef(new tB),g=f.useRef(0);function h(){g.current+=1}function p(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h();var b=function(){var w=!1;u.current.forEach(function($,O){if($&&$.offsetParent){var _=$.offsetHeight,R=getComputedStyle($),T=R.marginTop,M=R.marginBottom,z=RE(T),A=RE(M),D=_+z+A;d.current.get(O)!==D&&(d.current.set(O,D),w=!0)}}),w&&c(function($){return $+1})};if(E)b();else{g.current+=1;var x=g.current;Promise.resolve().then(function(){x===g.current&&b()})}}function y(E,b){var x=e(E);u.current.get(x),b?(u.current.set(x,b),p()):u.current.delete(x)}return f.useEffect(function(){return h},[]),[y,p,d.current,l]}var _E=14/15;function rB(e,t,n){var r=f.useRef(!1),a=f.useRef(0),l=f.useRef(0),c=f.useRef(null),u=f.useRef(null),d,g=function(E){if(r.current){var b=Math.ceil(E.touches[0].pageX),x=Math.ceil(E.touches[0].pageY),S=a.current-b,w=l.current-x,$=Math.abs(S)>Math.abs(w);$?a.current=b:l.current=x;var O=n($,$?S:w,!1,E);O&&E.preventDefault(),clearInterval(u.current),O&&(u.current=setInterval(function(){$?S*=_E:w*=_E;var _=Math.floor($?S:w);(!n($,_,!0)||Math.abs(_)<=.1)&&clearInterval(u.current)},16))}},h=function(){r.current=!1,d()},p=function(E){d(),E.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(E.touches[0].pageX),l.current=Math.ceil(E.touches[0].pageY),c.current=E.target,c.current.addEventListener("touchmove",g,{passive:!1}),c.current.addEventListener("touchend",h,{passive:!0}))};d=function(){c.current&&(c.current.removeEventListener("touchmove",g),c.current.removeEventListener("touchend",h))},Gt(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var y;(y=t.current)===null||y===void 0||y.removeEventListener("touchstart",p),d(),clearInterval(u.current)}},[e])}function TE(e){return Math.floor(Math.pow(e,.5))}function s0(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function aB(e,t,n){f.useEffect(function(){var r=t.current;if(e&&r){var a=!1,l,c,u=function(){yn.cancel(l)},d=function y(){u(),l=yn(function(){n(c),y()})},g=function(E){if(!(E.target.draggable||E.button!==0)){var b=E;b._virtualHandled||(b._virtualHandled=!0,a=!0)}},h=function(){a=!1,u()},p=function(E){if(a){var b=s0(E,!1),x=r.getBoundingClientRect(),S=x.top,w=x.bottom;if(b<=S){var $=S-b;c=-TE($),d()}else if(b>=w){var O=b-w;c=TE(O),d()}else u()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",h),r.ownerDocument.addEventListener("mousemove",p),function(){r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",h),r.ownerDocument.removeEventListener("mousemove",p),u()}}},[e])}var oB=10;function iB(e,t,n,r,a,l,c,u){var d=f.useRef(),g=f.useState(null),h=ge(g,2),p=h[0],y=h[1];return Gt(function(){if(p&&p.times<oB){if(!e.current){y(function(K){return J({},K)});return}l();var E=p.targetAlign,b=p.originAlign,x=p.index,S=p.offset,w=e.current.clientHeight,$=!1,O=E,_=null;if(w){for(var R=E||b,T=0,M=0,z=0,A=Math.min(t.length-1,x),D=0;D<=A;D+=1){var F=a(t[D]);M=T;var W=n.get(F);z=M+(W===void 0?r:W),T=z}for(var k=R==="top"?S:w-S,U=A;U>=0;U-=1){var Y=a(t[U]),N=n.get(Y);if(N===void 0){$=!0;break}if(k-=N,k<=0)break}switch(R){case"top":_=M-S;break;case"bottom":_=z-w+S;break;default:{var P=e.current.scrollTop,B=P+w;M<P?O="top":z>B&&(O="bottom")}}_!==null&&c(_),_!==p.lastTop&&($=!0)}$&&y(J(J({},p),{},{times:p.times+1,targetAlign:O,lastTop:_}))}},[p,e.current]),function(E){if(E==null){u();return}if(yn.cancel(d.current),typeof E=="number")c(E);else if(E&&lt(E)==="object"){var b,x=E.align;"index"in E?b=E.index:b=t.findIndex(function($){return a($)===E.key});var S=E.offset,w=S===void 0?0:S;y({times:0,index:b,offset:w,originAlign:x})}}}var ME=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,g=e.horizontal,h=e.spinSize,p=e.containerSize,y=e.style,E=e.thumbStyle,b=e.showScrollBar,x=f.useState(!1),S=ge(x,2),w=S[0],$=S[1],O=f.useState(null),_=ge(O,2),R=_[0],T=_[1],M=f.useState(null),z=ge(M,2),A=z[0],D=z[1],F=!r,W=f.useRef(),k=f.useRef(),U=f.useState(b),Y=ge(U,2),N=Y[0],P=Y[1],B=f.useRef(),K=function(){b===!0||b===!1||(clearTimeout(B.current),P(!0),B.current=setTimeout(function(){P(!1)},3e3))},j=l-p||0,L=p-h||0,q=f.useMemo(function(){if(a===0||j===0)return 0;var fe=a/j;return fe*L},[a,j,L]),G=function(le){le.stopPropagation(),le.preventDefault()},V=f.useRef({top:q,dragging:w,pageY:R,startTop:A});V.current={top:q,dragging:w,pageY:R,startTop:A};var X=function(le){$(!0),T(s0(le,g)),D(V.current.top),c(),le.stopPropagation(),le.preventDefault()};f.useEffect(function(){var fe=function(ce){ce.preventDefault()},le=W.current,be=k.current;return le.addEventListener("touchstart",fe,{passive:!1}),be.addEventListener("touchstart",X,{passive:!1}),function(){le.removeEventListener("touchstart",fe),be.removeEventListener("touchstart",X)}},[]);var ee=f.useRef();ee.current=j;var se=f.useRef();se.current=L,f.useEffect(function(){if(w){var fe,le=function(ce){var Se=V.current,Oe=Se.dragging,$e=Se.pageY,je=Se.startTop;yn.cancel(fe);var Ze=W.current.getBoundingClientRect(),He=p/(g?Ze.width:Ze.height);if(Oe){var Xe=(s0(ce,g)-$e)*He,Ee=je;!F&&g?Ee-=Xe:Ee+=Xe;var Me=ee.current,Ve=se.current,Ke=Ve?Ee/Ve:0,qe=Math.ceil(Ke*Me);qe=Math.max(qe,0),qe=Math.min(qe,Me),fe=yn(function(){d(qe,g)})}},be=function(){$(!1),u()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",be,{passive:!0}),window.addEventListener("touchend",be,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",be),window.removeEventListener("touchend",be),yn.cancel(fe)}}},[w]),f.useEffect(function(){return K(),function(){clearTimeout(B.current)}},[a]),f.useImperativeHandle(t,function(){return{delayHidden:K}});var ne="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:N?null:"hidden"},ve={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(ie.height=8,ie.left=0,ie.right=0,ie.bottom=0,ve.height="100%",ve.width=h,F?ve.left=q:ve.right=q):(ie.width=8,ie.top=0,ie.bottom=0,F?ie.right=0:ie.left=0,ve.width="100%",ve.height=h,ve.top=q),f.createElement("div",{ref:W,className:re(ne,Q(Q(Q({},"".concat(ne,"-horizontal"),g),"".concat(ne,"-vertical"),!g),"".concat(ne,"-visible"),N)),style:J(J({},ie),y),onMouseDown:G,onMouseMove:K},f.createElement("div",{ref:k,className:re("".concat(ne,"-thumb"),Q({},"".concat(ne,"-thumb-moving"),w)),style:J(J({},ve),E),onMouseDown:X}))}),lB=20;function NE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,lB),Math.floor(n)}var sB=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],cB=[],uB={overflowY:"auto",overflowAnchor:"none"};function fB(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,g=e.style,h=e.data,p=e.children,y=e.itemKey,E=e.virtual,b=e.direction,x=e.scrollWidth,S=e.component,w=S===void 0?"div":S,$=e.onScroll,O=e.onVirtualScroll,_=e.onVisibleChange,R=e.innerProps,T=e.extraRender,M=e.styles,z=e.showScrollBar,A=z===void 0?"optional":z,D=$t(e,sB),F=f.useCallback(function(Ie){return typeof y=="function"?y(Ie):Ie==null?void 0:Ie[y]},[y]),W=nB(F),k=ge(W,4),U=k[0],Y=k[1],N=k[2],P=k[3],B=!!(E!==!1&&l&&c),K=f.useMemo(function(){return Object.values(N.maps).reduce(function(Ie,et){return Ie+et},0)},[N.id,N.maps]),j=B&&h&&(Math.max(c*h.length,K)>l||!!x),L=b==="rtl",q=re(r,Q({},"".concat(r,"-rtl"),L),a),G=h||cB,V=f.useRef(),X=f.useRef(),ee=f.useRef(),se=f.useState(0),ne=ge(se,2),ie=ne[0],ve=ne[1],fe=f.useState(0),le=ge(fe,2),be=le[0],_e=le[1],ce=f.useState(!1),Se=ge(ce,2),Oe=Se[0],$e=Se[1],je=function(){$e(!0)},Ze=function(){$e(!1)},He={getKey:F};function Xe(Ie){ve(function(et){var yt;typeof Ie=="function"?yt=Ie(et):yt=Ie;var Et=Vt(yt);return V.current.scrollTop=Et,Et})}var Ee=f.useRef({start:0,end:G.length}),Me=f.useRef(),Ve=Z8(G,F),Ke=ge(Ve,1),qe=Ke[0];Me.current=qe;var at=f.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};if(!j){var Ie;return{scrollHeight:((Ie=X.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:G.length-1,offset:void 0}}for(var et=0,yt,Et,Yt,Gn=G.length,zn=0;zn<Gn;zn+=1){var Hn=G[zn],fr=F(Hn),yr=N.get(fr),Rn=et+(yr===void 0?c:yr);Rn>=ie&&yt===void 0&&(yt=zn,Et=et),Rn>ie+l&&Yt===void 0&&(Yt=zn),et=Rn}return yt===void 0&&(yt=0,Et=0,Yt=Math.ceil(l/c)),Yt===void 0&&(Yt=G.length-1),Yt=Math.min(Yt+1,G.length-1),{scrollHeight:et,start:yt,end:Yt,offset:Et}},[j,B,ie,G,P,l]),Ue=at.scrollHeight,Ye=at.start,st=at.end,pt=at.offset;Ee.current.start=Ye,Ee.current.end=st,f.useLayoutEffect(function(){var Ie=N.getRecord();if(Ie.size===1){var et=Array.from(Ie)[0],yt=G[Ye];if(yt){var Et=F(yt);if(Et===et){var Yt=N.get(et),Gn=Yt-c;Xe(function(zn){return zn+Gn})}}}N.resetRecord()},[Ue]);var Qe=f.useState({width:0,height:l}),ze=ge(Qe,2),Fe=ze[0],Ne=ze[1],ke=function(et){Ne({width:et.offsetWidth,height:et.offsetHeight})},xt=f.useRef(),jt=f.useRef(),Nn=f.useMemo(function(){return NE(Fe.width,x)},[Fe.width,x]),xn=f.useMemo(function(){return NE(Fe.height,Ue)},[Fe.height,Ue]),On=Ue-l,fn=f.useRef(On);fn.current=On;function Vt(Ie){var et=Ie;return Number.isNaN(fn.current)||(et=Math.min(et,fn.current)),et=Math.max(et,0),et}var on=ie<=0,wt=ie>=On,nt=be<=0,We=be>=x,Le=r_(on,wt,nt,We),vt=function(){return{x:L?-be:be,y:ie}},St=f.useRef(vt()),Be=An(function(Ie){if(O){var et=J(J({},vt()),Ie);(St.current.x!==et.x||St.current.y!==et.y)&&(O(et),St.current=et)}});function Ae(Ie,et){var yt=Ie;et?(ui.flushSync(function(){_e(yt)}),Be()):Xe(yt)}function rt(Ie){var et=Ie.currentTarget.scrollTop;et!==ie&&Xe(et),$==null||$(Ie),Be()}var ot=function(et){var yt=et,Et=x?x-Fe.width:0;return yt=Math.max(yt,0),yt=Math.min(yt,Et),yt},tt=An(function(Ie,et){et?(ui.flushSync(function(){_e(function(yt){var Et=yt+(L?-Ie:Ie);return ot(Et)})}),Be()):Xe(function(yt){var Et=yt+Ie;return Et})}),ut=J8(B,on,wt,nt,We,!!x,tt),Ut=ge(ut,2),Tt=Ut[0],It=Ut[1];rB(B,V,function(Ie,et,yt,Et){var Yt=Et;return Le(Ie,et,yt)?!1:!Yt||!Yt._virtualHandled?(Yt&&(Yt._virtualHandled=!0),Tt({preventDefault:function(){},deltaX:Ie?et:0,deltaY:Ie?0:et}),!0):!1}),aB(j,V,function(Ie){Xe(function(et){return et+Ie})}),Gt(function(){function Ie(yt){var Et=on&&yt.detail<0,Yt=wt&&yt.detail>0;B&&!Et&&!Yt&&yt.preventDefault()}var et=V.current;return et.addEventListener("wheel",Tt,{passive:!1}),et.addEventListener("DOMMouseScroll",It,{passive:!0}),et.addEventListener("MozMousePixelScroll",Ie,{passive:!1}),function(){et.removeEventListener("wheel",Tt),et.removeEventListener("DOMMouseScroll",It),et.removeEventListener("MozMousePixelScroll",Ie)}},[B,on,wt]),Gt(function(){if(x){var Ie=ot(be);_e(Ie),Be({x:Ie})}},[Fe.width,x]);var Pt=function(){var et,yt;(et=xt.current)===null||et===void 0||et.delayHidden(),(yt=jt.current)===null||yt===void 0||yt.delayHidden()},en=iB(V,G,N,c,F,function(){return Y(!0)},Xe,Pt);f.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:vt,scrollTo:function(et){function yt(Et){return Et&&lt(Et)==="object"&&("left"in Et||"top"in Et)}yt(et)?(et.left!==void 0&&_e(ot(et.left)),en(et.top)):en(et)}}}),Gt(function(){if(_){var Ie=G.slice(Ye,st+1);_(Ie,G)}},[Ye,st,G]);var ln=eB(G,F,N,c),_t=T==null?void 0:T({start:Ye,end:st,virtual:j,offsetX:be,offsetY:pt,rtl:L,getSize:ln}),nr=Y8(G,Ye,st,x,be,U,p,He),Sn=null;l&&(Sn=J(Q({},d?"height":"maxHeight",l),uB),B&&(Sn.overflowY="hidden",x&&(Sn.overflowX="hidden"),Oe&&(Sn.pointerEvents="none")));var sn={};return L&&(sn.dir="rtl"),f.createElement("div",Pe({ref:ee,style:J(J({},g),{},{position:"relative"}),className:q},sn,D),f.createElement(jo,{onResize:ke},f.createElement(w,{className:"".concat(r,"-holder"),style:Sn,ref:V,onScroll:rt,onMouseEnter:Pt},f.createElement(n_,{prefixCls:r,height:Ue,offsetX:be,offsetY:pt,scrollWidth:x,onInnerResize:Y,ref:X,innerProps:R,rtl:L,extra:_t},nr))),j&&Ue>l&&f.createElement(ME,{ref:xt,prefixCls:r,scrollOffset:ie,scrollRange:Ue,rtl:L,onScroll:Ae,onStartMove:je,onStopMove:Ze,spinSize:xn,containerSize:Fe.height,style:M==null?void 0:M.verticalScrollBar,thumbStyle:M==null?void 0:M.verticalScrollBarThumb,showScrollBar:A}),j&&x>Fe.width&&f.createElement(ME,{ref:jt,prefixCls:r,scrollOffset:be,scrollRange:x,rtl:L,onScroll:Ae,onStartMove:je,onStopMove:Ze,spinSize:Nn,containerSize:Fe.width,horizontal:!0,style:M==null?void 0:M.horizontalScrollBar,thumbStyle:M==null?void 0:M.horizontalScrollBarThumb,showScrollBar:A}))}var a_=f.forwardRef(fB);a_.displayName="List";function dB(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var mB=["disabled","title","children","style","className"];function jE(e){return typeof e=="string"||typeof e=="number"}var gB=function(t,n){var r=e8(),a=r.prefixCls,l=r.id,c=r.open,u=r.multiple,d=r.mode,g=r.searchValue,h=r.toggleOpen,p=r.notFoundContent,y=r.onPopupScroll,E=f.useContext(yy),b=E.maxCount,x=E.flattenOptions,S=E.onActiveValue,w=E.defaultActiveFirstOption,$=E.onSelect,O=E.menuItemSelectedIcon,_=E.rawValues,R=E.fieldNames,T=E.virtual,M=E.direction,z=E.listHeight,A=E.listItemHeight,D=E.optionRender,F="".concat(a,"-item"),W=pu(function(){return x},[c,x],function(fe,le){return le[0]&&fe[1]!==le[1]}),k=f.useRef(null),U=f.useMemo(function(){return u&&o0(b)&&(_==null?void 0:_.size)>=b},[u,b,_==null?void 0:_.size]),Y=function(le){le.preventDefault()},N=function(le){var be;(be=k.current)===null||be===void 0||be.scrollTo(typeof le=="number"?{index:le}:le)},P=f.useCallback(function(fe){return d==="combobox"?!1:_.has(fe)},[d,Te(_).toString(),_.size]),B=function(le){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=W.length,ce=0;ce<_e;ce+=1){var Se=(le+ce*be+_e)%_e,Oe=W[Se]||{},$e=Oe.group,je=Oe.data;if(!$e&&!(je!=null&&je.disabled)&&(P(je.value)||!U))return Se}return-1},K=f.useState(function(){return B(0)}),j=ge(K,2),L=j[0],q=j[1],G=function(le){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(le);var _e={source:be?"keyboard":"mouse"},ce=W[le];if(!ce){S(null,-1,_e);return}S(ce.value,le,_e)};f.useEffect(function(){G(w!==!1?B(0):-1)},[W.length,g]);var V=f.useCallback(function(fe){return d==="combobox"?String(fe).toLowerCase()===g.toLowerCase():_.has(fe)},[d,g,Te(_).toString(),_.size]);f.useEffect(function(){var fe=setTimeout(function(){if(!u&&c&&_.size===1){var be=Array.from(_)[0],_e=W.findIndex(function(ce){var Se=ce.data;return Se.value===be});_e!==-1&&(G(_e),N(_e))}});if(c){var le;(le=k.current)===null||le===void 0||le.scrollTo(void 0)}return function(){return clearTimeout(fe)}},[c,g]);var X=function(le){le!==void 0&&$(le,{selected:!_.has(le)}),u||h(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(le){var be=le.which,_e=le.ctrlKey;switch(be){case ct.N:case ct.P:case ct.UP:case ct.DOWN:{var ce=0;if(be===ct.UP?ce=-1:be===ct.DOWN?ce=1:dB()&&_e&&(be===ct.N?ce=1:be===ct.P&&(ce=-1)),ce!==0){var Se=B(L+ce,ce);N(Se),G(Se,!0)}break}case ct.TAB:case ct.ENTER:{var Oe,$e=W[L];$e&&!($e!=null&&(Oe=$e.data)!==null&&Oe!==void 0&&Oe.disabled)&&!U?X($e.value):X(void 0),c&&le.preventDefault();break}case ct.ESC:h(!1),c&&le.stopPropagation()}},onKeyUp:function(){},scrollTo:function(le){N(le)}}}),W.length===0)return f.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(F,"-empty"),onMouseDown:Y},p);var ee=Object.keys(R).map(function(fe){return R[fe]}),se=function(le){return le.label};function ne(fe,le){var be=fe.group;return{role:be?"presentation":"option",id:"".concat(l,"_list_").concat(le)}}var ie=function(le){var be=W[le];if(!be)return null;var _e=be.data||{},ce=_e.value,Se=be.group,Oe=Za(_e,!0),$e=se(be);return be?f.createElement("div",Pe({"aria-label":typeof $e=="string"&&!Se?$e:null},Oe,{key:le},ne(be,le),{"aria-selected":V(ce)}),ce):null},ve={role:"listbox",id:"".concat(l,"_list")};return f.createElement(f.Fragment,null,T&&f.createElement("div",Pe({},ve,{style:{height:0,width:0,overflow:"hidden"}}),ie(L-1),ie(L),ie(L+1)),f.createElement(a_,{itemKey:"key",ref:k,data:W,height:z,itemHeight:A,fullHeight:!1,onMouseDown:Y,onScroll:y,virtual:T,direction:M,innerProps:T?null:ve},function(fe,le){var be=fe.group,_e=fe.groupOption,ce=fe.data,Se=fe.label,Oe=fe.value,$e=ce.key;if(be){var je,Ze=(je=ce.title)!==null&&je!==void 0?je:jE(Se)?Se.toString():void 0;return f.createElement("div",{className:re(F,"".concat(F,"-group"),ce.className),title:Ze},Se!==void 0?Se:$e)}var He=ce.disabled,Xe=ce.title;ce.children;var Ee=ce.style,Me=ce.className,Ve=$t(ce,mB),Ke=Tn(Ve,ee),qe=P(Oe),at=He||!qe&&U,Ue="".concat(F,"-option"),Ye=re(F,Ue,Me,Q(Q(Q(Q({},"".concat(Ue,"-grouped"),_e),"".concat(Ue,"-active"),L===le&&!at),"".concat(Ue,"-disabled"),at),"".concat(Ue,"-selected"),qe)),st=se(fe),pt=!O||typeof O=="function"||qe,Qe=typeof st=="number"?st:st||Oe,ze=jE(Qe)?Qe.toString():void 0;return Xe!==void 0&&(ze=Xe),f.createElement("div",Pe({},Za(Ke),T?{}:ne(fe,le),{"aria-selected":V(Oe),className:Ye,title:ze,onMouseMove:function(){L===le||at||G(le)},onClick:function(){at||X(Oe)},style:Ee}),f.createElement("div",{className:"".concat(Ue,"-content")},typeof D=="function"?D(fe,{index:le}):Qe),f.isValidElement(O)||qe,pt&&f.createElement(xm,{className:"".concat(F,"-option-state"),customizeIcon:O,customizeIconProps:{value:Oe,disabled:at,isSelected:qe}},qe?"✓":null))}))},hB=f.forwardRef(gB);const pB=function(e,t){var n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(function(){var l=n.current,c=l.values,u=l.options,d=e.map(function(p){if(p.label===void 0){var y;return J(J({},p),{},{label:(y=c.get(p.value))===null||y===void 0?void 0:y.label})}return p}),g=new Map,h=new Map;return d.forEach(function(p){g.set(p.value,p),h.set(p.value,t.get(p.value)||u.get(p.value))}),n.current.values=g,n.current.options=h,d},[e,t]),a=f.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,a]};function Rp(e,t){return JR(e).join("").toUpperCase().includes(t)}const vB=function(e,t,n,r,a){return f.useMemo(function(){if(!n||r===!1)return e;var l=t.options,c=t.label,u=t.value,d=[],g=typeof r=="function",h=n.toUpperCase(),p=g?r:function(E,b){return a?Rp(b[a],h):b[l]?Rp(b[c!=="children"?c:"label"],h):Rp(b[u],h)},y=g?function(E){return i0(E)}:function(E){return E};return e.forEach(function(E){if(E[l]){var b=p(n,y(E));if(b)d.push(E);else{var x=E[l].filter(function(S){return p(n,y(S))});x.length&&d.push(J(J({},E),{},Q({},l,x)))}return}p(n,y(E))&&d.push(E)}),d},[e,r,a,n,t])};var IE=0,yB=Er();function bB(){var e;return yB?(e=IE,IE+=1):e="TEST_OR_SSR",e}function SB(e){var t=f.useState(),n=ge(t,2),r=n[0],a=n[1];return f.useEffect(function(){a("rc_select_".concat(bB()))},[]),e||r}var CB=["children","value"],xB=["children"];function EB(e){var t=e,n=t.key,r=t.props,a=r.children,l=r.value,c=$t(r,CB);return J({key:n,value:l!==void 0?l:n,children:a},c)}function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return zr(e).map(function(n,r){if(!f.isValidElement(n)||!n.type)return null;var a=n,l=a.type.isSelectOptGroup,c=a.key,u=a.props,d=u.children,g=$t(u,xB);return t||!l?EB(n):J(J({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},g),{},{options:o_(d)})}).filter(function(n){return n})}var wB=function(t,n,r,a,l){return f.useMemo(function(){var c=t,u=!t;u&&(c=o_(n));var d=new Map,g=new Map,h=function(E,b,x){x&&typeof x=="string"&&E.set(b[x],b)},p=function y(E){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x<E.length;x+=1){var S=E[x];!S[r.options]||b?(d.set(S[r.value],S),h(g,S,r.label),h(g,S,a),h(g,S,l)):y(S[r.options],!0)}};return p(c),{options:c,valueOptions:d,labelOptions:g}},[t,n,r,a,l])};function PE(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var $B=["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","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OB=["inputValue"];function RB(e){return!e||lt(e)!=="object"}var _B=f.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,l=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,d=e.inputValue,g=e.searchValue,h=e.onSearch,p=e.autoClearSearchValue,y=p===void 0?!0:p,E=e.onSelect,b=e.onDeselect,x=e.dropdownMatchSelectWidth,S=x===void 0?!0:x,w=e.filterOption,$=e.filterSort,O=e.optionFilterProp,_=e.optionLabelProp,R=e.options,T=e.optionRender,M=e.children,z=e.defaultActiveFirstOption,A=e.menuItemSelectedIcon,D=e.virtual,F=e.direction,W=e.listHeight,k=W===void 0?200:W,U=e.listItemHeight,Y=U===void 0?20:U,N=e.labelRender,P=e.value,B=e.defaultValue,K=e.labelInValue,j=e.onChange,L=e.maxCount,q=$t(e,$B),G=SB(n),V=l0(r),X=!!(!R&&M),ee=f.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),se=f.useMemo(function(){return t_(u,X)},[JSON.stringify(u),X]),ne=vr("",{value:g!==void 0?g:d,postState:function(Ae){return Ae||""}}),ie=ge(ne,2),ve=ie[0],fe=ie[1],le=wB(R,M,se,O,_),be=le.valueOptions,_e=le.labelOptions,ce=le.options,Se=f.useCallback(function(Be){var Ae=JR(Be);return Ae.map(function(rt){var ot,tt,ut,Ut,Tt;if(RB(rt))ot=rt;else{var It;ut=rt.key,tt=rt.label,ot=(It=rt.value)!==null&&It!==void 0?It:ut}var Pt=be.get(ot);if(Pt){var en;tt===void 0&&(tt=Pt==null?void 0:Pt[_||se.label]),ut===void 0&&(ut=(en=Pt==null?void 0:Pt.key)!==null&&en!==void 0?en:ot),Ut=Pt==null?void 0:Pt.disabled,Tt=Pt==null?void 0:Pt.title}return{label:tt,value:ot,key:ut,disabled:Ut,title:Tt}})},[se,_,be]),Oe=vr(B,{value:P}),$e=ge(Oe,2),je=$e[0],Ze=$e[1],He=f.useMemo(function(){var Be,Ae=V&&je===null?[]:je,rt=Se(Ae);return r==="combobox"&&b8((Be=rt[0])===null||Be===void 0?void 0:Be.value)?[]:rt},[je,Se,r,V]),Xe=pB(He,be),Ee=ge(Xe,2),Me=Ee[0],Ve=Ee[1],Ke=f.useMemo(function(){if(!r&&Me.length===1){var Be=Me[0];if(Be.value===null&&(Be.label===null||Be.label===void 0))return[]}return Me.map(function(Ae){var rt;return J(J({},Ae),{},{label:(rt=typeof N=="function"?N(Ae):Ae.label)!==null&&rt!==void 0?rt:Ae.value})})},[r,Me,N]),qe=f.useMemo(function(){return new Set(Me.map(function(Be){return Be.value}))},[Me]);f.useEffect(function(){if(r==="combobox"){var Be,Ae=(Be=Me[0])===null||Be===void 0?void 0:Be.value;fe(y8(Ae)?String(Ae):"")}},[Me]);var at=PE(function(Be,Ae){var rt=Ae??Be;return Q(Q({},se.value,Be),se.label,rt)}),Ue=f.useMemo(function(){if(r!=="tags")return ce;var Be=Te(ce),Ae=function(ot){return be.has(ot)};return Te(Me).sort(function(rt,ot){return rt.value<ot.value?-1:1}).forEach(function(rt){var ot=rt.value;Ae(ot)||Be.push(at(ot,rt.label))}),Be},[at,ce,be,Me,r]),Ye=vB(Ue,se,ve,ee,O),st=f.useMemo(function(){return r!=="tags"||!ve||Ye.some(function(Be){return Be[O||"value"]===ve})||Ye.some(function(Be){return Be[se.value]===ve})?Ye:[at(ve)].concat(Te(Ye))},[at,O,r,Ye,ve,se]),pt=function Be(Ae){var rt=Te(Ae).sort(function(ot,tt){return $(ot,tt,{searchValue:ve})});return rt.map(function(ot){return Array.isArray(ot.options)?J(J({},ot),{},{options:ot.options.length>0?Be(ot.options):ot.options}):ot})},Qe=f.useMemo(function(){return $?pt(st):st},[st,$,ve]),ze=f.useMemo(function(){return U8(Qe,{fieldNames:se,childrenAsData:X})},[Qe,se,X]),Fe=function(Ae){var rt=Se(Ae);if(Ze(rt),j&&(rt.length!==Me.length||rt.some(function(ut,Ut){var Tt;return((Tt=Me[Ut])===null||Tt===void 0?void 0:Tt.value)!==(ut==null?void 0:ut.value)}))){var ot=K?rt:rt.map(function(ut){return ut.value}),tt=rt.map(function(ut){return i0(Ve(ut.value))});j(V?ot:ot[0],V?tt:tt[0])}},Ne=f.useState(null),ke=ge(Ne,2),xt=ke[0],jt=ke[1],Nn=f.useState(0),xn=ge(Nn,2),On=xn[0],fn=xn[1],Vt=z!==void 0?z:r!=="combobox",on=f.useCallback(function(Be,Ae){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=rt.source,tt=ot===void 0?"keyboard":ot;fn(Ae),c&&r==="combobox"&&Be!==null&&tt==="keyboard"&&jt(String(Be))},[c,r]),wt=function(Ae,rt,ot){var tt=function(){var Sn,sn=Ve(Ae);return[K?{label:sn==null?void 0:sn[se.label],value:Ae,key:(Sn=sn==null?void 0:sn.key)!==null&&Sn!==void 0?Sn:Ae}:Ae,i0(sn)]};if(rt&&E){var ut=tt(),Ut=ge(ut,2),Tt=Ut[0],It=Ut[1];E(Tt,It)}else if(!rt&&b&&ot!=="clear"){var Pt=tt(),en=ge(Pt,2),ln=en[0],_t=en[1];b(ln,_t)}},nt=PE(function(Be,Ae){var rt,ot=V?Ae.selected:!0;ot?rt=V?[].concat(Te(Me),[Be]):[Be]:rt=Me.filter(function(tt){return tt.value!==Be}),Fe(rt),wt(Be,ot),r==="combobox"?jt(""):(!l0||y)&&(fe(""),jt(""))}),We=function(Ae,rt){Fe(Ae);var ot=rt.type,tt=rt.values;(ot==="remove"||ot==="clear")&&tt.forEach(function(ut){wt(ut.value,!1,ot)})},Le=function(Ae,rt){if(fe(Ae),jt(null),rt.source==="submit"){var ot=(Ae||"").trim();if(ot){var tt=Array.from(new Set([].concat(Te(qe),[ot])));Fe(tt),wt(ot,!0),fe("")}return}rt.source!=="blur"&&(r==="combobox"&&Fe(Ae),h==null||h(Ae))},vt=function(Ae){var rt=Ae;r!=="tags"&&(rt=Ae.map(function(tt){var ut=_e.get(tt);return ut==null?void 0:ut.value}).filter(function(tt){return tt!==void 0}));var ot=Array.from(new Set([].concat(Te(qe),Te(rt))));Fe(ot),ot.forEach(function(tt){wt(tt,!0)})},St=f.useMemo(function(){var Be=D!==!1&&S!==!1;return J(J({},le),{},{flattenOptions:ze,onActiveValue:on,defaultActiveFirstOption:Vt,onSelect:nt,menuItemSelectedIcon:A,rawValues:qe,fieldNames:se,virtual:Be,direction:F,listHeight:k,listItemHeight:Y,childrenAsData:X,maxCount:L,optionRender:T})},[L,le,ze,on,Vt,nt,A,qe,se,D,S,F,k,Y,X,T]);return f.createElement(yy.Provider,{value:St},f.createElement(K8,Pe({},q,{id:G,prefixCls:l,ref:t,omitDomProps:OB,mode:r,displayValues:Ke,onDisplayValuesChange:We,direction:F,searchValue:ve,onSearch:Le,autoClearSearchValue:y,onSearchSplit:vt,dropdownMatchSelectWidth:S,OptionList:hB,emptyOptions:!ze.length,activeValue:xt,activeDescendantId:"".concat(G,"_list_").concat(On)})))}),Cy=_B;Cy.Option=Sy;Cy.OptGroup=by;function jd(e,t,n){return re({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Em=(e,t)=>t||e,TB=()=>{const[,e]=Lr(),[t]=Io("Empty"),r=new nn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.67)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f.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"}),f.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)"}),f.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"}),f.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"})),f.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"}),f.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},MB=()=>{const[,e]=Lr(),[t]=Io("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:c,shadowColor:u,contentColor:d}=f.useMemo(()=>({borderColor:new nn(n).onBackground(l).toHexString(),shadowColor:new nn(r).onBackground(l).toHexString(),contentColor:new nn(a).onBackground(l).toHexString()}),[n,r,a,l]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:c},f.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"}),f.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:d}))))},NB=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:l,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},jB=$n("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[NB(a)]});var IB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const i_=f.createElement(TB,null),l_=f.createElement(MB,null),So=e=>{const{className:t,rootClassName:n,prefixCls:r,image:a=i_,description:l,children:c,imageStyle:u,style:d,classNames:g,styles:h}=e,p=IB(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:E,className:b,style:x,classNames:S,styles:w}=Dr("empty"),$=y("empty",r),[O,_,R]=jB($),[T]=Io("Empty"),M=typeof l<"u"?l:T==null?void 0:T.description,z=typeof M=="string"?M:"empty";let A=null;return typeof a=="string"?A=f.createElement("img",{alt:z,src:a}):A=a,O(f.createElement("div",Object.assign({className:re(_,R,$,b,{[`${$}-normal`]:a===l_,[`${$}-rtl`]:E==="rtl"},t,n,S.root,g==null?void 0:g.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),x),h==null?void 0:h.root),d)},p),f.createElement("div",{className:re(`${$}-image`,S.image,g==null?void 0:g.image),style:Object.assign(Object.assign(Object.assign({},u),w.image),h==null?void 0:h.image)},A),M&&f.createElement("div",{className:re(`${$}-description`,S.description,g==null?void 0:g.description),style:Object.assign(Object.assign({},w.description),h==null?void 0:h.description)},M),c&&f.createElement("div",{className:re(`${$}-footer`,S.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign({},w.footer),h==null?void 0:h.footer)},c)))};So.PRESENTED_IMAGE_DEFAULT=i_;So.PRESENTED_IMAGE_SIMPLE=l_;const PB=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(gt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(So,{image:So.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(So,{image:So.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(So,null)}},xy=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:l,[e]:c}=f.useContext(gt),u=f.useContext(SR),d=c==null?void 0:c.variant;let g;typeof t<"u"?g=t:n===!1?g="borderless":g=(a=(r=u??d)!==null&&r!==void 0?r:l)!==null&&a!==void 0?a:"outlined";const h=z4.includes(g);return[g,h]},AB=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function zB(e,t){return e||AB(t)}const AE=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},DB=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},_r(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,[`
          ${a}${u}bottomLeft,
          ${l}${u}bottomLeft
        `]:{animationName:Q2},[`
          ${a}${u}topLeft,
          ${l}${u}topLeft,
          ${a}${u}topRight,
          ${l}${u}topRight
        `]:{animationName:J2},[`${c}${u}bottomLeft`]:{animationName:Z2},[`
          ${c}${u}topLeft,
          ${c}${u}topRight
        `]:{animationName:eR},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},AE(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},$d),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},AE(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Md(e,"slide-up"),Md(e,"slide-down"),Dx(e,"move-up"),Dx(e,"move-down")]},LB=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,l=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(l).sub(a).equal(),0);return{basePadding:l,containerPadding:c,itemHeight:ye(t),itemLineHeight:ye(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},BB=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},HB=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:l,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:g,INTERNAL_FIXED_ITEM_MARGIN:h}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:h,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(h).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ss()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:g}})}}}},FB=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=BB(e),u=t?`${n}-${t}`:"",d=LB(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},HB(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ye(r)} 0`,lineHeight:ye(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:ye(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ye(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item,
        ${n}-prefix + ${n}-selection-wrap
      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n          &-input,\n          &-mirror\n        ":{height:l,fontFamily:e.fontFamily,lineHeight:ye(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function _p(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[FB(e,t),a]}const VB=e=>{const{componentCls:t}=e,n=Kt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Kt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[_p(e),_p(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},_p(r,"lg")]};function Tp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_r(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ye(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{display:"block",padding:0,lineHeight:ye(l),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-search,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ye(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:ye(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ye(r)}`,"&:after":{display:"none"}}}}}}}function UB(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Tp(e),Tp(Kt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ye(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Tp(Kt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const kB=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:l,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:g,colorText:h,fontWeightStrong:p,controlItemBgActive:y,controlItemBgHover:E,colorBgContainer:b,colorFillSecondary:x,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:O,controlOutline:_}=e,R=u*2,T=r*2,M=Math.min(a-R,a-T),z=Math.min(l-R,l-T),A=Math.min(c-R,c-T);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:g+50,optionSelectedColor:h,optionSelectedFontWeight:p,optionSelectedBg:y,optionActiveBg:E,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:M,multipleItemHeightSM:z,multipleItemHeightLG:A,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:O,activeOutlineColor:_,selectAffixPadding:u}},s_=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ye(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ye(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},zE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},s_(e,t))}),qB=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},s_(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),zE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),zE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),c_=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ye(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},DE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},c_(e,t))}),WB=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},c_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),DE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),DE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),GB=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ye(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),u_=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ye(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},LE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},u_(e,t))}),KB=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},u_(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),LE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),LE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XB=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},qB(e)),WB(e)),GB(e)),KB(e))}),YB=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},QB=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ZB=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},_r(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},YB(e)),QB(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},$d),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},$d),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ss()),{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 ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},JB=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},ZB(e),UB(e),VB(e),DB(e),{[`${t}-rtl`]:{direction:"rtl"}},sy(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},eH=$n("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Kt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[JB(r),XB(r)]},kB,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function tH(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:l,multiple:c,hasFeedback:u,prefixCls:d,showSuffixIcon:g,feedbackIcon:h,showArrow:p,componentName:y}=e;const E=n??f.createElement(rs,null),b=$=>t===null&&!u&&!p?null:f.createElement(f.Fragment,null,g!==!1&&$,u&&h);let x=null;if(t!==void 0)x=b(t);else if(l)x=b(f.createElement(hu,{spin:!0}));else{const $=`${d}-suffix`;x=O=>{let{open:_,showSearch:R}=O;return b(_&&R?f.createElement(IO,{className:$}):f.createElement(GI,{className:$}))}}let S=null;r!==void 0?S=r:c?S=f.createElement(MO,null):S=null;let w=null;return a!==void 0?w=a:w=f.createElement(as,null),{clearIcon:E,suffixIcon:x,itemIcon:S,removeIcon:w}}function nH(e,t){return t!==void 0?t:e!==null}var rH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const f_="SECRET_COMBOBOX_MODE_DO_NOT_USE",aH=(e,t)=>{var n;const{prefixCls:r,bordered:a,className:l,rootClassName:c,getPopupContainer:u,popupClassName:d,dropdownClassName:g,listHeight:h=256,placement:p,listItemHeight:y,size:E,disabled:b,notFoundContent:x,status:S,builtinPlacements:w,dropdownMatchSelectWidth:$,popupMatchSelectWidth:O,direction:_,style:R,allowClear:T,variant:M,dropdownStyle:z,transitionName:A,tagRender:D,maxCount:F,prefix:W}=e,k=rH(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","prefix"]),{getPopupContainer:U,getPrefixCls:Y,renderEmpty:N,direction:P,virtual:B,popupMatchSelectWidth:K,popupOverflow:j}=f.useContext(gt),L=Dr("select"),[,q]=Lr(),G=y??(q==null?void 0:q.controlHeight),V=Y("select",r),X=Y(),ee=_??P,{compactSize:se,compactItemClassnames:ne}=Cu(V,ee),[ie,ve]=xy("select",M,a),fe=aa(V),[le,be,_e]=eH(V,fe),ce=f.useMemo(()=>{const{mode:xt}=e;if(xt!=="combobox")return xt===f_?"combobox":xt},[e.mode]),Se=ce==="multiple"||ce==="tags",Oe=nH(e.suffixIcon,e.showArrow),$e=(n=O??$)!==null&&n!==void 0?n:K,{status:je,hasFeedback:Ze,isFormItemInput:He,feedbackIcon:Xe}=f.useContext(ta),Ee=Em(je,S);let Me;x!==void 0?Me=x:ce==="combobox"?Me=null:Me=(N==null?void 0:N("Select"))||f.createElement(PB,{componentName:"Select"});const{suffixIcon:Ve,itemIcon:Ke,removeIcon:qe,clearIcon:at}=tH(Object.assign(Object.assign({},k),{multiple:Se,hasFeedback:Ze,feedbackIcon:Xe,showSuffixIcon:Oe,prefixCls:V,componentName:"Select"})),Ue=T===!0?{clearIcon:at}:T,Ye=Tn(k,["suffixIcon","itemIcon"]),st=re(d||g,{[`${V}-dropdown-${ee}`]:ee==="rtl"},c,_e,fe,be),pt=Po(xt=>{var jt;return(jt=E??se)!==null&&jt!==void 0?jt:xt}),Qe=f.useContext($o),ze=b??Qe,Fe=re({[`${V}-lg`]:pt==="large",[`${V}-sm`]:pt==="small",[`${V}-rtl`]:ee==="rtl",[`${V}-${ie}`]:ve,[`${V}-in-form-item`]:He},jd(V,Ee,Ze),ne,L.className,l,c,_e,fe,be),Ne=f.useMemo(()=>p!==void 0?p:ee==="rtl"?"bottomRight":"bottomLeft",[p,ee]),[ke]=lm("SelectLike",z==null?void 0:z.zIndex);return le(f.createElement(Cy,Object.assign({ref:t,virtual:B,showSearch:L.showSearch},Ye,{style:Object.assign(Object.assign({},L.style),R),dropdownMatchSelectWidth:$e,transitionName:Xi(X,"slide-up",A),builtinPlacements:zB(w,j),listHeight:h,listItemHeight:G,mode:ce,prefixCls:V,placement:Ne,direction:ee,prefix:W,suffixIcon:Ve,menuItemSelectedIcon:Ke,removeIcon:qe,allowClear:Ue,notFoundContent:Me,className:Fe,getPopupContainer:u||U,dropdownClassName:st,disabled:ze,dropdownStyle:Object.assign(Object.assign({},z),{zIndex:ke}),maxCount:Se?F:void 0,tagRender:Se?D:void 0})))},nl=f.forwardRef(aH),oH=Z5(nl,"dropdownAlign");nl.SECRET_COMBOBOX_MODE_DO_NOT_USE=f_;nl.Option=Sy;nl.OptGroup=by;nl._InternalPanelDoNotUseOrYouWillBeFired=oH;const au=["xxl","xl","lg","md","sm","xs"],iH=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),lH=e=>{const t=e,n=[].concat(au).reverse();return n.forEach((r,a)=>{const l=r.toUpperCase(),c=`screen${l}Min`,u=`screen${l}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);if(a<n.length-1){const d=`screen${l}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const h=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[h]))throw new Error(`${d}<=${h} fails : !(${t[d]}<=${t[h]})`)}}),e},sH=()=>{const[,e]=Lr(),t=iH(lH(e));return ae.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return a=l,n.forEach(c=>c(a)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(a),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.keys(t).forEach(l=>{const c=t[l],u=g=>{let{matches:h}=g;this.dispatch(Object.assign(Object.assign({},a),{[l]:h}))},d=window.matchMedia(c);d.addListener(u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.keys(t).forEach(l=>{const c=t[l],u=this.matchHandlers[c];u==null||u.mql.removeListener(u==null?void 0:u.listener)}),n.clear()}}},[e])};function cH(){const[,e]=f.useReducer(t=>t+1,0);return e}function uH(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=f.useRef(t),r=cH(),a=sH();return Gt(()=>{const l=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(l)},[]),n.current}const Jl=e=>e?typeof e=="function"?e():e:null;function Ey(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,u=e.style;return f.createElement("div",{className:re("".concat(n,"-content"),c),style:u},f.createElement("div",{className:re("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Bl={shiftX:64,adjustY:1},Hl={adjustX:1,shiftY:!0},va=[0,0],fH={left:{points:["cr","cl"],overflow:Hl,offset:[-4,0],targetOffset:va},right:{points:["cl","cr"],overflow:Hl,offset:[4,0],targetOffset:va},top:{points:["bc","tc"],overflow:Bl,offset:[0,-4],targetOffset:va},bottom:{points:["tc","bc"],overflow:Bl,offset:[0,4],targetOffset:va},topLeft:{points:["bl","tl"],overflow:Bl,offset:[0,-4],targetOffset:va},leftTop:{points:["tr","tl"],overflow:Hl,offset:[-4,0],targetOffset:va},topRight:{points:["br","tr"],overflow:Bl,offset:[0,-4],targetOffset:va},rightTop:{points:["tl","tr"],overflow:Hl,offset:[4,0],targetOffset:va},bottomRight:{points:["tr","br"],overflow:Bl,offset:[0,4],targetOffset:va},rightBottom:{points:["bl","br"],overflow:Hl,offset:[4,0],targetOffset:va},bottomLeft:{points:["tl","bl"],overflow:Bl,offset:[0,4],targetOffset:va},leftBottom:{points:["br","bl"],overflow:Hl,offset:[-4,0],targetOffset:va}},dH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],mH=function(t,n){var r=t.overlayClassName,a=t.trigger,l=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,d=t.mouseLeaveDelay,g=d===void 0?.1:d,h=t.overlayStyle,p=t.prefixCls,y=p===void 0?"rc-tooltip":p,E=t.children,b=t.onVisibleChange,x=t.afterVisibleChange,S=t.transitionName,w=t.animation,$=t.motion,O=t.placement,_=O===void 0?"right":O,R=t.align,T=R===void 0?{}:R,M=t.destroyTooltipOnHide,z=M===void 0?!1:M,A=t.defaultVisible,D=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var W=t.overlay,k=t.id,U=t.showArrow,Y=U===void 0?!0:U,N=t.classNames,P=t.styles,B=$t(t,dH),K=fy(k),j=f.useRef(null);f.useImperativeHandle(n,function(){return j.current});var L=J({},B);"visible"in t&&(L.popupVisible=t.visible);var q=function(){return f.createElement(Ey,{key:"content",prefixCls:y,id:K,bodyClassName:N==null?void 0:N.body,overlayInnerStyle:J(J({},F),P==null?void 0:P.body)},W)},G=function(){var X=f.Children.only(E),ee=(X==null?void 0:X.props)||{},se=J(J({},ee),{},{"aria-describedby":W?K:null});return f.cloneElement(E,se)};return f.createElement(vy,Pe({popupClassName:re(r,N==null?void 0:N.root),prefixCls:y,popup:q,action:l,builtinPlacements:fH,popupPlacement:_,ref:j,popupAlign:T,getPopupContainer:D,onPopupVisibleChange:b,afterPopupVisibleChange:x,popupTransitionName:S,popupAnimation:w,popupMotion:$,defaultPopupVisible:A,autoDestroy:z,mouseLeaveDelay:g,popupStyle:J(J({},h),P==null?void 0:P.root),mouseEnterDelay:u,arrow:Y},L),G())};const gH=f.forwardRef(mH);function d_(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,l=0,c=a,u=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),g=a-n*(1/Math.sqrt(2)),h=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*a-g,y=h,E=2*a-u,b=d,x=2*a-l,S=c,w=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),O=`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,_=`path('M ${l} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${g} ${h} A ${n} ${n} 0 0 1 ${p} ${y} L ${E} ${b} A ${r} ${r} 0 0 0 ${x} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:_,arrowPolygon:O}}const hH=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ye(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},m_=8;function wy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?m_:r}}function Wf(e,t){return e?t:{}}function g_(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},hH(e,t,a)),{"&:before":{background:t}})]},Wf(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Wf(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Wf(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Wf(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function pH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const c=Object.assign(Object.assign({},l),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const BE={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"]}},vH={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"]}},yH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bH(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:l,visibleFirst:c}=e,u=t/2,d={};return Object.keys(BE).forEach(g=>{const h=r&&vH[g]||BE[g],p=Object.assign(Object.assign({},h),{offset:[0,0],dynamicInset:!0});switch(d[g]=p,yH.has(g)&&(p.autoArrow=!1),g){case"top":case"topLeft":case"topRight":p.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=u+a;break}const y=wy({contentRadius:l,limitVerticalRadius:!0});if(r)switch(g){case"topLeft":case"bottomLeft":p.offset[0]=-y.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":p.offset[0]=y.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":p.offset[1]=-y.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":p.offset[1]=y.arrowOffsetHorizontal*2-u;break}p.overflow=pH(g,y,t,n),c&&(p.htmlRegion="visibleFirst")}),d}const SH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:d,boxShadowSecondary:g,paddingSM:h,paddingXS:p,arrowOffsetHorizontal:y,sizePopupArrow:E}=e,b=t(c).add(E).add(y).equal(),x=t(c).mul(2).add(E).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},_r(e)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:x,minHeight:d,padding:`${ye(e.calc(h).div(2).equal())} ${ye(p)}`,color:a,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:g,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,m_)}},[`${n}-content`]:{position:"relative"}}),s3(e,(S,w)=>{let{darkColor:$}=w;return{[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}})),{"&-rtl":{direction:"rtl"}})},g_(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},CH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},wy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),d_(Kt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),h_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return $n("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:l,colorBgSpotlight:c}=r,u=Kt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:a,tooltipBg:c});return[SH(u),mm(r,"zoom-big-fast")]},CH,{resetStyle:!1,injectStyle:t})(e)},xH=fi.map(e=>`${e}-inverse`),EH=["success","processing","error","default","warning"];function wH(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(xH),Te(fi)).includes(e):fi.includes(e)}function hK(e){return EH.includes(e)}function p_(e,t){const n=wH(t),r=re({[`${e}-${t}`]:t&&n}),a={},l={};return t&&!n&&(a.background=t,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:l}}const $H=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=f.useContext(gt),d=u("tooltip",t),[g,h,p]=h_(d),y=p_(d,l),E=y.arrowStyle,b=Object.assign(Object.assign({},c),y.overlayStyle),x=re(h,p,d,`${d}-pure`,`${d}-placement-${r}`,n,y.className);return g(f.createElement("div",{className:x,style:E},f.createElement("div",{className:`${d}-arrow`}),f.createElement(Ey,Object.assign({},e,{className:h,prefixCls:d,overlayInnerStyle:b}),a)))};var OH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const RH=f.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:u,overlayInnerStyle:d,children:g,afterOpenChange:h,afterVisibleChange:p,destroyTooltipOnHide:y,arrow:E=!0,title:b,overlay:x,builtinPlacements:S,arrowPointAtCenter:w=!1,autoAdjustOverflow:$=!0,motion:O,getPopupContainer:_,placement:R="top",mouseEnterDelay:T=.1,mouseLeaveDelay:M=.1,overlayStyle:z,rootClassName:A,overlayClassName:D,styles:F,classNames:W}=e,k=OH(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),U=!!E,[,Y]=Lr(),{getPopupContainer:N,getPrefixCls:P,direction:B,className:K,style:j,classNames:L,styles:q}=Dr("tooltip"),G=yu(),V=f.useRef(null),X=()=>{var Ye;(Ye=V.current)===null||Ye===void 0||Ye.forceAlign()};f.useImperativeHandle(t,()=>{var Ye,st;return{forceAlign:X,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(Ye=V.current)===null||Ye===void 0?void 0:Ye.nativeElement,popupElement:(st=V.current)===null||st===void 0?void 0:st.popupElement}});const[ee,se]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ne=!b&&!x&&b!==0,ie=Ye=>{var st,pt;se(ne?!1:Ye),ne||((st=e.onOpenChange)===null||st===void 0||st.call(e,Ye),(pt=e.onVisibleChange)===null||pt===void 0||pt.call(e,Ye))},ve=f.useMemo(()=>{var Ye,st;let pt=w;return typeof E=="object"&&(pt=(st=(Ye=E.pointAtCenter)!==null&&Ye!==void 0?Ye:E.arrowPointAtCenter)!==null&&st!==void 0?st:w),S||bH({arrowPointAtCenter:pt,autoAdjustOverflow:$,arrowWidth:U?Y.sizePopupArrow:0,borderRadius:Y.borderRadius,offset:Y.marginXXS,visibleFirst:!0})},[w,E,S,Y]),fe=f.useMemo(()=>b===0?b:x||b||"",[x,b]),le=f.createElement(nu,{space:!0},typeof fe=="function"?fe():fe),be=P("tooltip",a),_e=P(),ce=e["data-popover-inject"];let Se=ee;!("open"in e)&&!("visible"in e)&&ne&&(Se=!1);const Oe=f.isValidElement(g)&&!L2(g)?g:f.createElement("span",null,g),$e=Oe.props,je=!$e.className||typeof $e.className=="string"?re($e.className,l||`${be}-open`):$e.className,[Ze,He,Xe]=h_(be,!ce),Ee=p_(be,u),Me=Ee.arrowStyle,Ve=re(D,{[`${be}-rtl`]:B==="rtl"},Ee.className,A,He,Xe,K,L.root,W==null?void 0:W.root),Ke=re(L.body,W==null?void 0:W.body),[qe,at]=lm("Tooltip",k.zIndex),Ue=f.createElement(gH,Object.assign({},k,{zIndex:qe,showArrow:U,placement:R,mouseEnterDelay:T,mouseLeaveDelay:M,prefixCls:be,classNames:{root:Ve,body:Ke},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Me),q.root),j),z),F==null?void 0:F.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),d),F==null?void 0:F.body),Ee.overlayStyle)},getTooltipContainer:_||c||N,ref:V,builtinPlacements:ve,overlay:le,visible:Se,onVisibleChange:ie,afterVisibleChange:h??p,arrowContent:f.createElement("span",{className:`${be}-arrow-content`}),motion:{motionName:Xi(_e,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),Se?ea(Oe,{className:je}):Oe);return Ze(f.createElement(ey.Provider,{value:at},Ue))}),hi=RH;hi._InternalPanelDoNotUseOrYouWillBeFired=$H;const _H=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:c,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:g,titleMarginBottom:h,colorBgElevated:p,popoverBg:y,titleBorderBottom:E,innerContentPadding:b,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},_r(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:g,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:h,color:u,fontWeight:a,borderBottom:E,padding:x},[`${t}-inner-content`]:{color:n,padding:b}})},g_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},TH=e=>{const{componentCls:t}=e;return{[t]:fi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},MH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:l,zIndexPopupBase:c,borderRadiusLG:u,marginXS:d,lineType:g,colorSplit:h,paddingSM:p}=e,y=n-r,E=y/2,b=y/2-t,x=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},d_(e)),wy({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${E}px ${x}px ${b}px`:0,titleBorderBottom:l?`${t}px ${g} ${h}`:"none",innerContentPadding:l?`${p}px ${x}px`:0})},v_=$n("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Kt(e,{popoverBg:t,popoverColor:n});return[_H(r),TH(r),mm(r,"zoom-big")]},MH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var NH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const y_=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:f.createElement(f.Fragment,null,t&&f.createElement("div",{className:`${r}-title`},t),n&&f.createElement("div",{className:`${r}-inner-content`},n))},jH=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:u,children:d}=e,g=Jl(c),h=Jl(u),p=re(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return f.createElement("div",{className:p,style:a},f.createElement("div",{className:`${n}-arrow`}),f.createElement(Ey,Object.assign({},e,{className:t,prefixCls:n}),d||f.createElement(y_,{prefixCls:n,title:g,content:h})))},b_=e=>{const{prefixCls:t,className:n}=e,r=NH(e,["prefixCls","className"]),{getPrefixCls:a}=f.useContext(gt),l=a("popover",t),[c,u,d]=v_(l);return c(f.createElement(jH,Object.assign({},r,{prefixCls:l,hashId:u,className:re(n,d)})))};var IH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PH=f.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:l,content:c,overlayClassName:u,placement:d="top",trigger:g="hover",children:h,mouseEnterDelay:p=.1,mouseLeaveDelay:y=.1,onOpenChange:E,overlayStyle:b={},styles:x,classNames:S}=e,w=IH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:O,style:_,classNames:R,styles:T}=Dr("popover"),M=$("popover",a),[z,A,D]=v_(M),F=$(),W=re(u,A,D,O,R.root,S==null?void 0:S.root),k=re(R.body,S==null?void 0:S.body),[U,Y]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),N=(L,q)=>{Y(L,!0),E==null||E(L,q)},P=L=>{L.keyCode===ct.ESC&&N(!1,L)},B=L=>{N(L)},K=Jl(l),j=Jl(c);return z(f.createElement(hi,Object.assign({placement:d,trigger:g,mouseEnterDelay:p,mouseLeaveDelay:y},w,{prefixCls:M,classNames:{root:W,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},T.root),_),b),x==null?void 0:x.root),body:Object.assign(Object.assign({},T.body),x==null?void 0:x.body)},ref:t,open:U,onOpenChange:B,overlay:K||j?f.createElement(y_,{prefixCls:M,title:K,content:j}):null,transitionName:Xi(F,"zoom-big",w.transitionName),"data-popover-inject":!0}),ea(h,{onKeyDown:L=>{var q,G;f.isValidElement(h)&&((G=h==null?void 0:(q=h.props).onKeyDown)===null||G===void 0||G.call(q,L)),P(L)}})))}),S_=PH;S_._InternalPanelDoNotUseOrYouWillBeFired=b_;var C_=f.createContext(null);function x_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function E_(e){var t=f.useContext(C_);return x_(t,e)}var AH=["children","locked"],Pa=f.createContext(null);function zH(e,t){var n=J({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function ou(e){var t=e.children,n=e.locked,r=$t(e,AH),a=f.useContext(Pa),l=pu(function(){return zH(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!Yc(c[1],u[1],!0))});return f.createElement(Pa.Provider,{value:l},t)}var DH=[],w_=f.createContext(null);function wm(){return f.useContext(w_)}var $_=f.createContext(DH);function fs(e){var t=f.useContext($_);return f.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var O_=f.createContext(null),$y=f.createContext({});function HE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(um(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),l=Number(a),c=null;return a&&!Number.isNaN(l)?c=l:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function LH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return HE(r,t)});return HE(e,t)&&n.unshift(e),n}var c0=ct.LEFT,u0=ct.RIGHT,f0=ct.UP,ud=ct.DOWN,fd=ct.ENTER,R_=ct.ESC,pc=ct.HOME,vc=ct.END,FE=[f0,ud,c0,u0];function BH(e,t,n,r){var a,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===fd)return{inlineTrigger:!0};var g=Q(Q({},f0,l),ud,c),h=Q(Q(Q(Q({},c0,n?c:l),u0,n?l:c),ud,u),fd,u),p=Q(Q(Q(Q(Q(Q({},f0,l),ud,c),fd,u),R_,d),c0,n?u:d),u0,n?d:u),y={inline:g,horizontal:h,vertical:p,inlineSub:g,horizontalSub:p,verticalSub:p},E=(a=y["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(E){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function HH(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function FH(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Oy(e,t){var n=LH(e,!0);return n.filter(function(r){return t.has(r)})}function VE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Oy(e,t),l=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=l-1:c-=1:r>0&&(c+=1),c=(c+l)%l,a[c]}var d0=function(t,n){var r=new Set,a=new Map,l=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(x_(n,c),"']"));u&&(r.add(u),l.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:l}};function VH(e,t,n,r,a,l,c,u,d,g){var h=f.useRef(),p=f.useRef();p.current=t;var y=function(){yn.cancel(h.current)};return f.useEffect(function(){return function(){y()}},[]),function(E){var b=E.which;if([].concat(FE,[fd,R_,pc,vc]).includes(b)){var x=l(),S=d0(x,r),w=S,$=w.elements,O=w.key2element,_=w.element2key,R=O.get(t),T=FH(R,$),M=_.get(T),z=BH(e,c(M,!0).length===1,n,b);if(!z&&b!==pc&&b!==vc)return;(FE.includes(b)||[pc,vc].includes(b))&&E.preventDefault();var A=function(P){if(P){var B=P,K=P.querySelector("a");K!=null&&K.getAttribute("href")&&(B=K);var j=_.get(P);u(j),y(),h.current=yn(function(){p.current===j&&B.focus()})}};if([pc,vc].includes(b)||z.sibling||!T){var D;!T||e==="inline"?D=a.current:D=HH(T);var F,W=Oy(D,$);b===pc?F=W[0]:b===vc?F=W[W.length-1]:F=VE(D,$,T,z.offset),A(F)}else if(z.inlineTrigger)d(M);else if(z.offset>0)d(M,!0),y(),h.current=yn(function(){S=d0(x,r);var N=T.getAttribute("aria-controls"),P=document.getElementById(N),B=VE(P,S.elements);A(B)},5);else if(z.offset<0){var k=c(M,!0),U=k[k.length-2],Y=O.get(U);d(U,!1),A(Y)}}g==null||g(E)}}function UH(e){Promise.resolve().then(e)}var Ry="__RC_UTIL_PATH_SPLIT__",UE=function(t){return t.join(Ry)},kH=function(t){return t.split(Ry)},m0="rc-menu-more";function qH(){var e=f.useState({}),t=ge(e,2),n=t[1],r=f.useRef(new Map),a=f.useRef(new Map),l=f.useState([]),c=ge(l,2),u=c[0],d=c[1],g=f.useRef(0),h=f.useRef(!1),p=function(){h.current||n({})},y=f.useCallback(function(O,_){var R=UE(_);a.current.set(R,O),r.current.set(O,R),g.current+=1;var T=g.current;UH(function(){T===g.current&&p()})},[]),E=f.useCallback(function(O,_){var R=UE(_);a.current.delete(R),r.current.delete(O)},[]),b=f.useCallback(function(O){d(O)},[]),x=f.useCallback(function(O,_){var R=r.current.get(O)||"",T=kH(R);return _&&u.includes(T[0])&&T.unshift(m0),T},[u]),S=f.useCallback(function(O,_){return O.filter(function(R){return R!==void 0}).some(function(R){var T=x(R,!0);return T.includes(_)})},[x]),w=function(){var _=Te(r.current.keys());return u.length&&_.push(m0),_},$=f.useCallback(function(O){var _="".concat(r.current.get(O)).concat(Ry),R=new Set;return Te(a.current.keys()).forEach(function(T){T.startsWith(_)&&R.add(a.current.get(T))}),R},[]);return f.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:y,unregisterPath:E,refreshOverflowKeys:b,isSubPathKey:S,getKeyPath:x,getKeys:w,getSubPathKeys:$}}function Dc(e){var t=f.useRef(e);t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var WH=Math.random().toFixed(5).toString().slice(2),kE=0;function GH(e){var t=vr(e,{value:e}),n=ge(t,2),r=n[0],a=n[1];return f.useEffect(function(){kE+=1;var l="".concat(WH,"-").concat(kE);a("rc-menu-uuid-".concat(l))},[]),r}function __(e,t,n,r){var a=f.useContext(Pa),l=a.activeKey,c=a.onActive,u=a.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(g){n==null||n({key:e,domEvent:g}),c(e)},d.onMouseLeave=function(g){r==null||r({key:e,domEvent:g}),u(e)}),d}function T_(e){var t=f.useContext(Pa),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*a}:{paddingLeft:l*a}}function M_(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=f.createElement(t,J({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var KH=["item"];function Id(e){var t=e.item,n=$t(e,KH);return Object.defineProperty(n,"item",{get:function(){return pr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var XH=["title","attribute","elementRef"],YH=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],QH=["active"],ZH=function(e){Mo(n,e);var t=No(n);function n(){return qn(this,n),t.apply(this,arguments)}return Wn(n,[{key:"render",value:function(){var a=this.props,l=a.title,c=a.attribute,u=a.elementRef,d=$t(a,XH),g=Tn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return pr(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Qa.Item,Pe({},c,{title:typeof l=="string"?l:void 0},g,{ref:u}))}}]),n}(f.Component),JH=f.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,g=e.onMouseEnter,h=e.onMouseLeave,p=e.onClick,y=e.onKeyDown,E=e.onFocus,b=$t(e,YH),x=E_(a),S=f.useContext(Pa),w=S.prefixCls,$=S.onItemClick,O=S.disabled,_=S.overflowDisabled,R=S.itemIcon,T=S.selectedKeys,M=S.onActive,z=f.useContext($y),A=z._internalRenderMenuItem,D="".concat(w,"-item"),F=f.useRef(),W=f.useRef(),k=O||l,U=mi(t,W),Y=fs(a),N=function(ie){return{key:a,keyPath:Te(Y).reverse(),item:F.current,domEvent:ie}},P=c||R,B=__(a,k,g,h),K=B.active,j=$t(B,QH),L=T.includes(a),q=T_(Y.length),G=function(ie){if(!k){var ve=N(ie);p==null||p(Id(ve)),$(ve)}},V=function(ie){if(y==null||y(ie),ie.which===ct.ENTER){var ve=N(ie);p==null||p(Id(ve)),$(ve)}},X=function(ie){M(a),E==null||E(ie)},ee={};e.role==="option"&&(ee["aria-selected"]=L);var se=f.createElement(ZH,Pe({ref:F,elementRef:U,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":_&&x?null:x},Tn(b,["extra"]),j,ee,{component:"li","aria-disabled":l,style:J(J({},q),n),className:re(D,Q(Q(Q({},"".concat(D,"-active"),K),"".concat(D,"-selected"),L),"".concat(D,"-disabled"),k),r),onClick:G,onKeyDown:V,onFocus:X}),u,f.createElement(M_,{props:J(J({},e),{},{isSelected:L}),icon:P}));return A&&(se=A(se,e,{selected:L})),se});function e7(e,t){var n=e.eventKey,r=wm(),a=fs(n);return f.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:f.createElement(JH,Pe({},e,{ref:t}))}const $m=f.forwardRef(e7);var t7=["className","children"],n7=function(t,n){var r=t.className,a=t.children,l=$t(t,t7),c=f.useContext(Pa),u=c.prefixCls,d=c.mode,g=c.rtl;return f.createElement("ul",Pe({className:re(u,g&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),a)},_y=f.forwardRef(n7);_y.displayName="SubMenuList";function Ty(e,t){return zr(e).map(function(n,r){if(f.isValidElement(n)){var a,l,c=n.key,u=(a=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&a!==void 0?a:c,d=u==null;d&&(u="tmp_key-".concat([].concat(Te(t),[r]).join("-")));var g={key:u,eventKey:u};return f.cloneElement(n,g)}return n})}var Cr={adjustX:1,adjustY:1},r7={topLeft:{points:["bl","tl"],overflow:Cr},topRight:{points:["br","tr"],overflow:Cr},bottomLeft:{points:["tl","bl"],overflow:Cr},bottomRight:{points:["tr","br"],overflow:Cr},leftTop:{points:["tr","tl"],overflow:Cr},leftBottom:{points:["br","bl"],overflow:Cr},rightTop:{points:["tl","tr"],overflow:Cr},rightBottom:{points:["bl","br"],overflow:Cr}},a7={topLeft:{points:["bl","tl"],overflow:Cr},topRight:{points:["br","tr"],overflow:Cr},bottomLeft:{points:["tl","bl"],overflow:Cr},bottomRight:{points:["tr","br"],overflow:Cr},rightTop:{points:["tr","tl"],overflow:Cr},rightBottom:{points:["br","bl"],overflow:Cr},leftTop:{points:["tl","tr"],overflow:Cr},leftBottom:{points:["bl","br"],overflow:Cr}};function N_(e,t,n){if(t)return t;if(n)return n[e]||n.other}var o7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function i7(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,c=e.popupClassName,u=e.popupOffset,d=e.disabled,g=e.mode,h=e.onVisibleChange,p=f.useContext(Pa),y=p.getPopupContainer,E=p.rtl,b=p.subMenuOpenDelay,x=p.subMenuCloseDelay,S=p.builtinPlacements,w=p.triggerSubMenuAction,$=p.forceSubMenuRender,O=p.rootClassName,_=p.motion,R=p.defaultMotions,T=f.useState(!1),M=ge(T,2),z=M[0],A=M[1],D=J(E?J({},a7):J({},r7),S),F=o7[g],W=N_(g,_,R),k=f.useRef(W);g!=="inline"&&(k.current=W);var U=J(J({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Y=f.useRef();return f.useEffect(function(){return Y.current=yn(function(){A(n)}),function(){yn.cancel(Y.current)}},[n]),f.createElement(vy,{prefixCls:t,popupClassName:re("".concat(t,"-popup"),Q({},"".concat(t,"-rtl"),E),c,O),stretch:g==="horizontal"?"minWidth":null,getPopupContainer:y,builtinPlacements:D,popupPlacement:F,popupVisible:z,popup:a,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[w],mouseEnterDelay:b,mouseLeaveDelay:x,onPopupVisibleChange:h,forceRender:$,popupMotion:U,fresh:!0},r)}function l7(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",c=f.useContext(Pa),u=c.prefixCls,d=c.forceSubMenuRender,g=c.motion,h=c.defaultMotions,p=c.mode,y=f.useRef(!1);y.current=p===l;var E=f.useState(!y.current),b=ge(E,2),x=b[0],S=b[1],w=y.current?n:!1;f.useEffect(function(){y.current&&S(!1)},[p]);var $=J({},N_(l,g,h));r.length>1&&($.motionAppear=!1);var O=$.onVisibleChanged;return $.onVisibleChanged=function(_){return!y.current&&!_&&S(!0),O==null?void 0:O(_)},x?null:f.createElement(ou,{mode:l,locked:!y.current},f.createElement(eo,Pe({visible:w},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(_){var R=_.className,T=_.style;return f.createElement(_y,{id:t,className:R,style:T},a)}))}var s7=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],c7=["active"],u7=f.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,l=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,d=e.children,g=e.itemIcon,h=e.expandIcon,p=e.popupClassName,y=e.popupOffset,E=e.popupStyle,b=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,O=e.onTitleMouseLeave,_=$t(e,s7),R=E_(l),T=f.useContext(Pa),M=T.prefixCls,z=T.mode,A=T.openKeys,D=T.disabled,F=T.overflowDisabled,W=T.activeKey,k=T.selectedKeys,U=T.itemIcon,Y=T.expandIcon,N=T.onItemClick,P=T.onOpenChange,B=T.onActive,K=f.useContext($y),j=K._internalRenderSubMenuItem,L=f.useContext(O_),q=L.isSubPathKey,G=fs(),V="".concat(M,"-submenu"),X=D||c,ee=f.useRef(),se=f.useRef(),ne=g??U,ie=h??Y,ve=A.includes(l),fe=!F&&ve,le=q(k,l),be=__(l,X,$,O),_e=be.active,ce=$t(be,c7),Se=f.useState(!1),Oe=ge(Se,2),$e=Oe[0],je=Oe[1],Ze=function(Ne){X||je(Ne)},He=function(Ne){Ze(!0),x==null||x({key:l,domEvent:Ne})},Xe=function(Ne){Ze(!1),S==null||S({key:l,domEvent:Ne})},Ee=f.useMemo(function(){return _e||(z!=="inline"?$e||q([W],l):!1)},[z,_e,W,$e,l,q]),Me=T_(G.length),Ve=function(Ne){X||(w==null||w({key:l,domEvent:Ne}),z==="inline"&&P(l,!ve))},Ke=Dc(function(Fe){b==null||b(Id(Fe)),N(Fe)}),qe=function(Ne){z!=="inline"&&P(l,Ne)},at=function(){B(l)},Ue=R&&"".concat(R,"-popup"),Ye=f.useMemo(function(){return f.createElement(M_,{icon:z!=="horizontal"?ie:void 0,props:J(J({},e),{},{isOpen:fe,isSubMenu:!0})},f.createElement("i",{className:"".concat(V,"-arrow")}))},[z,ie,e,fe,V]),st=f.createElement("div",Pe({role:"menuitem",style:Me,className:"".concat(V,"-title"),tabIndex:X?null:-1,ref:ee,title:typeof a=="string"?a:null,"data-menu-id":F&&R?null:R,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":X,onClick:Ve,onFocus:at},ce),a,Ye),pt=f.useRef(z);if(z!=="inline"&&G.length>1?pt.current="vertical":pt.current=z,!F){var Qe=pt.current;st=f.createElement(i7,{mode:Qe,prefixCls:V,visible:!u&&fe&&z!=="inline",popupClassName:p,popupOffset:y,popupStyle:E,popup:f.createElement(ou,{mode:Qe==="horizontal"?"vertical":Qe},f.createElement(_y,{id:Ue,ref:se},d)),disabled:X,onVisibleChange:qe},st)}var ze=f.createElement(Qa.Item,Pe({ref:t,role:"none"},_,{component:"li",style:n,className:re(V,"".concat(V,"-").concat(z),r,Q(Q(Q(Q({},"".concat(V,"-open"),fe),"".concat(V,"-active"),Ee),"".concat(V,"-selected"),le),"".concat(V,"-disabled"),X)),onMouseEnter:He,onMouseLeave:Xe}),st,!F&&f.createElement(l7,{id:Ue,open:fe,keyPath:G},d));return j&&(ze=j(ze,e,{selected:le,active:Ee,open:fe,disabled:X})),f.createElement(ou,{onItemClick:Ke,mode:z==="horizontal"?"vertical":z,itemIcon:ne,expandIcon:ie},ze)}),Om=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=fs(n),l=Ty(r,a),c=wm();f.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=l:u=f.createElement(u7,Pe({ref:t},e),l),f.createElement($_.Provider,{value:a},u)});function My(e){var t=e.className,n=e.style,r=f.useContext(Pa),a=r.prefixCls,l=wm();return l?null:f.createElement("li",{role:"separator",className:re("".concat(a,"-item-divider"),t),style:n})}var f7=["className","title","eventKey","children"],d7=f.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,l=$t(e,f7),c=f.useContext(Pa),u=c.prefixCls,d="".concat(u,"-item-group");return f.createElement("li",Pe({ref:t,role:"presentation"},l,{onClick:function(h){return h.stopPropagation()},className:re(d,n)}),f.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),Ny=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=fs(n),l=Ty(r,a),c=wm();return c?l:f.createElement(d7,Pe({ref:t},Tn(e,["warnKey"])),l)}),m7=["label","children","key","type","extra"];function g0(e,t,n){var r=t.item,a=t.group,l=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&lt(u)==="object"){var g=u,h=g.label,p=g.children,y=g.key,E=g.type,b=g.extra,x=$t(g,m7),S=y??"tmp-".concat(d);return p||E==="group"?E==="group"?f.createElement(a,Pe({key:S},x,{title:h}),g0(p,t,n)):f.createElement(l,Pe({key:S},x,{title:h}),g0(p,t,n)):E==="divider"?f.createElement(c,Pe({key:S},x)):f.createElement(r,Pe({key:S},x,{extra:b}),h,(!!b||b===0)&&f.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(u){return u})}function qE(e,t,n,r,a){var l=e,c=J({divider:My,item:$m,group:Ny,submenu:Om},r);return t&&(l=g0(t,c,a)),Ty(l,n)}var g7=["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","_internalComponents"],Di=[],h7=f.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,l=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,d=r.className,g=r.tabIndex,h=g===void 0?0:g,p=r.items,y=r.children,E=r.direction,b=r.id,x=r.mode,S=x===void 0?"vertical":x,w=r.inlineCollapsed,$=r.disabled,O=r.disabledOverflow,_=r.subMenuOpenDelay,R=_===void 0?.1:_,T=r.subMenuCloseDelay,M=T===void 0?.1:T,z=r.forceSubMenuRender,A=r.defaultOpenKeys,D=r.openKeys,F=r.activeKey,W=r.defaultActiveFirst,k=r.selectable,U=k===void 0?!0:k,Y=r.multiple,N=Y===void 0?!1:Y,P=r.defaultSelectedKeys,B=r.selectedKeys,K=r.onSelect,j=r.onDeselect,L=r.inlineIndent,q=L===void 0?24:L,G=r.motion,V=r.defaultMotions,X=r.triggerSubMenuAction,ee=X===void 0?"hover":X,se=r.builtinPlacements,ne=r.itemIcon,ie=r.expandIcon,ve=r.overflowedIndicator,fe=ve===void 0?"...":ve,le=r.overflowedIndicatorPopupClassName,be=r.getPopupContainer,_e=r.onClick,ce=r.onOpenChange,Se=r.onKeyDown;r.openAnimation,r.openTransitionName;var Oe=r._internalRenderMenuItem,$e=r._internalRenderSubMenuItem,je=r._internalComponents,Ze=$t(r,g7),He=f.useMemo(function(){return[qE(y,p,Di,je,l),qE(y,p,Di,{},l)]},[y,p,je]),Xe=ge(He,2),Ee=Xe[0],Me=Xe[1],Ve=f.useState(!1),Ke=ge(Ve,2),qe=Ke[0],at=Ke[1],Ue=f.useRef(),Ye=GH(b),st=E==="rtl",pt=vr(A,{value:D,postState:function(Je){return Je||Di}}),Qe=ge(pt,2),ze=Qe[0],Fe=Qe[1],Ne=function(Je){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ht(){Fe(Je),ce==null||ce(Je)}De?ui.flushSync(Ht):Ht()},ke=f.useState(ze),xt=ge(ke,2),jt=xt[0],Nn=xt[1],xn=f.useRef(!1),On=f.useMemo(function(){return(S==="inline"||S==="vertical")&&w?["vertical",w]:[S,!1]},[S,w]),fn=ge(On,2),Vt=fn[0],on=fn[1],wt=Vt==="inline",nt=f.useState(Vt),We=ge(nt,2),Le=We[0],vt=We[1],St=f.useState(on),Be=ge(St,2),Ae=Be[0],rt=Be[1];f.useEffect(function(){vt(Vt),rt(on),xn.current&&(wt?Fe(jt):Ne(Di))},[Vt,on]);var ot=f.useState(0),tt=ge(ot,2),ut=tt[0],Ut=tt[1],Tt=ut>=Ee.length-1||Le!=="horizontal"||O;f.useEffect(function(){wt&&Nn(ze)},[ze]),f.useEffect(function(){return xn.current=!0,function(){xn.current=!1}},[]);var It=qH(),Pt=It.registerPath,en=It.unregisterPath,ln=It.refreshOverflowKeys,_t=It.isSubPathKey,nr=It.getKeyPath,Sn=It.getKeys,sn=It.getSubPathKeys,Ie=f.useMemo(function(){return{registerPath:Pt,unregisterPath:en}},[Pt,en]),et=f.useMemo(function(){return{isSubPathKey:_t}},[_t]);f.useEffect(function(){ln(Tt?Di:Ee.slice(ut+1).map(function(Bt){return Bt.key}))},[ut,Tt]);var yt=vr(F||W&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:F}),Et=ge(yt,2),Yt=Et[0],Gn=Et[1],zn=Dc(function(Bt){Gn(Bt)}),Hn=Dc(function(){Gn(void 0)});f.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(Je){var De,Ht=Sn(),kt=d0(Ht,Ye),Qt=kt.elements,Zt=kt.key2element,ar=kt.element2key,Fn=Oy(Ue.current,Qt),jn=Yt??(Fn[0]?ar.get(Fn[0]):(De=Ee.find(function(wr){return!wr.props.disabled}))===null||De===void 0?void 0:De.key),or=Zt.get(jn);if(jn&&or){var ir;or==null||(ir=or.focus)===null||ir===void 0||ir.call(or,Je)}}}});var fr=vr(P||[],{value:B,postState:function(Je){return Array.isArray(Je)?Je:Je==null?Di:[Je]}}),yr=ge(fr,2),Rn=yr[0],rr=yr[1],Br=function(Je){if(U){var De=Je.key,Ht=Rn.includes(De),kt;N?Ht?kt=Rn.filter(function(Zt){return Zt!==De}):kt=[].concat(Te(Rn),[De]):kt=[De],rr(kt);var Qt=J(J({},Je),{},{selectedKeys:kt});Ht?j==null||j(Qt):K==null||K(Qt)}!N&&ze.length&&Le!=="inline"&&Ne(Di)},Fa=Dc(function(Bt){_e==null||_e(Id(Bt)),Br(Bt)}),Kn=Dc(function(Bt,Je){var De=ze.filter(function(kt){return kt!==Bt});if(Je)De.push(Bt);else if(Le!=="inline"){var Ht=sn(Bt);De=De.filter(function(kt){return!Ht.has(kt)})}Yc(ze,De,!0)||Ne(De,!0)}),dn=function(Je,De){var Ht=De??!ze.includes(Je);Kn(Je,Ht)},Hr=VH(Le,Yt,st,Ye,Ue,Sn,nr,Gn,dn,Se);f.useEffect(function(){at(!0)},[]);var oa=f.useMemo(function(){return{_internalRenderMenuItem:Oe,_internalRenderSubMenuItem:$e}},[Oe,$e]),Xn=Le!=="horizontal"||O?Ee:Ee.map(function(Bt,Je){return f.createElement(ou,{key:Bt.key,overflowDisabled:Je>ut},Bt)}),wa=f.createElement(Qa,Pe({id:b,ref:Ue,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:$m,className:re(l,"".concat(l,"-root"),"".concat(l,"-").concat(Le),d,Q(Q({},"".concat(l,"-inline-collapsed"),Ae),"".concat(l,"-rtl"),st),c),dir:E,style:u,role:"menu",tabIndex:h,data:Xn,renderRawItem:function(Je){return Je},renderRawRest:function(Je){var De=Je.length,Ht=De?Ee.slice(-De):null;return f.createElement(Om,{eventKey:m0,title:fe,disabled:Tt,internalPopupClose:De===0,popupClassName:le},Ht)},maxCount:Le!=="horizontal"||O?Qa.INVALIDATE:Qa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Je){Ut(Je)},onKeyDown:Hr},Ze));return f.createElement($y.Provider,{value:oa},f.createElement(C_.Provider,{value:Ye},f.createElement(ou,{prefixCls:l,rootClassName:c,mode:Le,openKeys:ze,rtl:st,disabled:$,motion:qe?G:null,defaultMotions:qe?V:null,activeKey:Yt,onActive:zn,onInactive:Hn,selectedKeys:Rn,inlineIndent:q,subMenuOpenDelay:R,subMenuCloseDelay:M,forceSubMenuRender:z,builtinPlacements:se,triggerSubMenuAction:ee,getPopupContainer:be,itemIcon:ne,expandIcon:ie,onItemClick:Fa,onOpenChange:Kn},f.createElement(O_.Provider,{value:et},wa),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(w_.Provider,{value:Ie},Me)))))}),Ou=h7;Ou.Item=$m;Ou.SubMenu=Om;Ou.ItemGroup=Ny;Ou.Divider=My;const j_=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),p7=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,fontSize:g,bodyBg:h,headerBg:p}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:h,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:c,color:u,lineHeight:ye(l),background:p,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:g,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},I_=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:l,marginXXS:c,colorTextLightSolid:u,colorBgContainer:d}=e,g=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${g}px`,headerColor:a,footerPadding:`${l}px ${g}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},P_=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],A_=$n("Layout",e=>[p7(e)],I_,{deprecatedTokens:P_}),v7=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:l,triggerHeight:c,triggerColor:u,triggerBg:d,headerHeight:g,zeroTriggerWidth:h,zeroTriggerHeight:p,borderRadiusLG:y,lightSiderBg:E,lightTriggerColor:b,lightTriggerBg:x,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:u,lineHeight:ye(c),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:g,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:p,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ye(y)} ${ye(y)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderRadius:`${ye(y)} 0 0 ${ye(y)}`}},"&-light":{background:E,[`${t}-trigger`]:{color:b,background:x},[`${t}-zero-width-trigger`]:{color:b,background:x,border:`1px solid ${S}`,borderInlineStart:0}}}}},y7=$n(["Layout","Sider"],e=>[v7(e)],I_,{deprecatedTokens:P_});var b7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const WE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},S7=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),Rm=f.createContext({}),C7=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),z_=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:l,defaultCollapsed:c=!1,theme:u="dark",style:d={},collapsible:g=!1,reverseArrow:h=!1,width:p=200,collapsedWidth:y=80,zeroWidthTriggerStyle:E,breakpoint:b,onCollapse:x,onBreakpoint:S}=e,w=b7(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=f.useContext(j_),[O,_]=f.useState("collapsed"in e?e.collapsed:c),[R,T]=f.useState(!1);f.useEffect(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const M=(ne,ie)=>{"collapsed"in e||_(ne),x==null||x(ne,ie)},{getPrefixCls:z,direction:A}=f.useContext(gt),D=z("layout-sider",n),[F,W,k]=y7(D),U=f.useRef(null);U.current=ne=>{T(ne.matches),S==null||S(ne.matches),O!==ne.matches&&M(ne.matches,"responsive")},f.useEffect(()=>{function ne(ve){return U.current(ve)}let ie;if(typeof window<"u"){const{matchMedia:ve}=window;if(ve&&b&&b in WE){ie=ve(`screen and (max-width: ${WE[b]})`);try{ie.addEventListener("change",ne)}catch{ie.addListener(ne)}ne(ie)}}return()=>{try{ie==null||ie.removeEventListener("change",ne)}catch{ie==null||ie.removeListener(ne)}}},[b]),f.useEffect(()=>{const ne=C7("ant-sider-");return $.addSider(ne),()=>$.removeSider(ne)},[]);const Y=()=>{M(!O,"clickTrigger")},N=Tn(w,["collapsed"]),P=O?y:p,B=S7(P)?`${P}px`:String(P),K=parseFloat(String(y||0))===0?f.createElement("span",{onClick:Y,className:re(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${h?"right":"left"}`),style:E},a||f.createElement(II,null)):null,j=A==="rtl"==!h,G={expanded:j?f.createElement(Rv,null):f.createElement(U1,null),collapsed:j?f.createElement(U1,null):f.createElement(Rv,null)}[O?"collapsed":"expanded"],V=a!==null?K||f.createElement("div",{className:`${D}-trigger`,onClick:Y,style:{width:B}},a||G):null,X=Object.assign(Object.assign({},d),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),ee=re(D,`${D}-${u}`,{[`${D}-collapsed`]:!!O,[`${D}-has-trigger`]:g&&a!==null&&!K,[`${D}-below`]:!!R,[`${D}-zero-width`]:parseFloat(B)===0},r,W,k),se=f.useMemo(()=>({siderCollapsed:O}),[O]);return F(f.createElement(Rm.Provider,{value:se},f.createElement("aside",Object.assign({className:ee},N,{style:X,ref:t}),f.createElement("div",{className:`${D}-children`},l),g||R&&K?V:null)))}),Pd=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var x7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const D_=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=x7(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=f.useContext(gt),c=l("menu",t),u=re({[`${c}-item-divider-dashed`]:!!r},n);return f.createElement(My,Object.assign({className:u},a))},L_=e=>{var t;const{className:n,children:r,icon:a,title:l,danger:c,extra:u}=e,{prefixCls:d,firstLevel:g,direction:h,disableMenuItemTitleTooltip:p,inlineCollapsed:y}=f.useContext(Pd),E=O=>{const _=r==null?void 0:r[0],R=f.createElement("span",{className:re(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||f.isValidElement(r)&&r.type==="span")&&r&&O&&g&&typeof _=="string"?f.createElement("div",{className:`${d}-inline-collapsed-noicon`},_.charAt(0)):R},{siderCollapsed:b}=f.useContext(Rm);let x=l;typeof l>"u"?x=g?r:"":l===!1&&(x="");const S={title:x};!b&&!y&&(S.title=null,S.open=!1);const w=zr(r).length;let $=f.createElement($m,Object.assign({},Tn(e,["title","icon","danger"]),{className:re({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?w+1:w)===1},n),title:typeof l=="string"?l:void 0}),ea(a,{className:re(f.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${d}-item-icon`)}),E(y));return p||($=f.createElement(hi,Object.assign({},S,{placement:h==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),$)),$};var E7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ad=f.createContext(null),pK=f.forwardRef((e,t)=>{const{children:n}=e,r=E7(e,["children"]),a=f.useContext(Ad),l=f.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=VP(n),u=mi(t,c?is(n):null);return f.createElement(Ad.Provider,{value:l},f.createElement(nu,{space:!0},c?f.cloneElement(n,{ref:u}):n))}),w7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:l,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ye(l)} ${c} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},$7=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ye(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ye(n)})`}}}}},GE=e=>Object.assign({},C2(e)),KE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:u,subMenuItemBg:d,itemSelectedBg:g,activeBarHeight:h,activeBarWidth:p,activeBarBorderWidth:y,motionDurationSlow:E,motionEaseInOut:b,motionEaseOut:x,itemPaddingInline:S,motionDurationMid:w,itemHoverColor:$,lineType:O,colorSplit:_,itemDisabledColor:R,dangerItemColor:T,dangerItemHoverColor:M,dangerItemSelectedColor:z,dangerItemActiveBg:A,dangerItemSelectedBg:D,popupBg:F,itemHoverBg:W,itemActiveBg:k,menuSubMenuBg:U,horizontalItemSelectedColor:Y,horizontalItemSelectedBg:N,horizontalItemBorderRadius:P,horizontalItemHoverBg:B}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},GE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},GE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${R} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:T,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:M}},[`&${n}-item:active`]:{background:A}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:z},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:g,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:U},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${ye(h)} solid transparent`,transition:`border-color ${E} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:h,borderBottomColor:Y}},"&-selected":{color:Y,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:h,borderBottomColor:Y}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ye(y)} ${O} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye(p)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${x}`,`opacity ${w} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:z}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},XE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:l,marginXS:c,itemMarginBlock:u,itemWidth:d,itemPaddingInline:g}=e,h=e.calc(l).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ye(n),paddingInline:g,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ye(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:h}}},O7=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:l,controlHeightLG:c,motionEaseOut:u,paddingXL:d,itemMarginInline:g,fontSizeLG:h,motionDurationFast:p,motionDurationSlow:y,paddingXS:E,boxShadowSecondary:b,collapsedWidth:x,collapsedIconSize:S}=e,w={height:r,lineHeight:ye(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},XE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},XE(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${ye(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background ${y}`,`padding ${p} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:h,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ye(e.calc(S).div(2).equal())} - ${ye(g)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:ye(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},$d),{paddingInline:E})}}]},YE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:l,iconCls:c,iconSize:u,iconMarginInlineEnd:d}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ss()),[`&${t}-item-only-child`]:{[`> ${c}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},QE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ye(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ye(c)})`}}}}},R7=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOut:c,paddingXS:u,padding:d,colorSplit:g,lineWidth:h,zIndexPopup:p,borderRadiusLG:y,subMenuItemBorderRadius:E,menuArrowSize:b,menuArrowOffset:x,lineType:S,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},Od()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_r(e)),Od()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ye(u)} ${ye(d)}`,fontSize:$,lineHeight:w,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`,`padding ${l} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${c}`,`padding ${a} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:S,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}}}),YE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ye(e.calc(r).mul(2).equal())} ${ye(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:y},YE(e)),QE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:E},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}})},"\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}}}),QE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ye(x)})`},"&::after":{transform:`rotate(45deg) translateX(${ye(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ye(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ye(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ye(x)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},_7=e=>{var t,n,r;const{colorPrimary:a,colorError:l,colorTextDisabled:c,colorErrorBg:u,colorText:d,colorTextDescription:g,colorBgContainer:h,colorFillAlter:p,colorFillContent:y,lineWidth:E,lineWidthBold:b,controlItemBgActive:x,colorBgTextHover:S,controlHeightLG:w,lineHeight:$,colorBgElevated:O,marginXXS:_,padding:R,fontSize:T,controlHeightSM:M,fontSizeLG:z,colorTextLightSolid:A,colorErrorHover:D}=e,F=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,W=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:E,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,U=new nn(A).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:g,groupTitleColor:g,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:h,itemBg:h,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:y,itemActiveBg:x,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:x,itemSelectedBg:x,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:F,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:E,activeBarBorderWidth:W,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:$,collapsedWidth:w*2,popupBg:O,itemMarginBlock:_,itemPaddingInline:R,horizontalLineHeight:`${w*1.15}px`,iconSize:T,iconMarginInlineEnd:M-T,collapsedIconSize:z,groupTitleFontSize:T,darkItemDisabledColor:new nn(A).setA(.25).toRgbString(),darkItemColor:U,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:A,darkItemSelectedBg:a,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:U,darkItemHoverColor:A,darkDangerItemHoverColor:D,darkDangerItemSelectedColor:A,darkDangerItemActiveBg:l,itemWidth:F?`calc(100% + ${W}px)`:`calc(100% - ${k*2}px)`}},T7=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return $n("Menu",a=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:g,darkItemBg:h,darkSubMenuItemBg:p,darkItemSelectedColor:y,darkItemSelectedBg:E,darkDangerItemSelectedBg:b,darkItemHoverBg:x,darkGroupTitleColor:S,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:R,popupBg:T,darkPopupBg:M}=a,z=a.calc(u).div(7).mul(5).equal(),A=Kt(a,{menuArrowSize:z,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(z).mul(.25).equal(),menuSubMenuBg:l,calc:a.calc,popupBg:T}),D=Kt(A,{itemColor:d,itemHoverColor:w,groupTitleColor:S,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:h,popupBg:M,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:E,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:$,dangerItemColor:g,dangerItemHoverColor:O,dangerItemSelectedColor:_,dangerItemActiveBg:R,dangerItemSelectedBg:b,menuSubMenuBg:p,horizontalItemSelectedColor:y,horizontalItemSelectedBg:E});return[R7(A),w7(A),O7(A),KE(A,"light"),KE(D,"dark"),$7(A),oy(A),Md(A,"slide-up"),Md(A,"slide-down"),mm(A,"zoom-big")]},_7,{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)},B_=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:l}=e,c=f.useContext(Pd),{prefixCls:u,inlineCollapsed:d,theme:g}=c,h=fs();let p;if(!r)p=d&&!h.length&&a&&typeof a=="string"?f.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):f.createElement("span",{className:`${u}-title-content`},a);else{const b=f.isValidElement(a)&&a.type==="span";p=f.createElement(f.Fragment,null,ea(r,{className:re(f.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${u}-item-icon`)}),b?a:f.createElement("span",{className:`${u}-title-content`},a))}const y=f.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[E]=lm("Menu");return f.createElement(Pd.Provider,{value:y},f.createElement(Om,Object.assign({},Tn(e,["icon"]),{title:p,popupClassName:re(u,n,`${u}-${l||g}`),popupStyle:Object.assign({zIndex:E},e.popupStyle)})))};var M7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Mp(e){return e===null||e===!1}const N7={item:L_,submenu:B_,divider:D_},j7=f.forwardRef((e,t)=>{var n;const r=f.useContext(Ad),a=r||{},{getPrefixCls:l,getPopupContainer:c,direction:u,menu:d}=f.useContext(gt),g=l(),{prefixCls:h,className:p,style:y,theme:E="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:x,inlineCollapsed:S,siderCollapsed:w,rootClassName:$,mode:O,selectable:_,onClick:R,overflowedIndicatorPopupClassName:T}=e,M=M7(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),z=Tn(M,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:O});const A=An(function(){var q;R==null||R.apply(void 0,arguments),(q=a.onClick)===null||q===void 0||q.call(a)}),D=a.mode||O,F=_??a.selectable,W=S??w,k={horizontal:{motionName:`${g}-slide-up`},inline:Td(g),other:{motionName:`${g}-zoom-big`}},U=l("menu",h||a.prefixCls),Y=aa(U),[N,P,B]=T7(U,Y,!r),K=re(`${U}-${E}`,d==null?void 0:d.className,p),j=f.useMemo(()=>{var q,G;if(typeof b=="function"||Mp(b))return b||null;if(typeof a.expandIcon=="function"||Mp(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||Mp(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const V=(q=b??(a==null?void 0:a.expandIcon))!==null&&q!==void 0?q:d==null?void 0:d.expandIcon;return ea(V,{className:re(`${U}-submenu-expand-icon`,f.isValidElement(V)?(G=V.props)===null||G===void 0?void 0:G.className:void 0)})},[b,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,U]),L=f.useMemo(()=>({prefixCls:U,inlineCollapsed:W||!1,direction:u,firstLevel:!0,theme:E,mode:D,disableMenuItemTitleTooltip:x}),[U,W,u,x,E]);return N(f.createElement(Ad.Provider,{value:null},f.createElement(Pd.Provider,{value:L},f.createElement(Ou,Object.assign({getPopupContainer:c,overflowedIndicator:f.createElement(JI,null),overflowedIndicatorPopupClassName:re(U,`${U}-${E}`,T),mode:D,selectable:F,onClick:A},z,{inlineCollapsed:W,style:Object.assign(Object.assign({},d==null?void 0:d.style),y),className:K,prefixCls:U,direction:u,defaultMotions:k,expandIcon:j,ref:t,rootClassName:re($,P,a.rootClassName,B,Y),_internalComponents:N7})))))}),ds=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(Rm);return f.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var l;(l=n.current)===null||l===void 0||l.focus(a)}})),f.createElement(j7,Object.assign({ref:n},e,r))});ds.Item=L_;ds.SubMenu=B_;ds.Divider=D_;ds.ItemGroup=Ny;function _m(e){return Kt(e,{inputAffixPadding:e.paddingXXS})}const Tm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:l,controlHeightLG:c,fontSizeLG:u,lineHeightLG:d,paddingSM:g,controlPaddingHorizontalSM:h,controlPaddingHorizontal:p,colorFillAlter:y,colorPrimaryHover:E,colorPrimary:b,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:O,inputFontSize:_,inputFontSizeLG:R,inputFontSizeSM:T}=e,M=_||n,z=T||M,A=R||u,D=Math.round((t-M*r)/2*10)/10-a,F=Math.round((l-z*r)/2*10)/10-a,W=Math.ceil((c-A*d)/2*10)/10-a;return{paddingBlock:Math.max(D,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(W,0),paddingInline:g-a,paddingInlineSM:h-a,paddingInlineLG:p-a,addonBg:y,activeBorderColor:b,hoverBorderColor:E,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${w}`,warningActiveShadow:`0 0 0 ${x}px ${$}`,hoverBg:O,activeBg:O,inputFontSize:M,inputFontSizeLG:A,inputFontSizeSM:z}},I7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),jy=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},I7(Kt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),H_=(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}}),ZE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},H_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),P7=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jy(e))}),ZE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ZE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),JE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),A7=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},JE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),JE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},jy(e))}})}),z7=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},F_=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},ew=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},F_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),D7=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},F_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},jy(e))}),ew(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ew(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),L7=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tw(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tw(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),V_=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ye(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),nw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},V_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),B7=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),nw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),nw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),H7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),U_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ye(t)} ${ye(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},k_=e=>({padding:`${ye(e.paddingBlockSM)} ${ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),q_=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ye(e.paddingBlock)} ${ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},H7(e.colorTextPlaceholder)),{"&-lg":Object.assign({},U_(e)),"&-sm":Object.assign({},k_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),F7=e=>{const{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 ${t}, &-lg > ${t}-group-addon`]:Object.assign({},U_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},k_(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${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 ${ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ye(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ye(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Od()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},V7=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=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(Object.assign({},_r(e)),q_(e)),P7(e)),D7(e)),z7(e)),B7(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},U7=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ye(e.inputAffixPadding)}`}}}},k7=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:l,colorIconHover:c,iconCls:u}=e,d=`${t}-affix-wrapper`,g=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},q_(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),U7(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[g]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},q7=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_r(e)),F7(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},A7(e)),L7(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},W7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},G7=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},W_=$n(["Input","Shared"],e=>{const t=Kt(e,_m(e));return[V7(t),k7(t)]},Tm,{resetFont:!1}),G_=$n(["Input","Component"],e=>{const t=Kt(e,_m(e));return[q7(t),W7(t),G7(t),sy(t)]},Tm,{resetFont:!1}),K_=f.createContext({});var K7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function rw(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const X7=["xs","sm","md","lg","xl","xxl"],X_=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(gt),{gutter:a,wrap:l}=f.useContext(K_),{prefixCls:c,span:u,order:d,offset:g,push:h,pull:p,className:y,children:E,flex:b,style:x}=e,S=K7(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",c),[$,O,_]=d5(w),R={};let T={};X7.forEach(A=>{let D={};const F=e[A];typeof F=="number"?D.span=F:typeof F=="object"&&(D=F||{}),delete S[A],T=Object.assign(Object.assign({},T),{[`${w}-${A}-${D.span}`]:D.span!==void 0,[`${w}-${A}-order-${D.order}`]:D.order||D.order===0,[`${w}-${A}-offset-${D.offset}`]:D.offset||D.offset===0,[`${w}-${A}-push-${D.push}`]:D.push||D.push===0,[`${w}-${A}-pull-${D.pull}`]:D.pull||D.pull===0,[`${w}-rtl`]:r==="rtl"}),D.flex&&(T[`${w}-${A}-flex`]=!0,R[`--${w}-${A}-flex`]=rw(D.flex))});const M=re(w,{[`${w}-${u}`]:u!==void 0,[`${w}-order-${d}`]:d,[`${w}-offset-${g}`]:g,[`${w}-push-${h}`]:h,[`${w}-pull-${p}`]:p},y,T,O,_),z={};if(a&&a[0]>0){const A=a[0]/2;z.paddingLeft=A,z.paddingRight=A}return b&&(z.flex=rw(b),l===!1&&!z.minWidth&&(z.minWidth=0)),$(f.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},z),x),R),className:M,ref:t}),E))});function Y7(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((l,c)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<au.length;u++){const d=au[u];if(a[d]&&l[d]!==void 0){n[c]=l[d];break}}else n[c]=l}),n}var Q7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function aw(e,t){const[n,r]=f.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<au.length;l++){const c=au[l];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return f.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const Z7=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:l,style:c,children:u,gutter:d=0,wrap:g}=e,h=Q7(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:y}=f.useContext(gt),E=uH(!0,null),b=aw(a,E),x=aw(r,E),S=p("row",n),[w,$,O]=f5(S),_=Y7(d,E),R=re(S,{[`${S}-no-wrap`]:g===!1,[`${S}-${x}`]:x,[`${S}-${b}`]:b,[`${S}-rtl`]:y==="rtl"},l,$,O),T={},M=_[0]!=null&&_[0]>0?_[0]/-2:void 0;M&&(T.marginLeft=M,T.marginRight=M);const[z,A]=_;T.rowGap=A;const D=f.useMemo(()=>({gutter:[z,A],wrap:g}),[z,A,g]);return w(f.createElement(K_.Provider,{value:D},f.createElement("div",Object.assign({},h,{className:R,style:Object.assign(Object.assign({},T),c),ref:t}),u)))}),J7=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:l,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},_r(e)),{borderBlockStart:`${ye(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ye(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ye(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ye(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ye(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${c} * 100%)`},"&::after":{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${c} * 100%)`},"&::after":{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ye(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ye(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},eF=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),tF=$n("Divider",e=>{const t=Kt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[J7(t)]},eF,{unitless:{orientationMargin:!0}});var nF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ow=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=Dr("divider"),{prefixCls:l,type:c="horizontal",orientation:u="center",orientationMargin:d,className:g,rootClassName:h,children:p,dashed:y,variant:E="solid",plain:b,style:x}=e,S=nF(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),w=t("divider",l),[$,O,_]=tF(w),R=!!p,T=f.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),M=T==="start"&&d!=null,z=T==="end"&&d!=null,A=re(w,r,O,_,`${w}-${c}`,{[`${w}-with-text`]:R,[`${w}-with-text-${T}`]:R,[`${w}-dashed`]:!!y,[`${w}-${E}`]:E!=="solid",[`${w}-plain`]:!!b,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:M,[`${w}-no-default-orientation-margin-end`]:z},g,h),D=f.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),F={marginInlineStart:M?D:void 0,marginInlineEnd:z?D:void 0};return $(f.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},a),x)},S,{role:"separator"}),p&&c!=="vertical"&&f.createElement("span",{className:`${w}-inner-text`,style:F},p)))};function rF(e){return!!(e.addonBefore||e.addonAfter)}function aF(e){return!!(e.prefix||e.suffix||e.allowClear)}function iw(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function zd(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=iw(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=iw(t,e,r),n(a);return}n(a)}}function Y_(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var Q_=ae.forwardRef(function(e,t){var n,r,a,l=e.inputElement,c=e.children,u=e.prefixCls,d=e.prefix,g=e.suffix,h=e.addonBefore,p=e.addonAfter,y=e.className,E=e.style,b=e.disabled,x=e.readOnly,S=e.focused,w=e.triggerFocus,$=e.allowClear,O=e.value,_=e.handleReset,R=e.hidden,T=e.classes,M=e.classNames,z=e.dataAttrs,A=e.styles,D=e.components,F=e.onClear,W=c??l,k=(D==null?void 0:D.affixWrapper)||"span",U=(D==null?void 0:D.groupWrapper)||"span",Y=(D==null?void 0:D.wrapper)||"span",N=(D==null?void 0:D.groupAddon)||"span",P=f.useRef(null),B=function(ce){var Se;(Se=P.current)!==null&&Se!==void 0&&Se.contains(ce.target)&&(w==null||w())},K=aF(e),j=f.cloneElement(W,{value:O,className:re((n=W.props)===null||n===void 0?void 0:n.className,!K&&(M==null?void 0:M.variant))||null}),L=f.useRef(null);if(ae.useImperativeHandle(t,function(){return{nativeElement:L.current||P.current}}),K){var q=null;if($){var G=!b&&!x&&O,V="".concat(u,"-clear-icon"),X=lt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";q=ae.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){_==null||_(ce),F==null||F()},onMouseDown:function(ce){return ce.preventDefault()},className:re(V,Q(Q({},"".concat(V,"-hidden"),!G),"".concat(V,"-has-suffix"),!!g))},X)}var ee="".concat(u,"-affix-wrapper"),se=re(ee,Q(Q(Q(Q(Q({},"".concat(u,"-disabled"),b),"".concat(ee,"-disabled"),b),"".concat(ee,"-focused"),S),"".concat(ee,"-readonly"),x),"".concat(ee,"-input-with-clear-btn"),g&&$&&O),T==null?void 0:T.affixWrapper,M==null?void 0:M.affixWrapper,M==null?void 0:M.variant),ne=(g||$)&&ae.createElement("span",{className:re("".concat(u,"-suffix"),M==null?void 0:M.suffix),style:A==null?void 0:A.suffix},q,g);j=ae.createElement(k,Pe({className:se,style:A==null?void 0:A.affixWrapper,onClick:B},z==null?void 0:z.affixWrapper,{ref:P}),d&&ae.createElement("span",{className:re("".concat(u,"-prefix"),M==null?void 0:M.prefix),style:A==null?void 0:A.prefix},d),j,ne)}if(rF(e)){var ie="".concat(u,"-group"),ve="".concat(ie,"-addon"),fe="".concat(ie,"-wrapper"),le=re("".concat(u,"-wrapper"),ie,T==null?void 0:T.wrapper,M==null?void 0:M.wrapper),be=re(fe,Q({},"".concat(fe,"-disabled"),b),T==null?void 0:T.group,M==null?void 0:M.groupWrapper);j=ae.createElement(U,{className:be,ref:L},ae.createElement(Y,{className:le},h&&ae.createElement(N,{className:ve},h),j,p&&ae.createElement(N,{className:ve},p)))}return ae.cloneElement(j,{className:re((r=j.props)===null||r===void 0?void 0:r.className,y)||null,style:J(J({},(a=j.props)===null||a===void 0?void 0:a.style),E),hidden:R})}),oF=["show"];function Z_(e,t){return f.useMemo(function(){var n={};t&&(n.show=lt(t)==="object"&&t.formatter?t.formatter:!!t),n=J(J({},n),e);var r=n,a=r.show,l=$t(r,oF);return J(J({},l),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||function(c){return c.length}})},[e,t])}var iF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],lF=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.onKeyUp,g=e.prefixCls,h=g===void 0?"rc-input":g,p=e.disabled,y=e.htmlSize,E=e.className,b=e.maxLength,x=e.suffix,S=e.showCount,w=e.count,$=e.type,O=$===void 0?"text":$,_=e.classes,R=e.classNames,T=e.styles,M=e.onCompositionStart,z=e.onCompositionEnd,A=$t(e,iF),D=f.useState(!1),F=ge(D,2),W=F[0],k=F[1],U=f.useRef(!1),Y=f.useRef(!1),N=f.useRef(null),P=f.useRef(null),B=function(Me){N.current&&Y_(N.current,Me)},K=vr(e.defaultValue,{value:e.value}),j=ge(K,2),L=j[0],q=j[1],G=L==null?"":String(L),V=f.useState(null),X=ge(V,2),ee=X[0],se=X[1],ne=Z_(w,S),ie=ne.max||b,ve=ne.strategy(G),fe=!!ie&&ve>ie;f.useImperativeHandle(t,function(){var Ee;return{focus:B,blur:function(){var Ve;(Ve=N.current)===null||Ve===void 0||Ve.blur()},setSelectionRange:function(Ve,Ke,qe){var at;(at=N.current)===null||at===void 0||at.setSelectionRange(Ve,Ke,qe)},select:function(){var Ve;(Ve=N.current)===null||Ve===void 0||Ve.select()},input:N.current,nativeElement:((Ee=P.current)===null||Ee===void 0?void 0:Ee.nativeElement)||N.current}}),f.useEffect(function(){Y.current&&(Y.current=!1),k(function(Ee){return Ee&&p?!1:Ee})},[p]);var le=function(Me,Ve,Ke){var qe=Ve;if(!U.current&&ne.exceedFormatter&&ne.max&&ne.strategy(Ve)>ne.max){if(qe=ne.exceedFormatter(Ve,{max:ne.max}),Ve!==qe){var at,Ue;se([((at=N.current)===null||at===void 0?void 0:at.selectionStart)||0,((Ue=N.current)===null||Ue===void 0?void 0:Ue.selectionEnd)||0])}}else if(Ke.source==="compositionEnd")return;q(qe),N.current&&zd(N.current,Me,r,qe)};f.useEffect(function(){if(ee){var Ee;(Ee=N.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,Te(ee))}},[ee]);var be=function(Me){le(Me,Me.target.value,{source:"change"})},_e=function(Me){U.current=!1,le(Me,Me.currentTarget.value,{source:"compositionEnd"}),z==null||z(Me)},ce=function(Me){c&&Me.key==="Enter"&&!Y.current&&(Y.current=!0,c(Me)),u==null||u(Me)},Se=function(Me){Me.key==="Enter"&&(Y.current=!1),d==null||d(Me)},Oe=function(Me){k(!0),a==null||a(Me)},$e=function(Me){Y.current&&(Y.current=!1),k(!1),l==null||l(Me)},je=function(Me){q(""),B(),N.current&&zd(N.current,Me,r)},Ze=fe&&"".concat(h,"-out-of-range"),He=function(){var Me=Tn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ae.createElement("input",Pe({autoComplete:n},Me,{onChange:be,onFocus:Oe,onBlur:$e,onKeyDown:ce,onKeyUp:Se,className:re(h,Q({},"".concat(h,"-disabled"),p),R==null?void 0:R.input),style:T==null?void 0:T.input,ref:N,size:y,type:O,onCompositionStart:function(Ke){U.current=!0,M==null||M(Ke)},onCompositionEnd:_e}))},Xe=function(){var Me=Number(ie)>0;if(x||ne.show){var Ve=ne.showFormatter?ne.showFormatter({value:G,count:ve,maxLength:ie}):"".concat(ve).concat(Me?" / ".concat(ie):"");return ae.createElement(ae.Fragment,null,ne.show&&ae.createElement("span",{className:re("".concat(h,"-show-count-suffix"),Q({},"".concat(h,"-show-count-has-suffix"),!!x),R==null?void 0:R.count),style:J({},T==null?void 0:T.count)},Ve),x)}return null};return ae.createElement(Q_,Pe({},A,{prefixCls:h,className:re(E,Ze),handleReset:je,value:G,focused:W,triggerFocus:B,suffix:Xe(),disabled:p,classes:_,classNames:R,styles:T,ref:P}),He())});const J_=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ae.createElement(rs,null)}),t};function eT(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,l,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((c=e.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function sF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var cF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Mm=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:l,disabled:c,onBlur:u,onFocus:d,suffix:g,allowClear:h,addonAfter:p,addonBefore:y,className:E,style:b,styles:x,rootClassName:S,onChange:w,classNames:$,variant:O}=e,_=cF(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:R,direction:T,allowClear:M,autoComplete:z,className:A,style:D,classNames:F,styles:W}=Dr("input"),k=R("input",n),U=f.useRef(null),Y=aa(k),[N,P,B]=W_(k,S),[K]=G_(k,Y),{compactSize:j,compactItemClassnames:L}=Cu(k,T),q=Po($e=>{var je;return(je=l??j)!==null&&je!==void 0?je:$e}),G=ae.useContext($o),V=c??G,{status:X,hasFeedback:ee,feedbackIcon:se}=f.useContext(ta),ne=Em(X,a),ie=sF(e)||!!ee;f.useRef(ie);const ve=eT(U,!0),fe=$e=>{ve(),u==null||u($e)},le=$e=>{ve(),d==null||d($e)},be=$e=>{ve(),w==null||w($e)},_e=(ee||g)&&ae.createElement(ae.Fragment,null,g,ee&&se),ce=J_(h??M),[Se,Oe]=xy("input",O,r);return N(K(ae.createElement(lF,Object.assign({ref:Da(t,U),prefixCls:k,autoComplete:z},_,{disabled:V,onBlur:fe,onFocus:le,style:Object.assign(Object.assign({},D),b),styles:Object.assign(Object.assign({},W),x),suffix:_e,allowClear:ce,className:re(E,S,B,Y,L,A),onChange:be,addonBefore:y&&ae.createElement(nu,{form:!0,space:!0},y),addonAfter:p&&ae.createElement(nu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},$),F),{input:re({[`${k}-sm`]:q==="small",[`${k}-lg`]:q==="large",[`${k}-rtl`]:T==="rtl"},$==null?void 0:$.input,F.input,P),variant:re({[`${k}-${Se}`]:Oe},jd(k,ne)),affixWrapper:re({[`${k}-affix-wrapper-sm`]:q==="small",[`${k}-affix-wrapper-lg`]:q==="large",[`${k}-affix-wrapper-rtl`]:T==="rtl"},P),wrapper:re({[`${k}-group-rtl`]:T==="rtl"},P),groupWrapper:re({[`${k}-group-wrapper-sm`]:q==="small",[`${k}-group-wrapper-lg`]:q==="large",[`${k}-group-wrapper-rtl`]:T==="rtl",[`${k}-group-wrapper-${Se}`]:Oe},jd(`${k}-group-wrapper`,ne,ee),P)})}))))});function lw(e){return["small","middle","large"].includes(e)}function vK(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const tT=["wrap","nowrap","wrap-reverse"],nT=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],rT=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],uF=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&tT.includes(n)}},fF=(e,t)=>{const n={};return rT.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},dF=(e,t)=>{const n={};return nT.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function mF(e,t){return re(Object.assign(Object.assign(Object.assign({},uF(e,t)),fF(e,t)),dF(e,t)))}const gF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},hF=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},pF=e=>{const{componentCls:t}=e,n={};return tT.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},vF=e=>{const{componentCls:t}=e,n={};return rT.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},yF=e=>{const{componentCls:t}=e,n={};return nT.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},bF=()=>({}),SF=$n("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=Kt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[gF(a),hF(a),pF(a),vF(a),yF(a)]},bF,{resetStyle:!1});var CF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Dd=ae.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:a,style:l,flex:c,gap:u,children:d,vertical:g=!1,component:h="div"}=e,p=CF(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:E,getPrefixCls:b}=ae.useContext(gt),x=b("flex",n),[S,w,$]=SF(x),O=g??(y==null?void 0:y.vertical),_=re(a,r,y==null?void 0:y.className,x,w,$,mF(x,e),{[`${x}-rtl`]:E==="rtl",[`${x}-gap-${u}`]:lw(u),[`${x}-vertical`]:O}),R=Object.assign(Object.assign({},y==null?void 0:y.style),l);return c&&(R.flex=c),u&&!lw(u)&&(R.gap=u),S(ae.createElement(h,Object.assign({ref:t,className:_,style:R},Tn(p,["justify","wrap","align"])),d))});function Ld(e){const[t,n]=f.useState(e);return f.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const xF=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},
                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},EF=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${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 ${ye(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),sw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},wF=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},_r(e)),EF(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},sw(e,e.controlHeightSM)),"&-large":Object.assign({},sw(e,e.controlHeightLG))})}},$F=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:l,labelColor:c,labelFontSize:u,labelHeight:d,labelColonMarginInlineStart:g,labelColonMarginInlineEnd:h,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},_r(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${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:d,color:c,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:g,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:iy,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},cw=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},OF=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ma=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),aT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ma(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},RF=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:Ma(e)}},[`@media (max-width: ${ye(e.screenXSMax)})`]:[aT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ma(e)}}}],[`@media (max-width: ${ye(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ma(e)}}},[`@media (max-width: ${ye(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ma(e)}}},[`@media (max-width: ${ye(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ma(e)}}}}},_F=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
      ${n}-col-24${t}-label,
      ${n}-col-xl-24${t}-label`]:Ma(e),[`@media (max-width: ${ye(e.screenXSMax)})`]:[aT(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Ma(e)}}],[`@media (max-width: ${ye(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Ma(e)}},[`@media (max-width: ${ye(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Ma(e)}},[`@media (max-width: ${ye(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Ma(e)}}}},TF=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 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),oT=(e,t)=>Kt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Iy=$n("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=oT(e,n);return[wF(r),$F(r),xF(r),cw(r,r.componentCls),cw(r,r.formItemCls),OF(r),RF(r),_F(r),oy(r),iy]},TF,{order:-1e3}),uw=[];function Np(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const iT=e=>{let{help:t,helpStatus:n,errors:r=uw,warnings:a=uw,className:l,fieldId:c,onVisibleChanged:u}=e;const{prefixCls:d}=f.useContext(hy),g=`${d}-item-explain`,h=aa(d),[p,y,E]=Iy(d,h),b=f.useMemo(()=>Td(d),[d]),x=Ld(r),S=Ld(a),w=f.useMemo(()=>t!=null?[Np(t,"help",n)]:[].concat(Te(x.map((_,R)=>Np(_,"error","error",R))),Te(S.map((_,R)=>Np(_,"warning","warning",R)))),[t,n,x,S]),$=f.useMemo(()=>{const _={};return w.forEach(R=>{let{key:T}=R;_[T]=(_[T]||0)+1}),w.map((R,T)=>Object.assign(Object.assign({},R),{key:_[R.key]>1?`${R.key}-fallback-${T}`:R.key}))},[w]),O={};return c&&(O.id=`${c}_help`),p(f.createElement(eo,{motionDeadline:b.motionDeadline,motionName:`${d}-show-help`,visible:!!$.length,onVisibleChanged:u},_=>{const{className:R,style:T}=_;return f.createElement("div",Object.assign({},O,{className:re(g,R,E,h,l,y),style:T}),f.createElement(P2,Object.assign({keys:$},Td(d),{motionName:`${d}-show-help-item`,component:!1}),M=>{const{key:z,error:A,errorStatus:D,className:F,style:W}=M;return f.createElement("div",{key:z,className:re(F,{[`${g}-${D}`]:D}),style:W},A)}))}))},MF=["parentNode"],NF="form_item";function Uc(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function lT(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:MF.includes(n)?`${NF}_${n}`:n}function sT(e,t,n,r,a,l){let c=r;return l!==void 0?c=l:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}var jF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function fw(e){return Uc(e).join("_")}function dw(e,t){const n=t.getFieldInstance(e),r=zO(n);if(r)return r;const a=lT(Uc(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function cT(e){const[t]=gy(),n=f.useRef({}),r=f.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>l=>{const c=fw(a);l?n.current[c]=l:delete n.current[c]}},scrollToField:function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:c}=l,u=jF(l,["focus"]),d=dw(a,r);d&&(Q3(d,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var l,c;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(c=(l=dw(a,r))===null||l===void 0?void 0:l.focus)===null||c===void 0||c.call(l)},getFieldInstance:a=>{const l=fw(a);return n.current[l]}}),[e,t]);return[r]}var IF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PF=(e,t)=>{const n=f.useContext($o),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:d,style:g}=Dr("form"),{prefixCls:h,className:p,rootClassName:y,size:E,disabled:b=n,form:x,colon:S,labelAlign:w,labelWrap:$,labelCol:O,wrapperCol:_,hideRequiredMark:R,layout:T="horizontal",scrollToFirstError:M,requiredMark:z,onFinishFailed:A,name:D,style:F,feedbackIcons:W,variant:k}=e,U=IF(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Y=Po(E),N=f.useContext(u2),P=f.useMemo(()=>z!==void 0?z:R?!1:l!==void 0?l:!0,[R,z,l]),B=S??c,K=r("form",h),j=aa(K),[L,q,G]=Iy(K,j),V=re(K,`${K}-${T}`,{[`${K}-hide-required-mark`]:P===!1,[`${K}-rtl`]:a==="rtl",[`${K}-${Y}`]:Y},G,j,q,d,p,y),[X]=cT(x),{__INTERNAL__:ee}=X;ee.name=D;const se=f.useMemo(()=>({name:D,labelAlign:w,labelCol:O,labelWrap:$,wrapperCol:_,vertical:T==="vertical",colon:B,requiredMark:P,itemRef:ee.itemRef,form:X,feedbackIcons:W}),[D,w,O,_,T,B,P,X,W]),ne=f.useRef(null);f.useImperativeHandle(t,()=>{var fe;return Object.assign(Object.assign({},X),{nativeElement:(fe=ne.current)===null||fe===void 0?void 0:fe.nativeElement})});const ie=(fe,le)=>{if(fe){let be={block:"nearest"};typeof fe=="object"&&(be=Object.assign(Object.assign({},be),fe)),X.scrollToField(le,be)}},ve=fe=>{if(A==null||A(fe),fe.errorFields.length){const le=fe.errorFields[0].name;if(M!==void 0){ie(M,le);return}u!==void 0&&ie(u,le)}};return L(f.createElement(SR.Provider,{value:k},f.createElement(Y0,{disabled:b},f.createElement(Gi.Provider,{value:Y},f.createElement(bR,{validateMessages:N},f.createElement(Oo.Provider,{value:se},f.createElement(cs,Object.assign({id:D},U,{name:D,onFinishFailed:ve,form:X,ref:ne,style:Object.assign(Object.assign({},g),F),className:V}))))))))},AF=f.forwardRef(PF);function zF(e){if(typeof e=="function")return e;const t=zr(e);return t.length<=1?t[0]:t}const uT=()=>{const{status:e,errors:t=[],warnings:n=[]}=f.useContext(ta);return{status:e,errors:t,warnings:n}};uT.Context=ta;function DF(e){const[t,n]=f.useState(e),r=f.useRef(null),a=f.useRef([]),l=f.useRef(!1);f.useEffect(()=>(l.current=!1,()=>{l.current=!0,yn.cancel(r.current),r.current=null}),[]);function c(u){l.current||(r.current===null&&(a.current=[],r.current=yn(()=>{r.current=null,n(d=>{let g=d;return a.current.forEach(h=>{g=h(g)}),g})})),a.current.push(u))}return[t,c]}function LF(){const{itemRef:e}=f.useContext(Oo),t=f.useRef({});function n(r,a){const l=a&&typeof a=="object"&&is(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==l)&&(t.current.name=c,t.current.originRef=l,t.current.ref=Da(e(r),l)),t.current.ref}return n}const BF=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},HF=im(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=oT(e,n);return[BF(r)]});var FF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const VF=24,UF=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:d,extra:g,help:h,fieldId:p,marginBottom:y,onErrorVisibleChanged:E,label:b}=e,x=`${t}-item`,S=f.useContext(Oo),w=f.useMemo(()=>{let U=Object.assign({},a||S.wrapperCol||{});return b===null&&!r&&!a&&S.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(N=>{const P=N?[N]:[],B=Ca(S.labelCol,P),K=typeof B=="object"?B:{},j=Ca(U,P),L=typeof j=="object"?j:{};"span"in K&&!("offset"in L)&&K.span<VF&&(U=Sa(U,[].concat(P,["offset"]),K.span))}),U},[a,S]),$=re(`${x}-control`,w.className),O=f.useMemo(()=>{const{labelCol:U,wrapperCol:Y}=S;return FF(S,["labelCol","wrapperCol"])},[S]),_=f.useRef(null),[R,T]=f.useState(0);Gt(()=>{g&&_.current?T(_.current.clientHeight):T(0)},[g]);const M=f.createElement("div",{className:`${x}-control-input`},f.createElement("div",{className:`${x}-control-input-content`},l)),z=f.useMemo(()=>({prefixCls:t,status:n}),[t,n]),A=y!==null||c.length||u.length?f.createElement(hy.Provider,{value:z},f.createElement(iT,{fieldId:p,errors:c,warnings:u,help:h,helpStatus:n,className:`${x}-explain-connected`,onVisibleChanged:E})):null,D={};p&&(D.id=`${p}_extra`);const F=g?f.createElement("div",Object.assign({},D,{className:`${x}-extra`,ref:_}),g):null,W=A||F?f.createElement("div",{className:`${x}-additional`,style:y?{minHeight:y+R}:{}},A,F):null,k=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:M,errorList:A,extra:F}):f.createElement(f.Fragment,null,M,W);return f.createElement(Oo.Provider,{value:O},f.createElement(X_,Object.assign({},w,{className:$}),k),f.createElement(HF,{prefixCls:t}))};var kF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function qF(e){return e?typeof e=="object"&&!f.isValidElement(e)?e:{title:e}:null}const WF=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:l,colon:c,required:u,requiredMark:d,tooltip:g,vertical:h}=e;var p;const[y]=Io("Form"),{labelAlign:E,labelCol:b,labelWrap:x,colon:S}=f.useContext(Oo);if(!n)return null;const w=a||b||{},$=l||E,O=`${t}-item-label`,_=re(O,$==="left"&&`${O}-left`,w.className,{[`${O}-wrap`]:!!x});let R=n;const T=c===!0||S!==!1&&c!==!1;T&&!h&&typeof n=="string"&&n.trim()&&(R=n.replace(/[:|：]\s*$/,""));const z=qF(g);if(z){const{icon:U=f.createElement(OP,null)}=z,Y=kF(z,["icon"]),N=f.createElement(hi,Object.assign({},Y),f.cloneElement(U,{className:`${t}-item-tooltip`,title:"",onClick:P=>{P.preventDefault()},tabIndex:null}));R=f.createElement(f.Fragment,null,R,N)}const A=d==="optional",D=typeof d=="function",F=d===!1;D?R=d(R,{required:!!u}):A&&!u&&(R=f.createElement(f.Fragment,null,R,f.createElement("span",{className:`${t}-item-optional`,title:""},(y==null?void 0:y.optional)||((p=wo.Form)===null||p===void 0?void 0:p.optional))));let W;F?W="hidden":(A||D)&&(W="optional");const k=re({[`${t}-item-required`]:u,[`${t}-item-required-mark-${W}`]:W,[`${t}-item-no-colon`]:!T});return f.createElement(X_,Object.assign({},w,{className:_}),f.createElement("label",{htmlFor:r,className:k,title:typeof n=="string"?n:""},R))},GF={success:tm,warning:os,error:rs,validating:hu};function fT(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:l,prefixCls:c,meta:u,noStyle:d}=e;const g=`${c}-item`,{feedbackIcons:h}=f.useContext(Oo),p=sT(n,r,u,null,!!a,l),{isFormItemInput:y,status:E,hasFeedback:b,feedbackIcon:x}=f.useContext(ta),S=f.useMemo(()=>{var w;let $;if(a){const _=a!==!0&&a.icons||h,R=p&&((w=_==null?void 0:_({status:p,errors:n,warnings:r}))===null||w===void 0?void 0:w[p]),T=p&&GF[p];$=R!==!1&&T?f.createElement("span",{className:re(`${g}-feedback-icon`,`${g}-feedback-icon-${p}`)},R||f.createElement(T,null)):null}const O={status:p||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:$,isFormItemInput:!0};return d&&(O.status=(p??E)||"",O.isFormItemInput=y,O.hasFeedback=!!(a??b),O.feedbackIcon=a!==void 0?O.feedbackIcon:x),O},[p,a,d,y,E]);return f.createElement(ta.Provider,{value:S},t)}var KF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function XF(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:l,errors:c,warnings:u,validateStatus:d,meta:g,hasFeedback:h,hidden:p,children:y,fieldId:E,required:b,isRequired:x,onSubItemMetaChange:S,layout:w}=e,$=KF(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),O=`${t}-item`,{requiredMark:_,vertical:R}=f.useContext(Oo),T=R||w==="vertical",M=f.useRef(null),z=Ld(c),A=Ld(u),D=l!=null,F=!!(D||c.length||u.length),W=!!M.current&&um(M.current),[k,U]=f.useState(null);Gt(()=>{if(F&&M.current){const K=getComputedStyle(M.current);U(parseInt(K.marginBottom,10))}},[F,W]);const Y=K=>{K||U(null)},P=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const j=K?z:g.errors,L=K?A:g.warnings;return sT(j,L,g,"",!!h,d)}(),B=re(O,n,r,{[`${O}-with-help`]:D||z.length||A.length,[`${O}-has-feedback`]:P&&h,[`${O}-has-success`]:P==="success",[`${O}-has-warning`]:P==="warning",[`${O}-has-error`]:P==="error",[`${O}-is-validating`]:P==="validating",[`${O}-hidden`]:p,[`${O}-${w}`]:w});return f.createElement("div",{className:B,style:a,ref:M},f.createElement(Z7,Object.assign({className:`${O}-row`},Tn($,["_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"])),f.createElement(WF,Object.assign({htmlFor:E},e,{requiredMark:_,required:b??x,prefixCls:t,vertical:T})),f.createElement(UF,Object.assign({},e,g,{errors:z,warnings:A,prefixCls:t,status:P,help:l,marginBottom:k,onErrorVisibleChanged:Y}),f.createElement(yR.Provider,{value:S},f.createElement(fT,{prefixCls:t,meta:g,errors:g.errors,warnings:g.warnings,hasFeedback:h,validateStatus:P},y)))),!!k&&f.createElement("div",{className:`${O}-margin-offset`,style:{marginBottom:-k}}))}const YF="__SPLIT__";function QF(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const l=e[a],c=t[a];return l===c||typeof l=="function"||typeof c=="function"})}const ZF=f.memo(e=>{let{children:t}=e;return t},(e,t)=>QF(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function mw(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function JF(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:g,label:h,messageVariables:p,trigger:y="onChange",validateTrigger:E,hidden:b,help:x,layout:S}=e,{getPrefixCls:w}=f.useContext(gt),{name:$}=f.useContext(Oo),O=zF(d),_=typeof O=="function",R=f.useContext(yR),{validateTrigger:T}=f.useContext(Yi),M=E!==void 0?E:T,z=t!=null,A=w("form",l),D=aa(A),[F,W,k]=Iy(A,D);yu();const U=f.useContext(tu),Y=f.useRef(null),[N,P]=DF({}),[B,K]=Ki(()=>mw()),j=se=>{const ne=U==null?void 0:U.getKey(se.name);if(K(se.destroy?mw():se,!0),n&&x!==!1&&R){let ie=se.name;if(se.destroy)ie=Y.current||ie;else if(ne!==void 0){const[ve,fe]=ne;ie=[ve].concat(Te(fe)),Y.current=ie}R(se,ie)}},L=(se,ne)=>{P(ie=>{const ve=Object.assign({},ie),le=[].concat(Te(se.name.slice(0,-1)),Te(ne)).join(YF);return se.destroy?delete ve[le]:ve[le]=se,ve})},[q,G]=f.useMemo(()=>{const se=Te(B.errors),ne=Te(B.warnings);return Object.values(N).forEach(ie=>{se.push.apply(se,Te(ie.errors||[])),ne.push.apply(ne,Te(ie.warnings||[]))}),[se,ne]},[N,B.errors,B.warnings]),V=LF();function X(se,ne,ie){return n&&!b?f.createElement(fT,{prefixCls:A,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:q,warnings:G,noStyle:!0},se):f.createElement(XF,Object.assign({key:"row"},e,{className:re(r,k,D,W),prefixCls:A,fieldId:ne,isRequired:ie,errors:q,warnings:G,meta:B,onSubItemMetaChange:L,layout:S}),se)}if(!z&&!_&&!a)return F(X(O));let ee={};return typeof h=="string"?ee.label=h:t&&(ee.label=String(t)),p&&(ee=Object.assign(Object.assign({},ee),p)),F(f.createElement(my,Object.assign({},e,{messageVariables:ee,trigger:y,validateTrigger:M,onMetaChange:j}),(se,ne,ie)=>{const ve=Uc(t).length&&ne?ne.name:[],fe=lT(ve,$),le=g!==void 0?g:!!(u!=null&&u.some(ce=>{if(ce&&typeof ce=="object"&&ce.required&&!ce.warningOnly)return!0;if(typeof ce=="function"){const Se=ce(ie);return(Se==null?void 0:Se.required)&&!(Se!=null&&Se.warningOnly)}return!1})),be=Object.assign({},se);let _e=null;if(Array.isArray(O)&&z)_e=O;else if(!(_&&(!(c||a)||z))){if(!(a&&!_&&!z))if(f.isValidElement(O)){const ce=Object.assign(Object.assign({},O.props),be);if(ce.id||(ce.id=fe),x||q.length>0||G.length>0||e.extra){const $e=[];(x||q.length>0)&&$e.push(`${fe}_help`),e.extra&&$e.push(`${fe}_extra`),ce["aria-describedby"]=$e.join(" ")}q.length>0&&(ce["aria-invalid"]="true"),le&&(ce["aria-required"]="true"),el(O)&&(ce.ref=V(ve,O)),new Set([].concat(Te(Uc(y)),Te(Uc(M)))).forEach($e=>{ce[$e]=function(){for(var je,Ze,He,Xe,Ee,Me=arguments.length,Ve=new Array(Me),Ke=0;Ke<Me;Ke++)Ve[Ke]=arguments[Ke];(He=be[$e])===null||He===void 0||(je=He).call.apply(je,[be].concat(Ve)),(Ee=(Xe=O.props)[$e])===null||Ee===void 0||(Ze=Ee).call.apply(Ze,[Xe].concat(Ve))}});const Oe=[ce["aria-required"],ce["aria-invalid"],ce["aria-describedby"]];_e=f.createElement(ZF,{control:be,update:O,childProps:Oe},ea(O,ce))}else _&&(c||a)&&!z?_e=O(ie):_e=O}return X(_e,fe,le)}))}const dT=JF;dT.useStatus=uT;var e9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const t9=e=>{var{prefixCls:t,children:n}=e,r=e9(e,["prefixCls","children"]);const{getPrefixCls:a}=f.useContext(gt),l=a("form",t),c=f.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return f.createElement(gR,Object.assign({},r),(u,d,g)=>f.createElement(hy.Provider,{value:c},n(u.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),d,{errors:g.errors,warnings:g.warnings})))};function n9(){const{form:e}=f.useContext(Oo);return e}const Qr=AF;Qr.Item=dT;Qr.List=t9;Qr.ErrorList=iT;Qr.useForm=cT;Qr.useFormInstance=n9;Qr.useWatch=vR;Qr.Provider=bR;Qr.create=()=>{};const r9=e=>{const{getPrefixCls:t,direction:n}=f.useContext(gt),{prefixCls:r,className:a}=e,l=t("input-group",r),c=t("input"),[u,d,g]=G_(c),h=re(l,g,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:n==="rtl"},d,a),p=f.useContext(ta),y=f.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return u(f.createElement("span",{className:h,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f.createElement(ta.Provider,{value:y},e.children)))},a9=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},o9=$n(["Input","OTP"],e=>{const t=Kt(e,_m(e));return[a9(t)]},Tm);var i9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const l9=f.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:l,index:c,mask:u}=e,d=i9(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:g}=f.useContext(gt),h=g("otp"),p=typeof u=="string"?u:r,y=f.useRef(null);f.useImperativeHandle(t,()=>y.current);const E=w=>{a(c,w.target.value)},b=()=>{yn(()=>{var w;const $=(w=y.current)===null||w===void 0?void 0:w.input;document.activeElement===$&&$&&$.select()})},x=w=>{const{key:$,ctrlKey:O,metaKey:_}=w;$==="ArrowLeft"?l(c-1):$==="ArrowRight"?l(c+1):$==="z"&&(O||_)&&w.preventDefault(),b()},S=w=>{w.key==="Backspace"&&!r&&l(c-1),b()};return f.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&f.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},p),f.createElement(Mm,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:y,value:r,onInput:E,onFocus:b,onKeyDown:x,onKeyUp:S,onMouseDown:b,onMouseUp:b,className:re(n,{[`${h}-mask-input`]:u})})))});var s9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Gf(e){return(e||"").split("")}const c9=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?f.createElement("span",{className:`${n}-separator`},a):null},u9=f.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:l,value:c,onChange:u,formatter:d,separator:g,variant:h,disabled:p,status:y,autoFocus:E,mask:b,type:x,onInput:S,inputMode:w}=e,$=s9(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:O,direction:_}=f.useContext(gt),R=O("otp",n),T=Za($,{aria:!0,data:!0,attr:!0}),[M,z,A]=o9(R),D=Po(V=>a??V),F=f.useContext(ta),W=Em(F.status,y),k=f.useMemo(()=>Object.assign(Object.assign({},F),{status:W,hasFeedback:!1,feedbackIcon:null}),[F,W]),U=f.useRef(null),Y=f.useRef({});f.useImperativeHandle(t,()=>({focus:()=>{var V;(V=Y.current[0])===null||V===void 0||V.focus()},blur:()=>{var V;for(let X=0;X<r;X+=1)(V=Y.current[X])===null||V===void 0||V.blur()},nativeElement:U.current}));const N=V=>d?d(V):V,[P,B]=f.useState(()=>Gf(N(l||"")));f.useEffect(()=>{c!==void 0&&B(Gf(c))},[c]);const K=An(V=>{B(V),S&&S(V),u&&V.length===r&&V.every(X=>X)&&V.some((X,ee)=>P[ee]!==X)&&u(V.join(""))}),j=An((V,X)=>{let ee=Te(P);for(let ne=0;ne<V;ne+=1)ee[ne]||(ee[ne]="");X.length<=1?ee[V]=X:ee=ee.slice(0,V).concat(Gf(X)),ee=ee.slice(0,r);for(let ne=ee.length-1;ne>=0&&!ee[ne];ne-=1)ee.pop();const se=N(ee.map(ne=>ne||" ").join(""));return ee=Gf(se).map((ne,ie)=>ne===" "&&!ee[ie]?ee[ie]:ne),ee}),L=(V,X)=>{var ee;const se=j(V,X),ne=Math.min(V+X.length,r-1);ne!==V&&se[V]!==void 0&&((ee=Y.current[ne])===null||ee===void 0||ee.focus()),K(se)},q=V=>{var X;(X=Y.current[V])===null||X===void 0||X.focus()},G={variant:h,disabled:p,status:W,mask:b,type:x,inputMode:w};return M(f.createElement("div",Object.assign({},T,{ref:U,className:re(R,{[`${R}-sm`]:D==="small",[`${R}-lg`]:D==="large",[`${R}-rtl`]:_==="rtl"},A,z),role:"group"}),f.createElement(ta.Provider,{value:k},Array.from({length:r}).map((V,X)=>{const ee=`otp-${X}`,se=P[X]||"";return f.createElement(f.Fragment,{key:ee},f.createElement(l9,Object.assign({ref:ne=>{Y.current[X]=ne},index:X,size:D,htmlSize:1,className:`${R}-input`,onChange:L,value:se,onActiveChange:q,autoFocus:X===0&&E},G)),X<r-1&&f.createElement(c9,{separator:g,index:X,prefixCls:R}))}))))});var f9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const d9=e=>e?f.createElement(uP,null):f.createElement(lP,null),m9={click:"onClick",hover:"onMouseOver"},g9=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:l=d9}=e,c=f.useContext($o),u=n??c,d=typeof a=="object"&&a.visible!==void 0,[g,h]=f.useState(()=>d?a.visible:!1),p=f.useRef(null);f.useEffect(()=>{d&&h(a.visible)},[d,a]);const y=eT(p),E=()=>{var D;if(u)return;g&&y();const F=!g;h(F),typeof a=="object"&&((D=a.onVisibleChange)===null||D===void 0||D.call(a,F))},b=D=>{const F=m9[r]||"",W=l(g),k={[F]:E,className:`${D}-icon`,key:"passwordIcon",onMouseDown:U=>{U.preventDefault()},onMouseUp:U=>{U.preventDefault()}};return f.cloneElement(f.isValidElement(W)?W:f.createElement("span",null,W),k)},{className:x,prefixCls:S,inputPrefixCls:w,size:$}=e,O=f9(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=f.useContext(gt),R=_("input",w),T=_("input-password",S),M=a&&b(T),z=re(T,x,{[`${T}-${$}`]:!!$}),A=Object.assign(Object.assign({},Tn(O,["suffix","iconRender","visibilityToggle"])),{type:g?"text":"password",className:z,prefixCls:R,suffix:M});return $&&(A.size=$),f.createElement(Mm,Object.assign({ref:Da(t,p)},A))});var h9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const p9=f.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:l,suffix:c,enterButton:u=!1,addonAfter:d,loading:g,disabled:h,onSearch:p,onChange:y,onCompositionStart:E,onCompositionEnd:b}=e,x=h9(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:w}=f.useContext(gt),$=f.useRef(!1),O=S("input-search",n),_=S("input",r),{compactSize:R}=Cu(O,w),T=Po(L=>{var q;return(q=l??R)!==null&&q!==void 0?q:L}),M=f.useRef(null),z=L=>{L!=null&&L.target&&L.type==="click"&&p&&p(L.target.value,L,{source:"clear"}),y==null||y(L)},A=L=>{var q;document.activeElement===((q=M.current)===null||q===void 0?void 0:q.input)&&L.preventDefault()},D=L=>{var q,G;p&&p((G=(q=M.current)===null||q===void 0?void 0:q.input)===null||G===void 0?void 0:G.value,L,{source:"input"})},F=L=>{$.current||g||D(L)},W=typeof u=="boolean"?f.createElement(IO,null):null,k=`${O}-button`;let U;const Y=u||{},N=Y.type&&Y.type.__ANT_BUTTON===!0;N||Y.type==="button"?U=ea(Y,Object.assign({onMouseDown:A,onClick:L=>{var q,G;(G=(q=Y==null?void 0:Y.props)===null||q===void 0?void 0:q.onClick)===null||G===void 0||G.call(q,L),D(L)},key:"enterButton"},N?{className:k,size:T}:{})):U=f.createElement(Pr,{className:k,type:u?"primary":void 0,size:T,disabled:h,key:"enterButton",onMouseDown:A,onClick:D,loading:g,icon:W},u),d&&(U=[U,ea(d,{key:"addonAfter"})]);const P=re(O,{[`${O}-rtl`]:w==="rtl",[`${O}-${T}`]:!!T,[`${O}-with-button`]:!!u},a),B=Object.assign(Object.assign({},x),{className:P,prefixCls:_,type:"search"}),K=L=>{$.current=!0,E==null||E(L)},j=L=>{$.current=!1,b==null||b(L)};return f.createElement(Mm,Object.assign({ref:Da(M,t),onPressEnter:F},B,{size:T,onCompositionStart:K,onCompositionEnd:j,addonAfter:U,suffix:c,onChange:z,disabled:h}))});var v9=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,y9=["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"],jp={},Yr;function b9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&jp[n])return jp[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=y9.map(function(g){return"".concat(g,":").concat(r.getPropertyValue(g))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:c,boxSizing:a};return t&&n&&(jp[n]=d),d}function S9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Yr||(Yr=document.createElement("textarea"),Yr.setAttribute("tab-index","-1"),Yr.setAttribute("aria-hidden","true"),Yr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Yr)),e.getAttribute("wrap")?Yr.setAttribute("wrap",e.getAttribute("wrap")):Yr.removeAttribute("wrap");var a=b9(e,t),l=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;Yr.setAttribute("style","".concat(d,";").concat(v9)),Yr.value=e.value||e.placeholder||"";var g=void 0,h=void 0,p,y=Yr.scrollHeight;if(u==="border-box"?y+=c:u==="content-box"&&(y-=l),n!==null||r!==null){Yr.value=" ";var E=Yr.scrollHeight-l;n!==null&&(g=E*n,u==="border-box"&&(g=g+l+c),y=Math.max(g,y)),r!==null&&(h=E*r,u==="border-box"&&(h=h+l+c),p=y>h?"":"hidden",y=Math.min(h,y))}var b={height:y,overflowY:p,resize:"none"};return g&&(b.minHeight=g),h&&(b.maxHeight=h),b}var C9=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ip=0,Pp=1,Ap=2,x9=f.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,u=n.onResize,d=n.className,g=n.style,h=n.disabled,p=n.onChange;n.onInternalAutoSize;var y=$t(n,C9),E=vr(a,{value:l,postState:function(V){return V??""}}),b=ge(E,2),x=b[0],S=b[1],w=function(V){S(V.target.value),p==null||p(V)},$=f.useRef();f.useImperativeHandle(t,function(){return{textArea:$.current}});var O=f.useMemo(function(){return c&&lt(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),_=ge(O,2),R=_[0],T=_[1],M=!!c,z=function(){try{if(document.activeElement===$.current){var V=$.current,X=V.selectionStart,ee=V.selectionEnd,se=V.scrollTop;$.current.setSelectionRange(X,ee),$.current.scrollTop=se}}catch{}},A=f.useState(Ap),D=ge(A,2),F=D[0],W=D[1],k=f.useState(),U=ge(k,2),Y=U[0],N=U[1],P=function(){W(Ip)};Gt(function(){M&&P()},[l,R,T,M]),Gt(function(){if(F===Ip)W(Pp);else if(F===Pp){var G=S9($.current,!1,R,T);W(Ap),N(G)}else z()},[F]);var B=f.useRef(),K=function(){yn.cancel(B.current)},j=function(V){F===Ap&&(u==null||u(V),c&&(K(),B.current=yn(function(){P()})))};f.useEffect(function(){return K},[]);var L=M?Y:null,q=J(J({},g),L);return(F===Ip||F===Pp)&&(q.overflowY="hidden",q.overflowX="hidden"),f.createElement(jo,{onResize:j,disabled:!(c||u)},f.createElement("textarea",Pe({},y,{ref:$,style:q,className:re(r,d,Q({},"".concat(r,"-disabled"),h)),disabled:h,value:x,onChange:w})))}),E9=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],w9=ae.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,g=e.maxLength,h=e.onCompositionStart,p=e.onCompositionEnd,y=e.suffix,E=e.prefixCls,b=E===void 0?"rc-textarea":E,x=e.showCount,S=e.count,w=e.className,$=e.style,O=e.disabled,_=e.hidden,R=e.classNames,T=e.styles,M=e.onResize,z=e.onClear,A=e.onPressEnter,D=e.readOnly,F=e.autoSize,W=e.onKeyDown,k=$t(e,E9),U=vr(r,{value:a,defaultValue:r}),Y=ge(U,2),N=Y[0],P=Y[1],B=N==null?"":String(N),K=ae.useState(!1),j=ge(K,2),L=j[0],q=j[1],G=ae.useRef(!1),V=ae.useState(null),X=ge(V,2),ee=X[0],se=X[1],ne=f.useRef(null),ie=f.useRef(null),ve=function(){var ze;return(ze=ie.current)===null||ze===void 0?void 0:ze.textArea},fe=function(){ve().focus()};f.useImperativeHandle(t,function(){var Qe;return{resizableTextArea:ie.current,focus:fe,blur:function(){ve().blur()},nativeElement:((Qe=ne.current)===null||Qe===void 0?void 0:Qe.nativeElement)||ve()}}),f.useEffect(function(){q(function(Qe){return!O&&Qe})},[O]);var le=ae.useState(null),be=ge(le,2),_e=be[0],ce=be[1];ae.useEffect(function(){if(_e){var Qe;(Qe=ve()).setSelectionRange.apply(Qe,Te(_e))}},[_e]);var Se=Z_(S,x),Oe=(n=Se.max)!==null&&n!==void 0?n:g,$e=Number(Oe)>0,je=Se.strategy(B),Ze=!!Oe&&je>Oe,He=function(ze,Fe){var Ne=Fe;!G.current&&Se.exceedFormatter&&Se.max&&Se.strategy(Fe)>Se.max&&(Ne=Se.exceedFormatter(Fe,{max:Se.max}),Fe!==Ne&&ce([ve().selectionStart||0,ve().selectionEnd||0])),P(Ne),zd(ze.currentTarget,ze,u,Ne)},Xe=function(ze){G.current=!0,h==null||h(ze)},Ee=function(ze){G.current=!1,He(ze,ze.currentTarget.value),p==null||p(ze)},Me=function(ze){He(ze,ze.target.value)},Ve=function(ze){ze.key==="Enter"&&A&&A(ze),W==null||W(ze)},Ke=function(ze){q(!0),l==null||l(ze)},qe=function(ze){q(!1),c==null||c(ze)},at=function(ze){P(""),fe(),zd(ve(),ze,u)},Ue=y,Ye;Se.show&&(Se.showFormatter?Ye=Se.showFormatter({value:B,count:je,maxLength:Oe}):Ye="".concat(je).concat($e?" / ".concat(Oe):""),Ue=ae.createElement(ae.Fragment,null,Ue,ae.createElement("span",{className:re("".concat(b,"-data-count"),R==null?void 0:R.count),style:T==null?void 0:T.count},Ye)));var st=function(ze){var Fe;M==null||M(ze),(Fe=ve())!==null&&Fe!==void 0&&Fe.style.height&&se(!0)},pt=!F&&!x&&!d;return ae.createElement(Q_,{ref:ne,value:B,allowClear:d,handleReset:at,suffix:Ue,prefixCls:b,classNames:J(J({},R),{},{affixWrapper:re(R==null?void 0:R.affixWrapper,Q(Q({},"".concat(b,"-show-count"),x),"".concat(b,"-textarea-allow-clear"),d))}),disabled:O,focused:L,className:re(w,Ze&&"".concat(b,"-out-of-range")),style:J(J({},$),ee&&!pt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ye=="string"?Ye:void 0}},hidden:_,readOnly:D,onClear:z},ae.createElement(x9,Pe({},k,{autoSize:F,maxLength:g,onKeyDown:Ve,onChange:Me,onFocus:Ke,onBlur:qe,onCompositionStart:Xe,onCompositionEnd:Ee,className:re(R==null?void 0:R.textarea),style:J(J({},T==null?void 0:T.textarea),{},{resize:$==null?void 0:$.resize}),disabled:O,prefixCls:b,onResize:st,ref:ie,readOnly:D})))});const $9=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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 > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},O9=$n(["Input","TextArea"],e=>{const t=Kt(e,_m(e));return[$9(t)]},Tm,{resetFont:!1});var R9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Py=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:l,disabled:c,status:u,allowClear:d,classNames:g,rootClassName:h,className:p,style:y,styles:E,variant:b,showCount:x,onMouseDown:S,onResize:w}=e,$=R9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:_,allowClear:R,autoComplete:T,className:M,style:z,classNames:A,styles:D}=Dr("textArea"),F=f.useContext($o),W=c??F,{status:k,hasFeedback:U,feedbackIcon:Y}=f.useContext(ta),N=Em(k,u),P=f.useRef(null);f.useImperativeHandle(t,()=>{var Se;return{resizableTextArea:(Se=P.current)===null||Se===void 0?void 0:Se.resizableTextArea,focus:Oe=>{var $e,je;Y_((je=($e=P.current)===null||$e===void 0?void 0:$e.resizableTextArea)===null||je===void 0?void 0:je.textArea,Oe)},blur:()=>{var Oe;return(Oe=P.current)===null||Oe===void 0?void 0:Oe.blur()}}});const B=O("input",r),K=aa(B),[j,L,q]=W_(B,h),[G]=O9(B,K),{compactSize:V,compactItemClassnames:X}=Cu(B,_),ee=Po(Se=>{var Oe;return(Oe=l??V)!==null&&Oe!==void 0?Oe:Se}),[se,ne]=xy("textArea",b,a),ie=J_(d??R),[ve,fe]=f.useState(!1),[le,be]=f.useState(!1),_e=Se=>{fe(!0),S==null||S(Se);const Oe=()=>{fe(!1),document.removeEventListener("mouseup",Oe)};document.addEventListener("mouseup",Oe)},ce=Se=>{var Oe,$e;if(w==null||w(Se),ve&&typeof getComputedStyle=="function"){const je=($e=(Oe=P.current)===null||Oe===void 0?void 0:Oe.nativeElement)===null||$e===void 0?void 0:$e.querySelector("textarea");je&&getComputedStyle(je).resize==="both"&&be(!0)}};return j(G(f.createElement(w9,Object.assign({autoComplete:T},$,{style:Object.assign(Object.assign({},z),y),styles:Object.assign(Object.assign({},D),E),disabled:W,allowClear:ie,className:re(q,K,p,h,X,M,le&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},g),A),{textarea:re({[`${B}-sm`]:ee==="small",[`${B}-lg`]:ee==="large"},L,g==null?void 0:g.textarea,A.textarea,ve&&`${B}-mouse-active`),variant:re({[`${B}-${se}`]:ne},jd(B,N)),affixWrapper:re(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:_==="rtl",[`${B}-affix-wrapper-sm`]:ee==="small",[`${B}-affix-wrapper-lg`]:ee==="large",[`${B}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:B,suffix:U&&f.createElement("span",{className:`${B}-textarea-suffix`},Y),showCount:x,ref:P,onResize:ce,onMouseDown:_e}))))}),pi=Mm;pi.Group=r9;pi.Search=p9;pi.TextArea=Py;pi.Password=g9;pi.OTP=u9;function _9(e,t,n){return typeof n=="boolean"?n:e.length?!0:zr(t).some(a=>a.type===z_)}var mT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Nm(e){let{suffixCls:t,tagName:n,displayName:r}=e;return a=>f.forwardRef((c,u)=>f.createElement(a,Object.assign({ref:u,suffixCls:t,tagName:n},c)))}const Ay=f.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=mT(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=f.useContext(gt),d=u("layout",n),[g,h,p]=A_(d),y=r?`${d}-${r}`:d;return g(f.createElement(l,Object.assign({className:re(n||y,a,h,p),ref:t},c)))}),T9=f.forwardRef((e,t)=>{const{direction:n}=f.useContext(gt),[r,a]=f.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:g,tagName:h,style:p}=e,y=mT(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),E=Tn(y,["suffixCls"]),{getPrefixCls:b,className:x,style:S}=Dr("layout"),w=b("layout",l),$=_9(r,d,g),[O,_,R]=A_(w),T=re(w,{[`${w}-has-sider`]:$,[`${w}-rtl`]:n==="rtl"},x,c,u,_,R),M=f.useMemo(()=>({siderHook:{addSider:z=>{a(A=>[].concat(Te(A),[z]))},removeSider:z=>{a(A=>A.filter(D=>D!==z))}}}),[]);return O(f.createElement(j_.Provider,{value:M},f.createElement(h,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},S),p)},E),d)))}),M9=Nm({tagName:"div",displayName:"Layout"})(T9),zy=Nm({suffixCls:"header",tagName:"header",displayName:"Header"})(Ay),N9=Nm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ay),j9=Nm({suffixCls:"content",tagName:"main",displayName:"Content"})(Ay),Aa=M9;Aa.Header=zy;Aa.Footer=N9;Aa.Content=j9;Aa.Sider=z_;Aa._InternalSiderContext=Rm;const I9=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let ba=null,Vi=e=>e(),iu=[],lu={};function gw(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=lu,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:a}}const P9=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=f.useContext(gt),l=lu.prefixCls||a("message"),c=f.useContext(kR),[u,d]=q2(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return ae.useImperativeHandle(t,()=>{const g=Object.assign({},u);return Object.keys(g).forEach(h=>{g[h]=function(){return r(),u[h].apply(u,arguments)}}),{instance:g,sync:r}}),d}),A9=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(gw),a=()=>{r(gw)};ae.useEffect(a,[]);const l=Z0(),c=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),g=ae.createElement(P9,{ref:t,sync:a,messageConfig:n});return ae.createElement(La,{prefixCls:c,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(g):g)});function jm(){if(!ba){const e=document.createDocumentFragment(),t={fragment:e};ba=t,Vi(()=>{cm()(ae.createElement(A9,{ref:r=>{const{instance:a,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=l,jm())})}}),e)});return}ba.instance&&(iu.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Vi(()=>{const r=ba.instance.open(Object.assign(Object.assign({},lu),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Vi(()=>{ba==null||ba.instance.destroy(e.key)});break;default:Vi(()=>{var r;const a=(r=ba.instance)[t].apply(r,Te(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),iu=[])}function z9(e){lu=Object.assign(Object.assign({},lu),e),Vi(()=>{var t;(t=ba==null?void 0:ba.sync)===null||t===void 0||t.call(ba)})}function D9(e){const t=ny(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return iu.push(a),()=>{r?Vi(()=>{r()}):a.skipped=!0}});return jm(),t}function L9(e,t){const n=ny(r=>{let a;const l={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return iu.push(l),()=>{a?Vi(()=>{a()}):l.skipped=!0}});return jm(),n}const B9=e=>{iu.push({type:"destroy",key:e}),jm()},H9=["success","info","warning","error","loading"],F9={open:D9,destroy:B9,config:z9,useMessage:S6,_InternalPanelDoNotUseOrYouWillBeFired:d6},Ru=F9;H9.forEach(e=>{Ru[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return L9(e,n)}});var V9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const U9=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:l,title:c,children:u,footer:d}=e,g=V9(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:h}=f.useContext(gt),p=h(),y=t||h("modal"),E=aa(p),[b,x,S]=RR(y,E),w=`${y}-confirm`;let $={};return l?$={closable:a??!1,title:"",footer:"",children:f.createElement(TR,Object.assign({},e,{prefixCls:y,confirmPrefixCls:w,rootPrefixCls:p,content:u}))}:$={closable:a??!0,title:c,footer:d!==null&&f.createElement(ER,Object.assign({},e)),children:u},b(f.createElement(sR,Object.assign({prefixCls:y,className:re(x,`${y}-pure-panel`,l&&w,l&&`${w}-${l}`,n,S,E)},g,{closeIcon:xR(y,r),closable:a},$)))},k9=qR(U9);function gT(e){return wu(IR(e))}const Ea=_R;Ea.useModal=T5;Ea.info=function(t){return wu(PR(t))};Ea.success=function(t){return wu(AR(t))};Ea.error=function(t){return wu(zR(t))};Ea.warning=gT;Ea.warn=gT;Ea.confirm=function(t){return wu(DR(t))};Ea.destroyAll=function(){for(;Fi.length;){const t=Fi.pop();t&&t()}};Ea.config=w5;Ea._InternalPanelDoNotUseOrYouWillBeFired=k9;let Ta=null,dd=e=>e(),Bd=[],su={};function hw(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:l,pauseOnHover:c}=su,u=(e==null?void 0:e())||document.body;return{getContainer:()=>u,rtl:t,maxCount:n,top:r,bottom:a,showProgress:l,pauseOnHover:c}}const q9=ae.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=f.useContext(gt),l=su.prefixCls||a("notification"),c=f.useContext(kR),[u,d]=UR(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.notification));return ae.useEffect(r,[]),ae.useImperativeHandle(t,()=>{const g=Object.assign({},u);return Object.keys(g).forEach(h=>{g[h]=function(){return r(),u[h].apply(u,arguments)}}),{instance:g,sync:r}}),d}),W9=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(hw),a=()=>{r(hw)};ae.useEffect(a,[]);const l=Z0(),c=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),g=ae.createElement(q9,{ref:t,sync:a,notificationConfig:n});return ae.createElement(La,{prefixCls:c,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(g):g)});function Dy(){if(!Ta){const e=document.createDocumentFragment(),t={fragment:e};Ta=t,dd(()=>{cm()(ae.createElement(W9,{ref:r=>{const{instance:a,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=l,Dy())})}}),e)});return}Ta.instance&&(Bd.forEach(e=>{switch(e.type){case"open":{dd(()=>{Ta.instance.open(Object.assign(Object.assign({},su),e.config))});break}case"destroy":dd(()=>{Ta==null||Ta.instance.destroy(e.key)});break}}),Bd=[])}function G9(e){su=Object.assign(Object.assign({},su),e),dd(()=>{var t;(t=Ta==null?void 0:Ta.sync)===null||t===void 0||t.call(Ta)})}function hT(e){Bd.push({type:"open",config:e}),Dy()}const K9=e=>{Bd.push({type:"destroy",key:e}),Dy()},X9=["success","info","warning","error"],Y9={open:hT,destroy:K9,config:G9,useNotification:Q5,_InternalPanelDoNotUseOrYouWillBeFired:F5},Ly=Y9;X9.forEach(e=>{Ly[e]=t=>hT(Object.assign(Object.assign({},t),{type:e}))});const Q9=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:l,colorWarning:c,marginXXS:u,marginXS:d,fontSize:g,fontWeightStrong:h,colorTextHeading:p}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:g},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:g,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:h,color:p,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:u,color:l}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},Z9=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},pT=$n("Popconfirm",e=>Q9(e),Z9,{resetStyle:!1});var J9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vT=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:l,cancelText:c,okText:u,okType:d="primary",icon:g=f.createElement(os,null),showCancel:h=!0,close:p,onConfirm:y,onCancel:E,onPopupClick:b}=e,{getPrefixCls:x}=f.useContext(gt),[S]=Io("Popconfirm",wo.Popconfirm),w=Jl(a),$=Jl(l);return f.createElement("div",{className:`${t}-inner-content`,onClick:b},f.createElement("div",{className:`${t}-message`},g&&f.createElement("span",{className:`${t}-message-icon`},g),f.createElement("div",{className:`${t}-message-text`},w&&f.createElement("div",{className:`${t}-title`},w),$&&f.createElement("div",{className:`${t}-description`},$))),f.createElement("div",{className:`${t}-buttons`},h&&f.createElement(Pr,Object.assign({onClick:E,size:"small"},r),c||(S==null?void 0:S.cancelText)),f.createElement(cy,{buttonProps:Object.assign(Object.assign({size:"small"},ry(d)),n),actionFn:y,close:p,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(S==null?void 0:S.okText))))},eV=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,l=J9(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=f.useContext(gt),u=c("popconfirm",t),[d]=pT(u);return d(f.createElement(b_,{placement:n,className:re(u,r),style:a,content:f.createElement(vT,Object.assign({prefixCls:u},l))}))};var tV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const nV=f.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:l="top",trigger:c="click",okType:u="primary",icon:d=f.createElement(os,null),children:g,overlayClassName:h,onOpenChange:p,onVisibleChange:y,overlayStyle:E,styles:b,classNames:x}=e,S=tV(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:$,style:O,classNames:_,styles:R}=Dr("popconfirm"),[T,M]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=(P,B)=>{M(P,!0),y==null||y(P),p==null||p(P,B)},A=P=>{z(!1,P)},D=P=>{var B;return(B=e.onConfirm)===null||B===void 0?void 0:B.call(void 0,P)},F=P=>{var B;z(!1,P),(B=e.onCancel)===null||B===void 0||B.call(void 0,P)},W=(P,B)=>{const{disabled:K=!1}=e;K||z(P,B)},k=w("popconfirm",a),U=re(k,$,h,_.root,x==null?void 0:x.root),Y=re(_.body,x==null?void 0:x.body),[N]=pT(k);return N(f.createElement(S_,Object.assign({},Tn(S,["title"]),{trigger:c,placement:l,onOpenChange:W,open:T,ref:t,classNames:{root:U,body:Y},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},R.root),O),E),b==null?void 0:b.root),body:Object.assign(Object.assign({},R.body),b==null?void 0:b.body)},content:f.createElement(vT,Object.assign({okType:u,icon:d},e,{prefixCls:k,close:A,onConfirm:D,onCancel:F})),"data-popover-inject":!0}),g))}),yT=nV;yT._InternalPanelDoNotUseOrYouWillBeFired=eV;const ya=(e,t)=>new nn(e).setA(t).toRgbString(),Fl=(e,t)=>new nn(e).lighten(t).toHexString(),rV=e=>{const t=Wi(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},aV=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ya(r,.85),colorTextSecondary:ya(r,.65),colorTextTertiary:ya(r,.45),colorTextQuaternary:ya(r,.25),colorFill:ya(r,.18),colorFillSecondary:ya(r,.12),colorFillTertiary:ya(r,.08),colorFillQuaternary:ya(r,.04),colorBgSolid:ya(r,.95),colorBgSolidHover:ya(r,1),colorBgSolidActive:ya(r,.9),colorBgElevated:Fl(n,12),colorBgContainer:Fl(n,8),colorBgLayout:Fl(n,0),colorBgSpotlight:Fl(n,26),colorBgBlur:ya(r,.04),colorBorder:Fl(n,26),colorBorderSecondary:Fl(n,19)}},oV=(e,t)=>{const n=Object.keys(G0).map(a=>{const l=Wi(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,u,d)=>(c[`${a}-${d+1}`]=l[d],c[`${a}${d+1}`]=l[d],c),{})}).reduce((a,l)=>(a=Object.assign(Object.assign({},a),l),a),{}),r=t??K0(e);return Object.assign(Object.assign(Object.assign({},r),n),m2(e,{generateColorPalettes:rV,generateNeutralColorPalettes:aV}))},pw={defaultSeed:wd.token,defaultAlgorithm:K0,darkAlgorithm:oV,_internalContext:X0},iV=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}},lV=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=iV(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},sV=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},E2(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},cV=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:yd[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}}),uV=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ye(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},fV=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),dV=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",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"}}),mV=e=>{const{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,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},lV(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{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}}}),cV(e)),sV(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},E2(e)),{marginInlineStart:e.marginXXS})}),uV(e)),fV(e)),dV()),{"&-rtl":{direction:"rtl"}})}},gV=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),bT=$n("Typography",e=>[mV(e)],gV),hV=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:l,maxLength:c,autoSize:u=!0,value:d,onSave:g,onCancel:h,onEnd:p,component:y,enterIcon:E=f.createElement(nP,null)}=e,b=f.useRef(null),x=f.useRef(!1),S=f.useRef(null),[w,$]=f.useState(d);f.useEffect(()=>{$(d)},[d]),f.useEffect(()=>{var U;if(!((U=b.current)===null||U===void 0)&&U.resizableTextArea){const{textArea:Y}=b.current.resizableTextArea;Y.focus();const{length:N}=Y.value;Y.setSelectionRange(N,N)}},[]);const O=U=>{let{target:Y}=U;$(Y.value.replace(/[\n\r]/g,""))},_=()=>{x.current=!0},R=()=>{x.current=!1},T=U=>{let{keyCode:Y}=U;x.current||(S.current=Y)},M=()=>{g(w.trim())},z=U=>{let{keyCode:Y,ctrlKey:N,altKey:P,metaKey:B,shiftKey:K}=U;S.current!==Y||x.current||N||P||B||K||(Y===ct.ENTER?(M(),p==null||p()):Y===ct.ESC&&h())},A=()=>{M()},[D,F,W]=bT(t),k=re(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${y}`]:!!y},r,F,W);return D(f.createElement("div",{className:k,style:a},f.createElement(Py,{ref:b,maxLength:c,value:w,onChange:O,onKeyDown:T,onKeyUp:z,onCompositionStart:_,onCompositionEnd:R,onBlur:A,"aria-label":n,rows:1,autoSize:u}),E!==null?ea(E,{className:`${t}-edit-content-confirm`}):null))};var zp,vw;function pV(){return vw||(vw=1,zp=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),zp}var Dp,yw;function vV(){if(yw)return Dp;yw=1;var e=pV(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,c)}function a(l,c){var u,d,g,h,p,y,E=!1;c||(c={}),u=c.debug||!1;try{g=e(),h=document.createRange(),p=document.getSelection(),y=document.createElement("span"),y.textContent=l,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(x){if(x.stopPropagation(),c.format)if(x.preventDefault(),typeof x.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[c.format]||t.default;window.clipboardData.setData(S,l)}else x.clipboardData.clearData(),x.clipboardData.setData(c.format,l);c.onCopy&&(x.preventDefault(),c.onCopy(x.clipboardData))}),document.body.appendChild(y),h.selectNodeContents(y),p.addRange(h);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");E=!0}catch(x){u&&console.error("unable to copy using execCommand: ",x),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",l),c.onCopy&&c.onCopy(window.clipboardData),E=!0}catch(S){u&&console.error("unable to copy using clipboardData: ",S),u&&console.error("falling back to prompt"),d=r("message"in c?c.message:n),window.prompt(d,l)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(h):p.removeAllRanges()),y&&document.body.removeChild(y),g()}return E}return Dp=a,Dp}var yV=vV();const bV=ts(yV);var SV=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(h){try{g(r.next(h))}catch(p){c(p)}}function d(h){try{g(r.throw(h))}catch(p){c(p)}}function g(h){h.done?l(h.value):a(h.value).then(u,d)}g((r=r.apply(e,t||[])).next())})};const CV=e=>{let{copyConfig:t,children:n}=e;const[r,a]=f.useState(!1),[l,c]=f.useState(!1),u=f.useRef(null),d=()=>{u.current&&clearTimeout(u.current)},g={};t.format&&(g.format=t.format),f.useEffect(()=>d,[]);const h=An(p=>SV(void 0,void 0,void 0,function*(){var y;p==null||p.preventDefault(),p==null||p.stopPropagation(),c(!0);try{const E=typeof t.text=="function"?yield t.text():t.text;bV(E||I9(n,!0).join("")||"",g),c(!1),a(!0),d(),u.current=setTimeout(()=>{a(!1)},3e3),(y=t.onCopy)===null||y===void 0||y.call(t,p)}catch(E){throw c(!1),E}}));return{copied:r,copyLoading:l,onClick:h}};function Lp(e,t){return f.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const xV=e=>{const t=f.useRef(void 0);return f.useEffect(()=>{t.current=e}),t.current},EV=(e,t,n)=>f.useMemo(()=>e===!0?{title:t??n}:f.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var wV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ST=f.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:l,setContentRef:c,children:u,direction:d,style:g}=e,h=wV(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:y,className:E,style:b}=Dr("typography"),x=d??y,S=c?Da(t,c):t,w=p("typography",n),[$,O,_]=bT(w),R=re(w,E,{[`${w}-rtl`]:x==="rtl"},a,l,O,_),T=Object.assign(Object.assign({},b),g);return $(f.createElement(r,Object.assign({className:R,style:T,ref:S},h),u))});function bw(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Bp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function $V(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const By=e=>["string","number"].includes(typeof e),OV=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:l,icon:c,tabIndex:u,onCopy:d,loading:g}=e;const h=bw(l),p=bw(c),{copied:y,copy:E}=r??{},b=n?y:E,x=Bp(h[n?1:0],b),S=typeof x=="string"?x:b;return f.createElement(hi,{title:x},f.createElement("button",{type:"button",className:re(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:d,"aria-label":S,tabIndex:u},n?Bp(p[1],f.createElement(MO,null),!0):Bp(p[0],g?f.createElement(hu,null):f.createElement(kI,null),!0)))},Kf=f.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=f.useRef(null);return f.useImperativeHandle(t,()=>({isExceed:()=>{const l=a.current;return l.scrollHeight>l.clientHeight},getHeight:()=>a.current.clientHeight})),f.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),RV=e=>e.reduce((t,n)=>t+(By(n)?String(n).length:1),0);function Sw(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const l=e[a],u=By(l)?String(l).length:1,d=n+u;if(d>t){const g=t-n;return r.push(String(l).slice(0,g)),r}r.push(l),n=d}return e}const Hp=0,Fp=1,Vp=2,Up=3,Cw=4,Xf={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function _V(e){const{enableMeasure:t,width:n,text:r,children:a,rows:l,expanded:c,miscDeps:u,onEllipsis:d}=e,g=f.useMemo(()=>zr(r),[r]),h=f.useMemo(()=>RV(g),[r]),p=f.useMemo(()=>a(g,!1),[r]),[y,E]=f.useState(null),b=f.useRef(null),x=f.useRef(null),S=f.useRef(null),w=f.useRef(null),$=f.useRef(null),[O,_]=f.useState(!1),[R,T]=f.useState(Hp),[M,z]=f.useState(0),[A,D]=f.useState(null);Gt(()=>{T(t&&n&&h?Fp:Hp)},[n,r,l,t,g]),Gt(()=>{var U,Y,N,P;if(R===Fp){T(Vp);const B=x.current&&getComputedStyle(x.current).whiteSpace;D(B)}else if(R===Vp){const B=!!(!((U=S.current)===null||U===void 0)&&U.isExceed());T(B?Up:Cw),E(B?[0,h]:null),_(B);const K=((Y=S.current)===null||Y===void 0?void 0:Y.getHeight())||0,j=l===1?0:((N=w.current)===null||N===void 0?void 0:N.getHeight())||0,L=((P=$.current)===null||P===void 0?void 0:P.getHeight())||0,q=Math.max(K,j+L);z(q+1),d(B)}},[R]);const F=y?Math.ceil((y[0]+y[1])/2):0;Gt(()=>{var U;const[Y,N]=y||[0,0];if(Y!==N){const B=(((U=b.current)===null||U===void 0?void 0:U.getHeight())||0)>M;let K=F;N-Y===1&&(K=B?Y:N),E(B?[Y,K]:[K,N])}},[y,F]);const W=f.useMemo(()=>{if(!t)return a(g,!1);if(R!==Up||!y||y[0]!==y[1]){const U=a(g,!1);return[Cw,Hp].includes(R)?U:f.createElement("span",{style:Object.assign(Object.assign({},Xf),{WebkitLineClamp:l})},U)}return a(c?g:Sw(g,y[0]),O)},[c,R,y,g].concat(Te(u))),k={width:n,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return f.createElement(f.Fragment,null,W,R===Vp&&f.createElement(f.Fragment,null,f.createElement(Kf,{style:Object.assign(Object.assign(Object.assign({},k),Xf),{WebkitLineClamp:l}),ref:S},p),f.createElement(Kf,{style:Object.assign(Object.assign(Object.assign({},k),Xf),{WebkitLineClamp:l-1}),ref:w},p),f.createElement(Kf,{style:Object.assign(Object.assign(Object.assign({},k),Xf),{WebkitLineClamp:1}),ref:$},a([],!0))),R===Up&&y&&y[0]!==y[1]&&f.createElement(Kf,{style:Object.assign(Object.assign({},k),{top:400}),ref:b},a(Sw(g,F),!0)),R===Fp&&f.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const TV=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:f.createElement(hi,Object.assign({open:n?void 0:!1},a),r)};var MV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function NV(e,t){let{mark:n,code:r,underline:a,delete:l,strong:c,keyboard:u,italic:d}=e,g=t;function h(p,y){y&&(g=f.createElement(p,{},g))}return h("strong",c),h("u",a),h("del",l),h("code",r),h("mark",n),h("kbd",u),h("i",d),g}const jV="...",Im=f.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:l,type:c,disabled:u,children:d,ellipsis:g,editable:h,copyable:p,component:y,title:E}=e,b=MV(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:S}=f.useContext(gt),[w]=Io("Text"),$=f.useRef(null),O=f.useRef(null),_=x("typography",r),R=Tn(b,["mark","code","delete","underline","strong","keyboard","italic"]),[T,M]=Lp(h),[z,A]=vr(!1,{value:M.editing}),{triggerType:D=["icon"]}=M,F=Ne=>{var ke;Ne&&((ke=M.onStart)===null||ke===void 0||ke.call(M)),A(Ne)},W=xV(z);Gt(()=>{var Ne;!z&&W&&((Ne=O.current)===null||Ne===void 0||Ne.focus())},[z]);const k=Ne=>{Ne==null||Ne.preventDefault(),F(!0)},U=Ne=>{var ke;(ke=M.onChange)===null||ke===void 0||ke.call(M,Ne),F(!1)},Y=()=>{var Ne;(Ne=M.onCancel)===null||Ne===void 0||Ne.call(M),F(!1)},[N,P]=Lp(p),{copied:B,copyLoading:K,onClick:j}=CV({copyConfig:P,children:d}),[L,q]=f.useState(!1),[G,V]=f.useState(!1),[X,ee]=f.useState(!1),[se,ne]=f.useState(!1),[ie,ve]=f.useState(!0),[fe,le]=Lp(g,{expandable:!1,symbol:Ne=>Ne?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[be,_e]=vr(le.defaultExpanded||!1,{value:le.expanded}),ce=fe&&(!be||le.expandable==="collapsible"),{rows:Se=1}=le,Oe=f.useMemo(()=>ce&&(le.suffix!==void 0||le.onEllipsis||le.expandable||T||N),[ce,le,T,N]);Gt(()=>{fe&&!Oe&&(q(sE("webkitLineClamp")),V(sE("textOverflow")))},[Oe,fe]);const[$e,je]=f.useState(ce),Ze=f.useMemo(()=>Oe?!1:Se===1?G:L,[Oe,G,L]);Gt(()=>{je(Ze&&ce)},[Ze,ce]);const He=ce&&($e?se:X),Xe=ce&&Se===1&&$e,Ee=ce&&Se>1&&$e,Me=(Ne,ke)=>{var xt;_e(ke.expanded),(xt=le.onExpand)===null||xt===void 0||xt.call(le,Ne,ke)},[Ve,Ke]=f.useState(0),qe=Ne=>{let{offsetWidth:ke}=Ne;Ke(ke)},at=Ne=>{var ke;ee(Ne),X!==Ne&&((ke=le.onEllipsis)===null||ke===void 0||ke.call(le,Ne))};f.useEffect(()=>{const Ne=$.current;if(fe&&$e&&Ne){const ke=$V(Ne);se!==ke&&ne(ke)}},[fe,$e,d,Ee,ie,Ve]),f.useEffect(()=>{const Ne=$.current;if(typeof IntersectionObserver>"u"||!Ne||!$e||!ce)return;const ke=new IntersectionObserver(()=>{ve(!!Ne.offsetParent)});return ke.observe(Ne),()=>{ke.disconnect()}},[$e,ce]);const Ue=EV(le.tooltip,M.text,d),Ye=f.useMemo(()=>{if(!(!fe||$e))return[M.text,d,E,Ue.title].find(By)},[fe,$e,E,Ue.title,He]);if(z)return f.createElement(hV,{value:(n=M.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:U,onCancel:Y,onEnd:M.onEnd,prefixCls:_,className:a,style:l,direction:S,component:y,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const st=()=>{const{expandable:Ne,symbol:ke}=le;return Ne?f.createElement("button",{type:"button",key:"expand",className:`${_}-${be?"collapse":"expand"}`,onClick:xt=>Me(xt,{expanded:!be}),"aria-label":be?w.collapse:w==null?void 0:w.expand},typeof ke=="function"?ke(be):ke):null},pt=()=>{if(!T)return;const{icon:Ne,tooltip:ke,tabIndex:xt}=M,jt=zr(ke)[0]||(w==null?void 0:w.edit),Nn=typeof jt=="string"?jt:"";return D.includes("icon")?f.createElement(hi,{key:"edit",title:ke===!1?"":jt},f.createElement("button",{type:"button",ref:O,className:`${_}-edit`,onClick:k,"aria-label":Nn,tabIndex:xt},Ne||f.createElement(YI,{role:"button"}))):null},Qe=()=>N?f.createElement(OV,Object.assign({key:"copy"},P,{prefixCls:_,copied:B,locale:w,onCopy:j,loading:K,iconOnly:d==null})):null,ze=Ne=>[Ne&&st(),pt(),Qe()],Fe=Ne=>[Ne&&!be&&f.createElement("span",{"aria-hidden":!0,key:"ellipsis"},jV),le.suffix,ze(Ne)];return f.createElement(jo,{onResize:qe,disabled:!ce},Ne=>f.createElement(TV,{tooltipProps:Ue,enableEllipsis:ce,isEllipsis:He},f.createElement(ST,Object.assign({className:re({[`${_}-${c}`]:c,[`${_}-disabled`]:u,[`${_}-ellipsis`]:fe,[`${_}-ellipsis-single-line`]:Xe,[`${_}-ellipsis-multiple-line`]:Ee},a),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Ee?Se:void 0}),component:y,ref:Da(Ne,$,t),direction:S,onClick:D.includes("text")?k:void 0,"aria-label":Ye==null?void 0:Ye.toString(),title:E},R),f.createElement(_V,{enableMeasure:ce&&!$e,text:d,rows:Se,width:Ve,onEllipsis:at,expanded:be,miscDeps:[B,be,K,T,N,w]},(ke,xt)=>NV(e,f.createElement(f.Fragment,null,ke.length>0&&xt&&!be&&Ye?f.createElement("span",{key:"show-content","aria-hidden":!0},ke):ke,Fe(xt)))))))});var IV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const PV=f.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=IV(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete l.navigate,f.createElement(Im,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}))}),AV=f.forwardRef((e,t)=>f.createElement(Im,Object.assign({ref:t},e,{component:"div"})));var zV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const DV=(e,t)=>{var{ellipsis:n}=e,r=zV(e,["ellipsis"]);const a=f.useMemo(()=>n&&typeof n=="object"?Tn(n,["expandable","rows"]):n,[n]);return f.createElement(Im,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},LV=f.forwardRef(DV);var BV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HV=[1,2,3,4,5],FV=f.forwardRef((e,t)=>{const{level:n=1}=e,r=BV(e,["level"]),a=HV.includes(n)?`h${n}`:"h1";return f.createElement(Im,Object.assign({ref:t},r,{component:a}))}),_u=ST;_u.Text=LV;_u.Link=PV;_u.Title=FV;_u.Paragraph=AV;var yc={},xw;function VV(){if(xw)return yc;xw=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.parse=c,yc.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function c(y,E){const b=new l,x=y.length;if(x<2)return b;const S=(E==null?void 0:E.decode)||h;let w=0;do{const $=y.indexOf("=",w);if($===-1)break;const O=y.indexOf(";",w),_=O===-1?x:O;if($>_){w=y.lastIndexOf(";",$-1)+1;continue}const R=u(y,w,$),T=d(y,$,R),M=y.slice(R,T);if(b[M]===void 0){let z=u(y,$+1,_),A=d(y,_,z);const D=S(y.slice(z,A));b[M]=D}w=_+1}while(w<x);return b}function u(y,E,b){do{const x=y.charCodeAt(E);if(x!==32&&x!==9)return E}while(++E<b);return b}function d(y,E,b){for(;E>b;){const x=y.charCodeAt(--E);if(x!==32&&x!==9)return E+1}return b}function g(y,E,b){const x=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=x(E);if(!t.test(S))throw new TypeError(`argument val is invalid: ${E}`);let w=y+"="+S;if(!b)return w;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);w+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);w+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);w+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);w+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(w+="; HttpOnly"),b.secure&&(w+="; Secure"),b.partitioned&&(w+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return w}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function p(y){return a.call(y)==="[object Date]"}return yc}VV();/**
 * react-router v7.5.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Ew="popstate";function UV(e={}){function t(a,l){let{pathname:c="/",search:u="",hash:d=""}=ms(a.location.hash.substring(1));return!c.startsWith("/")&&!c.startsWith(".")&&(c="/"+c),h0("",{pathname:c,search:u,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(a,l){let c=a.document.querySelector("base"),u="";if(c&&c.getAttribute("href")){let d=a.location.href,g=d.indexOf("#");u=g===-1?d:d.slice(0,g)}return u+"#"+(typeof l=="string"?l:cu(l))}function r(a,l){za(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return qV(t,n,r,e)}function Jn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function za(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kV(){return Math.random().toString(36).substring(2,10)}function ww(e,t){return{usr:e.state,key:e.key,idx:t}}function h0(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ms(t):t,state:n,key:t&&t.key||r||kV()}}function cu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qV(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:l=!1}=r,c=a.history,u="POP",d=null,g=h();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function h(){return(c.state||{idx:null}).idx}function p(){u="POP";let S=h(),w=S==null?null:S-g;g=S,d&&d({action:u,location:x.location,delta:w})}function y(S,w){u="PUSH";let $=h0(x.location,S,w);n&&n($,S),g=h()+1;let O=ww($,g),_=x.createHref($);try{c.pushState(O,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;a.location.assign(_)}l&&d&&d({action:u,location:x.location,delta:1})}function E(S,w){u="REPLACE";let $=h0(x.location,S,w);n&&n($,S),g=h();let O=ww($,g),_=x.createHref($);c.replaceState(O,"",_),l&&d&&d({action:u,location:x.location,delta:0})}function b(S){let w=a.location.origin!=="null"?a.location.origin:a.location.href,$=typeof S=="string"?S:cu(S);return $=$.replace(/ $/,"%20"),Jn(w,`No window.location.(origin|href) available to create URL for href: ${$}`),new URL($,w)}let x={get action(){return u},get location(){return e(a,c)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Ew,p),d=S,()=>{a.removeEventListener(Ew,p),d=null}},createHref(S){return t(a,S)},createURL:b,encodeLocation(S){let w=b(S);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:E,go(S){return c.go(S)}};return x}function CT(e,t,n="/"){return WV(e,t,n,!1)}function WV(e,t,n,r){let a=typeof t=="string"?ms(t):t,l=Ro(a.pathname||"/",n);if(l==null)return null;let c=xT(e);GV(c);let u=null;for(let d=0;u==null&&d<c.length;++d){let g=aU(l);u=nU(c[d],g,r)}return u}function xT(e,t=[],n=[],r=""){let a=(l,c,u)=>{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};d.relativePath.startsWith("/")&&(Jn(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let g=xo([r,d.relativePath]),h=n.concat(d);l.children&&l.children.length>0&&(Jn(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),xT(l.children,t,h,g)),!(l.path==null&&!l.index)&&t.push({path:g,score:eU(g,l.index),routesMeta:h})};return e.forEach((l,c)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))a(l,c);else for(let d of ET(l.path))a(l,c,d)}),t}function ET(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let c=ET(r.join("/")),u=[];return u.push(...c.map(d=>d===""?l:[l,d].join("/"))),a&&u.push(...c),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function GV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var KV=/^:[\w-]+$/,XV=3,YV=2,QV=1,ZV=10,JV=-2,$w=e=>e==="*";function eU(e,t){let n=e.split("/"),r=n.length;return n.some($w)&&(r+=JV),t&&(r+=YV),n.filter(a=>!$w(a)).reduce((a,l)=>a+(KV.test(l)?XV:l===""?QV:ZV),r)}function tU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function nU(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",c=[];for(let u=0;u<r.length;++u){let d=r[u],g=u===r.length-1,h=l==="/"?t:t.slice(l.length)||"/",p=Hd({path:d.relativePath,caseSensitive:d.caseSensitive,end:g},h),y=d.route;if(!p&&g&&n&&!r[r.length-1].route.index&&(p=Hd({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},h)),!p)return null;Object.assign(a,p.params),c.push({params:a,pathname:xo([l,p.pathname]),pathnameBase:sU(xo([l,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(l=xo([l,p.pathnameBase]))}return c}function Hd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rU(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((g,{paramName:h,isOptional:p},y)=>{if(h==="*"){let b=u[y]||"";c=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const E=u[y];return p&&!E?g[h]=void 0:g[h]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:l,pathnameBase:c,pattern:e}}function rU(e,t=!1,n=!0){za(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function aU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return za(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ro(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function oU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ms(e):e;return{pathname:n?n.startsWith("/")?n:iU(n,t):t,search:cU(r),hash:uU(a)}}function iU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function kp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wT(e){let t=lU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function $T(e,t,n,r=!1){let a;typeof e=="string"?a=ms(e):(a={...e},Jn(!a.pathname||!a.pathname.includes("?"),kp("?","pathname","search",a)),Jn(!a.pathname||!a.pathname.includes("#"),kp("#","pathname","hash",a)),Jn(!a.search||!a.search.includes("#"),kp("#","search","hash",a)));let l=e===""||a.pathname==="",c=l?"/":a.pathname,u;if(c==null)u=n;else{let p=t.length-1;if(!r&&c.startsWith("..")){let y=c.split("/");for(;y[0]==="..";)y.shift(),p-=1;a.pathname=y.join("/")}u=p>=0?t[p]:"/"}let d=oU(a,u),g=c&&c!=="/"&&c.endsWith("/"),h=(l||c===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(g||h)&&(d.pathname+="/"),d}var xo=e=>e.join("/").replace(/\/\/+/g,"/"),sU=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,uU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var OT=["POST","PUT","PATCH","DELETE"];new Set(OT);var dU=["GET",...OT];new Set(dU);var gs=f.createContext(null);gs.displayName="DataRouter";var Pm=f.createContext(null);Pm.displayName="DataRouterState";var RT=f.createContext({isTransitioning:!1});RT.displayName="ViewTransition";var mU=f.createContext(new Map);mU.displayName="Fetchers";var gU=f.createContext(null);gU.displayName="Await";var to=f.createContext(null);to.displayName="Navigation";var Am=f.createContext(null);Am.displayName="Location";var Ba=f.createContext({outlet:null,matches:[],isDataRoute:!1});Ba.displayName="Route";var Hy=f.createContext(null);Hy.displayName="RouteError";function hU(e,{relative:t}={}){Jn(Tu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(to),{hash:a,pathname:l,search:c}=Mu(e,{relative:t}),u=l;return n!=="/"&&(u=l==="/"?n:xo([n,l])),r.createHref({pathname:u,search:c,hash:a})}function Tu(){return f.useContext(Am)!=null}function Ao(){return Jn(Tu(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(Am).location}var _T="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function TT(e){f.useContext(to).static||f.useLayoutEffect(e)}function Fy(){let{isDataRoute:e}=f.useContext(Ba);return e?TU():pU()}function pU(){Jn(Tu(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(gs),{basename:t,navigator:n}=f.useContext(to),{matches:r}=f.useContext(Ba),{pathname:a}=Ao(),l=JSON.stringify(wT(r)),c=f.useRef(!1);return TT(()=>{c.current=!0}),f.useCallback((d,g={})=>{if(za(c.current,_T),!c.current)return;if(typeof d=="number"){n.go(d);return}let h=$T(d,JSON.parse(l),a,g.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:xo([t,h.pathname])),(g.replace?n.replace:n.push)(h,g.state,g)},[t,n,l,a,e])}var MT=f.createContext(null);function yK(){return f.useContext(MT)}function vU(e){let t=f.useContext(Ba).outlet;return t&&f.createElement(MT.Provider,{value:e},t)}function bK(){let{matches:e}=f.useContext(Ba),t=e[e.length-1];return t?t.params:{}}function Mu(e,{relative:t}={}){let{matches:n}=f.useContext(Ba),{pathname:r}=Ao(),a=JSON.stringify(wT(n));return f.useMemo(()=>$T(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function yU(e,t){return NT(e)}function NT(e,t,n,r){Jn(Tu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:l}=f.useContext(to),{matches:c}=f.useContext(Ba),u=c[c.length-1],d=u?u.params:{},g=u?u.pathname:"/",h=u?u.pathnameBase:"/",p=u&&u.route;{let $=p&&p.path||"";jT(g,!p||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${$}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let y=Ao(),E;E=y;let b=E.pathname||"/",x=b;if(h!=="/"){let $=h.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice($.length).join("/")}let S=!l&&n&&n.matches&&n.matches.length>0?n.matches:CT(e,{pathname:x});return za(p||S!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),za(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),EU(S&&S.map($=>Object.assign({},$,{params:Object.assign({},d,$.params),pathname:xo([h,a.encodeLocation?a.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?h:xo([h,a.encodeLocation?a.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),c,n,r)}function bU(){let e=_U(),t=fU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:l},"ErrorBoundary")," or"," ",f.createElement("code",{style:l},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,c)}var SU=f.createElement(bU,null),CU=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?f.createElement(Ba.Provider,{value:this.props.routeContext},f.createElement(Hy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function xU({routeContext:e,match:t,children:n}){let r=f.useContext(gs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Ba.Provider,{value:e},n)}function EU(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=n==null?void 0:n.errors;if(l!=null){let d=a.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);Jn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let g=a[d];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(u=d),g.route.id){let{loaderData:h,errors:p}=n,y=g.route.loader&&!h.hasOwnProperty(g.route.id)&&(!p||p[g.route.id]===void 0);if(g.route.lazy||y){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,g,h)=>{let p,y=!1,E=null,b=null;n&&(p=l&&g.route.id?l[g.route.id]:void 0,E=g.route.errorElement||SU,c&&(u<0&&h===0?(jT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):u===h&&(y=!0,b=g.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,h+1)),S=()=>{let w;return p?w=E:y?w=b:g.route.Component?w=f.createElement(g.route.Component,null):g.route.element?w=g.route.element:w=d,f.createElement(xU,{match:g,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(g.route.ErrorBoundary||g.route.errorElement||h===0)?f.createElement(CU,{location:n.location,revalidation:n.revalidation,component:E,error:p,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function Vy(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function wU(e){let t=f.useContext(gs);return Jn(t,Vy(e)),t}function $U(e){let t=f.useContext(Pm);return Jn(t,Vy(e)),t}function OU(e){let t=f.useContext(Ba);return Jn(t,Vy(e)),t}function Uy(e){let t=OU(e),n=t.matches[t.matches.length-1];return Jn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function RU(){return Uy("useRouteId")}function _U(){var r;let e=f.useContext(Hy),t=$U("useRouteError"),n=Uy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function TU(){let{router:e}=wU("useNavigate"),t=Uy("useNavigate"),n=f.useRef(!1);return TT(()=>{n.current=!0}),f.useCallback(async(a,l={})=>{za(n.current,_T),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...l}))},[e,t])}var Ow={};function jT(e,t,n){!t&&!Ow[e]&&(Ow[e]=!0,za(!1,n))}f.memo(MU);function MU({routes:e,future:t,state:n}){return NT(e,void 0,n,t)}function IT(e){return vU(e.context)}function NU({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1}){Jn(!Tu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=f.useMemo(()=>({basename:c,navigator:a,static:l,future:{}}),[c,a,l]);typeof n=="string"&&(n=ms(n));let{pathname:d="/",search:g="",hash:h="",state:p=null,key:y="default"}=n,E=f.useMemo(()=>{let b=Ro(d,c);return b==null?null:{location:{pathname:b,search:g,hash:h,state:p,key:y},navigationType:r}},[c,d,g,h,p,y,r]);return za(E!=null,`<Router basename="${c}"> is not able to match the URL "${d}${g}${h}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:f.createElement(to.Provider,{value:u},f.createElement(Am.Provider,{children:t,value:E}))}var md="get",gd="application/x-www-form-urlencoded";function zm(e){return e!=null&&typeof e.tagName=="string"}function jU(e){return zm(e)&&e.tagName.toLowerCase()==="button"}function IU(e){return zm(e)&&e.tagName.toLowerCase()==="form"}function PU(e){return zm(e)&&e.tagName.toLowerCase()==="input"}function AU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zU(e,t){return e.button===0&&(!t||t==="_self")&&!AU(e)}var Yf=null;function DU(){if(Yf===null)try{new FormData(document.createElement("form"),0),Yf=!1}catch{Yf=!0}return Yf}var LU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qp(e){return e!=null&&!LU.has(e)?(za(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gd}"`),null):e}function BU(e,t){let n,r,a,l,c;if(IU(e)){let u=e.getAttribute("action");r=u?Ro(u,t):null,n=e.getAttribute("method")||md,a=qp(e.getAttribute("enctype"))||gd,l=new FormData(e)}else if(jU(e)||PU(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Ro(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||md,a=qp(e.getAttribute("formenctype"))||qp(u.getAttribute("enctype"))||gd,l=new FormData(u,e),!DU()){let{name:g,type:h,value:p}=e;if(h==="image"){let y=g?`${g}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else g&&l.append(g,p)}}else{if(zm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=md,r=null,a=gd,c=e}return l&&a==="text/plain"&&(c=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:c}}function ky(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function HU(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function FU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function VU(e,t,n){let r=await Promise.all(e.map(async a=>{let l=t.routes[a.route.id];if(l){let c=await HU(l,n);return c.links?c.links():[]}return[]}));return WU(r.flat(1).filter(FU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Rw(e,t,n,r,a,l){let c=(d,g)=>n[g]?d.route.id!==n[g].route.id:!0,u=(d,g)=>{var h;return n[g].pathname!==d.pathname||((h=n[g].route.path)==null?void 0:h.endsWith("*"))&&n[g].params["*"]!==d.params["*"]};return l==="assets"?t.filter((d,g)=>c(d,g)||u(d,g)):l==="data"?t.filter((d,g)=>{var p;let h=r.routes[d.route.id];if(!h||!h.hasLoader)return!1;if(c(d,g)||u(d,g))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function UU(e,t,{includeHydrateFallback:n}={}){return kU(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function kU(e){return[...new Set(e)]}function qU(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function WU(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let l=JSON.stringify(qU(a));return n.has(l)||(n.add(l),r.push({key:l,link:a})),r},[])}var GU=new Set([100,101,204,205]);function KU(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Ro(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function PT(){let e=f.useContext(gs);return ky(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function XU(){let e=f.useContext(Pm);return ky(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qy=f.createContext(void 0);qy.displayName="FrameworkContext";function AT(){let e=f.useContext(qy);return ky(e,"You must render this element inside a <HydratedRouter> element"),e}function YU(e,t){let n=f.useContext(qy),[r,a]=f.useState(!1),[l,c]=f.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:g,onMouseLeave:h,onTouchStart:p}=t,y=f.useRef(null);f.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let x=w=>{w.forEach($=>{c($.isIntersecting)})},S=new IntersectionObserver(x,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),f.useEffect(()=>{if(r){let x=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(x)}}},[r]);let E=()=>{a(!0)},b=()=>{a(!1),c(!1)};return n?e!=="intent"?[l,y,{}]:[l,y,{onFocus:bc(u,E),onBlur:bc(d,b),onMouseEnter:bc(g,E),onMouseLeave:bc(h,b),onTouchStart:bc(p,E)}]:[!1,y,{}]}function bc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function QU({page:e,...t}){let{router:n}=PT(),r=f.useMemo(()=>CT(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(JU,{page:e,matches:r,...t}):null}function ZU(e){let{manifest:t,routeModules:n}=AT(),[r,a]=f.useState([]);return f.useEffect(()=>{let l=!1;return VU(e,t,n).then(c=>{l||a(c)}),()=>{l=!0}},[e,t,n]),r}function JU({page:e,matches:t,...n}){let r=Ao(),{manifest:a,routeModules:l}=AT(),{basename:c}=PT(),{loaderData:u,matches:d}=XU(),g=f.useMemo(()=>Rw(e,t,d,a,r,"data"),[e,t,d,a,r]),h=f.useMemo(()=>Rw(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,x=!1;if(t.forEach(w=>{var O;let $=a.routes[w.route.id];!$||!$.hasLoader||(!g.some(_=>_.route.id===w.route.id)&&w.route.id in u&&((O=l[w.route.id])!=null&&O.shouldRevalidate)||$.hasClientLoader?x=!0:b.add(w.route.id))}),b.size===0)return[];let S=KU(e,c);return x&&b.size>0&&S.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[S.pathname+S.search]},[c,u,r,a,g,t,e,l]),y=f.useMemo(()=>UU(h,a),[h,a]),E=ZU(h);return f.createElement(f.Fragment,null,p.map(b=>f.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),y.map(b=>f.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),E.map(({key:b,link:x})=>f.createElement("link",{key:b,...x})))}function ek(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var zT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zT&&(window.__reactRouterVersion="7.5.1")}catch{}function tk({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=UV({window:n,v5Compat:!0}));let a=r.current,[l,c]=f.useState({action:a.action,location:a.location}),u=f.useCallback(d=>{f.startTransition(()=>c(d))},[c]);return f.useLayoutEffect(()=>a.listen(u),[a,u]),f.createElement(NU,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a})}var DT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LT=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:l,replace:c,state:u,target:d,to:g,preventScrollReset:h,viewTransition:p,...y},E){let{basename:b}=f.useContext(to),x=typeof g=="string"&&DT.test(g),S,w=!1;if(typeof g=="string"&&x&&(S=g,zT))try{let A=new URL(window.location.href),D=g.startsWith("//")?new URL(A.protocol+g):new URL(g),F=Ro(D.pathname,b);D.origin===A.origin&&F!=null?g=F+D.search+D.hash:w=!0}catch{za(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=hU(g,{relative:a}),[O,_,R]=YU(r,y),T=ok(g,{replace:c,state:u,target:d,preventScrollReset:h,relative:a,viewTransition:p});function M(A){t&&t(A),A.defaultPrevented||T(A)}let z=f.createElement("a",{...y,...R,href:S||$,onClick:w||l?t:M,ref:ek(E,_),target:d,"data-discover":!x&&n==="render"?"true":void 0});return O&&!x?f.createElement(f.Fragment,null,z,f.createElement(QU,{page:$})):z});LT.displayName="Link";var nk=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:l,to:c,viewTransition:u,children:d,...g},h){let p=Mu(c,{relative:g.relative}),y=Ao(),E=f.useContext(Pm),{navigator:b,basename:x}=f.useContext(to),S=E!=null&&uk(p)&&u===!0,w=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,$=y.pathname,O=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||($=$.toLowerCase(),O=O?O.toLowerCase():null,w=w.toLowerCase()),O&&x&&(O=Ro(O,x)||O);const _=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let R=$===w||!a&&$.startsWith(w)&&$.charAt(_)==="/",T=O!=null&&(O===w||!a&&O.startsWith(w)&&O.charAt(w.length)==="/"),M={isActive:R,isPending:T,isTransitioning:S},z=R?t:void 0,A;typeof r=="function"?A=r(M):A=[r,R?"active":null,T?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let D=typeof l=="function"?l(M):l;return f.createElement(LT,{...g,"aria-current":z,className:A,ref:h,style:D,to:c,viewTransition:u},typeof d=="function"?d(M):d)});nk.displayName="NavLink";var rk=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:c=md,action:u,onSubmit:d,relative:g,preventScrollReset:h,viewTransition:p,...y},E)=>{let b=sk(),x=ck(u,{relative:g}),S=c.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&DT.test(u),$=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let _=O.nativeEvent.submitter,R=(_==null?void 0:_.getAttribute("formmethod"))||c;b(_||O.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:l,relative:g,preventScrollReset:h,viewTransition:p})};return f.createElement("form",{ref:E,method:S,action:x,onSubmit:r?d:$,...y,"data-discover":!w&&e==="render"?"true":void 0})});rk.displayName="Form";function ak(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function BT(e){let t=f.useContext(gs);return Jn(t,ak(e)),t}function ok(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:l,viewTransition:c}={}){let u=Fy(),d=Ao(),g=Mu(e,{relative:l});return f.useCallback(h=>{if(zU(h,t)){h.preventDefault();let p=n!==void 0?n:cu(d)===cu(g);u(e,{replace:p,state:r,preventScrollReset:a,relative:l,viewTransition:c})}},[d,u,g,n,r,t,e,a,l,c])}var ik=0,lk=()=>`__${String(++ik)}__`;function sk(){let{router:e}=BT("useSubmit"),{basename:t}=f.useContext(to),n=RU();return f.useCallback(async(r,a={})=>{let{action:l,method:c,encType:u,formData:d,body:g}=BU(r,t);if(a.navigate===!1){let h=a.fetcherKey||lk();await e.fetch(h,n,a.action||l,{preventScrollReset:a.preventScrollReset,formData:d,body:g,formMethod:a.method||c,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||l,{preventScrollReset:a.preventScrollReset,formData:d,body:g,formMethod:a.method||c,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function ck(e,{relative:t}={}){let{basename:n}=f.useContext(to),r=f.useContext(Ba);Jn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...Mu(e||".",{relative:t})},c=Ao();if(e==null){l.search=c.search;let u=new URLSearchParams(l.search),d=u.getAll("index");if(d.some(h=>h==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let h=u.toString();l.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:xo([n,l.pathname])),cu(l)}function uk(e,t={}){let n=f.useContext(RT);Jn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=BT("useViewTransitionState"),a=Mu(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=Ro(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=Ro(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Hd(a.pathname,c)!=null||Hd(a.pathname,l)!=null}new TextEncoder;[...GU];var Wp={exports:{}},Gp={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var _w;function fk(){if(_w)return Gp;_w=1;var e=Zd();function t(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,l=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Gp.useSyncExternalStoreWithSelector=function(d,g,h,p,y){var E=a(null);if(E.current===null){var b={hasValue:!1,value:null};E.current=b}else b=E.current;E=c(function(){function S(R){if(!w){if(w=!0,$=R,R=p(R),y!==void 0&&b.hasValue){var T=b.value;if(y(T,R))return O=T}return O=R}if(T=O,n($,R))return T;var M=p(R);return y!==void 0&&y(T,M)?($=R,T):($=R,O=M)}var w=!1,$,O,_=h===void 0?null:h;return[function(){return S(g())},_===null?void 0:function(){return S(_())}]},[g,h,p,y]);var x=r(d,E[0],E[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),u(x),x},Gp}var Tw;function dk(){return Tw||(Tw=1,Wp.exports=fk()),Wp.exports}var mk=dk();function gk(e){e()}function hk(){let e=null,t=null;return{clear(){e=null,t=null},notify(){gk(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var Mw={notify(){},get:()=>[]};function pk(e,t){let n,r=Mw,a=0,l=!1;function c(x){h();const S=r.subscribe(x);let w=!1;return()=>{w||(w=!0,S(),p())}}function u(){r.notify()}function d(){b.onStateChange&&b.onStateChange()}function g(){return l}function h(){a++,n||(n=e.subscribe(d),r=hk())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=Mw)}function y(){l||(l=!0,h())}function E(){l&&(l=!1,p())}const b={addNestedSub:c,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:g,trySubscribe:y,tryUnsubscribe:E,getListeners:()=>r};return b}var vk=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yk=vk(),bk=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Sk=bk(),Ck=()=>yk||Sk?f.useLayoutEffect:f.useEffect,xk=Ck(),Kp=Symbol.for("react-redux-context"),Xp=typeof globalThis<"u"?globalThis:{};function Ek(){if(!f.createContext)return{};const e=Xp[Kp]??(Xp[Kp]=new Map);let t=e.get(f.createContext);return t||(t=f.createContext(null),e.set(f.createContext,t)),t}var di=Ek();function wk(e){const{children:t,context:n,serverState:r,store:a}=e,l=f.useMemo(()=>{const d=pk(a);return{store:a,subscription:d,getServerState:r?()=>r:void 0}},[a,r]),c=f.useMemo(()=>a.getState(),[a]);xk(()=>{const{subscription:d}=l;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),c!==a.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[l,c]);const u=n||di;return f.createElement(u.Provider,{value:l},t)}var $k=wk;function Wy(e=di){return function(){return f.useContext(e)}}var HT=Wy();function FT(e=di){const t=e===di?HT:Wy(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Ok=FT();function Rk(e=di){const t=e===di?Ok:FT(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var hs=Rk(),_k=(e,t)=>e===t;function Tk(e=di){const t=e===di?HT:Wy(e),n=(r,a={})=>{const{equalityFn:l=_k}=typeof a=="function"?{equalityFn:a}:a,c=t(),{store:u,subscription:d,getServerState:g}=c;f.useRef(!0);const h=f.useCallback({[r.name](y){return r(y)}}[r.name],[r]),p=mk.useSyncExternalStoreWithSelector(d.addNestedSub,u.getState,g||u.getState,h,l);return f.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var _o=Tk();function VT(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mk}=Object.prototype,{getPrototypeOf:Gy}=Object,Dm=(e=>t=>{const n=Mk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ha=e=>(e=e.toLowerCase(),t=>Dm(t)===e),Lm=e=>t=>typeof t===e,{isArray:ps}=Array,uu=Lm("undefined");function Nk(e){return e!==null&&!uu(e)&&e.constructor!==null&&!uu(e.constructor)&&Jr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UT=Ha("ArrayBuffer");function jk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UT(e.buffer),t}const Ik=Lm("string"),Jr=Lm("function"),kT=Lm("number"),Bm=e=>e!==null&&typeof e=="object",Pk=e=>e===!0||e===!1,hd=e=>{if(Dm(e)!=="object")return!1;const t=Gy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ak=Ha("Date"),zk=Ha("File"),Dk=Ha("Blob"),Lk=Ha("FileList"),Bk=e=>Bm(e)&&Jr(e.pipe),Hk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jr(e.append)&&((t=Dm(e))==="formdata"||t==="object"&&Jr(e.toString)&&e.toString()==="[object FormData]"))},Fk=Ha("URLSearchParams"),[Vk,Uk,kk,qk]=["ReadableStream","Request","Response","Headers"].map(Ha),Wk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ps(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let u;for(r=0;r<c;r++)u=l[r],t.call(null,e[u],u,e)}}function qT(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,WT=e=>!uu(e)&&e!==Ui;function p0(){const{caseless:e}=WT(this)&&this||{},t={},n=(r,a)=>{const l=e&&qT(t,a)||a;hd(t[l])&&hd(r)?t[l]=p0(t[l],r):hd(r)?t[l]=p0({},r):ps(r)?t[l]=r.slice():t[l]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Nu(arguments[r],n);return t}const Gk=(e,t,n,{allOwnKeys:r}={})=>(Nu(t,(a,l)=>{n&&Jr(a)?e[l]=VT(a,n):e[l]=a},{allOwnKeys:r}),e),Kk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Yk=(e,t,n,r)=>{let a,l,c;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)c=a[l],(!r||r(c,e,t))&&!u[c]&&(t[c]=e[c],u[c]=!0);e=n!==!1&&Gy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zk=e=>{if(!e)return null;if(ps(e))return e;let t=e.length;if(!kT(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Jk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gy(Uint8Array)),eq=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},tq=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nq=Ha("HTMLFormElement"),rq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Nw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),aq=Ha("RegExp"),GT=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Nu(n,(a,l)=>{let c;(c=t(a,l,e))!==!1&&(r[l]=c||a)}),Object.defineProperties(e,r)},oq=e=>{GT(e,(t,n)=>{if(Jr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iq=(e,t)=>{const n={},r=a=>{a.forEach(l=>{n[l]=!0})};return ps(e)?r(e):r(String(e).split(t)),n},lq=()=>{},sq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cq(e){return!!(e&&Jr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uq=e=>{const t=new Array(10),n=(r,a)=>{if(Bm(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const l=ps(r)?[]:{};return Nu(r,(c,u)=>{const d=n(c,a+1);!uu(d)&&(l[u]=d)}),t[a]=void 0,l}}return r};return n(e,0)},fq=Ha("AsyncFunction"),dq=e=>e&&(Bm(e)||Jr(e))&&Jr(e.then)&&Jr(e.catch),KT=((e,t)=>e?setImmediate:t?((n,r)=>(Ui.addEventListener("message",({source:a,data:l})=>{a===Ui&&l===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ui.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jr(Ui.postMessage)),mq=typeof queueMicrotask<"u"?queueMicrotask.bind(Ui):typeof process<"u"&&process.nextTick||KT,Ce={isArray:ps,isArrayBuffer:UT,isBuffer:Nk,isFormData:Hk,isArrayBufferView:jk,isString:Ik,isNumber:kT,isBoolean:Pk,isObject:Bm,isPlainObject:hd,isReadableStream:Vk,isRequest:Uk,isResponse:kk,isHeaders:qk,isUndefined:uu,isDate:Ak,isFile:zk,isBlob:Dk,isRegExp:aq,isFunction:Jr,isStream:Bk,isURLSearchParams:Fk,isTypedArray:Jk,isFileList:Lk,forEach:Nu,merge:p0,extend:Gk,trim:Wk,stripBOM:Kk,inherits:Xk,toFlatObject:Yk,kindOf:Dm,kindOfTest:Ha,endsWith:Qk,toArray:Zk,forEachEntry:eq,matchAll:tq,isHTMLForm:nq,hasOwnProperty:Nw,hasOwnProp:Nw,reduceDescriptors:GT,freezeMethods:oq,toObjectSet:iq,toCamelCase:rq,noop:lq,toFiniteNumber:sq,findKey:qT,global:Ui,isContextDefined:WT,isSpecCompliantForm:cq,toJSONObject:uq,isAsyncFn:fq,isThenable:dq,setImmediate:KT,asap:mq};function Ot(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}Ce.inherits(Ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ce.toJSONObject(this.config),code:this.code,status:this.status}}});const XT=Ot.prototype,YT={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YT[e]={value:e}});Object.defineProperties(Ot,YT);Object.defineProperty(XT,"isAxiosError",{value:!0});Ot.from=(e,t,n,r,a,l)=>{const c=Object.create(XT);return Ce.toFlatObject(e,c,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),Ot.call(c,e.message,t,n,r,a),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const gq=null;function v0(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function QT(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function jw(e,t,n){return e?e.concat(t).map(function(a,l){return a=QT(a),!n&&l?"["+a+"]":a}).join(n?".":""):t}function hq(e){return Ce.isArray(e)&&!e.some(v0)}const pq=Ce.toFlatObject(Ce,{},null,function(t){return/^is[A-Z]/.test(t)});function Hm(e,t,n){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,S){return!Ce.isUndefined(S[x])});const r=n.metaTokens,a=n.visitor||h,l=n.dots,c=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(a))throw new TypeError("visitor must be a function");function g(b){if(b===null)return"";if(Ce.isDate(b))return b.toISOString();if(!d&&Ce.isBlob(b))throw new Ot("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(b)||Ce.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,x,S){let w=b;if(b&&!S&&typeof b=="object"){if(Ce.endsWith(x,"{}"))x=r?x:x.slice(0,-2),b=JSON.stringify(b);else if(Ce.isArray(b)&&hq(b)||(Ce.isFileList(b)||Ce.endsWith(x,"[]"))&&(w=Ce.toArray(b)))return x=QT(x),w.forEach(function(O,_){!(Ce.isUndefined(O)||O===null)&&t.append(c===!0?jw([x],_,l):c===null?x:x+"[]",g(O))}),!1}return v0(b)?!0:(t.append(jw(S,x,l),g(b)),!1)}const p=[],y=Object.assign(pq,{defaultVisitor:h,convertValue:g,isVisitable:v0});function E(b,x){if(!Ce.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(b),Ce.forEach(b,function(w,$){(!(Ce.isUndefined(w)||w===null)&&a.call(t,w,Ce.isString($)?$.trim():$,x,y))===!0&&E(w,x?x.concat($):[$])}),p.pop()}}if(!Ce.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Iw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ky(e,t){this._pairs=[],e&&Hm(e,this,t)}const ZT=Ky.prototype;ZT.append=function(t,n){this._pairs.push([t,n])};ZT.toString=function(t){const n=t?function(r){return t.call(this,r,Iw)}:Iw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function vq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function JT(e,t,n){if(!t)return e;const r=n&&n.encode||vq;Ce.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let l;if(a?l=a(t,n):l=Ce.isURLSearchParams(t)?t.toString():new Ky(t,n).toString(r),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Pw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ce.forEach(this.handlers,function(r){r!==null&&t(r)})}}const eM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yq=typeof URLSearchParams<"u"?URLSearchParams:Ky,bq=typeof FormData<"u"?FormData:null,Sq=typeof Blob<"u"?Blob:null,Cq={isBrowser:!0,classes:{URLSearchParams:yq,FormData:bq,Blob:Sq},protocols:["http","https","file","blob","url","data"]},Xy=typeof window<"u"&&typeof document<"u",y0=typeof navigator=="object"&&navigator||void 0,xq=Xy&&(!y0||["ReactNative","NativeScript","NS"].indexOf(y0.product)<0),Eq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wq=Xy&&window.location.href||"http://localhost",$q=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xy,hasStandardBrowserEnv:xq,hasStandardBrowserWebWorkerEnv:Eq,navigator:y0,origin:wq},Symbol.toStringTag,{value:"Module"})),xr={...$q,...Cq};function Oq(e,t){return Hm(e,new xr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,l){return xr.isNode&&Ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Rq(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _q(e){const t={},n=Object.keys(e);let r;const a=n.length;let l;for(r=0;r<a;r++)l=n[r],t[l]=e[l];return t}function tM(e){function t(n,r,a,l){let c=n[l++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),d=l>=n.length;return c=!c&&Ce.isArray(a)?a.length:c,d?(Ce.hasOwnProp(a,c)?a[c]=[a[c],r]:a[c]=r,!u):((!a[c]||!Ce.isObject(a[c]))&&(a[c]=[]),t(n,r,a[c],l)&&Ce.isArray(a[c])&&(a[c]=_q(a[c])),!u)}if(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const n={};return Ce.forEachEntry(e,(r,a)=>{t(Rq(r),a,n,0)}),n}return null}function Tq(e,t,n){if(Ce.isString(e))try{return(t||JSON.parse)(e),Ce.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ju={transitional:eM,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,l=Ce.isObject(t);if(l&&Ce.isHTMLForm(t)&&(t=new FormData(t)),Ce.isFormData(t))return a?JSON.stringify(tM(t)):t;if(Ce.isArrayBuffer(t)||Ce.isBuffer(t)||Ce.isStream(t)||Ce.isFile(t)||Ce.isBlob(t)||Ce.isReadableStream(t))return t;if(Ce.isArrayBufferView(t))return t.buffer;if(Ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Oq(t,this.formSerializer).toString();if((u=Ce.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Hm(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),Tq(t)):t}],transformResponse:[function(t){const n=this.transitional||ju.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Ce.isResponse(t)||Ce.isReadableStream(t))return t;if(t&&Ce.isString(t)&&(r&&!this.responseType||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(u){if(c)throw u.name==="SyntaxError"?Ot.from(u,Ot.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],e=>{ju.headers[e]={}});const Mq=Ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nq=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(c){a=c.indexOf(":"),n=c.substring(0,a).trim().toLowerCase(),r=c.substring(a+1).trim(),!(!n||t[n]&&Mq[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Aw=Symbol("internals");function Sc(e){return e&&String(e).trim().toLowerCase()}function pd(e){return e===!1||e==null?e:Ce.isArray(e)?e.map(pd):String(e)}function jq(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Iq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yp(e,t,n,r,a){if(Ce.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Ce.isString(t)){if(Ce.isString(r))return t.indexOf(r)!==-1;if(Ce.isRegExp(r))return r.test(t)}}function Pq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Aq(e,t){const n=Ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,l,c){return this[r].call(this,t,a,l,c)},configurable:!0})})}let Ar=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function l(u,d,g){const h=Sc(d);if(!h)throw new Error("header name must be a non-empty string");const p=Ce.findKey(a,h);(!p||a[p]===void 0||g===!0||g===void 0&&a[p]!==!1)&&(a[p||d]=pd(u))}const c=(u,d)=>Ce.forEach(u,(g,h)=>l(g,h,d));if(Ce.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(Ce.isString(t)&&(t=t.trim())&&!Iq(t))c(Nq(t),n);else if(Ce.isHeaders(t))for(const[u,d]of t.entries())l(d,u,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Sc(t),t){const r=Ce.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return jq(a);if(Ce.isFunction(n))return n.call(this,a,r);if(Ce.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sc(t),t){const r=Ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Yp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function l(c){if(c=Sc(c),c){const u=Ce.findKey(r,c);u&&(!n||Yp(r,r[u],u,n))&&(delete r[u],a=!0)}}return Ce.isArray(t)?t.forEach(l):l(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const l=n[r];(!t||Yp(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const n=this,r={};return Ce.forEach(this,(a,l)=>{const c=Ce.findKey(r,l);if(c){n[c]=pd(a),delete n[l];return}const u=t?Pq(l):String(l).trim();u!==l&&delete n[l],n[u]=pd(a),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ce.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Ce.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[Aw]=this[Aw]={accessors:{}}).accessors,a=this.prototype;function l(c){const u=Sc(c);r[u]||(Aq(a,c),r[u]=!0)}return Ce.isArray(t)?t.forEach(l):l(t),this}};Ar.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ce.reduceDescriptors(Ar.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ce.freezeMethods(Ar);function Qp(e,t){const n=this||ju,r=t||n,a=Ar.from(r.headers);let l=r.data;return Ce.forEach(e,function(u){l=u.call(n,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function nM(e){return!!(e&&e.__CANCEL__)}function vs(e,t,n){Ot.call(this,e??"canceled",Ot.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(vs,Ot,{__CANCEL__:!0});function rM(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zq(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dq(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,l=0,c;return t=t!==void 0?t:1e3,function(d){const g=Date.now(),h=r[l];c||(c=g),n[a]=d,r[a]=g;let p=l,y=0;for(;p!==a;)y+=n[p++],p=p%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),g-c<t)return;const E=h&&g-h;return E?Math.round(y*1e3/E):void 0}}function Lq(e,t){let n=0,r=1e3/t,a,l;const c=(g,h=Date.now())=>{n=h,a=null,l&&(clearTimeout(l),l=null),e.apply(null,g)};return[(...g)=>{const h=Date.now(),p=h-n;p>=r?c(g,h):(a=g,l||(l=setTimeout(()=>{l=null,c(a)},r-p)))},()=>a&&c(a)]}const Fd=(e,t,n=3)=>{let r=0;const a=Dq(50,250);return Lq(l=>{const c=l.loaded,u=l.lengthComputable?l.total:void 0,d=c-r,g=a(d),h=c<=u;r=c;const p={loaded:c,total:u,progress:u?c/u:void 0,bytes:d,rate:g||void 0,estimated:g&&u&&h?(u-c)/g:void 0,event:l,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(p)},n)},zw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dw=e=>(...t)=>Ce.asap(()=>e(...t)),Bq=xr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,Hq=xr.hasStandardBrowserEnv?{write(e,t,n,r,a,l){const c=[e+"="+encodeURIComponent(t)];Ce.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),Ce.isString(r)&&c.push("path="+r),Ce.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vq(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function aM(e,t,n){let r=!Fq(t);return e&&(r||n==!1)?Vq(e,t):t}const Lw=e=>e instanceof Ar?{...e}:e;function Qi(e,t){t=t||{};const n={};function r(g,h,p,y){return Ce.isPlainObject(g)&&Ce.isPlainObject(h)?Ce.merge.call({caseless:y},g,h):Ce.isPlainObject(h)?Ce.merge({},h):Ce.isArray(h)?h.slice():h}function a(g,h,p,y){if(Ce.isUndefined(h)){if(!Ce.isUndefined(g))return r(void 0,g,p,y)}else return r(g,h,p,y)}function l(g,h){if(!Ce.isUndefined(h))return r(void 0,h)}function c(g,h){if(Ce.isUndefined(h)){if(!Ce.isUndefined(g))return r(void 0,g)}else return r(void 0,h)}function u(g,h,p){if(p in t)return r(g,h);if(p in e)return r(void 0,g)}const d={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(g,h,p)=>a(Lw(g),Lw(h),p,!0)};return Ce.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=d[h]||a,y=p(e[h],t[h],h);Ce.isUndefined(y)&&p!==u||(n[h]=y)}),n}const oM=e=>{const t=Qi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:l,headers:c,auth:u}=t;t.headers=c=Ar.from(c),t.url=JT(aM(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let d;if(Ce.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((d=c.getContentType())!==!1){const[g,...h]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];c.setContentType([g||"multipart/form-data",...h].join("; "))}}if(xr.hasStandardBrowserEnv&&(r&&Ce.isFunction(r)&&(r=r(t)),r||r!==!1&&Bq(t.url))){const g=a&&l&&Hq.read(l);g&&c.set(a,g)}return t},Uq=typeof XMLHttpRequest<"u",kq=Uq&&function(e){return new Promise(function(n,r){const a=oM(e);let l=a.data;const c=Ar.from(a.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:g}=a,h,p,y,E,b;function x(){E&&E(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(a.method.toUpperCase(),a.url,!0),S.timeout=a.timeout;function w(){if(!S)return;const O=Ar.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),R={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:O,config:e,request:S};rM(function(M){n(M),x()},function(M){r(M),x()},R),S=null}"onloadend"in S?S.onloadend=w:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(w)},S.onabort=function(){S&&(r(new Ot("Request aborted",Ot.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new Ot("Network Error",Ot.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const R=a.transitional||eM;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),r(new Ot(_,R.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,e,S)),S=null},l===void 0&&c.setContentType(null),"setRequestHeader"in S&&Ce.forEach(c.toJSON(),function(_,R){S.setRequestHeader(R,_)}),Ce.isUndefined(a.withCredentials)||(S.withCredentials=!!a.withCredentials),u&&u!=="json"&&(S.responseType=a.responseType),g&&([y,b]=Fd(g,!0),S.addEventListener("progress",y)),d&&S.upload&&([p,E]=Fd(d),S.upload.addEventListener("progress",p),S.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(h=O=>{S&&(r(!O||O.type?new vs(null,e,S):O),S.abort(),S=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const $=zq(a.url);if($&&xr.protocols.indexOf($)===-1){r(new Ot("Unsupported protocol "+$+":",Ot.ERR_BAD_REQUEST,e));return}S.send(l||null)})},qq=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const l=function(g){if(!a){a=!0,u();const h=g instanceof Error?g:this.reason;r.abort(h instanceof Ot?h:new vs(h instanceof Error?h.message:h))}};let c=t&&setTimeout(()=>{c=null,l(new Ot(`timeout ${t} of ms exceeded`,Ot.ETIMEDOUT))},t);const u=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(l):g.removeEventListener("abort",l)}),e=null)};e.forEach(g=>g.addEventListener("abort",l));const{signal:d}=r;return d.unsubscribe=()=>Ce.asap(u),d}},Wq=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Gq=async function*(e,t){for await(const n of Kq(e))yield*Wq(n,t)},Kq=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Bw=(e,t,n,r)=>{const a=Gq(e,t);let l=0,c,u=d=>{c||(c=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:g,value:h}=await a.next();if(g){u(),d.close();return}let p=h.byteLength;if(n){let y=l+=p;n(y)}d.enqueue(new Uint8Array(h))}catch(g){throw u(g),g}},cancel(d){return u(d),a.return()}},{highWaterMark:2})},Fm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iM=Fm&&typeof ReadableStream=="function",Xq=Fm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yq=iM&&lM(()=>{let e=!1;const t=new Request(xr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hw=64*1024,b0=iM&&lM(()=>Ce.isReadableStream(new Response("").body)),Vd={stream:b0&&(e=>e.body)};Fm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vd[t]&&(Vd[t]=Ce.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ot(`Response type '${t}' is not supported`,Ot.ERR_NOT_SUPPORT,r)})})})(new Response);const Qq=async e=>{if(e==null)return 0;if(Ce.isBlob(e))return e.size;if(Ce.isSpecCompliantForm(e))return(await new Request(xr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ce.isArrayBufferView(e)||Ce.isArrayBuffer(e))return e.byteLength;if(Ce.isURLSearchParams(e)&&(e=e+""),Ce.isString(e))return(await Xq(e)).byteLength},Zq=async(e,t)=>{const n=Ce.toFiniteNumber(e.getContentLength());return n??Qq(t)},Jq=Fm&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:l,timeout:c,onDownloadProgress:u,onUploadProgress:d,responseType:g,headers:h,withCredentials:p="same-origin",fetchOptions:y}=oM(e);g=g?(g+"").toLowerCase():"text";let E=qq([a,l&&l.toAbortSignal()],c),b;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let S;try{if(d&&Yq&&n!=="get"&&n!=="head"&&(S=await Zq(h,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(Ce.isFormData(r)&&(T=R.headers.get("content-type"))&&h.setContentType(T),R.body){const[M,z]=zw(S,Fd(Dw(d)));r=Bw(R.body,Hw,M,z)}}Ce.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;b=new Request(t,{...y,signal:E,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let $=await fetch(b);const O=b0&&(g==="stream"||g==="response");if(b0&&(u||O&&x)){const R={};["status","statusText","headers"].forEach(A=>{R[A]=$[A]});const T=Ce.toFiniteNumber($.headers.get("content-length")),[M,z]=u&&zw(T,Fd(Dw(u),!0))||[];$=new Response(Bw($.body,Hw,M,()=>{z&&z(),x&&x()}),R)}g=g||"text";let _=await Vd[Ce.findKey(Vd,g)||"text"]($,e);return!O&&x&&x(),await new Promise((R,T)=>{rM(R,T,{data:_,headers:Ar.from($.headers),status:$.status,statusText:$.statusText,config:e,request:b})})}catch(w){throw x&&x(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,e,b),{cause:w.cause||w}):Ot.from(w,w&&w.code,e,b)}}),S0={http:gq,xhr:kq,fetch:Jq};Ce.forEach(S0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fw=e=>`- ${e}`,eW=e=>Ce.isFunction(e)||e===null||e===!1,sM={getAdapter:e=>{e=Ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let l=0;l<t;l++){n=e[l];let c;if(r=n,!eW(n)&&(r=S0[(c=String(n)).toLowerCase()],r===void 0))throw new Ot(`Unknown adapter '${c}'`);if(r)break;a[c||"#"+l]=r}if(!r){const l=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=t?l.length>1?`since :
`+l.map(Fw).join(`
`):" "+Fw(l[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:S0};function Zp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vs(null,e)}function Vw(e){return Zp(e),e.headers=Ar.from(e.headers),e.data=Qp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sM.getAdapter(e.adapter||ju.adapter)(e).then(function(r){return Zp(e),r.data=Qp.call(e,e.transformResponse,r),r.headers=Ar.from(r.headers),r},function(r){return nM(r)||(Zp(e),r&&r.response&&(r.response.data=Qp.call(e,e.transformResponse,r.response),r.response.headers=Ar.from(r.response.headers))),Promise.reject(r)})}const cM="1.8.4",Vm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Uw={};Vm.transitional=function(t,n,r){function a(l,c){return"[Axios v"+cM+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return(l,c,u)=>{if(t===!1)throw new Ot(a(c," has been removed"+(n?" in "+n:"")),Ot.ERR_DEPRECATED);return n&&!Uw[c]&&(Uw[c]=!0,console.warn(a(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,u):!0}};Vm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function tW(e,t,n){if(typeof e!="object")throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const l=r[a],c=t[l];if(c){const u=e[l],d=u===void 0||c(u,l,e);if(d!==!0)throw new Ot("option "+l+" must be "+d,Ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ot("Unknown option "+l,Ot.ERR_BAD_OPTION)}}const vd={assertOptions:tW,validators:Vm},Ka=vd.validators;let qi=class{constructor(t){this.defaults=t,this.interceptors={request:new Pw,response:new Pw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qi(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:l}=n;r!==void 0&&vd.assertOptions(r,{silentJSONParsing:Ka.transitional(Ka.boolean),forcedJSONParsing:Ka.transitional(Ka.boolean),clarifyTimeoutError:Ka.transitional(Ka.boolean)},!1),a!=null&&(Ce.isFunction(a)?n.paramsSerializer={serialize:a}:vd.assertOptions(a,{encode:Ka.function,serialize:Ka.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),vd.assertOptions(n,{baseUrl:Ka.spelling("baseURL"),withXsrfToken:Ka.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&Ce.merge(l.common,l[n.method]);l&&Ce.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),n.headers=Ar.concat(c,l);const u=[];let d=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(d=d&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const g=[];this.interceptors.response.forEach(function(x){g.push(x.fulfilled,x.rejected)});let h,p=0,y;if(!d){const b=[Vw.bind(this),void 0];for(b.unshift.apply(b,u),b.push.apply(b,g),y=b.length,h=Promise.resolve(n);p<y;)h=h.then(b[p++],b[p++]);return h}y=u.length;let E=n;for(p=0;p<y;){const b=u[p++],x=u[p++];try{E=b(E)}catch(S){x.call(this,S);break}}try{h=Vw.call(this,E)}catch(b){return Promise.reject(b)}for(p=0,y=g.length;p<y;)h=h.then(g[p++],g[p++]);return h}getUri(t){t=Qi(this.defaults,t);const n=aM(t.baseURL,t.url,t.allowAbsoluteUrls);return JT(n,t.params,t.paramsSerializer)}};Ce.forEach(["delete","get","head","options"],function(t){qi.prototype[t]=function(n,r){return this.request(Qi(r||{},{method:t,url:n,data:(r||{}).data}))}});Ce.forEach(["post","put","patch"],function(t){function n(r){return function(l,c,u){return this.request(Qi(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}qi.prototype[t]=n(),qi.prototype[t+"Form"]=n(!0)});let nW=class uM{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(a=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](a);r._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(u=>{r.subscribe(u),l=u}).then(a);return c.cancel=function(){r.unsubscribe(l)},c},t(function(l,c,u){r.reason||(r.reason=new vs(l,c,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new uM(function(a){t=a}),cancel:t}}};function rW(e){return function(n){return e.apply(null,n)}}function aW(e){return Ce.isObject(e)&&e.isAxiosError===!0}const C0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(C0).forEach(([e,t])=>{C0[t]=e});function fM(e){const t=new qi(e),n=VT(qi.prototype.request,t);return Ce.extend(n,qi.prototype,t,{allOwnKeys:!0}),Ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return fM(Qi(e,a))},n}const Xt=fM(ju);Xt.Axios=qi;Xt.CanceledError=vs;Xt.CancelToken=nW;Xt.isCancel=nM;Xt.VERSION=cM;Xt.toFormData=Hm;Xt.AxiosError=Ot;Xt.Cancel=Xt.CanceledError;Xt.all=function(t){return Promise.all(t)};Xt.spread=rW;Xt.isAxiosError=aW;Xt.mergeConfig=Qi;Xt.AxiosHeaders=Ar;Xt.formToJSON=e=>tM(Ce.isHTMLForm(e)?new FormData(e):e);Xt.getAdapter=sM.getAdapter;Xt.HttpStatusCode=C0;Xt.default=Xt;const{Axios:xK,AxiosError:EK,CanceledError:wK,isCancel:$K,CancelToken:OK,VERSION:RK,all:_K,Cancel:TK,isAxiosError:MK,spread:NK,toFormData:jK,AxiosHeaders:IK,HttpStatusCode:PK,formToJSON:AK,getAdapter:zK,mergeConfig:DK}=Xt;function hr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oW=typeof Symbol=="function"&&Symbol.observable||"@@observable",kw=oW,Jp=()=>Math.random().toString(36).substring(7).split("").join("."),iW={INIT:`@@redux/INIT${Jp()}`,REPLACE:`@@redux/REPLACE${Jp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Jp()}`},Ud=iW;function Yy(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function dM(e,t,n){if(typeof e!="function")throw new Error(hr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(hr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(hr(1));return n(dM)(e,t)}let r=e,a=t,l=new Map,c=l,u=0,d=!1;function g(){c===l&&(c=new Map,l.forEach((S,w)=>{c.set(w,S)}))}function h(){if(d)throw new Error(hr(3));return a}function p(S){if(typeof S!="function")throw new Error(hr(4));if(d)throw new Error(hr(5));let w=!0;g();const $=u++;return c.set($,S),function(){if(w){if(d)throw new Error(hr(6));w=!1,g(),c.delete($),l=null}}}function y(S){if(!Yy(S))throw new Error(hr(7));if(typeof S.type>"u")throw new Error(hr(8));if(typeof S.type!="string")throw new Error(hr(17));if(d)throw new Error(hr(9));try{d=!0,a=r(a,S)}finally{d=!1}return(l=c).forEach($=>{$()}),S}function E(S){if(typeof S!="function")throw new Error(hr(10));r=S,y({type:Ud.REPLACE})}function b(){const S=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(hr(11));function $(){const _=w;_.next&&_.next(h())}return $(),{unsubscribe:S($)}},[kw](){return this}}}return y({type:Ud.INIT}),{dispatch:y,subscribe:p,getState:h,replaceReducer:E,[kw]:b}}function lW(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ud.INIT})>"u")throw new Error(hr(12));if(typeof n(void 0,{type:Ud.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(hr(13))})}function sW(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const c=t[l];typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let a;try{lW(n)}catch(l){a=l}return function(c={},u){if(a)throw a;let d=!1;const g={};for(let h=0;h<r.length;h++){const p=r[h],y=n[p],E=c[p],b=y(E,u);if(typeof b>"u")throw u&&u.type,new Error(hr(14));g[p]=b,d=d||b!==E}return d=d||r.length!==Object.keys(c).length,d?g:c}}function kd(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function cW(...e){return t=>(n,r)=>{const a=t(n,r);let l=()=>{throw new Error(hr(15))};const c={getState:a.getState,dispatch:(d,...g)=>l(d,...g)},u=e.map(d=>d(c));return l=kd(...u)(a.dispatch),{...a,dispatch:l}}}function uW(e){return Yy(e)&&"type"in e&&typeof e.type=="string"}var mM=Symbol.for("immer-nothing"),qw=Symbol.for("immer-draftable"),na=Symbol.for("immer-state");function Na(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var es=Object.getPrototypeOf;function Zi(e){return!!e&&!!e[na]}function To(e){var t;return e?gM(e)||Array.isArray(e)||!!e[qw]||!!((t=e.constructor)!=null&&t[qw])||km(e)||qm(e):!1}var fW=Object.prototype.constructor.toString();function gM(e){if(!e||typeof e!="object")return!1;const t=es(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===fW}function qd(e,t){Um(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Um(e){const t=e[na];return t?t.type_:Array.isArray(e)?1:km(e)?2:qm(e)?3:0}function x0(e,t){return Um(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hM(e,t,n){const r=Um(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function dW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function km(e){return e instanceof Map}function qm(e){return e instanceof Set}function Li(e){return e.copy_||e.base_}function E0(e,t){if(km(e))return new Map(e);if(qm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=gM(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[na];let a=Reflect.ownKeys(r);for(let l=0;l<a.length;l++){const c=a[l],u=r[c];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[c]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[c]})}return Object.create(es(e),r)}else{const r=es(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function Qy(e,t=!1){return Wm(e)||Zi(e)||!To(e)||(Um(e)>1&&(e.set=e.add=e.clear=e.delete=mW),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Qy(r,!0))),e}function mW(){Na(2)}function Wm(e){return Object.isFrozen(e)}var gW={};function Ji(e){const t=gW[e];return t||Na(0,e),t}var fu;function pM(){return fu}function hW(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ww(e,t){t&&(Ji("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function w0(e){$0(e),e.drafts_.forEach(pW),e.drafts_=null}function $0(e){e===fu&&(fu=e.parent_)}function Gw(e){return fu=hW(fu,e)}function pW(e){const t=e[na];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[na].modified_&&(w0(t),Na(4)),To(e)&&(e=Wd(t,e),t.parent_||Gd(t,e)),t.patches_&&Ji("Patches").generateReplacementPatches_(n[na].base_,e,t.patches_,t.inversePatches_)):e=Wd(t,n,[]),w0(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mM?e:void 0}function Wd(e,t,n){if(Wm(t))return t;const r=t[na];if(!r)return qd(t,(a,l)=>Xw(e,r,t,a,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Gd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const a=r.copy_;let l=a,c=!1;r.type_===3&&(l=new Set(a),a.clear(),c=!0),qd(l,(u,d)=>Xw(e,r,a,u,d,n,c)),Gd(e,a,!1),n&&e.patches_&&Ji("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Xw(e,t,n,r,a,l,c){if(Zi(a)){const u=l&&t&&t.type_!==3&&!x0(t.assigned_,r)?l.concat(r):void 0,d=Wd(e,a,u);if(hM(n,r,d),Zi(d))e.canAutoFreeze_=!1;else return}else c&&n.add(a);if(To(a)&&!Wm(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Wd(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Gd(e,a)}}function Gd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qy(t,n)}function vW(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pM(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,l=Zy;n&&(a=[r],l=du);const{revoke:c,proxy:u}=Proxy.revocable(a,l);return r.draft_=u,r.revoke_=c,u}var Zy={get(e,t){if(t===na)return e;const n=Li(e);if(!x0(n,t))return yW(e,n,t);const r=n[t];return e.finalized_||!To(r)?r:r===ev(e.base_,t)?(tv(e),e.copy_[t]=R0(r,e)):r},has(e,t){return t in Li(e)},ownKeys(e){return Reflect.ownKeys(Li(e))},set(e,t,n){const r=vM(Li(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=ev(Li(e),t),l=a==null?void 0:a[na];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(dW(n,a)&&(n!==void 0||x0(e.base_,t)))return!0;tv(e),O0(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ev(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,tv(e),O0(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Li(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Na(11)},getPrototypeOf(e){return es(e.base_)},setPrototypeOf(){Na(12)}},du={};qd(Zy,(e,t)=>{du[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});du.deleteProperty=function(e,t){return du.set.call(this,e,t,void 0)};du.set=function(e,t,n){return Zy.set.call(this,e[0],t,n,e[0])};function ev(e,t){const n=e[na];return(n?Li(n):e)[t]}function yW(e,t,n){var a;const r=vM(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function vM(e,t){if(!(t in e))return;let n=es(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=es(n)}}function O0(e){e.modified_||(e.modified_=!0,e.parent_&&O0(e.parent_))}function tv(e){e.copy_||(e.copy_=E0(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var bW=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const c=this;return function(d=l,...g){return c.produce(d,h=>n.call(this,h,...g))}}typeof n!="function"&&Na(6),r!==void 0&&typeof r!="function"&&Na(7);let a;if(To(t)){const l=Gw(this),c=R0(t,void 0);let u=!0;try{a=n(c),u=!1}finally{u?w0(l):$0(l)}return Ww(l,r),Kw(a,l)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===mM&&(a=void 0),this.autoFreeze_&&Qy(a,!0),r){const l=[],c=[];Ji("Patches").generateReplacementPatches_(t,a,l,c),r(l,c)}return a}else Na(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(c,...u)=>this.produceWithPatches(c,d=>t(d,...u));let r,a;return[this.produce(t,n,(c,u)=>{r=c,a=u}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){To(e)||Na(8),Zi(e)&&(e=SW(e));const t=Gw(this),n=R0(e,void 0);return n[na].isManual_=!0,$0(t),n}finishDraft(e,t){const n=e&&e[na];(!n||!n.isManual_)&&Na(9);const{scope_:r}=n;return Ww(r,t),Kw(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=Ji("Patches").applyPatches_;return Zi(e)?r(e,t):this.produce(e,a=>r(a,t))}};function R0(e,t){const n=km(e)?Ji("MapSet").proxyMap_(e,t):qm(e)?Ji("MapSet").proxySet_(e,t):vW(e,t);return(t?t.scope_:pM()).drafts_.push(n),n}function SW(e){return Zi(e)||Na(10,e),yM(e)}function yM(e){if(!To(e)||Wm(e))return e;const t=e[na];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=E0(e,t.scope_.immer_.useStrictShallowCopy_)}else n=E0(e,!0);return qd(n,(r,a)=>{hM(n,r,yM(a))}),t&&(t.finalized_=!1),n}var ra=new bW,bM=ra.produce;ra.produceWithPatches.bind(ra);ra.setAutoFreeze.bind(ra);ra.setUseStrictShallowCopy.bind(ra);ra.applyPatches.bind(ra);ra.createDraft.bind(ra);ra.finishDraft.bind(ra);function SM(e){return({dispatch:n,getState:r})=>a=>l=>typeof l=="function"?l(n,r,e):a(l)}var CW=SM(),xW=SM,EW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kd:kd.apply(null,arguments)};function Yw(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(Eo(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>uW(r)&&r.type===e,n}var CM=class Lc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Lc.prototype)}static get[Symbol.species](){return Lc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Lc(...t[0].concat(this)):new Lc(...t.concat(this))}};function Qw(e){return To(e)?bM(e,()=>{}):e}function Qf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function wW(e){return typeof e=="boolean"}var $W=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:l=!0}=t??{};let c=new CM;return n&&(wW(n)?c.push(CW):c.push(xW(n.extraArgument))),c},OW="RTK_autoBatch",Zw=e=>t=>{setTimeout(t,e)},RW=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,l=!1,c=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zw(10):e.type==="callback"?e.queueNotification:Zw(e.timeout),g=()=>{c=!1,l&&(l=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>a&&h(),y=r.subscribe(p);return u.add(h),()=>{y(),u.delete(h)}},dispatch(h){var p;try{return a=!((p=h==null?void 0:h.meta)!=null&&p[OW]),l=!a,l&&(c||(c=!0,d(g))),r.dispatch(h)}finally{a=!0}}})},_W=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new CM(e);return r&&a.push(RW(typeof r=="object"?r:void 0)),a};function TW(e){const t=$W(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Yy(n))u=sW(n);else throw new Error(Eo(1));let d;typeof r=="function"?d=r(t):d=t();let g=kd;a&&(g=EW({trace:!1,...typeof a=="object"&&a}));const h=cW(...d),p=_W(h);let y=typeof c=="function"?c(p):p();const E=g(...y);return dM(u,l,E)}function xM(e){const t={},n=[];let r;const a={addCase(l,c){const u=typeof l=="string"?l:l.type;if(!u)throw new Error(Eo(28));if(u in t)throw new Error(Eo(29));return t[u]=c,a},addMatcher(l,c){return n.push({matcher:l,reducer:c}),a},addDefaultCase(l){return r=l,a}};return e(a),[t,n,r]}function MW(e){return typeof e=="function"}function NW(e,t){let[n,r,a]=xM(t),l;if(MW(e))l=()=>Qw(e());else{const u=Qw(e);l=()=>u}function c(u=l(),d){let g=[n[d.type],...r.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return g.filter(h=>!!h).length===0&&(g=[a]),g.reduce((h,p)=>{if(p)if(Zi(h)){const E=p(h,d);return E===void 0?h:E}else{if(To(h))return bM(h,y=>p(y,d));{const y=p(h,d);if(y===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return h},u)}return c.getInitialState=l,c}var jW=Symbol.for("rtk-slice-createasyncthunk");function IW(e,t){return`${e}/${t}`}function PW({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[jW];return function(a){const{name:l,reducerPath:c=l}=a;if(!l)throw new Error(Eo(11));const u=(typeof a.reducers=="function"?a.reducers(zW()):a.reducers)||{},d=Object.keys(u),g={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(_,R){const T=typeof _=="string"?_:_.type;if(!T)throw new Error(Eo(12));if(T in g.sliceCaseReducersByType)throw new Error(Eo(13));return g.sliceCaseReducersByType[T]=R,h},addMatcher(_,R){return g.sliceMatchers.push({matcher:_,reducer:R}),h},exposeAction(_,R){return g.actionCreators[_]=R,h},exposeCaseReducer(_,R){return g.sliceCaseReducersByName[_]=R,h}};d.forEach(_=>{const R=u[_],T={reducerName:_,type:IW(l,_),createNotation:typeof a.reducers=="function"};LW(R)?HW(T,R,h,t):DW(T,R,h)});function p(){const[_={},R=[],T=void 0]=typeof a.extraReducers=="function"?xM(a.extraReducers):[a.extraReducers],M={..._,...g.sliceCaseReducersByType};return NW(a.initialState,z=>{for(let A in M)z.addCase(A,M[A]);for(let A of g.sliceMatchers)z.addMatcher(A.matcher,A.reducer);for(let A of R)z.addMatcher(A.matcher,A.reducer);T&&z.addDefaultCase(T)})}const y=_=>_,E=new Map,b=new WeakMap;let x;function S(_,R){return x||(x=p()),x(_,R)}function w(){return x||(x=p()),x.getInitialState()}function $(_,R=!1){function T(z){let A=z[_];return typeof A>"u"&&R&&(A=Qf(b,T,w)),A}function M(z=y){const A=Qf(E,R,()=>new WeakMap);return Qf(A,z,()=>{const D={};for(const[F,W]of Object.entries(a.selectors??{}))D[F]=AW(W,z,()=>Qf(b,z,w),R);return D})}return{reducerPath:_,getSelectors:M,get selectors(){return M(T)},selectSlice:T}}const O={name:l,reducer:S,actions:g.actionCreators,caseReducers:g.sliceCaseReducersByName,getInitialState:w,...$(c),injectInto(_,{reducerPath:R,...T}={}){const M=R??c;return _.inject({reducerPath:M,reducer:S},T),{...O,...$(M,!0)}}};return O}}function AW(e,t,n,r){function a(l,...c){let u=t(l);return typeof u>"u"&&r&&(u=n()),e(u,...c)}return a.unwrapped=e,a}var Iu=PW();function zW(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function DW({type:e,reducerName:t,createNotation:n},r,a){let l,c;if("reducer"in r){if(n&&!BW(r))throw new Error(Eo(17));l=r.reducer,c=r.prepare}else l=r;a.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,c?Yw(e,c):Yw(e))}function LW(e){return e._reducerDefinitionType==="asyncThunk"}function BW(e){return e._reducerDefinitionType==="reducerWithPrepare"}function HW({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Eo(18));const{payloadCreator:l,fulfilled:c,pending:u,rejected:d,settled:g,options:h}=n,p=a(e,l,h);r.exposeAction(t,p),c&&r.addCase(p.fulfilled,c),u&&r.addCase(p.pending,u),d&&r.addCase(p.rejected,d),g&&r.addMatcher(p.settled,g),r.exposeCaseReducer(t,{fulfilled:c||Zf,pending:u||Zf,rejected:d||Zf,settled:g||Zf})}function Zf(){}function Eo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Jw=localStorage.getItem("currenct_project"),e$=localStorage.getItem("currenct_namespace"),EM=Iu({name:"context",initialState:{project:Jw?JSON.parse(Jw):{},namespace:e$?JSON.parse(e$):{name:"default",namespaceKey:"default"}},reducers:{setProject:(e,t)=>{e.project=t.payload,localStorage.setItem("currenct_project",JSON.stringify(t.payload))},setNamespace:(e,t)=>{e.namespace=t.payload,localStorage.setItem("currenct_namespace",JSON.stringify(t.payload))}}}),{setProject:_0,setNamespace:LK}=EM.actions,FW=EM.reducer,wM=Iu({name:"global",initialState:{sseData:{},setting:{}},reducers:{setSseData:(e,t)=>{e.sseData=t.payload},setSetting:(e,t)=>{e.setting=t.payload}}}),{setSseData:$M,setSetting:OM}=wM.actions,VW=wM.reducer;function Jy(){const[e,t]=f.useState({key:null,visible:!1,params:null});return{modal:e,openModal:(a,l)=>{t({key:a,visible:!0,params:l})},closeModal:()=>{t({key:null,visible:!1,params:null})}}}function BK(e){const[t,n]=f.useState(Object.fromEntries(e.map(l=>[l,{visible:!1,params:null}])));return{modals:t,openModals:(l,c)=>{n(u=>({...u,[l]:{visible:!0,params:c}}))},closeModals:l=>{n(c=>({...c,[l]:{visible:!1,params:null}}))}}}const RM=f.createContext(null),UW=({url:e="/brave-api/sse-group",retryInterval:t=5e3,children:n})=>{const r=f.useRef(null),[a,l]=f.useState("connecting"),c=f.useRef(null),u=f.useRef(null),d=f.useRef(Date.now()),g=15e3,{baseURL:h}=_o(b=>b.user),p=()=>{r.current&&r.current.close(),l("connecting");const b=new EventSource(`${h}${e}`);r.current=b,b.onopen=()=>{l("open"),d.current=Date.now(),console.log("✅ SSE connected")};const x=()=>{l("closed"),b.close(),r.current=null,c.current||(c.current=setTimeout(()=>{c.current=null,p()},t))};u.current=setInterval(()=>{Date.now()-d.current>g&&(console.warn("⚠️ SSE 心跳超时，服务器可能异常退出"),x())},5e3),b.onerror=S=>{console.warn("❌ SSE error",S)},b.onmessage=S=>{d.current=Date.now(),JSON.parse(S.data).type!="ping"&&console.log("📩 SSE message:",S.data)}},y=()=>{var b;c.current&&clearTimeout(c.current),c.current=null,(b=r.current)==null||b.close(),r.current=null,l("closed")},E=()=>{y(),p()};return f.useEffect(()=>(console.log(">>>>>>>>>>建立连接................................."),p(),()=>{y(),u.current&&clearInterval(u.current)}),[]),me.jsx(RM.Provider,{value:{eventSourceRef:r,status:a,close:y,reconnect:E},children:n})},_M=()=>{const e=f.useContext(RM);if(!e)throw new Error("useSSEContext must be used within <SSEProvider>");return e},kW=e=>Xt.post("/project/add-project",e),qW=e=>Xt.post("/project/update-project",e),WW=e=>Xt.get(`/project/find-by-project-id/${e}`),GW=e=>Xt.delete(`/project/delete-project/${e}`);pi.TextArea;const KW=({visible:e,onClose:t,params:n,messageApi:r,callback:a})=>{const[l]=Qr.useForm();if(f.useEffect(()=>{console.log(n),n!=null&&n.project_id?u():l.resetFields()},[n==null?void 0:n.project_id]),!e)return null;const c=g=>({...g,project_id:n==null?void 0:n.project_id}),u=async()=>{const g=await WW(n.project_id);console.log(g.data),l.setFieldsValue(g.data)},d=async()=>{const g=await l.validateFields(),h=c(g);if(h.project_id)await qW(h),r.success("更新成功"),a==null||a(h.project_id);else{const p=await kW(h);console.log(p.data.project_id),r.success("添加成功"),a==null||a(p.data.project_id)}t()};return me.jsx(Ea,{onOk:d,open:e,onClose:t,onCancel:t,title:`${n!=null&&n.project_id?"编辑":"添加"}项目`,children:me.jsxs(Qr,{form:l,children:[me.jsx(Qr.Item,{label:"项目名称",name:"project_name",children:me.jsx(pi,{})}),me.jsx(Qr.Item,{label:"研究变量",name:"metadata_form",children:me.jsx(Py,{rows:6})}),me.jsx(Yz,{ghost:!0,items:[{key:"1",label:"更多",children:me.jsx(me.Fragment,{children:me.jsx(Qr.Item,{noStyle:!0,shouldUpdate:!0,children:()=>me.jsx(_u,{children:me.jsx("pre",{children:JSON.stringify(c(l.getFieldsValue()),null,2)})})})})}]})]})})},t$=localStorage.getItem("locale"),n$=localStorage.getItem("theme"),r$=localStorage.getItem("baseURL"),TM=Iu({name:"user",initialState:{locale:t$||"en_US",theme:n$||"light",baseURL:r$?`${r$}`:""},reducers:{setUserItem(e,t){Object.assign(e,t.payload),t.payload.locale&&localStorage.setItem("locale",t.payload.locale),t.payload.theme&&localStorage.setItem("theme",t.payload.theme),t.payload.baseURL&&localStorage.setItem("baseURL",t.payload.baseURL)}}}),{setUserItem:Kd}=TM.actions,XW=TM.reducer,Ct=e=>typeof e=="string",Cc=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},a$=e=>e==null?"":""+e,YW=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},QW=/###/g,o$=e=>e&&e.indexOf("###")>-1?e.replace(QW,"."):e,i$=e=>!e||Ct(e),kc=(e,t,n)=>{const r=Ct(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(i$(e))return{};const l=o$(r[a]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++a}return i$(e)?{}:{obj:e,k:o$(r[a])}},l$=(e,t,n)=>{const{obj:r,k:a}=kc(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let l=t[t.length-1],c=t.slice(0,t.length-1),u=kc(e,c,Object);for(;u.obj===void 0&&c.length;)l=`${c[c.length-1]}.${l}`,c=c.slice(0,c.length-1),u=kc(e,c,Object),u!=null&&u.obj&&typeof u.obj[`${u.k}.${l}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${l}`]=n},ZW=(e,t,n,r)=>{const{obj:a,k:l}=kc(e,t,Object);a[l]=a[l]||[],a[l].push(n)},Xd=(e,t)=>{const{obj:n,k:r}=kc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},JW=(e,t,n)=>{const r=Xd(e,n);return r!==void 0?r:Xd(t,n)},MM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ct(e[r])||e[r]instanceof String||Ct(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):MM(e[r],t[r],n):e[r]=t[r]);return e},Vl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var eG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const tG=e=>Ct(e)?e.replace(/[&<>"'\/]/g,t=>eG[t]):e;class nG{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const rG=[" ",",","?","!",";"],aG=new nG(20),oG=(e,t,n)=>{t=t||"",n=n||"";const r=rG.filter(c=>t.indexOf(c)<0&&n.indexOf(c)<0);if(r.length===0)return!0;const a=aG.getRegExp(`(${r.map(c=>c==="?"?"\\?":c).join("|")})`);let l=!a.test(e);if(!l){const c=e.indexOf(n);c>0&&!a.test(e.substring(0,c))&&(l=!0)}return l},T0=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let l=0;l<r.length;){if(!a||typeof a!="object")return;let c,u="";for(let d=l;d<r.length;++d)if(d!==l&&(u+=n),u+=r[d],c=a[u],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&d<r.length-1)continue;l+=d-l+1;break}a=c}return a},mu=e=>e==null?void 0:e.replace("_","-"),iG={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class Yd{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||iG,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ct(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Yd(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Yd(this.logger,t)}}var Ya=new Yd;class Gm{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,l])=>{for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,l])=>{for(let c=0;c<l;c++)a.apply(a,[t,...n])})}}class s$ extends Gm{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){var g,h;const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):Ct(r)&&l?u.push(...r.split(l)):u.push(r)));const d=Xd(this.data,u);return!d&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),d||!c||!Ct(r)?d:T0((h=(g=this.data)==null?void 0:g[t])==null?void 0:h[n],r,l)}addResource(t,n,r,a,l={silent:!1}){const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(c?r.split(c):r)),t.indexOf(".")>-1&&(u=t.split("."),a=n,n=u[1]),this.addNamespaces(n),l$(this.data,u,a),l.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const l in r)(Ct(r[l])||Array.isArray(r[l]))&&this.addResource(t,n,l,r[l],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,l,c={silent:!1,skipCopy:!1}){let u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let d=Xd(this.data,u)||{};c.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?MM(d,r,l):d={...d,...r},l$(this.data,u,d),c.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var NM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(l=>{var c;t=((c=this.processors[l])==null?void 0:c.process(t,n,r,a))??t}),t}};const jM=Symbol("i18next/PATH_KEY");function lG(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),a===jM?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function M0(e,t){const{[jM]:n}=e(lG());return n.join((t==null?void 0:t.keySeparator)??".")}const c$={},u$=e=>!Ct(e)&&typeof e!="boolean"&&typeof e!="number";class Qd extends Gm{constructor(t,n={}){super(),YW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ya.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);return(a==null?void 0:a.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const c=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!oG(t,r,a);if(c&&!u){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:Ct(l)?[l]:l};const g=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),t=g.join(a)}return{key:t,namespaces:Ct(l)?[l]:l}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=M0(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:u,namespaces:d}=this.extractFromKey(t[t.length-1],a),g=d[d.length-1];let h=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;h===void 0&&(h=":");const p=a.lng||this.language,y=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((p==null?void 0:p.toLowerCase())==="cimode")return y?l?{res:`${g}${h}${u}`,usedKey:u,exactUsedKey:u,usedLng:p,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:`${g}${h}${u}`:l?{res:u,usedKey:u,exactUsedKey:u,usedLng:p,usedNS:g,usedParams:this.getUsedParamsDetails(a)}:u;const E=this.resolve(t,a);let b=E==null?void 0:E.res;const x=(E==null?void 0:E.usedKey)||u,S=(E==null?void 0:E.exactUsedKey)||u,w=["[object Number]","[object Function]","[object RegExp]"],$=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,_=a.count!==void 0&&!Ct(a.count),R=Qd.hasDefaultValue(a),T=_?this.pluralResolver.getSuffix(p,a.count,a):"",M=a.ordinal&&_?this.pluralResolver.getSuffix(p,a.count,{ordinal:!1}):"",z=_&&!a.ordinal&&a.count===0,A=z&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${T}`]||a[`defaultValue${M}`]||a.defaultValue;let D=b;O&&!b&&R&&(D=A);const F=u$(D),W=Object.prototype.toString.apply(D);if(O&&D&&F&&w.indexOf(W)<0&&!(Ct($)&&Array.isArray(D))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,D,{...a,ns:d}):`key '${u} (${this.language})' returned an object instead of string.`;return l?(E.res=k,E.usedParams=this.getUsedParamsDetails(a),E):k}if(c){const k=Array.isArray(D),U=k?[]:{},Y=k?S:x;for(const N in D)if(Object.prototype.hasOwnProperty.call(D,N)){const P=`${Y}${c}${N}`;R&&!b?U[N]=this.translate(P,{...a,defaultValue:u$(A)?A[N]:void 0,joinArrays:!1,ns:d}):U[N]=this.translate(P,{...a,joinArrays:!1,ns:d}),U[N]===P&&(U[N]=D[N])}b=U}}else if(O&&Ct($)&&Array.isArray(b))b=b.join($),b&&(b=this.extendTranslation(b,t,a,r));else{let k=!1,U=!1;!this.isValidLookup(b)&&R&&(k=!0,b=A),this.isValidLookup(b)||(U=!0,b=u);const N=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:b,P=R&&A!==b&&this.options.updateMissing;if(U||k||P){if(this.logger.log(P?"updateKey":"missingKey",p,g,u,P?A:b),c){const L=this.resolve(u,{...a,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let B=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let L=0;L<K.length;L++)B.push(K[L]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(a.lng||this.language):B.push(a.lng||this.language);const j=(L,q,G)=>{var X;const V=R&&G!==b?G:N;this.options.missingKeyHandler?this.options.missingKeyHandler(L,g,q,V,P,a):(X=this.backendConnector)!=null&&X.saveMissing&&this.backendConnector.saveMissing(L,g,q,V,P,a),this.emit("missingKey",L,g,q,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?B.forEach(L=>{const q=this.pluralResolver.getSuffixes(L,a);z&&a[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(G=>{j([L],u+G,a[`defaultValue${G}`]||A)})}):j(B,u,A))}b=this.extendTranslation(b,t,a,E,r),U&&b===u&&this.options.appendNamespaceToMissingKey&&(b=`${g}${h}${u}`),(U||k)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${h}${u}`:u,k?b:void 0,a))}return l?(E.res=b,E.usedParams=this.getUsedParamsDetails(a),E):b}extendTranslation(t,n,r,a,l){var d,g;if((d=this.i18nFormat)!=null&&d.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const h=Ct(t)&&(((g=r==null?void 0:r.interpolation)==null?void 0:g.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(h){const E=t.match(this.interpolator.nestingRegexp);p=E&&E.length}let y=r.replace&&!Ct(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,r.lng||this.language||a.usedLng,r),h){const E=t.match(this.interpolator.nestingRegexp),b=E&&E.length;p<b&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...E)=>(l==null?void 0:l[0])===E[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):this.translate(...E,n),r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=Ct(c)?[c]:c;return t!=null&&(u!=null&&u.length)&&r.applyPostProcessor!==!1&&(t=NM.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,l,c,u;return Ct(t)&&(t=[t]),t.forEach(d=>{if(this.isValidLookup(r))return;const g=this.extractFromKey(d,n),h=g.key;a=h;let p=g.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const y=n.count!==void 0&&!Ct(n.count),E=y&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Ct(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(S=>{var w,$;this.isValidLookup(r)||(u=S,!c$[`${x[0]}-${S}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(u))&&(c$[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${x.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(O=>{var T;if(this.isValidLookup(r))return;c=O;const _=[h];if((T=this.i18nFormat)!=null&&T.addLookupKeys)this.i18nFormat.addLookupKeys(_,h,O,S,n);else{let M;y&&(M=this.pluralResolver.getSuffix(O,n.count,n));const z=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&M.indexOf(A)===0&&_.push(h+M.replace(A,this.options.pluralSeparator)),_.push(h+M),E&&_.push(h+z)),b){const D=`${h}${this.options.contextSeparator||"_"}${n.context}`;_.push(D),y&&(n.ordinal&&M.indexOf(A)===0&&_.push(D+M.replace(A,this.options.pluralSeparator)),_.push(D+M),E&&_.push(D+z))}}let R;for(;R=_.pop();)this.isValidLookup(r)||(l=R,r=this.getResource(O,S,R,n))}))})}),{res:r,usedKey:a,exactUsedKey:l,usedLng:c,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ct(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const l of n)delete a[l]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class f${constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ya.create("languageUtils")}getScriptPartFromCode(t){if(t=mu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=mu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ct(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const l=this.getLanguagePartFromCode(r);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(c=>{if(c===l)return c;if(!(c.indexOf("-")<0&&l.indexOf("-")<0)&&(c.indexOf("-")>0&&l.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===l||c.indexOf(l)===0&&l.length>1))return c})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ct(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],l=c=>{c&&(this.isSupportedCode(c)?a.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Ct(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ct(t)&&l(this.formatLanguageCode(t)),r.forEach(c=>{a.indexOf(c)<0&&l(this.formatLanguageCode(c))}),a}}const d$={zero:0,one:1,two:2,few:3,many:4,other:5},m$={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sG{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ya.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=mu(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:r,type:a});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let c;try{c=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),m$;if(!t.match(/-|_/))return m$;const d=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(d,n)}return this.pluralRulesCache[l]=c,c}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,l)=>d$[a]-d$[l]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const g$=(e,t,n,r=".",a=!0)=>{let l=JW(e,t,n);return!l&&a&&Ct(n)&&(l=T0(e,n,r),l===void 0&&(l=T0(t,n,r))),l},nv=e=>e.replace(/\$/g,"$$$$");class cG{constructor(t={}){var n;this.logger=Ya.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:l,prefixEscaped:c,suffix:u,suffixEscaped:d,formatSeparator:g,unescapeSuffix:h,unescapePrefix:p,nestingPrefix:y,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:x,nestingOptionsSeparator:S,maxReplaces:w,alwaysFormat:$}=t.interpolation;this.escape=n!==void 0?n:tG,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?Vl(l):c||"{{",this.suffix=u?Vl(u):d||"}}",this.formatSeparator=g||",",this.unescapePrefix=h?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=y?Vl(y):E||Vl("$t("),this.nestingSuffix=b?Vl(b):x||Vl(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=w||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var E;let l,c,u;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=b=>{if(b.indexOf(this.formatSeparator)<0){const $=g$(n,d,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,r,{...a,...n,interpolationkey:b}):$}const x=b.split(this.formatSeparator),S=x.shift().trim(),w=x.join(this.formatSeparator).trim();return this.format(g$(n,d,S,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...a,...n,interpolationkey:S})};this.resetRegExp();const h=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=((E=a==null?void 0:a.interpolation)==null?void 0:E.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>nv(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?nv(this.escape(b)):nv(b)}].forEach(b=>{for(u=0;l=b.regex.exec(t);){const x=l[1].trim();if(c=g(x),c===void 0)if(typeof h=="function"){const w=h(t,l,a);c=Ct(w)?w:""}else if(a&&Object.prototype.hasOwnProperty.call(a,x))c="";else if(p){c=l[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),c="";else!Ct(c)&&!this.useRawValueToEscape&&(c=a$(c));const S=b.safeValue(c);if(t=t.replace(l[0],S),p?(b.regex.lastIndex+=c.length,b.regex.lastIndex-=l[0].length):b.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,l,c;const u=(d,g)=>{const h=this.nestingOptionsSeparator;if(d.indexOf(h)<0)return d;const p=d.split(new RegExp(`${h}[ ]*{`));let y=`{${p[1]}`;d=p[0],y=this.interpolate(y,c);const E=y.match(/'/g),b=y.match(/"/g);(((E==null?void 0:E.length)??0)%2===0&&!b||b.length%2!==0)&&(y=y.replace(/'/g,'"'));try{c=JSON.parse(y),g&&(c={...g,...c})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,x),`${d}${h}${y}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,d};for(;a=this.nestingRegexp.exec(t);){let d=[];c={...r},c=c.replace&&!Ct(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const g=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(g!==-1&&(d=a[1].slice(g).split(this.formatSeparator).map(h=>h.trim()).filter(Boolean),a[1]=a[1].slice(0,g)),l=n(u.call(this,a[1].trim(),c),c),l&&a[0]===t&&!Ct(l))return l;Ct(l)||(l=a$(l)),l||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),l=""),d.length&&(l=d.reduce((h,p)=>this.format(h,p,r.lng,{...r,interpolationkey:a[1].trim()}),l.trim())),t=t.replace(a[0],l),this.regexp.lastIndex=0}return t}}const uG=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(c=>{if(c){const[u,...d]=c.split(":"),g=d.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=g),g==="false"&&(n[h]=!1),g==="true"&&(n[h]=!0),isNaN(g)||(n[h]=parseInt(g,10))}})}return{formatName:t,formatOptions:n}},h$=e=>{const t={};return(n,r,a)=>{let l=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(l={...l,[a.interpolationkey]:void 0});const c=r+JSON.stringify(l);let u=t[c];return u||(u=e(mu(r),a),t[c]=u),u(n)}},fG=e=>(t,n,r)=>e(mu(n),r)(t);class dG{constructor(t={}){this.logger=Ya.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?h$:fG;this.formats={number:r((a,l)=>{const c=new Intl.NumberFormat(a,{...l});return u=>c.format(u)}),currency:r((a,l)=>{const c=new Intl.NumberFormat(a,{...l,style:"currency"});return u=>c.format(u)}),datetime:r((a,l)=>{const c=new Intl.DateTimeFormat(a,{...l});return u=>c.format(u)}),relativetime:r((a,l)=>{const c=new Intl.RelativeTimeFormat(a,{...l});return u=>c.format(u,l.range||"day")}),list:r((a,l)=>{const c=new Intl.ListFormat(a,{...l});return u=>c.format(u)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=h$(n)}format(t,n,r,a={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(u=>u.indexOf(")")>-1)){const u=l.findIndex(d=>d.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,u)].join(this.formatSeparator)}return l.reduce((u,d)=>{var p;const{formatName:g,formatOptions:h}=uG(d);if(this.formats[g]){let y=u;try{const E=((p=a==null?void 0:a.formatParams)==null?void 0:p[a.interpolationkey])||{},b=E.locale||E.lng||a.locale||a.lng||r;y=this.formats[g](u,b,{...h,...a,...E})}catch(E){this.logger.warn(E)}return y}else this.logger.warn(`there was no format function for ${g}`);return u},t)}}const mG=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class gG extends Gm{constructor(t,n,r,a={}){var l,c;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Ya.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(c=(l=this.backend)==null?void 0:l.init)==null||c.call(l,r,a.backend,a)}queueLoad(t,n,r,a){const l={},c={},u={},d={};return t.forEach(g=>{let h=!0;n.forEach(p=>{const y=`${g}|${p}`;!r.reload&&this.store.hasResourceBundle(g,p)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?c[y]===void 0&&(c[y]=!0):(this.state[y]=1,h=!1,c[y]===void 0&&(c[y]=!0),l[y]===void 0&&(l[y]=!0),d[p]===void 0&&(d[p]=!0)))}),h||(u[g]=!0)}),(Object.keys(l).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(l),pending:Object.keys(c),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(d)}}loaded(t,n,r){const a=t.split("|"),l=a[0],c=a[1];n&&this.emit("failedLoading",l,c,n),!n&&r&&this.store.addResourceBundle(l,c,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(d=>{ZW(d.loaded,[l],c),mG(d,t),n&&d.errors.push(n),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(g=>{u[g]||(u[g]={});const h=d.loaded[g];h.length&&h.forEach(p=>{u[g][p]===void 0&&(u[g][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(d=>!d.done)}read(t,n,r,a=0,l=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:l,callback:c});return}this.readingCalls++;const u=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(g&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,l*2,c)},l);return}c(g,h)},d=this.backend[r].bind(this.backend);if(d.length===2){try{const g=d(t,n);g&&typeof g.then=="function"?g.then(h=>u(null,h)).catch(u):u(null,g)}catch(g){u(g)}return}return d(t,n,u)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ct(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ct(n)&&(n=[n]);const l=this.queueLoad(t,n,r,a);if(!l.toLoad.length)return l.pending.length||a(),null;l.toLoad.forEach(c=>{this.loadOne(c)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],l=r[1];this.read(a,l,"read",void 0,void 0,(c,u)=>{c&&this.logger.warn(`${n}loading namespace ${l} for language ${a} failed`,c),!c&&u&&this.logger.log(`${n}loaded namespace ${l} for language ${a}`,u),this.loaded(t,c,u)})}saveMissing(t,n,r,a,l,c={},u=()=>{}){var d,g,h,p,y;if((g=(d=this.services)==null?void 0:d.utils)!=null&&g.hasLoadedNamespace&&!((p=(h=this.services)==null?void 0:h.utils)!=null&&p.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((y=this.backend)!=null&&y.create){const E={...c,isUpdate:l},b=this.backend.create.bind(this.backend);if(b.length<6)try{let x;b.length===5?x=b(t,n,r,a,E):x=b(t,n,r,a),x&&typeof x.then=="function"?x.then(S=>u(null,S)).catch(u):u(null,x)}catch(x){u(x)}else b(t,n,r,a,u,E)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const p$=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ct(e[1])&&(t.defaultValue=e[1]),Ct(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),v$=e=>{var t,n;return Ct(e.ns)&&(e.ns=[e.ns]),Ct(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ct(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Jf=()=>{},hG=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class gu extends Gm{constructor(t={},n){if(super(),this.options=v$(t),this.services={},this.logger=Ya,this.modules={external:[]},hG(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ct(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=p$();this.options={...r,...this.options,...v$(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Ya.init(a(this.modules.logger),this.options):Ya.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=dG;const h=new f$(this.options);this.store=new s$(this.options.resources,this.options);const p=this.services;p.logger=Ya,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new sG(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(p.formatter=a(g),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new cG(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new gG(a(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.languageDetector&&(p.languageDetector=a(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=a(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new Qd(this.services,this.options),this.translator.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Jf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...h)=>this.store[g](...h)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...h)=>(this.store[g](...h),this)});const u=Cc(),d=()=>{const g=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(p),n(h,p)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),u}loadResources(t,n=Jf){var l,c;let r=n;const a=Ct(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const u=[],d=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(p=>{p!=="cimode"&&u.indexOf(p)<0&&u.push(p)})};a?d(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>d(h)),(c=(l=this.options.preload)==null?void 0:l.forEach)==null||c.call(l,g=>d(g)),this.services.backendConnector.load(u,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(t,n,r){const a=Cc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Jf),this.services.backendConnector.reload(t,n,l=>{a.resolve(),r(l)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&NM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Cc();this.emit("languageChanging",t);const a=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},l=(u,d)=>{d?this.isLanguageChangingTo===t&&(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,r.resolve((...g)=>this.t(...g)),n&&n(u,(...g)=>this.t(...g))},c=u=>{var h,p;!t&&!u&&this.services.languageDetector&&(u=[]);const d=Ct(u)?u:u&&u[0],g=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Ct(u)?[u]:u);g&&(this.language||a(g),this.translator.language||this.translator.changeLanguage(g),(p=(h=this.services.languageDetector)==null?void 0:h.cacheUserLanguage)==null||p.call(h,g)),this.loadResources(g,y=>{l(y,g)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),r}getFixedT(t,n,r){const a=(l,c,...u)=>{let d;typeof c!="object"?d=this.options.overloadTranslationOptionHandler([l,c].concat(u)):d={...c},d.lng=d.lng||a.lng,d.lngs=d.lngs||a.lngs,d.ns=d.ns||a.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||r||a.keyPrefix);const g=this.options.keySeparator||".";let h;return d.keyPrefix&&Array.isArray(l)?h=l.map(p=>(typeof p=="function"&&(p=M0(p,{...this.options,...c})),`${d.keyPrefix}${g}${p}`)):(typeof l=="function"&&(l=M0(l,{...this.options,...c})),h=d.keyPrefix?`${d.keyPrefix}${g}${l}`:l),this.t(h,d)};return Ct(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const c=(u,d)=>{const g=this.services.backendConnector.state[`${u}|${d}`];return g===-1||g===0||g===2};if(n.precheck){const u=n.precheck(this,c);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(r,t)&&(!a||c(l,t)))}loadNamespaces(t,n){const r=Cc();return this.options.ns?(Ct(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Cc();Ct(t)&&(t=[t]);const a=this.options.preload||[],l=t.filter(c=>a.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return l.length?(this.options.preload=a.concat(l),this.loadResources(c=>{r.resolve(),n&&n(c)}),r):(n&&n(),Promise.resolve())}dir(t){var a,l;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const c=new Intl.Locale(t);if(c&&c.getTextInfo){const u=c.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((l=this.services)==null?void 0:l.languageUtils)||new f$(p$());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new gu(t,n)}cloneInstance(t={},n=Jf){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},l=new gu(a);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(u=>{l[u]=this[u]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},r){const u=Object.keys(this.store.data).reduce((d,g)=>(d[g]={...this.store.data[g]},d[g]=Object.keys(d[g]).reduce((h,p)=>(h[p]={...d[g][p]},h),d[g]),d),{});l.store=new s$(u,a),l.services.resourceStore=l.store}return l.translator=new Qd(l.services,a),l.translator.on("*",(u,...d)=>{l.emit(u,...d)}),l.init(a,n),l.translator.options=a,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const er=gu.createInstance();er.createInstance=gu.createInstance;er.createInstance;er.dir;er.init;er.loadResources;er.reloadResources;er.use;er.changeLanguage;er.getFixedT;er.t;er.exists;er.setDefaultNamespace;er.hasLoadedNamespace;er.loadNamespaces;er.loadLanguages;const pG=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vG={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},yG=e=>vG[e],bG=e=>e.replace(pG,yG);let y$={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:bG};const SG=(e={})=>{y$={...y$,...e}},CG={type:"3rdParty",init(e){SG(e.options.react)}},xG="Home",EG="This is an internationalized React application.",wG={home:xG,description:EG},$G="主页",OG="这是一个支持国际化的 React 应用。",RG={home:$G,description:OG},_G=localStorage.getItem("locale");er.use(CG).init({resources:{en:{translation:wG},zh:{translation:RG}},lng:_G==="zh_CN"?"zh":"en",fallbackLng:"zh",interpolation:{escapeValue:!1}});const Km=()=>{const e=hs(),t=_o(r=>r.user.locale),n=r=>{e(Kd({locale:r})),er.changeLanguage(r==="zh_CN"?"zh":"en")};return{t:er.t.bind(er),locale:t,changeLanguage:n}},IM=()=>{const{locale:e,changeLanguage:t}=Km();return me.jsx(nl,{size:"small",value:e,style:{width:85},onChange:t,options:[{value:"zh_CN",label:"中文"},{value:"en_US",label:"English"}]})},PM=()=>{const{theme:e}=_o(n=>n.user),t=hs();return me.jsx(me.Fragment,{children:e=="light"?me.jsx(CP,{onClick:()=>t(Kd({theme:"dark"}))}):me.jsx(IP,{onClick:()=>t(Kd({theme:"light"}))})})},{Content:TG,Sider:HK}=Aa;[PO,NO,jO].map((e,t)=>{const n=String(t+1);return{key:`sub${n}`,icon:ae.createElement(e),label:`subnav ${n}`,children:Array.from({length:4}).map((r,a)=>{const l=t*4+a+1;return{key:l,label:`option${l}`}})}});const MG=()=>me.jsx(gi,{active:!0}),NG=()=>{const e=Fy(),t=Ao(),[n,r]=f.useState([]),a=hs(),[l,c]=Ly.useNotification(),[u,d]=Ru.useMessage(),{modal:g,openModal:h,closeModal:p}=Jy(),[y,E]=f.useState({}),[b,x]=f.useState("/"),[S,w]=f.useState([]),[$,O]=f.useState(),[_,R]=f.useState(),{locale:T}=Km(),{theme:M}=_o(X=>X.user),z=M==="dark",A=z?"#001529":"#fff",D=z?"#fff":"#000",F=({type:X,message:ee="",description:se=""})=>{l[X]({message:ee,description:se,placement:"bottomRight"})},{project:{project_id:W},namespace:{name:k,namespaceKey:U}}=_o(X=>X.context);console.log(W);const Y=X=>{console.log(X),e(X),x(X)},N=async()=>{const X=await Xt.get("/setting/get-setting");console.log(X.data),a(OM(X.data))},{eventSourceRef:P,status:B,reconnect:K}=_M();f.useEffect(()=>{var ee;if(console.log("layout eventSourceRef",P),!P)return;const X=se=>{const ne=JSON.parse(se.data);if(ne.msgType==="process_end"){const ie=ne.analysis,ve=`${ie.analysis_name}(${ie.analysis_id}) 分析完成`;F({type:"info",message:ve})}ne.msgType==="analysis_result"&&F({type:"info",message:ne.msg}),ne.msgType==="test"&&F({type:"info",message:ne.msg}),a($M(se.data))};return(ee=P.current)==null||ee.addEventListener("message",X),()=>{var se;console.log("removeEventListener"),(se=P.current)==null||se.removeEventListener("message",X)}},[P.current]),f.useEffect(()=>{N()},[]);const j=[{key:"/",label:{zh_CN:"项目介绍",en_US:"Introduction"}},{key:"/doc",label:{zh_CN:"文档",en_US:"Doc"}},{key:"/pipeline-card",label:{zh_CN:"分析管道",en_US:"Pipeline"},children:[{key:"/component/pipeline",hidden:!0}]},{key:"/software-card",label:{zh_CN:"分析软件",en_US:"Software"},children:[{key:"/component/software",hidden:!0}]},{key:"/file-card",label:{zh_CN:"分析文件",en_US:"File"},children:[{key:"/component/file",hidden:!0}]},{key:"/script-card",label:{zh_CN:"分析脚本",en_US:"Script"},children:[{key:"/component/script",hidden:!0}]},{key:"/analysis-report",label:{zh_CN:"分析报告",en_US:"Report"}},{key:"/tool-kit",label:{zh_CN:"工具集",en_US:"TookKit"}},{key:"/psycmicrograph",label:{zh_CN:"菌群知识库",en_US:"PsycMicroGraph"}},{key:"/more",label:{zh_CN:"更多",en_US:"More"},children:[{key:"/pipeline-monitor-panal",label:{zh_CN:"管道监控",en_US:"Monitor"}},{key:"/analysis-result",label:{zh_CN:"分析结果",en_US:"Analysis Result"}},{key:"/container-page",label:{zh_CN:"容器管理",en_US:"Container"}},{key:"/literature",label:{zh_CN:"文献资料",en_US:"Literature"}}]}],L=X=>X.filter(ee=>!ee.hidden).map(ee=>{const se={...ee};return se.label=ee.label[T],ee.children&&(se.children=L(ee.children),se.children.length===0&&delete se.children),se}),q=X=>{const ee=[],se=(ne,ie)=>{for(const ve of ne){const fe=ve.hidden&&ie?ie:ve.key;ee.push({key:ve.key,selectedKey:fe}),ve.children&&se(ve.children,fe)}};return se(X),ee.sort((ne,ie)=>ie.key.length-ne.key.length),ee},G=(X,ee)=>{for(const se of ee)if(X.startsWith(se.key))return se.selectedKey;return"/"};f.useEffect(()=>{const X=L(j);w(X)},[T]),f.useEffect(()=>{if($){const X=G(t.pathname,$);x(X)}else{const X=q(j);O(X);const ee=G(t.pathname,X);console.log("not exist selectedKeyMap",ee),x(ee)}},[t.pathname]);const V=()=>W?!0:!(t.pathname.startsWith("/component")||t.pathname.startsWith("/analysis-report"));return me.jsxs(Aa,{style:{minHeight:"100vh"},children:[c,d,me.jsxs(zy,{style:{position:"sticky",top:0,zIndex:10,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",background:A,color:D,boxShadow:"0 1px 4px rgba(0,0,0,0.1)"},children:[me.jsxs("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[me.jsx("div",{style:{color:D,marginRight:"1rem",cursor:"pointer"},onClick:async()=>{await Xt.get("/send-test")},children:"BRAVE"}),me.jsx(ds,{mode:"horizontal",selectedKeys:[b],items:S,onSelect:X=>{if(X.key=="/psycmicrograph"){window.open(`${window.location.origin}${window.location.pathname}psycmicrograph.html`,"_blank");return}Y(X.key),console.log(X)},style:{flex:1,minWidth:0,background:"transparent",borderInlineEnd:0}})]}),me.jsxs(Dd,{align:"center",gap:"small",children:[me.jsx(jG,{}),me.jsx(Pr,{size:"small",color:B==="open"?"green":B==="connecting"?"blue":"red",variant:"solid",onClick:K,children:B==="open"?"已连接":B==="connecting"?"连接中":"连接失败"}),V()&&me.jsx(me.Fragment,{children:me.jsx(b$,{onProjectLoad:R,project_id:W,openModal:h,setProjectObj:E})}),me.jsx(IM,{}),me.jsx(PM,{})]})]}),me.jsx(Aa,{style:{padding:"0 0 0  0"},children:me.jsx(TG,{style:{},children:me.jsx(f.Suspense,{fallback:me.jsx(MG,{}),children:V()?me.jsx(me.Fragment,{children:me.jsx(IT,{context:{project:W,projectObj:y,projectList:_,messageApi:u}})}):me.jsx(So,{description:"请先创建/选择项目",image:So.PRESENTED_IMAGE_SIMPLE,children:me.jsx(b$,{onProjectLoad:R,project_id:W,openModal:h,setProjectObj:E})})},t.key)})}),me.jsx(KW,{callback:X=>{a(_0({name:X,project_id:X}))},messageApi:u,params:g.params,visible:g.visible&&g.key==="project",onClose:p})]})},jG=()=>{const{modal:e,openModal:t,closeModal:n}=Jy(),{baseURL:r}=_o(g=>g.user),[a,l]=f.useState(r),c=hs(),[u,d]=Ru.useMessage();return me.jsxs(me.Fragment,{children:[d,me.jsx(MI,{style:{cursor:"pointer"},onClick:()=>{t("apiComp")}}),me.jsx(Ea,{title:"edit api",open:e.key=="apiComp"&&e.visible,onClose:n,onCancel:n,onOk:async()=>{try{await Xt.get(`${a}/brave-api/ping`),c(Kd({baseURL:a})),n(),u.success("Connection successful!")}catch{u.error("Connection failed!")}},children:me.jsx(pi,{value:a,onChange:g=>l(g.target.value)})})]})},b$=({project_id:e,openModal:t,setProjectObj:n,onProjectLoad:r})=>{const[a,l]=f.useState({}),[c,u]=f.useState([]),d=hs(),[g,h]=Ru.useMessage(),p=async()=>{const y=await Xt.get("/project/list-project"),E=y.data.map(x=>({label:`${x.project_name}`,value:x.project_id}));u(E),r&&r(E);const b=y.data.reduce((x,S)=>(x[S.project_id]=S,S.metadata_form=JSON.parse(S.metadata_form),x),{});l(b),n(b[e])};return f.useEffect(()=>{p()},[]),me.jsxs(me.Fragment,{children:[h,Array.isArray(c)&&c.length>0?me.jsx(nl,{size:"small",dropdownRender:y=>me.jsxs(me.Fragment,{children:[y,me.jsx(ow,{style:{margin:"8px 0"}}),me.jsxs(Dd,{gap:"small",justify:"space-between",children:[me.jsx(Pr,{type:"text",size:"small",color:"cyan",variant:"solid",onClick:()=>{t("project")},children:"创建"}),me.jsx(Pr,{type:"text",size:"small",color:"cyan",variant:"solid",onClick:()=>{p()},children:"刷新"})]}),e&&me.jsxs(me.Fragment,{children:[me.jsx(ow,{style:{margin:"8px 0"}}),me.jsx(hi,{title:e,placement:"bottom",children:me.jsxs(Dd,{gap:"small",justify:"space-between",children:[me.jsx(Pr,{type:"text",size:"small",color:"cyan",variant:"solid",onClick:()=>{t("project",{project_id:e})},children:"更新"}),me.jsx(yT,{title:"确定删除吗？",onConfirm:async()=>{await GW(e),g.success("删除成功"),d(_0({})),p()},children:me.jsx(Pr,{type:"text",size:"small",color:"danger",variant:"solid",children:"删除"})})]})})]})]}),onChange:y=>{console.log("onChange",y),d(_0({name:y,project_id:y})),n(a[y])},value:e,style:{width:120},placeholder:"选择项目",options:c}):me.jsx(Pr,{size:"small",color:"cyan",variant:"solid",onClick:()=>{t("project")},children:"创建项目"})]})},{Content:IG,Sider:FK}=Aa;[PO,NO,jO].map((e,t)=>{const n=String(t+1);return{key:`sub${n}`,icon:ae.createElement(e),label:`subnav ${n}`,children:Array.from({length:4}).map((r,a)=>{const l=t*4+a+1;return{key:l,label:`option${l}`}})}});const PG=()=>me.jsx(gi,{active:!0}),AG=()=>{const e=Fy(),t=Ao(),[n,r]=f.useState([]),a=hs(),[l,c]=Ly.useNotification(),[u,d]=Ru.useMessage();Jy();const[g,h]=f.useState({}),[p,y]=f.useState("/"),[E,b]=f.useState([]),[x,S]=f.useState(),[w,$]=f.useState(),{locale:O}=Km(),{theme:_}=_o(L=>L.user),R=_==="dark",T=R?"#001529":"#fff",M=R?"#fff":"#000",z=({type:L,message:q="",description:G=""})=>{l[L]({message:q,description:G,placement:"bottomRight"})},{project:{project_id:A},namespace:{name:D,namespaceKey:F}}=_o(L=>L.context);console.log(A);const W=L=>{console.log(L),e(L),y(L)},k=async()=>{const L=await Xt.get("/setting/get-setting");console.log(L.data),a(OM(L.data))},{eventSourceRef:U,status:Y,reconnect:N}=_M();f.useEffect(()=>{var q;if(console.log("layout eventSourceRef",U),!U)return;const L=G=>{const V=JSON.parse(G.data);if(V.msgType==="process_end"){const X=V.analysis,ee=`${X.analysis_name}(${X.analysis_id}) 分析完成`;z({type:"info",message:ee})}V.msgType==="analysis_result"&&z({type:"info",message:V.msg}),V.msgType==="test"&&z({type:"info",message:V.msg}),a($M(G.data))};return(q=U.current)==null||q.addEventListener("message",L),()=>{var G;console.log("removeEventListener"),(G=U.current)==null||G.removeEventListener("message",L)}},[U.current]),f.useEffect(()=>{k()},[]);const P=[{key:"/",label:{zh_CN:"主页",en_US:"Home"}},{key:"/entity-relation",label:{zh_CN:"Microbial Graph",en_US:"Microbial Graph"}},{key:"/entity-page",label:{zh_CN:"Ontology",en_US:"Ontology"}},{key:"/mining",label:{zh_CN:"Mining",en_US:"Mining"},children:[{key:"/mining-data",label:{zh_CN:"Mining Data",en_US:"Mining Data"},hidden:!0}]}],B=L=>L.filter(q=>!q.hidden).map(q=>{const G={...q};return G.label=q.label[O],q.children&&(G.children=B(q.children),G.children.length===0&&delete G.children),G}),K=L=>{const q=[],G=(V,X)=>{for(const ee of V){const se=ee.hidden&&X?X:ee.key;q.push({key:ee.key,selectedKey:se}),ee.children&&G(ee.children,se)}};return G(L),q.sort((V,X)=>X.key.length-V.key.length),q},j=(L,q)=>{for(const G of q)if(L.startsWith(G.key))return G.selectedKey;return"/"};return f.useEffect(()=>{const L=B(P);b(L)},[O]),f.useEffect(()=>{if(x){const L=j(t.pathname,x);y(L)}else{const L=K(P);S(L);const q=j(t.pathname,L);console.log("not exist selectedKeyMap",q),y(q)}},[t.pathname]),me.jsxs(Aa,{style:{minHeight:"100vh"},children:[c,d,me.jsxs(zy,{style:{position:"sticky",top:0,zIndex:10,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",background:T,color:M,boxShadow:"0 1px 4px rgba(0,0,0,0.1)"},children:[me.jsxs("div",{style:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[me.jsx("div",{style:{color:M,marginRight:"1rem",cursor:"pointer"},onClick:async()=>{await Xt.get("/send-test")},children:"PsycMicroGraph"}),me.jsx(ds,{mode:"horizontal",selectedKeys:[p],items:E,onSelect:L=>{W(L.key),console.log(L)},style:{flex:1,minWidth:0,background:"transparent"}})]}),me.jsxs(Dd,{align:"center",gap:"small",children:[me.jsx(Pr,{size:"small",color:Y==="open"?"green":Y==="connecting"?"blue":"red",variant:"solid",onClick:N,children:Y==="open"?"connected":Y==="connecting"?"connecting":"connection fail"}),me.jsx(IM,{}),me.jsx(PM,{})]})]}),me.jsx(Aa,{children:me.jsx(IG,{style:{},children:me.jsx(f.Suspense,{fallback:me.jsx(PG,{}),children:me.jsx(IT,{context:{messageApi:u}})},t.key)})})]})},S$=f.lazy(()=>qt(()=>import("./index-CV4Rr1j0.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),zG=f.lazy(()=>qt(()=>import("./index-tD6godsK.js"),__vite__mapDeps([5,6,7,2,8]),import.meta.url)),DG=f.lazy(()=>qt(()=>import("./index-De91ZOrB.js"),[],import.meta.url)),C$=f.lazy(()=>qt(()=>import("./index-CuuEizsV.js"),__vite__mapDeps([9,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),x$=f.lazy(()=>qt(()=>import("./index-bvyYgyRY.js"),__vite__mapDeps([32,0,1,2,3,4,28,23,29,12,13,7]),import.meta.url)),E$=f.lazy(()=>qt(()=>import("./index-CvHVa0tf.js"),__vite__mapDeps([33,11,1,2,3,4,12,13,7,18,34]),import.meta.url)),w$=f.lazy(()=>qt(()=>import("./index-D0-9Cd-e.js"),__vite__mapDeps([35,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),$$=f.lazy(()=>qt(()=>import("./index-Dj2cn9Ts.js"),__vite__mapDeps([36,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),O$=f.lazy(()=>qt(()=>import("./index-CwzBGZ1J.js"),__vite__mapDeps([37,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),R$=f.lazy(()=>qt(()=>import("./index-__oRVQML.js"),__vite__mapDeps([38,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,39]),import.meta.url)),_$=f.lazy(()=>qt(()=>import("./index-DYTHMaqy.js"),__vite__mapDeps([40,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,39]),import.meta.url)),T$=f.lazy(()=>qt(()=>import("./index-DKrVK_EV.js"),__vite__mapDeps([41,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,39]),import.meta.url)),M$=f.lazy(()=>qt(()=>import("./index-Dau8eMUo.js"),__vite__mapDeps([42,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url)),N$=f.lazy(()=>qt(()=>import("./index-Co8HtG3V.js"),__vite__mapDeps([43,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),j$=f.lazy(()=>qt(()=>import("./index-H6mX0dqG.js"),__vite__mapDeps([44,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),I$=f.lazy(()=>qt(()=>import("./index-DlWcbuN8.js"),__vite__mapDeps([45,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,39]),import.meta.url));f.lazy(()=>qt(()=>import("./index-CK-5b1Zr.js"),__vite__mapDeps([46,47,12,13,3,31,26,16,17,18,20,27,1,2,4,48,15,49]),import.meta.url));const P$=f.lazy(()=>qt(()=>import("./index-C66mUoZx.js"),__vite__mapDeps([50,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,30,51,31]),import.meta.url)),A$=f.lazy(()=>qt(()=>import("./index-DYCVsG_r.js"),__vite__mapDeps([51,31,4,12,13,3,7,2,15]),import.meta.url)),z$=f.lazy(()=>qt(()=>import("./index-ORSumFwe.js"),__vite__mapDeps([52,24,25,14,6,7,2,8,12,13,3,15,16,17,18,19,20,1,4,21,22,23,26,27,11,28,29]),import.meta.url)),D$=f.lazy(()=>qt(()=>import("./index-CNaeHQ33.js"),[],import.meta.url)),L$=f.lazy(()=>qt(()=>import("./index-C0Z8vVqV.js"),[],import.meta.url)),B$=f.lazy(()=>qt(()=>import("./index-DQtGPlJs.js"),[],import.meta.url)),H$=f.lazy(()=>qt(()=>import("./index-CyPRua0w.js"),__vite__mapDeps([53,10,11,1,2,3,4,12,13,14,6,7,8,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,0,54,55]),import.meta.url)),ai=f.lazy(()=>qt(()=>import("./index-CfoMC2yS.js"),__vite__mapDeps([47,12,13,3,31,26,16,17,18,20,27,1,2,4,48,15,49]),import.meta.url)),F$=f.lazy(()=>qt(()=>import("./index-COWC0-Pp.js"),__vite__mapDeps([56,16,17,18,14,6,7,2,8,12,13,3,15,19,20,1,4,21,22,23,25,26,27,11,28,29]),import.meta.url)),V$=f.lazy(()=>qt(()=>import("./index-DoKf3RnE.js"),__vite__mapDeps([57,14,6,7,2,8,12,13,3,15,16,17,18,19,20,1,4,21,22,23]),import.meta.url)),U$=f.lazy(()=>qt(()=>import("./index-CWqFacgc.js").then(e=>e.i),__vite__mapDeps([22,19,20,1,2,3,4,15,13,18]),import.meta.url)),k$=f.lazy(()=>qt(()=>import("./index-4PCvSHOL.js"),__vite__mapDeps([58,59,12,13,3,4,19,20,1,2,15,60,18,22,17]),import.meta.url)),LG=f.lazy(()=>qt(()=>import("./index-fbM6Eo8s.js"),__vite__mapDeps([61,12,13,3,60]),import.meta.url)),q$=f.lazy(()=>qt(()=>import("./test-BtZlkfCk.js"),[],import.meta.url)),BG=f.lazy(()=>qt(()=>import("./index-mZkXK81u.js"),__vite__mapDeps([62,19,20,1,2,3,4]),import.meta.url)),HG=f.lazy(()=>qt(()=>import("./index-Cmo9_7WG.js"),__vite__mapDeps([63,15]),import.meta.url)),FG=f.lazy(()=>qt(()=>import("./index-DSlJicDC.js"),[],import.meta.url)),W$=f.lazy(()=>qt(()=>import("./index-D2XNTdXQ.js").then(e=>e.i),__vite__mapDeps([26,16,17,18,20,13,3,27,12,1,2,4]),import.meta.url)),VG=document.getElementById("root"),N0=VG.getAttribute("data-app");console.log("data-app: ",N0);let j0=[];if(N0=="index"){const e=[{path:"/",element:me.jsx(zG,{})},{path:"/sample",element:me.jsx(S$,{})},{path:"/sample-qc",element:me.jsx(j$,{})},{path:"/analysis-result",element:me.jsx(P$,{})},{path:"/literature",element:me.jsx(A$,{})},{path:"/pipeline-monitor-panal",element:me.jsx(z$,{})},{path:"/container-page",element:me.jsx(W$,{})},{path:"/analysis-report",element:me.jsx(V$,{})},{path:"/pipeline-card",element:me.jsx(ai,{params:{component_type:"pipeline"}})},{path:"/tool-kit",element:me.jsx(FG,{})},{path:"/software-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/software/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"software"}})},{path:"/file-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/file/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"file"}})},{path:"/script-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/script/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"script"}})},{path:"/software-analysis-editor/:analysisId",element:me.jsx(F$,{})},{path:"/component/:component_type/:component_id",element:me.jsx(H$,{})},{path:"/software/:softwareId",element:me.jsx(D$,{})},{path:"/file/:fileId",element:me.jsx(L$,{})},{path:"/script/:scriptId",element:me.jsx(B$,{})},{path:"/entity-page",element:me.jsx(U$,{})},{path:"/entity-relation",element:me.jsx(k$,{})},{path:"/:project/meta_genome/reads-based-abundance-analysis",element:me.jsx(_$,{})},{path:"/:project/meta_genome/remove-host",element:me.jsx(T$,{})},{path:"/:project/meta_genome/recovering-mag",element:me.jsx(N$,{})},{path:"/:project/meta_genome/abundance-meta",element:me.jsx(M$,{})},{path:"/:project/meta_genome/abundance",element:me.jsx(E$,{})},{path:"/:project/meta_genome/function-analysis",element:me.jsx(I$,{})},{path:"/:project/single_genome/mutation",element:me.jsx(C$,{})},{path:"/:project/single_genome/mutation-compare",element:me.jsx(x$,{})},{path:"/:project/single_genome/assembly",element:me.jsx(w$,{})},{path:"/:project/single_genome/gene-prediction",element:me.jsx($$,{})},{path:"/:project/single_genome/gene-annotation",element:me.jsx(O$,{})},{path:"/:project/single_genome/gene-expression",element:me.jsx(R$,{})}];j0=[{path:"/doc",element:me.jsx(DG,{})},{path:"/",element:me.jsx(NG,{}),children:[...e]},{path:"/test",element:me.jsx(q$,{})}]}else if(N0=="micrograph"){const e=[{path:"/",element:me.jsx(LG,{})},{path:"/sample",element:me.jsx(S$,{})},{path:"/sample-qc",element:me.jsx(j$,{})},{path:"/analysis-result",element:me.jsx(P$,{})},{path:"/literature",element:me.jsx(A$,{})},{path:"/pipeline-monitor-panal",element:me.jsx(z$,{})},{path:"/container-page",element:me.jsx(W$,{})},{path:"/analysis-report",element:me.jsx(V$,{})},{path:"/pipeline-card",element:me.jsx(ai,{params:{component_type:"pipeline"}})},{path:"/software-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/software/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"software"}})},{path:"/file-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/file/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"file"}})},{path:"/script-card",element:me.jsx(ai,{map:t=>({id:t.id,component_id:t.component_id,name:t.component_name,category:t.category,img:t.img,tags:t.tags,description:t.description,order:t.order_index,path:`/script/${t.component_id}`,namespace:t.namespace,namespace_name:t.namespace_name}),params:{component_type:"script"}})},{path:"/software-analysis-editor/:analysisId",element:me.jsx(F$,{})},{path:"/component/:component_type/:component_id",element:me.jsx(H$,{})},{path:"/software/:softwareId",element:me.jsx(D$,{})},{path:"/file/:fileId",element:me.jsx(L$,{})},{path:"/script/:scriptId",element:me.jsx(B$,{})},{path:"/entity-page",element:me.jsx(U$,{})},{path:"/entity-relation",element:me.jsx(k$,{})},{path:"/mining",element:me.jsx(BG,{})},{path:"/mining-data/:entity_id",element:me.jsx(HG,{})},{path:"/:project/meta_genome/reads-based-abundance-analysis",element:me.jsx(_$,{})},{path:"/:project/meta_genome/remove-host",element:me.jsx(T$,{})},{path:"/:project/meta_genome/recovering-mag",element:me.jsx(N$,{})},{path:"/:project/meta_genome/abundance-meta",element:me.jsx(M$,{})},{path:"/:project/meta_genome/abundance",element:me.jsx(E$,{})},{path:"/:project/meta_genome/function-analysis",element:me.jsx(I$,{})},{path:"/:project/single_genome/mutation",element:me.jsx(C$,{})},{path:"/:project/single_genome/mutation-compare",element:me.jsx(x$,{})},{path:"/:project/single_genome/assembly",element:me.jsx(w$,{})},{path:"/:project/single_genome/gene-prediction",element:me.jsx($$,{})},{path:"/:project/single_genome/gene-annotation",element:me.jsx(O$,{})},{path:"/:project/single_genome/gene-expression",element:me.jsx(R$,{})}];j0=[{path:"/",element:me.jsx(AG,{}),children:[...e]},{path:"/test",element:me.jsx(q$,{})}]}const UG=()=>yU(j0);var xc={},rv={exports:{}},G$;function vi(){return G$||(G$=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rv)),rv.exports}var Ec={},K$;function kG(){if(K$)return Ec;K$=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return Ec.default=e,Ec}var wc={},$c={},Oc={},av={exports:{}},ov={exports:{}},iv={exports:{}},lv={exports:{}},X$;function AM(){return X$||(X$=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(lv)),lv.exports}var sv={exports:{}},Y$;function qG(){return Y$||(Y$=1,function(e){var t=AM().default;function n(r,a){if(t(r)!="object"||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var c=l.call(r,a||"default");if(t(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(sv)),sv.exports}var Q$;function WG(){return Q$||(Q$=1,function(e){var t=AM().default,n=qG();function r(a){var l=n(a,"string");return t(l)=="symbol"?l:l+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(iv)),iv.exports}var Z$;function GG(){return Z$||(Z$=1,function(e){var t=WG();function n(r,a,l){return(a=t(a))in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ov)),ov.exports}var J$;function zM(){return J$||(J$=1,function(e){var t=GG();function n(a,l){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);l&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),c.push.apply(c,u)}return c}function r(a){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?n(Object(c),!0).forEach(function(u){t(a,u,c[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):n(Object(c)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(c,u))})}return a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(av)),av.exports}var Rc={},eO;function DM(){return eO||(eO=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.commonLocale=void 0,Rc.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Rc}var tO;function KG(){if(tO)return Oc;tO=1;var e=vi().default;Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=void 0;var t=e(zM()),n=DM(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return Oc.default=r,Oc}var _c={},nO;function LM(){if(nO)return _c;nO=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return _c.default=e,_c}var rO;function BM(){if(rO)return $c;rO=1;var e=vi().default;Object.defineProperty($c,"__esModule",{value:!0}),$c.default=void 0;var t=e(KG()),n=e(LM());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",$c.default=r,$c}var aO;function XG(){if(aO)return wc;aO=1;var e=vi().default;Object.defineProperty(wc,"__esModule",{value:!0}),wc.default=void 0;var t=e(BM());return wc.default=t.default,wc}var oO;function YG(){if(oO)return xc;oO=1;var e=vi().default;Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=void 0;var t=e(kG()),n=e(XG()),r=e(BM()),a=e(LM());const l="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:a.default,Calendar:n.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"（可选）",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return xc.default=c,xc}var cv,iO;function QG(){return iO||(iO=1,cv=YG()),cv}var ZG=QG();const JG=ts(ZG);var Tc={},Mc={},lO;function eK(){if(lO)return Mc;lO=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.default=void 0;var e={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"};return Mc.default=e,Mc}var Nc={},jc={},Ic={},sO;function tK(){if(sO)return Ic;sO=1;var e=vi().default;Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.default=void 0;var t=e(zM()),n=DM(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});return Ic.default=r,Ic}var Pc={},cO;function HM(){if(cO)return Pc;cO=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return Pc.default=e,Pc}var uO;function FM(){if(uO)return jc;uO=1;var e=vi().default;Object.defineProperty(jc,"__esModule",{value:!0}),jc.default=void 0;var t=e(tK()),n=e(HM());const r={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"]},t.default),timePickerLocale:Object.assign({},n.default)};return jc.default=r,jc}var fO;function nK(){if(fO)return Nc;fO=1;var e=vi().default;Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.default=void 0;var t=e(FM());return Nc.default=t.default,Nc}var dO;function rK(){if(dO)return Tc;dO=1;var e=vi().default;Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=void 0;var t=e(eK()),n=e(nK()),r=e(FM()),a=e(HM());const l="${label} is not a valid ${type}",c={locale:"en",Pagination:t.default,DatePicker:r.default,TimePicker:a.default,Calendar:n.default,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return Tc.default=c,Tc}var uv,mO;function aK(){return mO||(mO=1,uv=rK()),uv}var oK=aK();const iK=ts(oK),lK=()=>{const{locale:e}=Km(),t=e==="zh_CN"?JG:iK,{theme:n}=_o(r=>r.user);return me.jsx(me.Fragment,{children:me.jsx(La,{theme:{algorithm:n==="dark"?pw.darkAlgorithm:pw.defaultAlgorithm},locale:t,children:me.jsx(tk,{children:me.jsx(UG,{})})})})},VM=Iu({name:"menu",initialState:{items:[],selectedKey:""},reducers:{setMenuItems:(e,t)=>{e.items=t.payload},setSelectedKey:(e,t)=>{e.selectedKey=t.payload}}}),{setMenuItems:VK,setSelectedKey:UK}=VM.actions,sK=VM.reducer,gO=localStorage.getItem("display_node"),UM=Iu({name:"graph",initialState:{displayNode:gO?JSON.parse(gO):["disease","taxonomy","diet_and_food"]},reducers:{setDisplayNode:(e,t)=>{e.displayNode=t.payload,localStorage.setItem("display_node",JSON.stringify(t.payload))}}}),{setDisplayNode:kK}=UM.actions,cK=UM.reducer,I0=TW({reducer:{menu:sK,global:VW,context:FW,graph:cK,user:XW}});I0.subscribe(()=>{const e=I0.getState().user.baseURL;Xt.defaults.baseURL!==e&&(console.log("currentBaseURL: ",e),Xt.defaults.baseURL=`${e}/brave-api`)});console.log("production");const uK=localStorage.getItem("baseURL")||"";Xt.defaults.baseURL=`${uK}/brave-api`;Zj.createRoot(document.getElementById("root")).render(me.jsx($k,{store:I0,children:me.jsx(UW,{children:me.jsx(lK,{})})}));export{Kt as $,Wn as A,Pr as B,X_ as C,Er as D,So as E,Qr as F,I9 as G,An as H,pi as I,yn as J,Yc as K,Lr as L,Ea as M,Te as N,re as O,yT as P,Ao as Q,ae as R,nl as S,Py as T,_M as U,GI as V,r5 as W,gt as X,Za as Y,$n as Z,Pe as _,Xt as a,Tn as a$,_r as a0,ye as a1,bu as a2,zr as a3,ea as a4,Dr as a5,Po as a6,uH as a7,au as a8,PB as a9,yz as aA,mm as aB,$d as aC,Rv as aD,U1 as aE,aa as aF,lm as aG,Xi as aH,Io as aI,uP as aJ,jo as aK,qt as aL,La as aM,cH as aN,IO as aO,ow as aP,eR as aQ,Z2 as aR,J2 as aS,Q2 as aT,g_ as aU,Md as aV,Dx as aW,wy as aX,d_ as aY,yu as aZ,bH as a_,A0 as aa,Kc as ab,J as ac,ge as ad,Q as ae,tl as af,$t as ag,Rr as ah,fK as ai,eo as aj,Da as ak,K3 as al,os as am,rs as an,D0 as ao,tm as ap,as as aq,dA as ar,H0 as as,uy as at,ct as au,uR as av,lt as aw,vr as ax,nn as ay,m5 as az,bK as b,F7 as b$,ey as b0,ds as b1,pK as b2,Z5 as b3,C2 as b4,ta as b5,$o as b6,H6 as b7,W2 as b8,fy as b9,wo as bA,_m as bB,Tm as bC,q_ as bD,H_ as bE,jy as bF,k_ as bG,im as bH,x4 as bI,_v as bJ,is as bK,vy as bL,J1 as bM,Ou as bN,$m as bO,mi as bP,WR as bQ,xy as bR,Km as bS,Q_ as bT,Y_ as bU,sy as bV,P7 as bW,D7 as bX,B7 as bY,z7 as bZ,H7 as b_,pr as ba,k6 as bb,lw as bc,mK as bd,vK as be,JI as bf,Cu as bg,Gt as bh,el as bi,pu as bj,Ca as bk,L0 as bl,zO as bm,gK as bn,um as bo,_D as bp,sE as bq,a_ as br,Nt as bs,oy as bt,zt as bu,hu as bv,Td as bw,Mm as bx,E2 as by,Od as bz,Z7 as c,A7 as c0,L7 as c1,ss as c2,jd as c3,nu as c4,Em as c5,s3 as c6,wH as c7,hK as c8,PL as c9,oE as ca,cT as cb,a5 as cc,Zh as cd,MO as ce,bd as cf,P2 as cg,hs as ch,kK as ci,Aa as cj,hI as ck,Xc as cl,Jd as cm,Co as cn,Av as co,l4 as cp,o4 as cq,pw as cr,r3 as cs,b2 as ct,y2 as cu,e3 as cv,PO as cw,_u as d,yK as e,Ru as f,Dd as g,_o as h,Yz as i,me as j,Zd as k,ts as l,S_ as m,ui as n,hi as o,Jy as p,BK as q,f as r,Ly as s,gi as t,Fy as u,bn as v,OP as w,Mo as x,No as y,qn as z};
